[source] ramips: ZyXEL Keenetic Viva: export gpio usb power

LEDE Commits lede-commits at lists.infradead.org
Thu Jan 26 07:39:14 PST 2017


jow pushed a commit to source.git, branch master:
https://git.lede-project.org/e8c265b2cc7be2d7276556fc6e1e372a4c9ea064

commit e8c265b2cc7be2d7276556fc6e1e372a4c9ea064
Author: Vitaly Chekryzhev <13hakta at gmail.com>
AuthorDate: Tue Jan 3 23:18:55 2017 +0500

    ramips: ZyXEL Keenetic Viva: export gpio usb power
    
    Export gpio usb to allow power management of USB port.
    
    Signed-off-by: Vitaly Chekryzhev <13hakta at gmail.com>
---
 target/linux/ramips/dts/kng_rc.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/target/linux/ramips/dts/kng_rc.dts b/target/linux/ramips/dts/kng_rc.dts
index fefa1b7..7cd4de3 100644
--- a/target/linux/ramips/dts/kng_rc.dts
+++ b/target/linux/ramips/dts/kng_rc.dts
@@ -62,6 +62,17 @@
 		};
 	};
 
+	gpio_export {
+		compatible = "gpio-export";
+		#size-cells = <0>;
+
+		usb_power {
+			gpio-export,name = "usb";
+			gpio-export,output = <1>;
+			gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
+		};
+	};
+
 	rtl8367rb {
 		compatible = "realtek,rtl8367b";
 		cpu_port = <7>;



More information about the lede-commits mailing list