aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/gpio
diff options
context:
space:
mode:
authorConor Dooley <conor.dooley@microchip.com>2022-08-25 15:35:23 +0100
committerBartosz Golaszewski <brgl@bgdev.pl>2022-08-31 14:39:41 +0200
commitf799206943434ac0484d997d17b9be5bcbf594ab (patch)
tree6223524e45043dd0b79efc32e7679ff41a998261 /Documentation/devicetree/bindings/gpio
parentgpio/rockchip: Convert to generic_handle_domain_irq() (diff)
downloadlinux-dev-f799206943434ac0484d997d17b9be5bcbf594ab.tar.xz
linux-dev-f799206943434ac0484d997d17b9be5bcbf594ab.zip
dt-bindings: gpio: mpfs-gpio: allow parsing of hog child nodes.
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>
Diffstat (limited to 'Documentation/devicetree/bindings/gpio')
-rw-r--r--Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml18
1 files changed, 18 insertions, 0 deletions
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