From 1df4f5cf962ae869c10bfb11b28d94463a769abc Mon Sep 17 00:00:00 2001 From: DENG Qingfang Date: Wed, 12 Feb 2020 21:14:26 +0800 Subject: ramips: fix HiWiFi HC5761A USB port Export GPIO 41 to power USB port Signed-off-by: DENG Qingfang --- target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'target/linux/ramips') diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts index 1f7715bb38..903029d10d 100644 --- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts @@ -32,11 +32,22 @@ linux,default-trigger = "phy1tpt"; }; }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + usb_power { + gpio-export,name = "usb_power"; + gpio-export,output = <0>; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + }; + }; }; &state_default { gpio { - ralink,group = "i2c", "refclk", "wdt", "p3led_an", "wled_an"; + ralink,group = "i2c", "refclk", "wdt", "p2led_an", "p3led_an", "wled_an"; ralink,function = "gpio"; }; }; -- cgit v1.2.3