lantiq: kernel 4.14: update dts files
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 13 Nov 2017 21:39:01 +0000 (22:39 +0100)
committerMathias Kresin <dev@kresin.me>
Tue, 20 Feb 2018 18:25:17 +0000 (19:25 +0100)
Updated the devicetree source files to make use of the following
upstreamed drivers:

 - xrx200 ethernet phy
 - reset controller unit
 - dwc2
 - fpi

Use our custom xrx200 ethernet phy compatible to support boards, which
have switched the vr9 revision during lifetime, with a single devicetree
source file.

By switching to the dwc2 driver + usb phy framework, we don't need to used
our custom gpio power patch and can use a fixed regulator instead.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Mathias Kresin <dev@kresin.me>
38 files changed:
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ACMP252.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV4518PWR01.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV4519PW.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV4520PW.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV452CQW.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV7510PW22.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV7518PW.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV7519PW.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV7519RW22.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV752DPW.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV752DPW22.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV8539PW22.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ASL56026.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/BTHOMEHUBV2B.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/BTHOMEHUBV3A.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/BTHOMEHUBV5A.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/DGN1000B.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/DGN3500.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/DM200.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/EASY80920.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ3370.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ7320.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ7360SL.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/GIGASX76X.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/H201L.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/P2601HNFX.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/P2812HNUFX.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/TDW89X0.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/VG3503J.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/VGV7510KW22.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/VGV7519.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/VR200v.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/WBMR.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/WBMR300.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/amazonse.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ar9.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/danube.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/vr9.dtsi

index 2c694029f540a7394951bef11dd5d021bc29168e..5e1f271606e30899eec42076c25ecc40f1ebe971 100644 (file)
        memory@0 {
                reg = <0x0 0x4000000>;
        };
+
+       usb_vbus: regulator-usb-vbus {
+               compatible = "regulator-fixed";
+
+               regulator-name = "USB_VBUS";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&gpio 3 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &gpio {
        status = "okay";
 };
 
+&usb_phy {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb {
        status = "okay";
-       gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
 };
 
 &vmmc {
index de657c6a5427880baf1382bc5b2d67003169ad9a..458a3875363f301b5626ad6c6c9aee34c4196530 100644 (file)
                        gpios = <&gpiomm 3 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 14 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &gpio {
        req-mask = <0xf>;
 };
 
+&usb_phy {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb {
        status = "okay";
-       gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
 };
 
 &vmmc {
index 11e57e14a0e635aad7cd8f093c44f868d0dbfc52..5733d2ce1982baa3539f752d43ec9c5d8fabcc99 100644 (file)
                        gpios = <&gpiomm 6 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 14 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &gpio {
        req-mask = <0xf>;
 };
 
+&usb_phy {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb {
        status = "okay";
-       gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
 };
 
 &vmmc {
index 84d36d7e579b5b9eb8ed4bcef730b36ecc7fa154..aa4269305bbd3a53e85f35719d33dc3e9cc59713 100644 (file)
                        info is missing
                */
        };
+
+       usb_vbus: regulator-usb-vbus {
+               compatible = "regulator-fixed";
+
+               regulator-name = "USB_VBUS";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&gpio 28 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &gpio {
        gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
 };
 
+&usb_phy {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb {
        status = "okay";
-       gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
 };
 
 &vmmc {
index 7221c1181ecee3a4708277da5da996114d213b34..1e1183d1babc168dbec03f9401d0eecc46b07a91 100644 (file)
                        gpios = <&gpiomm 9 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 28 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &gpio {
        gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
 };
 
+&usb_phy {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb {
        status = "okay";
-       gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
 };
 
 &vmmc {
index d99e1e3fe4a695c8ee4ba0f2d4e28f24a8000f64..337f969b34560619b6048d6b646c738a78dbdd7b 100644 (file)
                        lantiq,output = <0>;
                };
        };
+
+       usb_vbus: regulator-usb-vbus {
+               compatible = "regulator-fixed";
+
+               regulator-name = "USB_VBUS";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &gsw {
        };
 };
 
+&usb_phy {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb {
        status = "okay";
-       gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
 };
 
 &vmmc {
index a0924f279dba955c1b06130f54bfc621fe42e008..1d6f404ee99575f44e7e672f1f443d99339355c9 100644 (file)
                        lantiq,open-drain = <1>;
                };
        };
+
+       usb_vbus: regulator-usb-vbus {
+               compatible = "regulator-fixed";
+
+               regulator-name = "USB_VBUS";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&gpio 14 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &gpiomm {
        };
 };
 
+&usb_phy {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb {
        status = "okay";
-       gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
 };
 
 &vmmc {
index 4d0ddfd3a74d8fc1652d792a4da05c0dd3576fa7..39dcf4561962ba150d34d21ef2b2cba4c4cd47d2 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "okay";
+};
+
 /* warning: passive port only works with active devices */
 &usb {
        status = "okay";
index d361fde6d481f635d564b0d759112adbb0e47f04..40607aebdd11ef0ea190003f31c8004631854046 100644 (file)
@@ -3,6 +3,7 @@
 #include "vr9.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mips/lantiq_rcu_gphy.h>
 
 / {
        compatible = "arcadyan,arv7519rw22", "lantiq,xway", "lantiq,vr9";
                reg = <0x0 0x8000000>;
        };
 
-       gphy-xrx200 {
-               compatible = "lantiq,phy-xrx200";
-               firmware1 = "lantiq/xrx200_phy22f_a14.bin";     /*VR9 1.1*/
-               firmware2 = "lantiq/xrx200_phy22f_a22.bin";     /*VR9 1.2*/
-               phys = [ 00 01 ];
-       };
-
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
                        gpios = <&gpio 29 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_FE>;
+};
+
+&gphy1 {
+       lantiq,gphy-mode = <GPHY_MODE_FE>;
+};
 
 &gpio {
        pinctrl-names = "default";
        gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
 };
 
+&usb_phy0 {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
+&usb_phy1 {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
 };
 
 &usb1 {
        status = "okay";
-       gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
 };
index bb73a26d56605af72fec38560721716b3d1c28a6..7b337b4f5fd7edb924e82c7a12cc5f6cf5762854 100644 (file)
                        lantiq,open-drain = <1>;
                };
        };
+
+       usb_vbus: regulator-usb-vbus {
+               compatible = "regulator-fixed";
+
+               regulator-name = "USB_VBUS";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&gpiomm 0 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &gpiomm {
        };
 };
 
+&usb_phy {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb {
        status = "okay";
-       gpios = <&gpiomm 0 GPIO_ACTIVE_HIGH>;
 };
 
 &vmmc {
index 9dfd515b350c254e0c6f72632ed12b06767369f8..feb92d4d9d350b2a79df399fdc0a995a24d9ce98 100644 (file)
                        gpios = <&gpiomm 14 GPIO_ACTIVE_LOW>;
                };
        };
+
+       usb_vbus: regulator-usb-vbus {
+               compatible = "regulator-fixed";
+
+               regulator-name = "USB_VBUS";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&gpiomm 0 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &gpio {
        };
 };
 
+&usb_phy {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb {
        status = "okay";
-       gpios = <&gpiomm 0 GPIO_ACTIVE_HIGH>;
 };
 
 &vmmc {
index adc1dd835497c5d79927a398567ce4b35a0c9030..1e39380f603560c17d8e85c7c7b7284e15bc45b6 100644 (file)
                        telefonie green is missing
                */
        };
+
+       usb_vbus: regulator-usb-vbus {
+               compatible = "regulator-fixed";
+
+               regulator-name = "USB_VBUS";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&gpio 14 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &gpio {
        };
 };
 
+&usb_phy {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb {
        status = "okay";
-       gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
-       lantiq,portmask = <0x3>;
 };
 
 &vmmc {
index 35376567c1445c28b428552493a209a355d6a0df..9a78822be300b6046cecfdcd37c27e839bd565bc 100644 (file)
@@ -3,6 +3,7 @@
 #include "vr9.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mips/lantiq_rcu_gphy.h>
 
 / {
        compatible = "alphanetworks,asl56026", "lantiq,xway", "lantiq,vr9";
                reg = <0x0 0x2000000>;
        };
 
-       gphy-xrx200 {
-               compatible = "lantiq,phy-xrx200";
-               firmware1 = "lantiq/xrx200_phy22f_a14.bin";     /*VR9 1.1*/
-               firmware2 = "lantiq/xrx200_phy22f_a22.bin";     /*VR9 1.2*/
-               phys = [ 00 01 ];
-       };
-
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
        };
 };
 
+&gphy0 {
+       lantiq,gphy-mode = <GPHY_MODE_FE>;
+};
+
+&gphy1 {
+       lantiq,gphy-mode = <GPHY_MODE_FE>;
+};
+
 &gpio {
        pinctrl-names = "default";
        pinctrl-0 = <&state_default>;
index d3be43cd9960347815e4305e57de1dc7c21c003e..105dae408dee38cc99a416431ffe4406412c930a 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "okay";
+};
+
 &usb {
        status = "okay";
 };
index afb1b26c52dfdb52dc2390fde7343d861cfefd44..6bba7e42010a61b54f12341c86bd8f10d87014d3 100644 (file)
                        gpios = <&gpio 1 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 33 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &gpio {
        };
 };
 
+&usb_phy0 {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
 };
index feefc8519ed5932f92a5d240e892fb70404e5653..a3be0a5c9ca93c977a674c45ca4afd97abbb6dc9 100644 (file)
@@ -3,6 +3,7 @@
 #include "vr9.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mips/lantiq_rcu_gphy.h>
 
 / {
        compatible = "bt,homehub-v5a", "lantiq,xway", "lantiq,vr9";
                reg = <0x0 0x8000000>;
        };
 
-       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 = <&gpio 19 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>;
        };
 };
 
+&usb_phy0 {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
 };
index 42fb51fdd8254f4cd808c00bfe3d4eca371b3f6d..8982c27befe73f4ff1cf29fb1c88ba3fc8894a91 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "okay";
+};
+
 &usb {
        status = "okay";
 };
index 775f3f2917baa642ebb7de2a96e4d9a5b9603f91..614845f09d9f811420e1743f5186951d0a8d3417 100644 (file)
        };
 };
 
+&usb_phy0 {
+       status = "okay";
+};
+
 &usb0 {
        status = "okay";
 };
index bd022c5c4851cb5a2f33f82a28f90e07cc49eeb2..8302336bd40ecfc2e2d99c598870ff1cb035aeb5 100644 (file)
@@ -3,6 +3,7 @@
 #include "vr9.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mips/lantiq_rcu_gphy.h>
 
 / {
        compatible = "netgear,dm200", "lantiq,xway", "lantiq,vr9";
                reg = <0x0 0x4000000>;
        };
 
-       gphy-xrx200 {
-               compatible = "lantiq,phy-xrx200";
-               firmware = "lantiq/xrx200_phy22f_a22.bin";
-               phys = [ 01 ];
-       };
-
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
@@ -91,6 +86,8 @@
 };
 
 &eth0 {
+       lantiq,phys = <&gphy1>;
+
        lan: interface@0 {
                compatible = "lantiq,xrx200-pdi";
                #address-cells = <1>;
        };
 };
 
+&gphy1 {
+       lantiq,gphy-mode = <GPHY_MODE_FE>;
+};
+
 &gpio {
        pinctrl-names = "default";
        pinctrl-0 = <&state_default>;
index c24c5d97d641b2188c2f88bcbdfb19d1b8fe0831..464ab5bd4e9fddb5cbb6c5cdefa352d43b6550f3 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";
                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";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
-       lantiq,portmask = <0x3>;
 };
index 1fc42fe51f6a4129cccaead3cc0b69f4b42eeffe..a958fc67aae4e51abf2b00a900d5e31860919008 100644 (file)
@@ -3,6 +3,7 @@
 #include "vr9.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mips/lantiq_rcu_gphy.h>
 
 / {
        compatible = "avm,fritz3370", "lantiq,xway", "lantiq,vr9";
                reg = <0x0 0x8000000>;
        };
 
-       gphy-xrx200 {
-               compatible = "lantiq,phy-xrx200";
-               firmware = "lantiq/xrx200_phy11g_a14.bin";
-               phys = [ 00 01 ];
-       };
-
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
        };
 };
 
+&gphy0 {
+       lantiq,gphy-mode = <GPHY_MODE_GE>;
+};
+
+&gphy1 {
+       lantiq,gphy-mode = <GPHY_MODE_GE>;
+};
+
 &gpio {
        pinctrl-names = "default";
        pinctrl-0 = <&state_default>;
        };
 };
 
+/*
+ * TODO: add phy-supply, gpio 5 GPIO_ACTIVE_HIGH and gpio 14 GPIO_ACTIVE_HIGH are
+ * related
+ */
+&usb_phy0 {
+       status = "okay";
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 5 GPIO_ACTIVE_HIGH
-               &gpio 14 GPIO_ACTIVE_HIGH>;
-       lantiq,portmask = <0x3>;
 };
index e6334d46df8ae8a83f8f706dadc46a3241deaa60..eed4ae316a4bd9f0bcde2b6af2e981bdfdb7eb07 100644 (file)
        };
 };
 
+&usb_phy0 {
+       status = "okay";
+};
+
 &usb0 {
        status = "okay";
 };
index 29bb22976c67e465bfb21b4c1381435d3ac10ffe..a0f5d8ee0595e07e577901d96a3fa040d178a9d6 100644 (file)
@@ -3,6 +3,7 @@
 #include "vr9.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mips/lantiq_rcu_gphy.h>
 
 / {
        compatible = "avm,fritz7360sl", "lantiq,xway", "lantiq,vr9";
                reg = <0x0 0x8000000>;
        };
 
-       gphy-xrx200 {
-               compatible = "lantiq,phy-xrx200";
-               firmware = "lantiq/xrx200_phy11g_a22.bin";
-               phys = [ 00 01 ];
-       };
-
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
        };
 };
 
+&gphy0 {
+       lantiq,gphy-mode = <GPHY_MODE_GE>;
+};
+
+&gphy1 {
+       lantiq,gphy-mode = <GPHY_MODE_GE>;
+};
+
 &gpio {
        pinctrl-names = "default";
        pinctrl-0 = <&state_default>;
        };
 };
 
+&usb_phy0 {
+       status = "okay";
+};
+
+&usb_phy1 {
+       status = "okay";
+};
+
 &usb0 {
        status = "okay";
-       lantiq,portmask = <0x3>;
 };
 
 &usb1 {
index f2783e7e3b35426d9543f900d8acff72e3919bd2..fc028bb5f126e1c3b625e156285b8e686a8e850a 100644 (file)
                        gpios = <&gpio 19 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 29 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &gpio {
        gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
 };
 
+&usb_phy {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb {
        status = "okay";
-       gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
 };
 
 &vmmc {
index 6229d409131d366ed289445f80a3634091cdd397..43a4b42d82c7dc2223f8c16cfd64a58c7b921292 100644 (file)
                        gpios = <&gpio 7 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 36 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &gpio {
        };
 };
 
+&usb_phy0 {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
 };
index b72b60453937a0d1e5168c97b19deac0fe97b744..267a4f3a718cd5e6b0f66ec723642c6fa9011699 100644 (file)
                        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";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
 };
index 4d61d8e9235b8962f0771a42385471d11c04be39..03858afef41eab4d8bd0fdc35fe88d715988104e 100644 (file)
@@ -1,6 +1,7 @@
 #include "vr9.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mips/lantiq_rcu_gphy.h>
 
 / {
        compatible = "zyxel,p-2812hnu", "lantiq,xway", "lantiq,vr9";
                reg = <0x0 0x8000000>;
        };
 
-       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 = <&gpio 28 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 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,phy2 = <0x0>;
 };
 
+&usb_phy0 {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
+&usb_phy1 {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
-       lantiq,portmask = <0x3>;
 };
 
 &usb1 {
        status = "okay";
-       gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
 };
index 53ed8338c35e65c2a9ac1e35f944e1cfabd9c2f2..e176bca30f85eafd7d21016a0bc7ddbd6a9e1c9f 100644 (file)
@@ -1,6 +1,7 @@
 #include "vr9.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mips/lantiq_rcu_gphy.h>
 
 / {
        compatible = "tplink,tdw89x0", "lantiq,xway", "lantiq,vr9";
                reg = <0x0 0x4000000>;
        };
 
-       gphy-xrx200 {
-               compatible = "lantiq,phy-xrx200";
-               firmware = "lantiq/xrx200_phy11g_a22.bin";
-               phys = [ 00 01 ];
-       };
-
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
                        gpios = <&ath9k 0 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>;
        };
 };
 
+&usb_phy0 {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
+&usb_phy1 {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
-       lantiq,portmask = <0x3>;
 };
 
 &usb1 {
        status = "okay";
-       gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
 };
index 2257d21d7b5c2c111d38ace76f9483b245acf170..bb001cb219cca492b811ad671b751ff0338bc097 100644 (file)
@@ -3,6 +3,7 @@
 #include "vr9.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mips/lantiq_rcu_gphy.h>
 
 / {
        compatible = "arcadyan,vg3503j", "lantiq,xway", "lantiq,vr9";
                reg = <0x0 0x2000000>;
        };
 
-       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>;
        };
 };
 
+&gphy0 {
+       lantiq,gphy-mode = <GPHY_MODE_GE>;
+};
+
+&gphy1 {
+       lantiq,gphy-mode = <GPHY_MODE_GE>;
+};
+
 &gpio {
        pinctrl-names = "default";
        pinctrl-0 = <&state_default>;
index 829e8c3d7efee918dae03f11852af4d523f0bd14..8f22380cc9a8329074d5de66a27b26a76501a06b 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,vgv7510kw22", "lantiq,xway", "lantiq,vr9";
                reg = <0x0 0x4000000>;
        };
 
-       gphy-xrx200 {
-               compatible = "lantiq,phy-xrx200";
-               firmware1 = "lantiq/xrx200_phy22f_a14.bin";     /*VR9 1.1*/
-               firmware2 = "lantiq/xrx200_phy22f_a22.bin";     /*VR9 1.2*/
-               phys = [ 00 01 ];
-       };
-
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
                        gpios = <&gpio 29 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 47 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &eth0 {
        };
 };
 
+&gphy0 {
+       lantiq,gphy-mode = <GPHY_MODE_FE>;
+};
+
+&gphy1 {
+       lantiq,gphy-mode = <GPHY_MODE_FE>;
+};
+
 &gpio {
        pinctrl-names = "default";
        pinctrl-0 = <&state_default>;
        status = "disabled";
 };
 
+&usb_phy0 {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
 };
 
 &vmmc {
index 2d83e2e464c6db7a664f4dc0f0c7d0b9e5cd8c8f..297f5f7f4f62ebd3a0a382c37b50571923240567 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";
                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>;
        /* lantiq,rising; */
 };
 
+&usb_phy0 {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
+&usb_phy1 {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
-       lantiq,portmask = <0x3>;
 };
 
 &usb1 {
        status = "okay";
-       gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
 };
 
 &vmmc {
index ccdc9d7363ae0c09e3f12853d41ca1c5569ad388..d0fcd6fcd0d3fbf8fd6d0b213111cf3fae480680 100644 (file)
@@ -3,6 +3,7 @@
 #include "vr9.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mips/lantiq_rcu_gphy.h>
 
 / {
        compatible = "tplink,vr200v", "lantiq,xway", "lantiq,vr9";
                reg = <0x0 0x7f00000>;
        };
 
-       gphy-xrx200 {
-               compatible = "lantiq,phy-xrx200";
-               firmware = "lantiq/xrx200_phy11g_a22.bin";
-               phys = [ 00 01 ];
-       };
-
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
                        gpios = <&gpio 44 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 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>;
        };
 };
 
+&usb_phy0 {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
+&usb_phy1 {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
-       lantiq,portmask = <0x3>;
 };
 
 &usb1 {
        status = "okay";
-       gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
 };
index 9d0a8ac9e0b21c01275940fd77d767ee4dc9be85..6bee3308a2186f3e8cd26b6d918e78fafc1a0fc3 100644 (file)
                        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";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
 };
index b187ab77f3a53da9fd839bd04516dd5370dec785..4092b6b6eb52b3d3e8bb4800ce5066c34a786d64 100644 (file)
@@ -3,6 +3,7 @@
 #include "vr9.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mips/lantiq_rcu_gphy.h>
 
 / {
        compatible = "buffalo,wbmr-300hpd", "lantiq,xway", "lantiq,vr9";
                reg = <0x0 0x4000000>;
        };
 
-       gphy-xrx200 {
-               compatible = "lantiq,phy-xrx200";
-               firmware = "lantiq/xrx200_phy22f_a22.bin";
-               phys = [ 00 01 ];
-       };
-
        gpio_poweroff {
                compatible = "gpio-poweroff";
                gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                        gpios = <&gpio 49 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_FE>;
+};
+
+&gphy1 {
+       lantiq,gphy-mode = <GPHY_MODE_FE>;
+};
+
 &gpio {
        pinctrl-names = "default";
        pinctrl-0 = <&state_default>;
        };
 };
 
+&usb_phy0 {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
+&usb_phy1 {
+       status = "okay";
+       phy-supply = <&usb_vbus>;
+};
+
 &usb0 {
        status = "okay";
-       gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
-       lantiq,portmask = <0x3>;
 };
 
 &usb1 {
        status = "okay";
-       gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
 };
index 77b9342cba68ccd01d7e6ae5d08fb8a9e98fd070..f216adf36f776e7b7c9ef6bb7222a945ef52c2b8 100644 (file)
                };
 
                rcu0: rcu@203000 {
-                       compatible = "lantiq,rcu-xway";
+                       compatible = "lantiq,ase-rcu", "simple-mfd", "syscon";
                        reg = <0x203000 0x1000>;
+                       ranges = <0x0 0x203000 0x100>;
+                       big-endian;
+
+                       reset: reset-controller@10 {
+                               compatible = "lantiq,danube-reset";
+                               reg = <0x10 4>, <0x14 4>;
+
+                               #reset-cells = <2>;
+                       };
+
+                       usb_phy: usb2-phy@18 {
+                               compatible = "lantiq,ase-usb2-phy";
+                               reg = <0x18 4>;
+                               status = "disabled";
+
+                               resets = <&reset 4 4>;
+                               reset-names = "ctrl";
+                               #phy-cells = <0>;
+                       };
+
+                       reboot@10 {
+                               compatible = "syscon-reboot";
+                               reg = <0x10 4>;
+
+                               regmap = <&rcu0>;
+                               offset = <0x10>;
+                               mask = <0x40000000>;
+                       };
                };
        };
 
                        interrupts = <81>;
                };
 
-               usb: ifxhcd@e101000 {
-                       compatible = "lantiq,ase-usb", "lantiq,ifxhcd-ase";
+               usb: usb@e101000 {
+                       compatible = "lantiq,ase-usb";
                        reg = <0xe101000 0x1000
                                0xe120000 0x3f000>;
                        interrupt-parent = <&icu0>;
                        interrupts = <39>;
                        dr_mode = "host";
+                       phys = <&usb_phy>;
+                       phy-names = "usb2-phy";
                        status = "disabled";
                };
 
index 0ed1d4cce2d782e2d7397bd26b714e4340c2beb8..48e0d95d63b0a465e94eb88304c252f26f77ff6e 100644 (file)
                };
 
                watchdog@803f0 {
-                       compatible = "lantiq,wdt";
+                       compatible = "lantiq,xrx100-wdt", "lantiq,xrx100-wdt";
                        reg = <0x803f0 0x10>;
+
+                       regmap = <&rcu0>;
                };
        };
 
                };
 
                rcu0: rcu@203000 {
-                       compatible = "lantiq,rcu-xway";
+                       compatible = "lantiq,xrx100-rcu", "simple-mfd", "syscon";
                        reg = <0x203000 0x1000>;
+                       ranges = <0x0 0x203000 0x100>;
+                       big-endian;
+
+                       reset: reset-controller@10 {
+                               compatible = "lantiq,xrx100-reset", "lantiq,danube-reset";
+                               reg = <0x10 4>, <0x14 4>;
+
+                               #reset-cells = <2>;
+                       };
+
+                       usb_phy0: usb2-phy@18 {
+                               compatible = "lantiq,xrx100-usb2-phy";
+                               reg = <0x18 4>;
+                               status = "disabled";
+
+                               resets = <&reset 4 4>;
+                               reset-names = "ctrl";
+                               #phy-cells = <0>;
+                       };
+
+                       usb_phy1: usb2-phy@34 {
+                               compatible = "lantiq,xrx100-usb2-phy";
+                               reg = <0x34 4>;
+                               status = "disabled";
+
+                               resets = <&reset 28 28>;
+                               reset-names = "ctrl";
+                               #phy-cells = <0>;
+                       };
+
+                       reboot@10 {
+                               compatible = "syscon-reboot";
+                               reg = <0x10 4>;
+
+                               regmap = <&rcu0>;
+                               offset = <0x10>;
+                               mask = <0x40000000>;
+                       };
                };
        };
 
                        interrupts = <112 113 114>;
                };
 
-               usb0: ifxhcd@e101000 {
-                       compatible = "lantiq,arx100-usb", "lantiq,ifxhcd-arx100";
+               usb0: usb@e101000 {
+                       compatible = "lantiq,arx100-usb";
                        reg = <0xe101000 0x1000
                                0xe120000 0x3f000>;
                        interrupt-parent = <&icu0>;
                        interrupts = <62 91>;
                        dr_mode = "host";
+                       phys = <&usb_phy0>;
+                       phy-names = "usb2-phy";
                        status = "disabled";
                };
 
-               usb1: ifxhcd@e106000 {
+               usb1: usb@e106000 {
                        compatible = "lantiq,arx100-usb";
                        reg = <0xe106000 0x1000
                                0xe1e0000 0x3f000>;
                        interrupt-parent = <&icu0>;
                        interrupts = <91>;
                        dr_mode = "host";
+                       phys = <&usb_phy1>;
+                       phy-names = "usb2-phy";
                        status = "disabled";
                };
 
index 1e1ce61f734ccdc4e8a798e5b67756959242339f..af4c795af274826708fea90c0226fde0899804fe 100644 (file)
                };
 
                rcu0: rcu@203000 {
-                       compatible = "lantiq,rcu-xway";
+                       compatible = "lantiq,danube-rcu", "simple-mfd", "syscon";
                        reg = <0x203000 0x1000>;
+                       ranges = <0x0 0x203000 0x100>;
+                       big-endian;
+
+                       reset: reset-controller@10 {
+                               compatible = "lantiq,danube-reset";
+                               reg = <0x10 4>, <0x14 4>;
+
+                               #reset-cells = <2>;
+                       };
+
+                       usb_phy: usb2-phy@18 {
+                               compatible = "lantiq,danube-usb2-phy";
+                               reg = <0x18 4>;
+                               status = "disabled";
+
+                               resets = <&reset 4 4>;
+                               reset-names = "ctrl";
+                               #phy-cells = <0>;
+                       };
+
+                       reboot@10 {
+                               compatible = "syscon-reboot";
+                               reg = <0x10 4>;
+
+                               regmap = <&rcu0>;
+                               offset = <0x10>;
+                               mask = <0x40000000>;
+                       };
                };
        };
 
                        interrupts = <112 113 114>;
                };
 
-               usb: ifxhcd@e101000 {
-                       compatible = "lantiq,danube-usb", "lantiq,ifxhcd-danube";
+               usb: usb@e101000 {
+                       compatible = "lantiq,danube-usb";
                        reg = <0xe101000 0x1000
                                0xe120000 0x3f000>;
                        interrupt-parent = <&icu0>;
                        interrupts = <62>;
                        dr_mode = "host";
+                       phys = <&usb_phy>;
+                       phy-names = "usb2-phy";
                        status = "disabled";
                };
 
index 14427900a63687a64397ba8a000e73d44d1c1a60..adad9506d900daab6ead6326d7734633f030ab5b 100644 (file)
                };
 
                watchdog@803f0 {
-                       compatible = "lantiq,wdt";
+                       compatible = "lantiq,xrx100-wdt", "lantiq,xrx100-wdt";
                        reg = <0x803f0 0x10>;
+
+                       regmap = <&rcu0>;
                };
        };
 
                };
 
                rcu0: rcu@203000 {
-                       compatible = "lantiq,rcu-xrx200";
-                       reg = <0x203000 0x1000>;
-                       /* irq for thermal sensor */
-                       interrupt-parent = <&icu0>;
-                       interrupts = <115>;
-               };
-
-               xbar0: xbar@400000 {
-                       compatible = "lantiq,xbar-xway";
-                       reg = <0x400000 0x1000>;
+                       compatible = "lantiq,xrx200-rcu", "simple-mfd", "syscon";
+                       reg = <0x203000 0x100>;
+                       ranges = <0x0 0x203000 0x100>;
+                       big-endian;
+
+                       gphy0: gphy@20 {
+                               compatible = "lantiq,xrx200-gphy";
+                               reg = <0x20 0x4>;
+
+                               resets = <&reset0 31 30>, <&reset1 7 7>;
+                               reset-names = "gphy", "gphy2";
+                       };
+
+                       gphy1: gphy@68 {
+                               compatible = "lantiq,xrx200-gphy";
+                               reg = <0x68 0x4>;
+
+                               resets = <&reset0 29 28>, <&reset1 6 6>;
+                               reset-names = "gphy", "gphy2";
+                       };
+
+                       reset0: reset-controller@10 {
+                               compatible = "lantiq,xrx200-reset";
+                               reg = <0x10 4>, <0x14 4>;
+
+                               #reset-cells = <2>;
+                       };
+
+                       reset1: reset-controller@48 {
+                               compatible = "lantiq,xrx200-reset";
+                               reg = <0x48 4>, <0x24 4>;
+
+                               #reset-cells = <2>;
+                       };
+
+                       usb_phy0: usb2-phy@18 {
+                               compatible = "lantiq,xrx200-usb2-phy";
+                               reg = <0x18 4>, <0x38 4>;
+                               status = "disabled";
+
+                               resets = <&reset1 4 4>, <&reset0 4 4>;
+                               reset-names = "phy", "ctrl";
+                               #phy-cells = <0>;
+                       };
+
+                       usb_phy1: usb2-phy@34 {
+                               compatible = "lantiq,xrx200-usb2-phy";
+                               reg = <0x34 4>, <0x3c 4>;
+                               status = "disabled";
+
+                               resets = <&reset1 5 4>, <&reset0 4 4>;
+                               reset-names = "phy", "ctrl";
+                               #phy-cells = <0>;
+                       };
+
+                       reboot@10 {
+                               compatible = "syscon-reboot";
+                               reg = <0x10 4>;
+
+                               regmap = <&rcu0>;
+                               offset = <0x10>;
+                               mask = <0x40000000>;
+                       };
                };
        };
 
        fpi@10000000 {
+               compatible = "lantiq,xrx200-fpi", "simple-bus";
+               ranges = <0x0 0x10000000 0xf000000>;
+               reg =   <0x1f400000 0x1000>,
+                       <0x10000000 0xf000000>;
+               regmap = <&rcu0>;
+               offset-endianness = <0x4c>;
                #address-cells = <1>;
                #size-cells = <1>;
-               compatible = "lantiq,fpi", "simple-bus";
-               ranges = <0x0 0x10000000 0xeefffff>;
-               reg = <0x10000000 0xef00000>;
 
                localbus: localbus@0 {
                        #address-cells = <2>;
 
                usb0: usb@e101000 {
                        status = "disabled";
-                       compatible = "lantiq,xrx200-usb", "lantiq,ifxhcd-xrx200";
+                       compatible = "lantiq,xrx200-usb";
                        reg = <0xe101000 0x1000
                                0xe120000 0x3f000>;
                        interrupt-parent = <&icu0>;
                        interrupts = <62 91>;
                        dr_mode = "host";
+                       phys = <&usb_phy0>;
+                       phy-names = "usb2-phy";
                };
 
                usb1: usb@e106000 {
                        interrupt-parent = <&icu0>;
                        interrupts = <91>;
                        dr_mode = "host";
+                       phys = <&usb_phy1>;
+                       phy-names = "usb2-phy";
                };
 
                eth0: eth@e108000 {
                        >;
                        interrupt-parent = <&icu0>;
                        interrupts = <75 73 72>;
+                       resets = <&reset0 21 16>, <&reset0 8 8>;
+                       reset-names = "switch", "ppe";
+                       lantiq,phys = <&gphy0>, <&gphy1>;
                };
 
                mei@e116000 {