lantiq: add support for upgrade led
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / WBMR.dts
index 9d0a8ac9e0b21c01275940fd77d767ee4dc9be85..9759b311b7c0352d9c248afb7ae30ab116128944 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &dsl;
                led-internet = &online_green;
                        default-state = "on";
                };
        };
+
+       usb_vbus: regulator-usb-vbus {
+               compatible = "regulator-fixed";
+
+               regulator-name = "USB_VBUS";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&gpio 36 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &gpio {
        };
 };
 
+&usb_phy0 {
+       status = "okay";
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
+       vbus-supply = <&usb_vbus>;
 };