dt-bindings: pinctrl: qcom: allow nine interrupts on SM6350
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 30 Dec 2022 13:56:43 +0000 (14:56 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 13 Jan 2023 10:47:52 +0000 (11:47 +0100)
Almost all Qualcomm SoC Top Level Mode Multiplexers come with only
summary interrupt.  SM6350 is different because downstream and upstream
DTS have nine of the interrupts.  Allow such variation.

Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20221230135645.56401-7-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
34 files changed:
Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,ipq8074-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml
Documentation/devicetree/bindings/pinctrl/qcom,mdm9615-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,msm8660-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,msm8909-tlmm.yaml
Documentation/devicetree/bindings/pinctrl/qcom,msm8916-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,msm8960-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,msm8974-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,msm8976-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,msm8994-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,msm8996-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,msm8998-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,qcm2290-tlmm.yaml
Documentation/devicetree/bindings/pinctrl/qcom,qcs404-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sc7180-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sc8180x-tlmm.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sc8280xp-tlmm.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sdm630-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sdm670-tlmm.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sdx55-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sdx65-tlmm.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sm6115-tlmm.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sm6125-tlmm.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sm6350-tlmm.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sm6375-tlmm.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sm8150-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sm8350-tlmm.yaml
Documentation/devicetree/bindings/pinctrl/qcom,sm8450-tlmm.yaml
Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml

index 93f231c..28f1b6a 100644 (file)
@@ -19,7 +19,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 5687aca..3137db9 100644 (file)
@@ -20,7 +20,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index a0a1217..96b598b 100644 (file)
@@ -22,7 +22,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index a4f6e4c..c7c94d7 100644 (file)
@@ -20,7 +20,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   '#interrupt-cells': true
   gpio-controller: true
index 3b79f5b..ab6672a 100644 (file)
@@ -20,7 +20,9 @@ properties:
     description: Specifies the base address and size of the TLMM register space
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index ad0cad4..348d84c 100644 (file)
@@ -20,7 +20,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index cc6d0c9..449e6e3 100644 (file)
@@ -22,7 +22,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 5495f58..633c9e5 100644 (file)
@@ -20,7 +20,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index c9a4a79..6bcd520 100644 (file)
@@ -19,7 +19,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 33d07d5..cf386f6 100644 (file)
@@ -20,7 +20,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 9287cbb..afe4a80 100644 (file)
@@ -20,7 +20,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 858f457..5dfcc3e 100644 (file)
@@ -20,7 +20,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 55d5439..f4a8180 100644 (file)
@@ -22,7 +22,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 8e1cd4b..047b458 100644 (file)
@@ -20,7 +20,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 21ba32c..c07ee98 100644 (file)
@@ -20,7 +20,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index adf64bf..6271fd1 100644 (file)
@@ -19,7 +19,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 29d50c4..20bc967 100644 (file)
@@ -26,7 +26,9 @@ properties:
       - const: north
       - const: east
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index b40f6dc..f33792a 100644 (file)
@@ -26,7 +26,9 @@ properties:
       - const: north
       - const: south
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 24191d5..0ace55c 100644 (file)
@@ -28,7 +28,9 @@ properties:
       - const: east
       - const: south
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   '#interrupt-cells': true
   gpio-controller: true
index 4efde29..97b27d6 100644 (file)
@@ -22,7 +22,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index bd4fd84..ea6bd0b 100644 (file)
@@ -31,7 +31,9 @@ properties:
       - const: center
       - const: north
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 7585117..f586b3a 100644 (file)
@@ -22,7 +22,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 18ddcfe..23d7c03 100644 (file)
@@ -23,7 +23,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index a76117e..add3c7e 100644 (file)
@@ -20,7 +20,9 @@ properties:
     description: Specifies the base address and size of the TLMM register space
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 2f53905..89c5562 100644 (file)
@@ -19,7 +19,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 164f24d..2932548 100644 (file)
@@ -26,7 +26,9 @@ properties:
       - const: south
       - const: east
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index e1dd54a..c9bc489 100644 (file)
@@ -27,7 +27,9 @@ properties:
       - const: south
       - const: east
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 39f3ec5..d95935f 100644 (file)
@@ -22,7 +22,10 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    minItems: 9
+    maxItems: 9
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
@@ -125,7 +128,16 @@ examples:
     pinctrl@f100000 {
         compatible = "qcom,sm6350-tlmm";
         reg = <0x0f100000 0x300000>;
-        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
+        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
+
         gpio-controller;
         #gpio-cells = <2>;
         interrupt-controller;
index d54ebb2..e4231d1 100644 (file)
@@ -22,7 +22,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 85adddb..4376a9b 100644 (file)
@@ -27,7 +27,9 @@ properties:
       - const: north
       - const: south
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index c80f384..56e058c 100644 (file)
@@ -25,7 +25,9 @@ properties:
       - const: south
       - const: north
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 7b483e9..49a74f3 100644 (file)
@@ -22,7 +22,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index 4a1d10d..451faad 100644 (file)
@@ -22,7 +22,9 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
+  interrupts:
+    maxItems: 1
+
   interrupt-controller: true
   "#interrupt-cells": true
   gpio-controller: true
index e1354f0..cb5ba1b 100644 (file)
@@ -16,8 +16,9 @@ description:
 properties:
   interrupts:
     description:
-      Specifies the TLMM summary IRQ
-    maxItems: 1
+      TLMM summary IRQ and dirconn interrupts.
+    minItems: 1
+    maxItems: 9
 
   interrupt-controller: true