From cc2011a11c02f995addaa60fcb8108b43cc6e878 Mon Sep 17 00:00:00 2001 From: Taiga Ogawa Date: Wed, 28 Oct 2026 09:27:51 +0000 Subject: [PATCH] realtek: rtl960x: enable interrupts from gpio0 The gpio0 bank (ports A-D) of the RTL9607C has two extra registers at 0x3338 and 0x333c that select which CPU an interrupt is delivered to. They reset to zero, so the interrupts of this bank never reach a CPU. gpio1 and gpio2 have no such registers. This is the same layout as on the RTL930x, so use the rtl9300-gpio compatible for gpio0, which makes the driver set the registers, and pass their address as the second reg entry like rtl930x.dtsi does. Tested on the Buffalo WSR-1500AX2S, which has its reset button and mode switch on gpio0: with gpio-keys they now generate interrupts and events. The WPS button on gpio1 worked before and still does. Assisted-by: Claude:claude-fable-5-1 Signed-off-by: Taiga Ogawa Link: https://github.com/openwrt/openwrt/pull/26258 Signed-off-by: Markus Stockhausen --- target/linux/realtek/dts/rtl960x.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/realtek/dts/rtl960x.dtsi b/target/linux/realtek/dts/rtl960x.dtsi index b9d9310a5c3..a0330940242 100644 --- a/target/linux/realtek/dts/rtl960x.dtsi +++ b/target/linux/realtek/dts/rtl960x.dtsi @@ -151,8 +151,8 @@ }; gpio0: gpio-controller@3300 { - compatible = "realtek,rtl9607-gpio"; - reg = <0x3300 0x1c>; + compatible = "realtek,rtl9300-gpio", "realtek,otto-gpio"; + reg = <0x3300 0x1c>, <0x3338 0x8>; gpio-controller; #gpio-cells = <2>;