[PATCH v2 0/2] gpio: realtek-otto: Add RTL9311B support
From: Joshua Scott
Date: Mon Nov 09 2026 - 00:28:43 EST
The Realtek RTL9311B is a network switch with integrated ARMv8 CPU. Its
GPIO controller is the same as the RTL9310's. This series adds a
compatible for it, with the RTL9310 compatible as a fallback, and lets
the driver be built for ARCH_REALTEK.
The RTL9311B node lists "realtek,rtl9311b-gpio", "realtek,rtl9310-gpio",
"realtek,otto-gpio". The driver binds through "realtek,rtl9310-gpio",
which keeps the interrupt controller; "realtek,otto-gpio" alone would
bind with interrupts disabled.
Tested on an RTL9311B board with an Infineon SLM9670 TPM on a spi-gpio
bus using GPIO3-6: the TPM probes with tpm_tis_spi and responds to PCR
reads and TPM2_GetRandom. With the v2 compatible list, the controller
binds through the RTL9310 entry and registers its interrupt controller.
These patches were prepared with the help of Claude Code
(claude-opus-5-5), which drafted the code changes and changelogs. I
reviewed them and tested them on hardware.
Changes in v2:
- Use "realtek,rtl9310-gpio" as a fallback for the RTL9311B, and drop
the driver's "realtek,rtl9311b-gpio" match entry, as the RTL9311B is
fully compatible with the RTL9310 (Krzysztof)
- The driver patch now only changes Kconfig, so retitle it
"gpio: realtek-otto: Allow building for the RTL9311B"
v1: https://lore.kernel.org/r/20261103215316.1544492-1-joshua.scott@xxxxxxxxxxxxxxxxxxx
Joshua Scott (2):
dt-bindings: gpio: realtek-otto: Add RTL9311B
gpio: realtek-otto: Allow building for the RTL9311B
.../bindings/gpio/realtek,otto-gpio.yaml | 22 ++++++++++++-------
drivers/gpio/Kconfig | 5 +++--
2 files changed, 17 insertions(+), 10 deletions(-)
base-commit: cbbddb6b08cc9900a87cccaa9b22bbe06aa4f50a
--
2.53.0