[openwrt/openwrt] realtek: add missing GPIO irq properties
LEDE Commits
lede-commits at lists.infradead.org
Sun Nov 28 15:17:43 PST 2021
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/fa71139776a25243a7221d7caf293ead9a87ffde
commit fa71139776a25243a7221d7caf293ead9a87ffde
Author: Sander Vanheule <sander at svanheule.net>
AuthorDate: Thu Nov 25 06:40:07 2021 +0100
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 at gmail.com>
Signed-off-by: Sander Vanheule <sander at svanheule.net>
---
target/linux/realtek/dts-5.10/rtl838x.dtsi | 4 ++++
1 file changed, 4 insertions(+)
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 at 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>;
};
More information about the lede-commits
mailing list