From: DENG Qingfang Date: Wed, 12 Feb 2020 13:14:26 +0000 (+0800) Subject: ramips: fix HiWiFi HC5761A USB port X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1df4f5cf962ae869c10bfb11b28d94463a769abc;p=openwrt%2Fstaging%2Fjow.git ramips: fix HiWiFi HC5761A USB port Export GPIO 41 to power USB port Signed-off-by: DENG Qingfang --- 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"; }; };