realtek: update soc dtsi in 5.10 for backported drivers
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Thu, 6 May 2021 10:40:04 +0000 (19:40 +0900)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 25 Sep 2021 22:32:17 +0000 (00:32 +0200)
this patch updates SoC dtsi (rtl838x.dtsi, rtl930x.dtsi) for the
following backported drivers:

- gpio-realtek-otto (5.13)
- spi-realtek-rtl (5.12)
- irq-realtek-rtl (5.12)

And, disable SoC GPIO node (gpio0) in rtl930x.dtsi in dts-5.10.
Currently, the upstreamed driver doesn't support the GPIO controller on
RTL930x SoC.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
target/linux/realtek/dts-5.10/rtl838x.dtsi
target/linux/realtek/dts-5.10/rtl930x.dtsi

index 315d34ac0c5781d0361389af6c38fe39bb5eab9b..1751c57e28aa4246b6248a871ec9a59a4de35652 100644 (file)
        };
 
        intc: rtlintc {
-               compatible = "realtek,rt8380-intc";
+               compatible = "realtek,rtl-intc";
                reg = <0xb8003000 0x20>;
                #address-cells = <0>;
                #interrupt-cells = <1>;
                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 */
        };
 
        spi0: spi@b8001200 {
-               compatible = "realtek,rtl838x-nor";
+               compatible = "realtek,rtl8380-spi";
                reg = <0xb8001200 0x100>;
 
                #address-cells = <1>;
        };
 
        gpio0: gpio-controller@b8003500 {
-               compatible = "realtek,rtl838x-gpio";
+               compatible = "realtek,rtl8380-gpio", "realtek,otto-gpio";
                reg = <0xb8003500 0x20>;
                gpio-controller;
                #gpio-cells = <2>;
+               ngpios = <24>;
                interrupt-parent = <&intc>;
                interrupts = <23>;
        };
index ea89fd2584e1bd29de7edf3274f0962351092d86..c0cb53af0809d4885a969ee991b85e1f5de3383a 100644 (file)
        };
 
        intc: rtlintc {
-               compatible = "realtek,rt9300-intc";
+               compatible = "realtek,rtl-intc";
                reg = <0xb8003000 0x20>;
                #address-cells = <0>;
                #interrupt-cells = <1>;
                interrupt-controller;
+               interrupt-map =
+                       <31 &cpuintc 1>, /* UART1 */
+                       <30 &cpuintc 2>, /* UART0 */
+                       <28 &cpuintc 1>, /* USB_H2 */
+                       <24 &cpuintc 4>, /* NIC */
+                       <23 &cpuintc 3>, /* SWCORE */
+                       <13 &cpuintc 4>, /* GPIO_ABCD */
+                       <11 &cpuintc 1>, /* TC4 */
+                       <10 &cpuintc 1>, /* TC3 */
+                       <9 &cpuintc 1>,  /* TC2 */
+                       <8 &cpuintc 1>,  /* TC1 */
+                       <7 &cpuintc 5>;  /* TC0 */
        };
 
        osc: oscillator {
        };
 
        spi0: spi@b8001200 {
-               compatible = "realtek,rtl838x-nor";
+               compatible = "realtek,rtl8380-spi";
                reg = <0xb8001200 0x100>;
 
                #address-cells = <1>;
        };
 
        gpio0: gpio-controller@b8003500 {
-               compatible = "realtek,rtl838x-gpio";
+               compatible = "realtek,rtl8380-gpio", "realtek,otto-gpio";
                reg = <0xb8003500 0x20>;
                gpio-controller;
                #gpio-cells = <2>;
+               ngpios = <32>;
                interrupt-parent = <&intc>;
                interrupts = <31>;
+
+               /*
+                * currently, RTL930x GPIO is not supported in
+                * upstreamed driver (gpio-realtek-otto)
+                */
+               status = "disabled";
        };
 
        ethernet0: ethernet@bb00a300 {