aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSander Vanheule <sander@svanheule.net>2021-11-25 06:40:07 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2021-11-28 22:43:08 +0100
commitfa71139776a25243a7221d7caf293ead9a87ffde (patch)
tree795693ed134bbcd9157d1ede5e395ac73a34901a
parentd1464afe1bb878a6202861b9bd2845be74f39b5f (diff)
downloadupstream-fa71139776a25243a7221d7caf293ead9a87ffde.tar.gz
upstream-fa71139776a25243a7221d7caf293ead9a87ffde.tar.bz2
upstream-fa71139776a25243a7221d7caf293ead9a87ffde.zip
realtek: add missing GPIO irq properties
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>
-rw-r--r--target/linux/realtek/dts-5.10/rtl838x.dtsi4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/realtek/dts-5.10/rtl838x.dtsi b/target/linux/realtek/dts-5.10/rtl838x.dtsi
index f356f8fcde..899c1731fb 100644
--- a/target/linux/realtek/dts-5.10/rtl838x.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl838x.dtsi
@@ -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>;
};