lantiq: enable STP where referenced
[openwrt/staging/lynxis.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / VGV7519.dtsi
index 2d83e2e464c6db7a664f4dc0f0c7d0b9e5cd8c8f..f69b302bcdd1284b79b1edd093f4d3ecffb77112 100644 (file)
@@ -1,6 +1,7 @@
 #include "vr9.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mips/lantiq_rcu_gphy.h>
 
 / {
        compatible = "arcadyan,vgv7519", "lantiq,xway", "lantiq,vr9";
@@ -13,6 +14,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &broadband_green;
                led-internet = &internet_green;
                reg = <0x0 0x4000000>;
        };
 
-       gphy-xrx200 {
-               compatible = "lantiq,phy-xrx200";
-               firmware1 = "lantiq/xrx200_phy11g_a14.bin";     /*VR9 1.1*/
-               firmware2 = "lantiq/xrx200_phy11g_a22.bin";     /*VR9 1.2*/
-               phys = [ 00 01 ];
-       };
-
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
                        gpios = <&stp 15 GPIO_ACTIVE_LOW>;
                };
        };
+
+       usb_vbus: regulator-usb-vbus {
+               compatible = "regulator-fixed";
+
+               regulator-name = "USB_VBUS";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&gpio 32 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &eth0 {
        };
 };
 
+&gphy0 {
+       lantiq,gphy-mode = <GPHY_MODE_GE>;
+};
+
+&gphy1 {
+       lantiq,gphy-mode = <GPHY_MODE_GE>;
+};
+
 &gpio {
        pinctrl-names = "default";
        pinctrl-0 = <&state_default>;
 };
 
 &stp {
+       status = "okay";
        lantiq,shadow = <0xffff>;
        lantiq,groups = <0x3>;
        lantiq,dsl = <0x0>;
        /* lantiq,rising; */
 };
 
+&usb_phy0 {
+       status = "okay";
+};
+
+&usb_phy1 {
+       status = "okay";
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
-       lantiq,portmask = <0x3>;
+       vbus-supply = <&usb_vbus>;
 };
 
 &usb1 {
        status = "okay";
-       gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
+       vbus-supply = <&usb_vbus>;
 };
 
 &vmmc {