[source] ramips: ZyXEL Keenetic Omni/Omni2: export gpio usb power

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


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

commit 9a53e1bdf974c04442c43d8d36107d5afea54cca
Author: Vitaly Chekryzhev <13hakta at gmail.com>
AuthorDate: Fri Jan 20 18:03:15 2017 +0500

    ramips: ZyXEL Keenetic Omni/Omni2: 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/kn_rc.dts | 11 +++++++++++
 target/linux/ramips/dts/kn_rf.dts | 11 +++++++++++
 2 files changed, 22 insertions(+)

diff --git a/target/linux/ramips/dts/kn_rc.dts b/target/linux/ramips/dts/kn_rc.dts
index c63c1a3..2709b51 100644
--- a/target/linux/ramips/dts/kn_rc.dts
+++ b/target/linux/ramips/dts/kn_rc.dts
@@ -56,6 +56,17 @@
 			linux,code = <BTN_0>;
 		};
 	};
+
+	gpio_export {
+		compatible = "gpio-export";
+		#size-cells = <0>;
+
+		usb_power {
+			gpio-export,name = "usb";
+			gpio-export,output = <1>;
+			gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
+		};
+	};
 };
 
 &spi0 {
diff --git a/target/linux/ramips/dts/kn_rf.dts b/target/linux/ramips/dts/kn_rf.dts
index 22b16b0..1190eab 100644
--- a/target/linux/ramips/dts/kn_rf.dts
+++ b/target/linux/ramips/dts/kn_rf.dts
@@ -56,6 +56,17 @@
 			linux,code = <BTN_0>;
 		};
 	};
+
+	gpio_export {
+		compatible = "gpio-export";
+		#size-cells = <0>;
+
+		usb_power {
+			gpio-export,name = "usb";
+			gpio-export,output = <1>;
+			gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
+		};
+	};
 };
 
 &spi0 {



More information about the lede-commits mailing list