ramips: move compatible for Ubiquiti Edgerouter X to DTS file
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / rt5350.dtsi
index 1f71795fcf7db612aa7d84257dda7b17cc7e7a68..89a3903118669183da174e244da42402d291cd62 100644 (file)
@@ -4,8 +4,12 @@
        compatible = "ralink,rt5350-soc";
 
        cpus {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
                cpu@0 {
                        compatible = "mips,mips24KEc";
+                       reg = <0>;
                };
        };
 
@@ -13,7 +17,7 @@
                bootargs = "console=ttyS0,57600";
        };
 
-       cpuintc: cpuintc@0 {
+       cpuintc: cpuintc {
                #address-cells = <0>;
                #interrupt-cells = <1>;
                interrupt-controller;
@@ -35,7 +39,7 @@
                #size-cells = <1>;
 
                sysc: sysc@0 {
-                       compatible = "ralink,rt5350-sysc", "ralink,rt3050-sysc";
+                       compatible = "ralink,rt5350-sysc", "ralink,rt3050-sysc", "syscon";
                        reg = <0x0 0x100>;
                };
 
                        #gpio-cells = <2>;
 
                        ralink,gpio-base = <0>;
-                       ralink,num-gpios = <22>;
+                       ralink,nr-gpio = <22>;
                        ralink,register-map = [ 00 04 08 0c
                                                20 24 28 2c
                                                30 34 ];
                        #gpio-cells = <2>;
 
                        ralink,gpio-base = <22>;
-                       ralink,num-gpios = <6>;
+                       ralink,nr-gpio = <6>;
                        ralink,register-map = [ 00 04 08 0c
                                                10 14 18 1c
                                                20 24 ];
                };
 
                i2c: i2c@900 {
-                       compatible = "link,rt5350-i2c", "ralink,rt2880-i2c";
+                       compatible = "ralink,rt2880-i2c";
                        reg = <0x900 0x100>;
 
                        resets = <&rstctrl 16>;
                        status = "disabled";
                };
 
+               i2s: i2s@a00 {
+                       compatible = "ralink,rt3352-i2s";
+                       reg = <0xa00 0x100>;
+
+                       resets = <&rstctrl 17>;
+                       reset-names = "i2s";
+
+                       interrupt-parent = <&intc>;
+                       interrupts = <10>;
+
+                       txdma-req = <2>;
+                       rxdma-req = <3>;
+
+                       dmas = <&gdma 4>,
+                               <&gdma 6>;
+                       dma-names = "tx", "rx";
+
+                       status = "disabled";
+               };
+
                spi0: spi@b00 {
                        compatible = "ralink,rt5350-spi", "ralink,rt2880-spi";
                        reg = <0xb00 0x40>;
                        interrupt-parent = <&cpuintc>;
                        interrupts = <7>;
                };
+
+               pcm: pcm@2000 {
+                       compatible = "ralink,rt5350-pcm";
+                       reg = <0x2000 0x800>;
+
+                       resets = <&rstctrl 11>;
+                       reset-names = "pcm";
+
+                       interrupt-parent = <&intc>;
+                       interrupts = <4>;
+
+                       status = "disabled";
+               };
+
+               gdma: gdma@2800 {
+                       compatible = "ralink,rt3883-gdma";
+                       reg = <0x2800 0x800>;
+
+                       resets = <&rstctrl 14>;
+                       reset-names = "dma";
+
+                       interrupt-parent = <&intc>;
+                       interrupts = <7>;
+
+                       #dma-cells = <1>;
+                       #dma-channels = <16>;
+                       #dma-requests = <16>;
+
+                       status = "disabled";
+               };
        };
 
        pinctrl: pinctrl {
                state_default: pinctrl0 {
                };
 
-               spi_pins: spi {
-                       spi {
-                               ralink,group = "spi";
-                               ralink,function = "spi";
+               i2c_pins: i2c_pins {
+                       i2c_pins {
+                               ralink,group = "i2c";
+                               ralink,function = "i2c";
                        };
                };
 
-               i2c_pins: i2c {
-                       i2c {
-                               ralink,group = "i2c";
-                               ralink,function = "i2c";
+               spi_pins: spi_pins {
+                       spi_pins {
+                               ralink,group = "spi";
+                               ralink,function = "spi";
                        };
                };
 
 
        usbphy: usbphy {
                compatible = "ralink,rt3352-usbphy";
-               #phy-cells = <1>;
+               #phy-cells = <0>;
 
+               ralink,sysctl = <&sysc>;
                resets = <&rstctrl 22 &rstctrl 25>;
                reset-names = "host", "device";
                clocks = <&clkctrl 18>;
        };
 
        esw: esw@10110000 {
-               compatible = "ralink,rt3050-esw";
+               compatible = "ralink,rt5350-esw", "ralink,rt3050-esw";
                reg = <0x10110000 0x8000>;
 
                resets = <&rstctrl 23>;
        };
 
        ehci: ehci@101c0000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "generic-ehci";
                reg = <0x101c0000 0x1000>;
 
-               phys = <&usbphy 1>;
+               phys = <&usbphy>;
                phy-names = "usb";
 
                interrupt-parent = <&intc>;
                interrupts = <18>;
+
+               ehci_port1: port@1 {
+                       reg = <1>;
+                       #trigger-source-cells = <0>;
+               };
        };
 
        ohci: ohci@101c1000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "generic-ohci";
                reg = <0x101c1000 0x1000>;
 
-               phys = <&usbphy 1>;
+               phys = <&usbphy>;
                phy-names = "usb";
 
                interrupt-parent = <&intc>;
                interrupts = <18>;
+
+               ohci_port1: port@1 {
+                       reg = <1>;
+                       #trigger-source-cells = <0>;
+               };
        };
 };