lantiq: ltq-tapi: fix compatibility with Linux 4.15+
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / EASY80920.dtsi
index c24c5d97d641b2188c2f88bcbdfb19d1b8fe0831..781cdfdb5b8705747331fa9f1cdc75f1abd3193e 100644 (file)
@@ -1,6 +1,7 @@
 #include "vr9.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mips/lantiq_rcu_gphy.h>
 
 / {
        compatible = "lantiq,easy80920", "lantiq,xway", "lantiq,vr9";
@@ -13,6 +14,7 @@
                led-boot = &power;
                led-failsafe = &power;
                led-running = &power;
+               led-upgrade = &power;
 
                led-usb = &led_usb1;
                led-usb2 = &led_usb2;
                reg = <0x0 0x4000000>;
        };
 
-       gphy-xrx200 {
-               compatible = "lantiq,phy-xrx200";
-               firmware1 = "lantiq/xrx200_phy11g_a14.bin";
-               firmware2 = "lantiq/xrx200_phy11g_a22.bin";
-               phys = [ 00 01 ];
-       };
-
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
                        gpios = <&stp 12 GPIO_ACTIVE_HIGH>;
                };
        };
+
+       usb_vbus: regulator-usb-vbus {
+               compatible = "regulator-fixed";
+
+               regulator-name = "USB_VBUS";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&gpio 33 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>;
        /* lantiq,rising; */
 };
 
+&usb_phy0 {
+       status = "okay";
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
-       lantiq,portmask = <0x3>;
+       vbus-supply = <&usb_vbus>;
 };