Add USB power control in DTS for GL.iNet models:
- AR300M;
- AR300M-Ext;
- AR300M16;
- AR300M16-Ext.
Signed-off-by: PtilopsisLeucotis <PtilopsisLeucotis@yandex.com>
model = "GL.iNet GL-AR300M-Lite";
};
+/delete-node/ ®_usb_vbus;
+
/delete-node/ &nand_flash;
&nor_firmware {
&led_wlan {
label = "green:wlan";
};
+
+&usb0 {
+ /delete-property/ vbus-supply;
+};
};
};
+ 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";
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
+ vbus-supply = <®_usb_vbus>;
status = "okay";
};