realtek: Update RTL838X DTS to new Realtek IRQ controller notation
authorBirger Koblitz <git@birger-koblitz.de>
Thu, 13 Jan 2022 06:23:13 +0000 (07:23 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 17 Feb 2022 15:21:47 +0000 (15:21 +0000)
Replace the interrupt controller node with the new realtek,rtl-intc
node and change all device interrupts to use the 2 field notation:
interrupts = <[SoC IRQ] [Index to MIPS IRQ]>

Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
target/linux/realtek/dts-5.10/rtl838x.dtsi

index 899c1731fb51de4accab75279eac80ba2b23fd5b..bfe75b8eb24132efc02e6bdff378e2fc0a477b1b 100644 (file)
                #size-cells = <1>;
                ranges = <0x0 0x18000000 0x10000>;
 
-               intc: rtlintc@3000 {
-                       compatible = "realtek,rtl-intc";
-                       reg = <0x3000 0x20>;
-                       #address-cells = <0>;
-                       #interrupt-cells = <1>;
+               intc: interrupt-controller@3000 {
+                       compatible = "realtek,rtl8380-intc", "realtek,rtl-intc";
+                       reg = <0x3000 0x18>;
                        interrupt-controller;
-                       interrupt-map =
-                               <31 &cpuintc 2>, /* UART0 */
-                               <30 &cpuintc 1>, /* UART1 */
-                               <29 &cpuintc 5>, /* TC0 */
-                               <28 &cpuintc 1>, /* TC1 */
-                               <27 &cpuintc 1>, /* OCPTO */
-                               <26 &cpuintc 1>, /* HLXTO */
-                               <25 &cpuintc 1>, /* SLXTO */
-                               <24 &cpuintc 4>, /* NIC */
-                               <23 &cpuintc 4>, /* GPIO_ABCD */
-                               <22 &cpuintc 4>, /* GPIO_EFGH */
-                               <21 &cpuintc 4>, /* RTC */
-                               <20 &cpuintc 3>, /* SWCORE */
-                               <19 &cpuintc 4>, /* WDT_IP1 */
-                               <18 &cpuintc 5>; /* WDT_IP2 */
+                       #interrupt-cells = <2>;
+
+                       interrupt-parent = <&cpuintc>;
+                       interrupts = <2>, <3>, <4>, <5>, <6>;
                };
 
                spi0: spi@1200 {
                        clocks = <&lx_clk>;
 
                        interrupt-parent = <&intc>;
-                       interrupts = <31>;
+                       interrupts = <31 1>;
 
                        reg-io-width = <1>;
                        reg-shift = <2>;
                        clocks = <&lx_clk>;
 
                        interrupt-parent = <&intc>;
-                       interrupts = <30>;
+                       interrupts = <30 0>;
 
                        reg-io-width = <1>;
                        reg-shift = <2>;
 
                        interrupt-parent = <&intc>;
                        interrupt-names = "phase1", "phase2";
-                       interrupts = <19>, <18>;
+                       interrupts = <19 3>, <18 4>;
                };
 
                gpio0: gpio-controller@3500 {
                        interrupt-controller;
                        #interrupt-cells = <2>;
                        interrupt-parent = <&intc>;
-                       interrupts = <23>;
+                       interrupts = <23 3>;
                };
        };
 
                compatible = "realtek,rtl838x-eth";
                reg = <0x1b00a300 0x100>;
                interrupt-parent = <&intc>;
-               interrupts = <24>;
+               interrupts = <24 3>;
                #interrupt-cells = <1>;
                phy-mode = "internal";
 
                compatible = "realtek,rtl83xx-switch";
 
                interrupt-parent = <&intc>;
-               interrupts = <20>;
+               interrupts = <20 2>;
        };
 };