]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mips: dts: realtek: Add gpio block
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Thu, 19 Jun 2025 01:07:54 +0000 (13:07 +1200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 2 Jul 2025 11:18:49 +0000 (13:18 +0200)
The RTL9300 has a block of GPIOs included in the SoC. Add these to the
devicetree.

This is taken from openwrt[1] the differences are removing the
unnecessary second cell from the interrupt and removing the -controller
from the node name to conform to the dtschema.

[1] - https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=target/linux/realtek/dts/rtl930x.dtsi

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/realtek/rtl930x.dtsi

index 77a854034aba7b0cd1c7e4a53d2f1b96800070b8..24e262e2dc2a2d812027644568aa6ea4258ddaca 100644 (file)
                        interrupts = <5>, <6>;
                };
 
+               gpio0: gpio@3300 {
+                       compatible = "realtek,rtl9300-gpio", "realtek,otto-gpio";
+                       reg = <0x3300 0x1c>, <0x3338 0x8>;
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       ngpios = <24>;
+
+                       interrupt-controller;
+                       #interrupt-cells = <2>;
+                       interrupt-parent = <&intc>;
+                       interrupts = <13>;
+               };
+
                snand: spi@1a400 {
                        compatible = "realtek,rtl9301-snand";
                        reg = <0x1a400 0x44>;