]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: pinctrl: qcom: move gpio-hog schema to tlmm-common
authorSwati Agarwal <swati.agarwal@oss.qualcomm.com>
Mon, 4 May 2026 06:49:36 +0000 (12:19 +0530)
committerLinus Walleij <linusw@kernel.org>
Wed, 6 May 2026 19:05:15 +0000 (21:05 +0200)
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>
Documentation/devicetree/bindings/pinctrl/qcom,ipq4019-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml

index cc5de9f77680147ec11bc2425b2a602bca02223e..de9a3e67e1bbe5d1b3361ff0f703b9f4cec4453b 100644 (file)
@@ -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
index 4fcac2e55b5542a801d7ef31337286e683d8fa4c..3b33daedc018a2e5ff3a78304677e576833a55f1 100644 (file)
@@ -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
index aae3dcf6cac88ac1f425a19ea3fa94bfe6f0ca46..aec72e8c062141198247ed260f6929c4c84f827e 100644 (file)
@@ -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#