Skip to contentSkip to conversation

dt-bindings: gpio: rockchip: add a pattern for gpio hogs

PATCH Applied Heiko Stuebner 3 participants 3 messages Dec 1, 2023 – Dec 4, 2023

Subsystems (3)
lore
Share & tools
lore

Heiko Stuebner

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: gpio: rockchip: add a pattern for gpio hogs

From: Heiko Stuebner <[email protected]>

Allow validating gpio-hogs defined inside the gpio controller node.

---
 .../devicetree/bindings/gpio/rockchip,gpio-bank.yaml       | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml +7 -0
index affd823c881d..d76987ce8e50 100644
@@ -41,6 +41,13 @@ properties:
   "#interrupt-cells":
     const: 2
 
+patternProperties:
+  "^.+-hog(-[0-9]+)?$":
+    type: object
+
+    required:
+      - gpio-hog
+
 required:
   - compatible
   - reg
Signature · 1 line
2.39.2
#2 lore raw
In reply to Heiko Stuebner
Quoted 29 lines · Heiko Stuebner

From: Heiko Stuebner <[email protected]>

Allow validating gpio-hogs defined inside the gpio controller node.

---
 .../devicetree/bindings/gpio/rockchip,gpio-bank.yaml       | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml +7 -1
index affd823c881d..d76987ce8e50 100644
@@ -41,6 +41,13 @@ properties:
   "#interrupt-cells":
     const: 2
 
+patternProperties:
+  "^.+-hog(-[0-9]+)?$":
+    type: object
+
+    required:
+      - gpio-hog
+
 required:
   - compatible
   - reg
--
Quoted 2 lines

2.39.2

Applied, thanks!

Bart