summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2022-09-12 08:17:19 +0200
committerLinus Walleij <linus.walleij@linaro.org>2022-09-14 12:17:32 +0200
commit6e6e1ef6b59d70c289f899d46049ab54bcf3f9c4 (patch)
tree8e45cb17265670ca03bb5c30148a12158322e5d9 /Documentation
parente3c2e3840742800131a9530d07e30a809d36dd65 (diff)
downloadlinux-stable-6e6e1ef6b59d70c289f899d46049ab54bcf3f9c4.tar.gz
linux-stable-6e6e1ef6b59d70c289f899d46049ab54bcf3f9c4.tar.bz2
linux-stable-6e6e1ef6b59d70c289f899d46049ab54bcf3f9c4.zip
dt-bindings: pinctrl: qcom,sm8250-pinctrl: do not require function on non-GPIOs
Certain pins, like SDcard related, do not have functions and such should not be required: sdc1-clk-pins: 'function' is a required property Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20220912061746.6311-14-krzysztof.kozlowski@linaro.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml10
1 files changed, 9 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml
index 15bb1018cf21..12bdc2e67c4d 100644
--- a/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml
@@ -110,7 +110,15 @@ patternProperties:
required:
- pins
- - function
+
+ allOf:
+ - if:
+ properties:
+ pins:
+ pattern: "^gpio([0-9]|[1-9][0-9]|1[0-7][0-9])$"
+ then:
+ required:
+ - function
additionalProperties: false