diff mbox series

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

Message ID 20230609121044.586214-1-alexander.stein@ew.tq-group.com
State New
Headers show
Series [1/1] dt-bindings: gpio: gpio-vf610: Add parsing of hogs | expand

Commit Message

Alexander Stein June 9, 2023, 12:10 p.m. UTC
Allow parsing GPIO controller children nodes with GPIO hogs.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
This implements the same as commit dfb49cc231a48 ("dt-bindings: gpio:
fsl-imx-gpio: Add parsing of hogs") and reuses the commit message as
well.

 .../devicetree/bindings/gpio/gpio-vf610.yaml    | 17 +++++++++++++++++
 1 file changed, 17 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..41b4bb1bca11d 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml
+++ b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml
@@ -61,6 +61,23 @@  properties:
   gpio-ranges:
     maxItems: 1
 
+patternProperties:
+  "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$":
+    type: object
+    properties:
+      gpio-hog: true
+      gpios: true
+      input: true
+      output-high: true
+      output-low: true
+      line-name: true
+
+    required:
+      - gpio-hog
+      - gpios
+
+    additionalProperties: false
+
 required:
   - compatible
   - reg