realtek: add missing GPIO irq properties
authorSander Vanheule <sander@svanheule.net>
Thu, 25 Nov 2021 05:40:07 +0000 (06:40 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 28 Nov 2021 21:43:08 +0000 (22:43 +0100)
The internal GPIO controller on RTL838x is also an IRQ controller, which
requires the 'interrupt-controller' and '#interrupts-cells' properties
to be present in the device tree.

Reported-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/dts-5.10/rtl838x.dtsi

index f356f8fcde090e9428f4ba6d00589f0d0b9a14ba..899c1731fb51de4accab75279eac80ba2b23fd5b 100644 (file)
                gpio0: gpio-controller@3500 {
                        compatible = "realtek,rtl8380-gpio", "realtek,otto-gpio";
                        reg = <0x3500 0x20>;
+
                        gpio-controller;
                        #gpio-cells = <2>;
                        ngpios = <24>;
+
+                       interrupt-controller;
+                       #interrupt-cells = <2>;
                        interrupt-parent = <&intc>;
                        interrupts = <23>;
                };