]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: gpio: mvebu: Add missing 'gpio-ranges' property and hog nodes
authorRob Herring (Arm) <robh@kernel.org>
Thu, 27 Feb 2025 17:51:32 +0000 (11:51 -0600)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 4 Mar 2025 10:39:34 +0000 (11:39 +0100)
The Marvell mvebu binding users already use 'gpio-ranges' and have hog
nodes, so add them to the binding.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250227175132.3734524-1-robh@kernel.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Documentation/devicetree/bindings/gpio/gpio-mvebu.yaml

index 33d4e4716516d53e0e9049dd9f781f8c368ed80f..7ed5f9c4dde9a765978e957b6363209705bdfa88 100644 (file)
@@ -72,6 +72,9 @@ properties:
   "#gpio-cells":
     const: 2
 
+  gpio-ranges:
+    maxItems: 1
+
   marvell,pwm-offset:
     $ref: /schemas/types.yaml#/definitions/uint32
     description: Offset in the register map for the pwm registers (in bytes)
@@ -96,6 +99,13 @@ properties:
       - const: axi
     minItems: 1
 
+patternProperties:
+  "^(.+-hog(-[0-9]+)?)$":
+    type: object
+
+    required:
+      - gpio-hog
+
 required:
   - compatible
   - gpio-controller