[PATCH v2 1/2] dt-bindings: gpio: realtek-otto: Add RTL9311B

From: Joshua Scott

Date: Mon Nov 09 2026 - 00:28:52 EST


The Realtek RTL9311B is a network switch with integrated ARMv8 CPU. It
has the same GPIO controller as the RTL9310, with one bank of 20 GPIOs.
Add a compatible for it, with the RTL9310 compatible as a fallback.

Signed-off-by: Joshua Scott <joshua.scott@xxxxxxxxxxxxxxxxxxx>
---
Changes in v2:
- Add the RTL9311B as its own compatible list, with "realtek,rtl9310-gpio"
as a fallback, instead of adding it to the enum used with
"realtek,otto-gpio" alone

.../bindings/gpio/realtek,otto-gpio.yaml | 22 ++++++++++++-------
1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/Documentation/devicetree/bindings/gpio/realtek,otto-gpio.yaml b/Documentation/devicetree/bindings/gpio/realtek,otto-gpio.yaml
index 33c25df7b815..a337345a1e90 100644
--- a/Documentation/devicetree/bindings/gpio/realtek,otto-gpio.yaml
+++ b/Documentation/devicetree/bindings/gpio/realtek,otto-gpio.yaml
@@ -15,6 +15,7 @@ description: |
of two banks of 32 GPIOs. These GPIOs can generate edge-triggered interrupts.
Each bank's interrupts are cascased into one interrupt line on the parent
interrupt controller, if provided.
+ The Arm-based RTL9311B has the same controller, with one bank.
This binding allows defining a single bank in the devicetree. The interrupt
controller is not supported on the fallback compatible name, which only
allows for GPIO port use.
@@ -24,14 +25,19 @@ properties:
pattern: "^gpio@[0-9a-f]+$"

compatible:
- items:
- - enum:
- - realtek,rtl8380-gpio
- - realtek,rtl8390-gpio
- - realtek,rtl9300-gpio
- - realtek,rtl9310-gpio
- - realtek,rtl9607-gpio
- - const: realtek,otto-gpio
+ oneOf:
+ - items:
+ - enum:
+ - realtek,rtl8380-gpio
+ - realtek,rtl8390-gpio
+ - realtek,rtl9300-gpio
+ - realtek,rtl9310-gpio
+ - realtek,rtl9607-gpio
+ - const: realtek,otto-gpio
+ - items:
+ - const: realtek,rtl9311b-gpio
+ - const: realtek,rtl9310-gpio
+ - const: realtek,otto-gpio

reg: true

--
2.53.0