regulator: dt-bindings: fixed-regulator: allow gpios property
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 20 Jan 2023 13:30:10 +0000 (14:30 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 20 Jan 2023 14:09:58 +0000 (14:09 +0000)
'gpios' is in general preferred even for single GPIO specifiers and
there are DTS boards using it (exynos4412-p4note.dtsi), so allow both
versions.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230120133010.299797-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/regulator/fixed-regulator.yaml

index 84eeaef..48af7cb 100644 (file)
@@ -35,6 +35,10 @@ allOf:
       required:
         - power-domains
         - required-opps
+  - not:
+      required:
+        - gpio
+        - gpios
 
 properties:
   compatible:
@@ -49,6 +53,9 @@ properties:
     description: gpio to use for enable control
     maxItems: 1
 
+  gpios:
+    maxItems: 1
+
   clocks:
     description:
       clock to use for enable control. This binding is only available if