Qualcomm TLMM-based pin controllers share the same gpio-hog binding
semantics across multiple SoCs. The gpio-hog pattern currently defined in
qcom,ipq4019-pinctrl.yaml and qcom,sdm845-pinctrl.yaml are not SOC specific
and applies to all TLMM controllers.
Move the gpio-hog patternProperties definition to qcom,tlmm-common.yaml so
that it can be reused by other Qualcomm TLMM pinctrl bindings and avoid
schema duplication.
Signed-off-by: Swati Agarwal <swati.agarwal@oss.qualcomm.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
$ref: "#/$defs/qcom-ipq4019-tlmm-state"
additionalProperties: false
- "-hog(-[0-9]+)?$":
- type: object
- required:
- - gpio-hog
-
$defs:
qcom-ipq4019-tlmm-state:
type: object
$ref: "#/$defs/qcom-sdm845-tlmm-state"
additionalProperties: false
- "-hog(-[0-9]+)?$":
- type: object
- required:
- - gpio-hog
-
$defs:
qcom-sdm845-tlmm-state:
type: object
should not be accessed by the OS. Please see the ../gpio/gpio.txt for more
information.
+patternProperties:
+ "-hog(-[0-9]+)?$":
+ type: object
+ required:
+ - gpio-hog
+
allOf:
- $ref: pinctrl.yaml#