mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] dt-bindings: gpio: mpfs-gpio: allow parsing of hog child nodes.
@ 2022-08-25 14:35 Conor Dooley
  2022-08-25 14:39 ` Krzysztof Kozlowski
  2022-08-31 12:40 ` Bartosz Golaszewski
  0 siblings, 2 replies; 3+ messages in thread
From: Conor Dooley @ 2022-08-25 14:35 UTC (permalink / raw)
  To: brgl, krzysztof.kozlowski+dt, linus.walleij, robh+dt
  Cc: devicetree, linux-gpio, linux-kernel, Conor Dooley

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>
---
Changes since v1:
- move addtionalProperties up under type:
- drop the explicit match group syntax
---
 .../bindings/gpio/microchip,mpfs-gpio.yaml     | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml b/Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml
index 110651eafa70..fdc16822fd4b 100644
--- a/Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml
+++ b/Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml
@@ -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
-- 
2.36.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-31 12:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-25 14:35 [PATCH v2] dt-bindings: gpio: mpfs-gpio: allow parsing of hog child nodes Conor Dooley
2022-08-25 14:39 ` Krzysztof Kozlowski
2022-08-31 12:40 ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®