[OpenWrt-Devel] [PATCH] ramips: init usb power for Lenovo Y1S

Shonn Lu countrysideboy at qq.com
Sun Nov 8 00:26:13 EST 2015


Signed-off-by: Shonn Lu <countrysideboy at qq.com>
---
 target/linux/ramips/dts/Y1S.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/target/linux/ramips/dts/Y1S.dts b/target/linux/ramips/dts/Y1S.dts
index 9ecac37..2423a2c 100644
--- a/target/linux/ramips/dts/Y1S.dts
+++ b/target/linux/ramips/dts/Y1S.dts
@@ -41,6 +41,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 at 10110000 {
 		ralink,port4 = "gmac";
 	};
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list