From e5d3750a2a94aa8da3fdbe2a77ccbfc40103df6b Mon Sep 17 00:00:00 2001 From: blogic Date: Sat, 21 Nov 2015 21:24:38 +0000 Subject: [PATCH] ramips: init usb power for Lenovo Y1S Signed-off-by: Shonn Lu git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47557 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 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"; }; -- 2.11.0