mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] gpio: realtek-otto: Add RTL9311B support
@ 2026-11-09  5:28 Joshua Scott
  2026-11-09  5:28 ` [PATCH v2 1/2] dt-bindings: gpio: realtek-otto: Add RTL9311B Joshua Scott
  2026-11-09  5:28 ` [PATCH v2 2/2] gpio: realtek-otto: Allow building for the RTL9311B Joshua Scott
  0 siblings, 2 replies; 4+ messages in thread
From: Joshua Scott @ 2026-11-09  5:28 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, linux-gpio
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	Sander Vanheule, Bert Vermeulen, linux-kernel, Joshua Scott

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@alliedtelesis.co.nz

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-10 11:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09  5:28 [PATCH v2 0/2] gpio: realtek-otto: Add RTL9311B support Joshua Scott
2026-11-09  5:28 ` [PATCH v2 1/2] dt-bindings: gpio: realtek-otto: Add RTL9311B Joshua Scott
2026-11-10 11:44   ` Krzysztof Kozlowski
2026-11-09  5:28 ` [PATCH v2 2/2] gpio: realtek-otto: Allow building for the RTL9311B Joshua Scott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®