Skip to content

Commit

Permalink
realtek: add missing GPIO irq properties
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sander Vanheule <[email protected]>
  • Loading branch information
svanheule authored and hauke committed Nov 28, 2021
1 parent d1464af commit fa71139
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions target/linux/realtek/dts-5.10/rtl838x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,13 @@
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>;
};
Expand Down

0 comments on commit fa71139

Please sign in to comment.