diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2022-10-16 19:00:08 +0200 |
---|---|---|
committer | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2022-10-17 19:06:05 +0200 |
commit | 1b88672e7fd9f83f3a6f507747dc95b8a4d40f4b (patch) | |
tree | d636848f175f83ba6c79ac225776953fe43e2b8d | |
parent | dt-bindings: pinctrl: qcom,sm8250-lpass-lpi: add bias-bus-hold and input-enable (diff) | |
download | linux-1b88672e7fd9f83f3a6f507747dc95b8a4d40f4b.tar.xz linux-1b88672e7fd9f83f3a6f507747dc95b8a4d40f4b.zip |
dt-bindings: pinctrl: qcom,tlmm-common: add common check for function
Certain pins, like SDcard related, do not have functions and such should
not be required. Add a check for this in common Qualcomm TLMM pin
controller schema.
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Reviewed-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20221016170035.35014-8-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
-rw-r--r-- | Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml index c88c8dcb69d9..e1354f0c64f8 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml @@ -65,10 +65,6 @@ additionalProperties: true $defs: qcom-tlmm-state: - allOf: - - $ref: pincfg-node.yaml# - - $ref: pinmux-node.yaml# - properties: drive-strength: enum: [2, 4, 6, 8, 10, 12, 14, 16] @@ -82,5 +78,21 @@ $defs: output-high: true output-low: true + allOf: + - $ref: pincfg-node.yaml# + - $ref: pinmux-node.yaml# + + - if: + properties: + pins: + items: + pattern: "^gpio" + then: + required: + - function + else: + properties: + function: false + additionalProperties: true ... |