summaryrefslogtreecommitdiff
path: root/target/linux/ramips/dts
diff options
context:
space:
mode:
authorVitaly Chekryzhev <13hakta@gmail.com>2017-01-20 18:03:15 +0500
committerJo-Philipp Wich <jo@mein.io>2017-04-28 17:09:08 +0200
commit28d626556d846ce69246d72e2a0e3a008e5fc7dd (patch)
tree5bbecb2770f8b9f3ed55c6f705cf33eeb7cfb90b /target/linux/ramips/dts
parentfd693bc0e80bafe89a85db7f905d717310ab513b (diff)
downloadmtk-20170518-28d626556d846ce69246d72e2a0e3a008e5fc7dd.zip
mtk-20170518-28d626556d846ce69246d72e2a0e3a008e5fc7dd.tar.gz
mtk-20170518-28d626556d846ce69246d72e2a0e3a008e5fc7dd.tar.bz2
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@gmail.com>
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r--target/linux/ramips/dts/kn_rc.dts11
-rw-r--r--target/linux/ramips/dts/kn_rf.dts11
2 files changed, 22 insertions, 0 deletions
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 {