[PATCH v2] dt-bindings: gpio: rockchip: Add RK3572 GPIO banks

Cunhao Lu via B4 Relay devnull+1579567540.qq.com at kernel.org
Wed Dec 2 18:32:48 PST 2026


From: Cunhao Lu <1579567540 at qq.com>

RK3572 GPIO banks have four parent interrupts and a separate debounce
clock.

Signed-off-by: Cunhao Lu <1579567540 at qq.com>
Reviewed-by: Rob Herring (Arm) <robh at kernel.org>
Reviewed-by: Linus Walleij <linusw at kernel.org>
---
This is one of the subsystem submissions for RK3572 support.

The Rockchip pinctrl driver in linux-next already matches
rockchip,rk3572-gpio-bank, which is absent from the GPIO binding. This
patch documents the compatible and describes the four parent interrupts
and separate debounce clock.
---
Changes in v2:
- Split the original RK3572 support series.
- Link to v1:
  https://patch.msgid.link/20261022-add-board-ok3572-c-v1-0-0b0fd85a31ee@qq.com
---
 .../bindings/gpio/rockchip,gpio-bank.yaml          | 24 +++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml b/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml
index 774e9c7de606..8655854ac0a3 100644
--- a/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml
+++ b/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml
@@ -14,12 +14,14 @@ properties:
     enum:
       - rockchip,gpio-bank
       - rockchip,rk3188-gpio-bank0
+      - rockchip,rk3572-gpio-bank
 
   reg:
     maxItems: 1
 
   interrupts:
-    maxItems: 1
+    minItems: 1
+    maxItems: 4
 
   clocks:
     minItems: 1
@@ -51,6 +53,26 @@ properties:
       of this bank, on SoCs such as the RV1106 where each GPIO bank has
       its own IOC block.
 
+allOf:
+  - if:
+      properties:
+        compatible:
+          const: rockchip,rk3572-gpio-bank
+    then:
+      properties:
+        interrupts:
+          items:
+            - description: GPIO group 0
+            - description: GPIO group 1
+            - description: GPIO group 2
+            - description: GPIO group 3
+        clocks:
+          minItems: 2
+    else:
+      properties:
+        interrupts:
+          maxItems: 1
+
 patternProperties:
   "^.+-hog(-[0-9]+)?$":
     type: object

---
base-commit: 0e320f0c98b38bcea61b4ccda1bb1d929342b8f7
change-id: 20261203-add-board-ok3572-c-gpio-38fa98a67c54

Best regards,
--  
Cunhao Lu <1579567540 at qq.com>





More information about the linux-arm-kernel mailing list