lantiq: add support for upgrade led
[openwrt/staging/blogic.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / P2601HNFX.dts
index b72b60453937a0d1e5168c97b19deac0fe97b744..6e01068ed8ca791549d3343f7f18d1fe32ff807d 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;
                        lantiq,function = "mdio";
                };
        };
+
+       usb_vbus: regulator-usb-vbus {
+               compatible = "regulator-fixed";
+
+               regulator-name = "USB_VBUS";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&gpio 9 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &gsw {
        lantiq,groups = <0x3>;
 };
 
+&usb_phy0 {
+       status = "okay";
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
+       vbus-supply = <&usb_vbus>;
 };