diff mbox series

[v2,1/1] dt-bindings: gpio: gpio-vf610: Add parsing of hogs

Message ID 20230619063907.128561-1-alexander.stein@ew.tq-group.com
State Accepted
Commit 0ea22c4669e323817f8405416a09f6f52cc2ad2c
Headers show
Series [v2,1/1] dt-bindings: gpio: gpio-vf610: Add parsing of hogs | expand

Commit Message

Alexander Stein June 19, 2023, 6:39 a.m. UTC
Allow parsing GPIO controller children nodes with GPIO hogs.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
Changes in v2:
* Narrow the pattern
* Remove properties covered by generic dt-schema

 Documentation/devicetree/bindings/gpio/gpio-vf610.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml
index d2c39dba56add..7c2d152e86170 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml
+++ b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml
@@ -61,6 +61,13 @@  properties:
   gpio-ranges:
     maxItems: 1
 
+patternProperties:
+  "^.+-hog(-[0-9]+)?$":
+    type: object
+
+    required:
+      - gpio-hog
+
 required:
   - compatible
   - reg