From: Swati Agarwal Date: Mon, 4 May 2026 06:49:36 +0000 (+0530) Subject: dt-bindings: pinctrl: qcom: move gpio-hog schema to tlmm-common X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=02622db8683bd3e5581ebb8991a6ed53a459e9f1;p=thirdparty%2Fkernel%2Flinux.git dt-bindings: pinctrl: qcom: move gpio-hog schema to tlmm-common 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 Reviewed-by: Krzysztof Kozlowski Signed-off-by: Linus Walleij --- diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,ipq4019-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,ipq4019-pinctrl.yaml index cc5de9f776801..de9a3e67e1bbe 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,ipq4019-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,ipq4019-pinctrl.yaml @@ -36,11 +36,6 @@ patternProperties: $ref: "#/$defs/qcom-ipq4019-tlmm-state" additionalProperties: false - "-hog(-[0-9]+)?$": - type: object - required: - - gpio-hog - $defs: qcom-ipq4019-tlmm-state: type: object diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml index 4fcac2e55b554..3b33daedc018a 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml @@ -42,11 +42,6 @@ patternProperties: $ref: "#/$defs/qcom-sdm845-tlmm-state" additionalProperties: false - "-hog(-[0-9]+)?$": - type: object - required: - - gpio-hog - $defs: qcom-sdm845-tlmm-state: type: object diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml index aae3dcf6cac88..aec72e8c06214 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml @@ -51,6 +51,12 @@ properties: 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#