[PATCH v2 2/2] gpio: realtek-otto: Allow building for the RTL9311B
From: Joshua Scott
Date: Mon Nov 09 2026 - 00:28:54 EST
The Realtek RTL9311B is a network switch with integrated ARMv8 CPU. It
has the same GPIO controller as the RTL9310. Allow the driver to be
built for ARCH_REALTEK.
Signed-off-by: Joshua Scott <joshua.scott@xxxxxxxxxxxxxxxxxxx>
---
Changes in v2:
- Drop the "realtek,rtl9311b-gpio" match entry, as the RTL9311B now
binds through "realtek,rtl9310-gpio" (Krzysztof)
- Retitle from "gpio: realtek-otto: Add RTL9311B support", as only the
Kconfig change remains
drivers/gpio/Kconfig | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 55e4280029d8..bc584da1abbb 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -645,14 +645,15 @@ config GPIO_RDA
config GPIO_REALTEK_OTTO
tristate "Realtek Otto GPIO support"
- depends on MACH_REALTEK_RTL || COMPILE_TEST
+ depends on MACH_REALTEK_RTL || ARCH_REALTEK || COMPILE_TEST
default MACH_REALTEK_RTL
select GPIO_GENERIC
select GPIOLIB_IRQCHIP
help
The GPIO controller on the Otto MIPS platform supports up to two
banks of 32 GPIOs, with edge triggered interrupts. The 32 GPIOs
- are grouped in four 8-bit wide ports.
+ are grouped in four 8-bit wide ports. The Arm-based RTL9311B has
+ the same controller.
When built as a module, the module will be called realtek_otto_gpio.
--
2.53.0