ramips: mt7621: use symbolic names of gic interrupt settings
authorJohn Crispin <john@openwrt.org>
Fri, 11 Dec 2015 15:02:13 +0000 (15:02 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 11 Dec 2015 15:02:13 +0000 (15:02 +0000)
This also adds dts nodes for cpc and mc for documentation purposes

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
SVN-Revision: 47836

target/linux/ramips/dts/DIR-860L-B1.dts
target/linux/ramips/dts/FIREWRT.dts
target/linux/ramips/dts/MT7621.dts
target/linux/ramips/dts/PBR-M1.dts
target/linux/ramips/dts/RE6500.dts
target/linux/ramips/dts/SAP-G3200U3.dts
target/linux/ramips/dts/WF-2881.dts
target/linux/ramips/dts/WSR-1166.dts
target/linux/ramips/dts/WSR-600.dts
target/linux/ramips/dts/ZBT-WG2626.dts
target/linux/ramips/dts/mt7621.dtsi

index cae93c406c68cf0ab58a6bd1b19f868bfd7ba6b3..51cb8e6fb5b0280b7b5a76c46d2f378af6819643 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "mt7621.dtsi"
+#include "mt7621.dtsi"
 
 / {
        compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
index b72066afe3cb2684ad8900c1494ffd30aa117fe7..b3f66a181bfc84dab30598af72d1473c2900d663 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "mt7621.dtsi"
+#include "mt7621.dtsi"
 
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
index c90fc9511c568a9740d44850f3080771d4c577ce..fefdb98b86a07bb1da4646f4f9fd729af0147489 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "mt7621.dtsi"
+#include "mt7621.dtsi"
 
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
index 7702d9cab4fde4768476fad6bc2dabae367ba548..d3225f4a26832e6c12f57ca9627632c9cddcdb8d 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "mt7621.dtsi"
+#include "mt7621.dtsi"
 
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
index b65ade400e8c4ecf014aaa671ecb23c443dfb36a..e9507000146d3596d03097c471fe22c85daec88a 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "mt7621.dtsi"
+#include "mt7621.dtsi"
 
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
index e2798fb3466b538c988298ce98a14c5e4752a4d3..a3ac8fd434c709883a129b9e67bea28dcdda0296 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "mt7621.dtsi"
+#include "mt7621.dtsi"
 
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
index 7228dc527feb61b95932cace4449d2b55bac2b3b..9cd1aead3574b2b997d687eeda016a35d028ecd1 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "mt7621.dtsi"
+#include "mt7621.dtsi"
 
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
index 2dc59cc281dc277e74f7a84441ffeb2bd6824d1d..18d4d338afbc74160fcb85976d6aecd5ea316d42 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "mt7621.dtsi"
+#include "mt7621.dtsi"
 
 / {
        compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
index 5eb813f00268a7bf7e07e8efe7cdae31af593cbb..f5b6575bdcc3ae6389256f33a087a2bf9d44245b 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "mt7621.dtsi"
+#include "mt7621.dtsi"
 
 / {
        compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
index 6170454bc6a06967afa8ef71c2c7394b29c38496..47c9a59f620d4e7268e68c72907ed24e5eec71ba 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "mt7621.dtsi"
+#include "mt7621.dtsi"
 
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
index 801b075e27fb32ed5844e10d789c02ec70ba6061..c54334eb8d871e5ac3223dd527a1b7cacf80a0e5 100644 (file)
@@ -1,3 +1,5 @@
+#include <dt-bindings/interrupt-controller/mips-gic.h>
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
                        reg = <0x300 0x100>;
                };
 
+               cpc@1fbf0000 {
+                            compatible = "mtk,mt7621-cpc";
+                            reg = <0x1fbf0000 0x8000>;
+               };
+
+               mc@1fbf8000 {
+                           compatible = "mtk,mt7621-mc";
+                           reg = <0x1fbf8000 0x8000>;
+               };
+
                uartlite@c00 {
                        compatible = "ns16550a";
                        reg = <0xc00 0x100>;
 
                        interrupt-parent = <&gic>;
-                       interrupts = <0 26 4>;
+                       interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>;
 
                        reg-shift = <2>;
                        reg-io-width = <4>;
                reg = <0x1E130000 4000>;
 
                interrupt-parent = <&gic>;
-               interrupts = <0 20 4>;
+               interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>;
        };
 
        xhci@1E1C0000 {
                reg = <0x1E1C0000 4000>;
 
                interrupt-parent = <&gic>;
-               interrupts = <0 22 4>;
+               interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;
        };
 
        gic: interrupt-controller@1fbc0000 {
                reset-names = "fe", "eth";
 
                interrupt-parent = <&gic>;
-               interrupts = <0 3 4>;
+               interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>;
 
                mdio-bus {
                        #address-cells = <1>;
                compatible = "ralink,mt7620a-gsw";
                reg = <0x1e110000 8000>;
                interrupt-parent = <&gic>;
-               interrupts = <0 23 4>;
+               interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
        };
 
        pcie@1e140000 {
                >;
 
                interrupt-parent = <&gic>;
-               interrupts = <0 4 4
-                               0 24 4
-                               0 25 4>;
+               interrupts = <GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH
+                               GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH
+                               GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
 
                status = "okay";