summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev2024-12-03 21:29:37 +0000
committerRobert Marko2025-01-10 09:53:46 +0000
commit98bcdd191db406a2ca1c458c1252a6d4a0169d22 (patch)
tree9f1b19a3cb5a7af488ab43f1c99e4aa44aceabae
parent38d79aca0eb22218b5dcc2ada98cde4bb734bc9c (diff)
downloadopenwrt-98bcdd191db406a2ca1c458c1252a6d4a0169d22.tar.gz
lantiq: use regulator for USB GPIO
One is already present. The other one can be implemented in terms of the PHY. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17250 Signed-off-by: John Crispin <john@phrozen.org> Link: https://github.com/openwrt/openwrt/pull/17512 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_zte_h201l.dts18
1 files changed, 13 insertions, 5 deletions
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_zte_h201l.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_zte_h201l.dts
index a0e3664b6d..3e8cbcf84b 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_zte_h201l.dts
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_zte_h201l.dts
@@ -96,11 +96,6 @@
gpio-export,output = <1>;
gpios = <&gpio 38 GPIO_ACTIVE_HIGH>;
};
- usb {
- gpio-export,name = "usb";
- gpio-export,output = <1>;
- gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
- };
wifi {
gpio-export,name = "wifi";
gpio-export,output = <1>;
@@ -108,6 +103,18 @@
};
};
+ usb_phy: regulator-usb-phy {
+ compatible = "regulator-fixed";
+
+ regulator-name = "USB_PHY";
+
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+
+ gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
usb_vbus: regulator-usb-vbus {
compatible = "regulator-fixed";
@@ -166,6 +173,7 @@
&usb_phy0 {
status = "okay";
+ phy-supply = <&usb_phy>;
};