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 cf531ed8c41..a34abb1dd2d 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 d4e1e6b2374..2eaff61f50b 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"; };