diff options
author | PtilopsisLeucotis <PtilopsisLeucotis@yandex.com> | 2022-04-16 13:21:58 +0300 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-05-01 13:23:12 +0200 |
commit | 0c25b9cb11bfb8581b2d4b1ade39ad37729402b3 (patch) | |
tree | a6b9026014ea9c7f42e4464d8226c0991c96b093 /target/linux | |
parent | a142d96ade462e2b9bb922c8e615d3811066e794 (diff) | |
download | upstream-0c25b9cb11bfb8581b2d4b1ade39ad37729402b3.tar.gz upstream-0c25b9cb11bfb8581b2d4b1ade39ad37729402b3.tar.bz2 upstream-0c25b9cb11bfb8581b2d4b1ade39ad37729402b3.zip |
ath79: add USB power control for GL-AR300M series
Add USB power control in DTS for GL.iNet models:
- AR300M;
- AR300M-Ext;
- AR300M16;
- AR300M16-Ext.
Signed-off-by: PtilopsisLeucotis <PtilopsisLeucotis@yandex.com>
(cherry picked from commit 6e9c814022e41a7cfa4db3b1a41e257fd1515bea)
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts | 6 | ||||
-rw-r--r-- | target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi | 11 |
2 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts index cf531ed8c4..a34abb1dd2 100644 --- a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts +++ b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts @@ -7,6 +7,8 @@ model = "GL.iNet GL-AR300M-Lite"; }; +/delete-node/ ®_usb_vbus; + /delete-node/ &nand_flash; &nor_firmware { @@ -27,3 +29,7 @@ &led_wlan { label = "green:wlan"; }; + +&usb0 { + /delete-property/ vbus-supply; +}; diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi index d4e1e6b237..2eaff61f50 100644 --- a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi +++ b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi @@ -37,6 +37,16 @@ }; }; + reg_usb_vbus: reg_usb_vbus { + compatible = "regulator-fixed"; + + regulator-name = "usb_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio 2 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + leds { compatible = "gpio-leds"; @@ -134,6 +144,7 @@ &usb0 { #address-cells = <1>; #size-cells = <0>; + vbus-supply = <®_usb_vbus>; status = "okay"; }; |