[openwrt/openwrt] ath79: gl-ar150: fix USB GPIO usage
LEDE Commits
lede-commits at lists.infradead.org
Sun Jan 12 09:02:21 PST 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/90e86a871319e481322959e301b2603c258092a9
commit 90e86a871319e481322959e301b2603c258092a9
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Mon Dec 23 13:20:49 2024 -0800
ath79: gl-ar150: fix USB GPIO usage
Currently, an OpenWrt hack is used to turn the GPIO on in terms of the
PHY driver when it should be the USB driver that controls it. The
chipidea USB2 driver has support for a vbus-supply property. Use it
instead of the local OpenWrt solution that just turns on the GPIO.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17356
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts b/target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts
index fe1d3186cf..8e38c9f5fb 100644
--- a/target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts
+++ b/target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts
@@ -62,16 +62,26 @@
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
};
};
+
+ reg_power_usb: regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "power_usb";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
};
&usb {
- dr_mode = "host";
status = "okay";
+
+ dr_mode = "host";
+ vbus-supply = <®_power_usb>;
};
&usb_phy {
status = "okay";
- gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
};
&spi {
More information about the lede-commits
mailing list