Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+16 -4
+16 -4
Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml
··· 65 65 66 66 $defs: 67 67 qcom-tlmm-state: 68 - allOf: 69 - - $ref: pincfg-node.yaml# 70 - - $ref: pinmux-node.yaml# 71 - 72 68 properties: 73 69 drive-strength: 74 70 enum: [2, 4, 6, 8, 10, 12, 14, 16] ··· 77 81 input-enable: true 78 82 output-high: true 79 83 output-low: true 84 + 85 + allOf: 86 + - $ref: pincfg-node.yaml# 87 + - $ref: pinmux-node.yaml# 88 + 89 + - if: 90 + properties: 91 + pins: 92 + items: 93 + pattern: "^gpio" 94 + then: 95 + required: 96 + - function 97 + else: 98 + properties: 99 + function: false 80 100 81 101 additionalProperties: true 82 102 ...