[PATCH 0/2] gpio: realtek-otto: Add RTL9311B support
From: Joshua Scott
Date: Tue Nov 03 2026 - 16:54:39 EST
The RTL9311B is an Arm-based Realtek switch SoC with the same GPIO
controller as the MIPS-based Otto SoCs, laid out like the RTL9310's.
This series adds a compatible for it and lets the driver be built for
ARCH_REALTEK.
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.
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.
Joshua Scott (2):
dt-bindings: gpio: realtek-otto: Add RTL9311B
gpio: realtek-otto: Add RTL9311B support
.../devicetree/bindings/gpio/realtek,otto-gpio.yaml | 2 ++
drivers/gpio/Kconfig | 5 +++--
drivers/gpio/gpio-realtek-otto.c | 3 +++
3 files changed, 8 insertions(+), 2 deletions(-)
base-commit: cbbddb6b08cc9900a87cccaa9b22bbe06aa4f50a
--
2.53.0