Revert "ramips: improve interrupt mapping"
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621.dtsi
index 772f0aabfab9677c21acae7ab5999de6ad7f5085..daca857f605c650a1f506e7d18db19896fc3fe34 100644 (file)
@@ -3,7 +3,7 @@
 / {
        #address-cells = <1>;
        #size-cells = <1>;
-       compatible = "mediatek,mtk7621-soc";
+       compatible = "mediatek,mt7621-soc";
 
        cpus {
                cpu@0 {
@@ -42,6 +42,8 @@
                clock-frequency = <50000000>;
        };
 
+
+
        palmbus: palmbus@1E000000 {
                compatible = "palmbus";
                reg = <0x1E000000 0x100000>;
@@ -56,7 +58,7 @@
                };
 
                wdt: wdt@100 {
-                       compatible = "mtk,mt7621-wdt";
+                       compatible = "mediatek,mt7621-wdt";
                        reg = <0x100 0x100>;
                };
 
                        pinctrl-0 = <&i2c_pins>;
                };
 
+               i2s: i2s@a00 {
+                       compatible = "mediatek,mt7621-i2s";
+                       reg = <0xa00 0x100>;
+
+                       clocks = <&sysclock>;
+
+                       resets = <&rstctrl 17>;
+                       reset-names = "i2s";
+
+                       interrupt-parent = <&gic>;
+                       interrupts = <GIC_SHARED 16 IRQ_TYPE_LEVEL_HIGH>;
+
+                       txdma-req = <2>;
+                       rxdma-req = <3>;
+
+                       dmas = <&gdma 4>,
+                               <&gdma 6>;
+                       dma-names = "tx", "rx";
+
+                       status = "disabled";
+               };
+
+               systick: systick@d00 {
+                       compatible = "ralink,mt7621-systick", "ralink,cevt-systick";
+                       reg = <0xd00 0x10>;
+
+                       resets = <&rstctrl 28>;
+                       reset-names = "intc";
+
+                       interrupt-parent = <&gic>;
+                       interrupts = <GIC_SHARED 5 IRQ_TYPE_LEVEL_HIGH>;
+               };
+
                memc: memc@5000 {
                        compatible = "mtk,mt7621-memc";
                        reg = <0x300 0x100>;
                };
 
                spi0: spi@b00 {
-                       status = "okay";
+                       status = "disabled";
 
                        compatible = "ralink,mt7621-spi";
                        reg = <0xb00 0x100>;
 
                        pinctrl-names = "default";
                        pinctrl-0 = <&spi_pins>;
-
-                       m25p80@0 {
-                               #address-cells = <1>;
-                               #size-cells = <1>;
-                               reg = <0>;
-                               spi-max-frequency = <10000000>;
-                               m25p,chunked-io = <32>;
-                       };
                };
 
                gdma: gdma@2800 {
        };
 
        sdhci: sdhci@1E130000 {
+               status = "disabled";
+
                compatible = "ralink,mt7620-sdhci";
                reg = <0x1E130000 0x4000>;
 
                compatible = "mediatek,mt8173-xhci";
                reg = <0x1e1c0000 0x1000
                       0x1e1d0700 0x0100>;
+               reg-names = "mac", "ippc";
 
                clocks = <&sysclock>;
                clock-names = "sys_ck";
                #size-cells = <1>;
        };
 
+       hnat: hnat@1e100000 {
+               compatible = "mediatek,mt7623-hnat";
+               reg = <0x1e100000 0x10000>;
+               mtketh-ppd = "eth0";
+               mtketh-lan = "eth0";
+               mtketh-wan = "eth0";
+               resets = <&rstctrl 0>;
+               reset-names = "mtketh";
+       };
+
        ethernet: ethernet@1e100000 {
                compatible = "mediatek,mt7621-eth";
                reg = <0x1e100000 0x10000>;
                                GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH
                                GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
 
-               status = "okay";
+               status = "disabled";
 
                resets = <&rstctrl 24 &rstctrl 25 &rstctrl 26>;
                reset-names = "pcie0", "pcie1", "pcie2";