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 <zectaiga@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/26258
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
This commit is contained in:
Taiga Ogawa authored and Markus Stockhausen committed 2026-10-29 07:35:00 +01:00
1 parent 795f369b18
commit cc2011a11c
1 file changed
+2 -2
+2 -2
View File
@@ -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>;