lantiq: kernel 4.14: fix usb_phy1 reset status bit in vr9.dts
[openwrt/staging/lynxis.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / vr9.dtsi
index 13bb002c52e203f0ff94b2c196de1fb247822803..6e8f0d1300bbdf28f7333ed02383a4729ab6e8f1 100644 (file)
                compatible = "lantiq,cputemp";
        };
 
-       biu@1F800000 {
+       biu@1f800000 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "lantiq,biu", "simple-bus";
-               reg = <0x1F800000 0x800000>;
-               ranges = <0x0 0x1F800000 0x7FFFFF>;
+               reg = <0x1f800000 0x800000>;
+               ranges = <0x0 0x1f800000 0x7fffff>;
 
                icu0: icu@80200 {
                        #interrupt-cells = <1>;
                                0x802a0 0x28>;
                };
 
-               watchdog@803F0 {
-                       compatible = "lantiq,wdt";
-                       reg = <0x803F0 0x10>;
+               watchdog@803f0 {
+                       compatible = "lantiq,xrx100-wdt", "lantiq,xrx100-wdt";
+                       reg = <0x803f0 0x10>;
+
+                       regmap = <&rcu0>;
                };
        };
 
-       sram@1F000000 {
+       sram@1f000000 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "lantiq,sram", "simple-bus";
-               reg = <0x1F000000 0x800000>;
-               ranges = <0x0 0x1F000000 0x7FFFFF>;
+               reg = <0x1f000000 0x800000>;
+               ranges = <0x0 0x1f000000 0x7fffff>;
 
                eiu0: eiu@101000 {
                        #interrupt-cells = <1>;
@@ -82,7 +84,7 @@
                        reg = <0x106a00 0x200>;
                };
 
-               vmmc@107000 {
+               vmmc: vmmc@103000 {
                        status = "disabled";
                        compatible = "lantiq,vmmc-xway";
                        reg = <0x103000 0x400>;
                };
 
                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 5>, <&reset0 4 4>;
+                               reset-names = "phy", "ctrl";
+                               #phy-cells = <0>;
+                       };
+
+                       reboot@10 {
+                               compatible = "syscon-reboot";
+                               reg = <0x10 4>;
+
+                               regmap = <&rcu0>;
+                               offset = <0x10>;
+                               mask = <0xe0000000>;
+                       };
                };
        };
 
        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@0 {
+               localbus: localbus@0 {
                        #address-cells = <2>;
                        #size-cells = <1>;
                        ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
                        compatible = "lantiq,localbus", "simple-bus";
                };
 
-               gptu@E100A00 {
+               gptu@e100a00 {
                        compatible = "lantiq,gptu-xway";
-                       reg = <0xE100A00 0x100>;
+                       reg = <0xe100a00 0x100>;
                        interrupt-parent = <&icu0>;
                        interrupts = <126 127 128 129 130 131>;
                };
 
-               asc0: serial@E100400 {
-                       compatible = "lantiq,asc";
-                       reg = <0xE100400 0x400>;
+               usif: usif@da00000 {
+                       compatible = "lantiq,usif";
+                       reg = <0xda00000 0x1000000>;
                        interrupt-parent = <&icu0>;
-                       interrupts = <104 105 106>;
+                       interrupts = <29 125 107 108 109 110>;
                        status = "disabled";
                };
 
-               spi: spi@E100800 {
+               spi: spi@e100800 {
                        compatible = "lantiq,xrx200-spi", "lantiq,xrx100-spi";
-                       reg = <0xE100800 0x100>;
+                       reg = <0xe100800 0x100>;
                        interrupt-parent = <&icu0>;
                        interrupts = <22 23 24>;
                        interrupt-names = "spi_rx", "spi_tx", "spi_err",
                        status = "disabled";
                };
 
-               gpio: pinmux@E100B10 {
+               gpio: pinmux@e100b10 {
                        compatible = "lantiq,xrx200-pinctrl";
                        #gpio-cells = <2>;
                        gpio-controller;
-                       reg = <0xE100B10 0xA0>;
+                       reg = <0xe100b10 0xa0>;
+               };
+
+               stp: stp@e100bb0 {
+                       status = "disabled";
+                       compatible = "lantiq,gpio-stp-xway";
+                       reg = <0xe100bb0 0x40>;
+                       #gpio-cells = <2>;
+                       gpio-controller;
+
+                       lantiq,shadow = <0xffffff>;
+                       lantiq,groups = <0x7>;
+                       lantiq,dsl = <0x0>;
+                       lantiq,phy1 = <0x0>;
+                       lantiq,phy2 = <0x0>;
                };
 
-               asc1: serial@E100C00 {
+               asc1: serial@e100c00 {
                        compatible = "lantiq,asc";
-                       reg = <0xE100C00 0x400>;
+                       reg = <0xe100c00 0x400>;
                        interrupt-parent = <&icu0>;
                        interrupts = <112 113 114>;
                };
 
-               deu@E103100 {
+               deu@e103100 {
                        compatible = "lantiq,deu-xrx200";
-                       reg = <0xE103100 0xf00>;
+                       reg = <0xe103100 0xf00>;
                };
 
-               dma0: dma@E104100 {
+               dma0: dma@e104100 {
                        compatible = "lantiq,dma-xway";
-                       reg = <0xE104100 0x800>;
+                       reg = <0xe104100 0x800>;
                };
 
-               ebu0: ebu@E105300 {
+               ebu0: ebu@e105300 {
                        compatible = "lantiq,ebu-xway";
-                       reg = <0xE105300 0x100>;
+                       reg = <0xe105300 0x100>;
                };
 
-               ifxhcd@E101000 {
+               usb0: usb@e101000 {
                        status = "disabled";
-                       compatible = "lantiq,xrx200-usb", "lantiq,ifxhcd-xrx200";
-                       reg = <0xE101000 0x1000
-                               0xE120000 0x3f000>;
+                       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";
                };
 
-               ifxhcd@E106000 {
+               usb1: usb@e106000 {
                        status = "disabled";
                        compatible = "lantiq,xrx200-usb";
-                       reg = <0xE106000 0x1000>;
+                       reg = <0xe106000 0x1000>;
                        interrupt-parent = <&icu0>;
                        interrupts = <91>;
                        dr_mode = "host";
+                       phys = <&usb_phy1>;
+                       phy-names = "usb2-phy";
                };
 
-               eth0: eth@E108000 {
+               eth0: eth@e108000 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        compatible = "lantiq,xrx200-net";
-                       reg = < 0xE108000 0x3000 /* switch */
-                               0xE10B100 0x70 /* mdio */
-                               0xE10B1D8 0x30 /* mii */
-                               0xE10B308 0x30 /* pmac */
+                       reg = < 0xe108000 0x3000 /* switch */
+                               0xe10b100 0x70 /* mdio */
+                               0xe10b1d8 0x30 /* mii */
+                               0xe10b308 0x30 /* pmac */
                        >;
                        interrupt-parent = <&icu0>;
                        interrupts = <75 73 72>;
+                       resets = <&reset0 21 16>, <&reset0 8 8>;
+                       reset-names = "switch", "ppe";
+                       lantiq,phys = <&gphy0>, <&gphy1>;
                };
 
-               mei@E116000 {
+               mei@e116000 {
                        compatible = "lantiq,mei-xrx200";
-                       reg = <0xE116000 0x9c>;
+                       reg = <0xe116000 0x9c>;
                        interrupt-parent = <&icu0>;
                        interrupts = <63>;
                };
 
-               ppe@E234000 {
+               ppe@e234000 {
                        compatible = "lantiq,ppe-xrx200";
                        interrupt-parent = <&icu0>;
                        interrupts = <96>;
+                       resets = <&reset0 3 3>, <&reset0 11 11>, <&reset0 23 23>;
+                       reset-names = "dsp", "dfe", "tc";
                };
 
                pcie0: pcie@d900000 {
                        gpio-reset = <&gpio 38 GPIO_ACTIVE_HIGH>;
                };
 
-               pci0: pci@E105400 {
+               pci0: pci@e105400 {
                        status = "disabled";
 
                        #address-cells = <3>;
                        compatible = "lantiq,pci-xway";
                        bus-range = <0x0 0x0>;
                        ranges = <0x2000000 0 0x8000000 0x8000000 0 0x2000000   /* pci memory */
-                               0x1000000 0 0x00000000 0xAE00000 0 0x200000>; /* io space */
+                               0x1000000 0 0x00000000 0xae00000 0 0x200000>; /* io space */
                        reg = <0x7000000 0x8000         /* config space */
-                               0xE105400 0x400>;       /* pci bridge */
+                               0xe105400 0x400>;       /* pci bridge */
                        lantiq,bus-clock = <33333333>;
                        interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
                        interrupt-map = <0x7000 0 0 1 &icu0 30 1>; /* slot 14, irq 30 */