ramips: add gdma hsdma dts info
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3050.dtsi
index 27e4179607454b549a18e20edd009d33df764111..ed88ac12ec3b3585394c2c3a12b5d9fc0ba6c098 100644 (file)
                bootargs = "console=ttyS0,57600";
        };
 
+       aliases {
+               spi0 = &spi0;
+               serial0 = &uartlite;
+       };
+
        cpuintc: cpuintc@0 {
                #address-cells = <0>;
                #interrupt-cells = <1>;
@@ -20,7 +25,7 @@
                compatible = "mti,cpu-interrupt-controller";
        };
 
-       palmbus@10000000 {
+       palmbus: palmbus@10000000 {
                compatible = "palmbus";
                reg = <0x10000000 0x200000>;
                ranges = <0x0 0x10000000 0x1FFFFF>;
                #address-cells = <1>;
                #size-cells = <1>;
 
-               sysc@0 {
+               sysc: sysc@0 {
                        compatible = "ralink,rt3050-sysc";
                        reg = <0x0 0x100>;
                };
 
-               timer@100 {
+               timer: timer@100 {
                        compatible = "ralink,rt3050-timer", "ralink,rt2880-timer";
                        reg = <0x100 0x20>;
 
@@ -41,7 +46,7 @@
                        interrupts = <1>;
                };
 
-               watchdog@120 {
+               watchdog: watchdog@120 {
                        compatible = "ralink,rt3050-wdt", "ralink,rt2880-wdt";
                        reg = <0x120 0x10>;
 
@@ -66,7 +71,7 @@
                        interrupts = <2>;
                };
 
-               memc@300 {
+               memc: memc@300 {
                        compatible = "ralink,rt3050-memc";
                        reg = <0x300 0x100>;
 
@@ -77,7 +82,7 @@
                        interrupts = <3>;
                };
 
-               uart@500 {
+               uart: uart@500 {
                        compatible = "ralink,rt3050-uart", "ralink,rt2880-uart", "ns16550a";
                        reg = <0x500 0x100>;
 
                        status = "disabled";
                };
 
-               spi@b00 {
+               gdma: gdma@700 {
+                       compatible = "ralink,rt305x-gdma";
+                       reg = <0x700 0x100>;
+
+                       resets = <&rstctrl 14>;
+                       reset-names = "dma";
+
+                       interrupt-parent = <&intc>;
+                       interrupts = <7>;
+
+                       #dma-cells = <1>;
+                       #dma-channels = <8>;
+                       #dma-requests = <8>;
+
+                       status = "disabled";
+               };
+
+               spi0: spi@b00 {
                        compatible = "ralink,rt3050-spi", "ralink,rt2880-spi";
                        reg = <0xb00 0x100>;
 
                        status = "disabled";
                };
 
-               uartlite@c00 {
+               uartlite: uartlite@c00 {
                        compatible = "ralink,rt3050-uart", "ralink,rt2880-uart", "ns16550a";
                        reg = <0xc00 0x100>;
 
                };
        };
 
-       pinctrl {
+       pinctrl: pinctrl {
                compatible = "ralink,rt2880-pinmux";
 
                pinctrl-names = "default";
                #reset-cells = <1>;
        };
 
-       ethernet@10100000 {
+       clkctrl: clkctrl {
+               compatible = "ralink,rt2880-clock";
+               #clock-cells = <1>;
+       };
+
+       usbphy: usbphy {
+               compatible = "ralink,rt3050-usbphy";
+               resets = <&rstctrl 22>;
+               reset-names = "host";
+               clocks = <&clkctrl 18>;
+               clock-names = "host";
+       };
+
+       ethernet: ethernet@10100000 {
                compatible = "ralink,rt3050-eth";
-               reg = <0x10100000 10000>;
+               reg = <0x10100000 0x10000>;
 
                resets = <&rstctrl 21>;
                reset-names = "fe";
 
                interrupt-parent = <&cpuintc>;
                interrupts = <5>;
+
+               mediatek,switch = <&esw>;
        };
 
-       esw@10110000 {
+       esw: esw@10110000 {
                compatible = "ralink,rt3050-esw";
-               reg = <0x10110000 8000>;
+               reg = <0x10110000 0x8000>;
 
                resets = <&rstctrl 23>;
                reset-names = "esw";
                interrupts = <17>;
        };
 
-       wmac@10180000 {
+       wmac: wmac@10180000 {
                compatible = "ralink,rt3050-wmac", "ralink,rt2880-wmac";
-               reg = <0x10180000 40000>;
+               reg = <0x10180000 0x40000>;
 
                interrupt-parent = <&cpuintc>;
                interrupts = <6>;
                ralink,eeprom = "soc_wmac.eeprom";
        };
 
-       otg@101c0000 {
+       otg: otg@101c0000 {
                compatible = "ralink,rt3050-otg", "snps,dwc2";
-               reg = <0x101c0000 40000>;
+               reg = <0x101c0000 0x40000>;
 
                interrupt-parent = <&intc>;
                interrupts = <18>;