aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDENG Qingfang <dengqf6@mail2.sysu.edu.cn>2020-02-12 21:14:26 +0800
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-02-21 13:55:33 +0100
commit1df4f5cf962ae869c10bfb11b28d94463a769abc (patch)
tree6812518c5f9163be83502c73412d94fe06c70f87
parentc8f8e59816eca49d776562d2d302bf990a87faf0 (diff)
downloadupstream-1df4f5cf962ae869c10bfb11b28d94463a769abc.tar.gz
upstream-1df4f5cf962ae869c10bfb11b28d94463a769abc.tar.bz2
upstream-1df4f5cf962ae869c10bfb11b28d94463a769abc.zip
ramips: fix HiWiFi HC5761A USB port
Export GPIO 41 to power USB port Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
-rw-r--r--target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts13
1 files changed, 12 insertions, 1 deletions
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";
};
};