aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-11-21 21:24:38 +0000
committerJohn Crispin <john@openwrt.org>2015-11-21 21:24:38 +0000
commit40ddc71cc98085e93b0ae8e3c4a0a249c66dbdde (patch)
treef610358770ffb02513907809a3e7f4af082d715e /target/linux
parent27ac4ce9284ef8b09c9c1ac130293ed0bed81ede (diff)
downloadupstream-40ddc71cc98085e93b0ae8e3c4a0a249c66dbdde.tar.gz
upstream-40ddc71cc98085e93b0ae8e3c4a0a249c66dbdde.tar.bz2
upstream-40ddc71cc98085e93b0ae8e3c4a0a249c66dbdde.zip
ramips: init usb power for Lenovo Y1S
Signed-off-by: Shonn Lu <countrysideboy@qq.com> SVN-Revision: 47557
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/dts/Y1S.dts21
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/Y1S.dts b/target/linux/ramips/dts/Y1S.dts
index f61280b755..d00416220e 100644
--- a/target/linux/ramips/dts/Y1S.dts
+++ b/target/linux/ramips/dts/Y1S.dts
@@ -40,6 +40,27 @@
};
};
+ gpio_export {
+ compatible = "gpio-export";
+ #size-cells = <0>;
+ /* GPIO 54、55、56 USB1、2、3 */
+ usb0 {
+ gpio-export,name = "usb0";
+ gpio-export,output = <1>; // GPIOF_OUT_INIT_HIGH
+ gpios = <&gpio2 14 0>; // GPIO2:40+14=GPIO 54
+ };
+ usb1 {
+ gpio-export,name = "usb1";
+ gpio-export,output = <1>;
+ gpios = <&gpio2 15 0>;
+ };
+ usb2 {
+ gpio-export,name = "usb2";
+ gpio-export,output = <1>;
+ gpios = <&gpio2 16 0>;
+ };
+ };
+
gsw@10110000 {
ralink,port4 = "gmac";
};