dt-bindings: gpio: mpfs-gpio: allow parsing of hog child nodes.
authorConor Dooley <conor.dooley@microchip.com>
Thu, 25 Aug 2022 14:35:23 +0000 (15:35 +0100)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 31 Aug 2022 12:39:41 +0000 (14:39 +0200)
The SD card and eMMC on PolarFire SoC are sometimes muxed using a GPIO
by the bootloader. Add a hog child property to facilitate this.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml

index 110651e..fdc1682 100644 (file)
@@ -44,6 +44,24 @@ properties:
 
   gpio-controller: true
 
+patternProperties:
+  "^.+-hog(-[0-9]+)?$":
+    type: object
+
+    additionalProperties: false
+
+    properties:
+      gpio-hog: true
+      gpios: true
+      input: true
+      output-high: true
+      output-low: true
+      line-name: true
+
+    required:
+      - gpio-hog
+      - gpios
+
 required:
   - compatible
   - reg