diff options
| author | Rosen Penev | 2024-12-23 22:20:29 +0000 |
|---|---|---|
| committer | Robert Marko | 2025-03-10 09:42:13 +0000 |
| commit | 0cdcba238fe61793e14dd0792e16445f0fa07f05 (patch) | |
| tree | c07b5ae3c10ed4d8da19d707e275255fc230221f | |
| parent | 6a1bdcf545eec8f9ed5130e7f5794fca6ee54cb3 (diff) | |
| download | openwrt-0cdcba238fe61793e14dd0792e16445f0fa07f05.tar.gz | |
ramips: use regulator for USB
The DWC2 driver used here supports a vbus-supply property to control
the GPIO. Use it instead of the local gpio,exports solution.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17357
Signed-off-by: Robert Marko <robimarko@gmail.com>
| -rw-r--r-- | target/linux/ramips/dts/rt3052_accton_wr6202.dts | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/target/linux/ramips/dts/rt3052_accton_wr6202.dts b/target/linux/ramips/dts/rt3052_accton_wr6202.dts index 685f596177..b459894d0d 100644 --- a/target/linux/ramips/dts/rt3052_accton_wr6202.dts +++ b/target/linux/ramips/dts/rt3052_accton_wr6202.dts @@ -94,15 +94,12 @@ }; }; - gpio_export { - compatible = "gpio-export"; - #size-cells = <0>; - - usb { - gpio-export,name = "usb"; - gpio-export,output = <0>; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; + reg_usb_power: regulator { + compatible = "regulator-fixed"; + regulator-name = "usb_power"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; }; @@ -129,4 +126,6 @@ &otg { status = "okay"; + + vbus-supply = <®_usb_power>; }; |