Linux GPIO subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/7] dt-bindings: pinctrl: qcom: fix issues in pins patterns
@ 2026-12-01 15:47 Bartosz Golaszewski
  2026-12-01 15:47 ` [PATCH 1/7] dt-bindings: pinctrl: qcom,milos-tlmm: drop nonexistent gpio167 from pins Bartosz Golaszewski
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Bartosz Golaszewski @ 2026-12-01 15:47 UTC (permalink / raw)
  To: Bjorn Andersson, Bartosz Golaszewski, Linus Walleij, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Luca Weiss,
	Sivaprakash Murugesan, Selvam Sathappan Periakaruppan,
	Rajkumar Ayyasamy, Konrad Dybcio, Martin Botka,
	Srinivas Kandagatla
  Cc: linux-arm-msm, linux-gpio, devicetree, Krzysztof Kozlowski,
	Sricharan Ramabadhran, Bartosz Golaszewski

Fix several issues in the pins property patterns across DT bindings for
Qualcomm pin controllers.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
Bartosz Golaszewski (7):
      dt-bindings: pinctrl: qcom,milos-tlmm: drop nonexistent gpio167 from pins
      dt-bindings: pinctrl: qcom,ipq8074: drop nonexistent gpio70 from pins
      dt-bindings: pinctrl: qcom,ipq6018: fix the pins pattern range
      dt-bindings: pinctrl: qcom,mdm9607-tlmm: fix the pins pattern range
      dt-bindings: pinctrl: qcom,sm6125-tlmm: add missing parentheses to pins pattern
      dt-bindings: pinctrl: qcom,sm8350-lpass-lpi: fix the pins pattern range
      dt-bindings: pinctrl: qcom,sa8775p-tlmm: fix an off-by-one bug in GPIO count

 .../devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml         | 2 +-
 .../devicetree/bindings/pinctrl/qcom,ipq8074-pinctrl.yaml         | 2 +-
 Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml  | 2 +-
 Documentation/devicetree/bindings/pinctrl/qcom,milos-tlmm.yaml    | 2 +-
 Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml  | 8 ++++----
 Documentation/devicetree/bindings/pinctrl/qcom,sm6125-tlmm.yaml   | 2 +-
 .../bindings/pinctrl/qcom,sm8350-lpass-lpi-pinctrl.yaml           | 2 +-
 7 files changed, 10 insertions(+), 10 deletions(-)
---
base-commit: 253f86660c1f882fbf554db5eaa34bc5d66dc7e8
change-id: 20261201-pinctrl-qcom-pins-pattern-fixes-2b3964b4df84

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 1/7] dt-bindings: pinctrl: qcom,milos-tlmm: drop nonexistent gpio167 from pins
  2026-12-01 15:47 [PATCH 0/7] dt-bindings: pinctrl: qcom: fix issues in pins patterns Bartosz Golaszewski
@ 2026-12-01 15:47 ` Bartosz Golaszewski
  2026-12-01 15:50   ` Luca Weiss
  2026-12-01 15:53   ` Konrad Dybcio
  2026-12-01 15:47 ` [PATCH 2/7] dt-bindings: pinctrl: qcom,ipq8074: drop nonexistent gpio70 " Bartosz Golaszewski
                   ` (5 subsequent siblings)
  6 siblings, 2 replies; 16+ messages in thread
From: Bartosz Golaszewski @ 2026-12-01 15:47 UTC (permalink / raw)
  To: Bjorn Andersson, Bartosz Golaszewski, Linus Walleij, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Luca Weiss,
	Sivaprakash Murugesan, Selvam Sathappan Periakaruppan,
	Rajkumar Ayyasamy, Konrad Dybcio, Martin Botka,
	Srinivas Kandagatla
  Cc: linux-arm-msm, linux-gpio, devicetree, Krzysztof Kozlowski,
	Sricharan Ramabadhran, Bartosz Golaszewski

The Milos TLMM has 167 GPIOs (0 to 166), pin 167 is UFS_RESET. The pins
pattern wrongly accepts gpio167. Limit the pattern to gpio166.

Fixes: fd7dac34fda4 ("dt-bindings: pinctrl: document the Milos Top Level Mode Multiplexer")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 Documentation/devicetree/bindings/pinctrl/qcom,milos-tlmm.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,milos-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,milos-tlmm.yaml
index 0091204df20a0eca7d0d0e766afcb8d08042b015..f14cb48edfbbf0690df167721c18279d347bc5de 100644
--- a/Documentation/devicetree/bindings/pinctrl/qcom,milos-tlmm.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/qcom,milos-tlmm.yaml
@@ -57,7 +57,7 @@ $defs:
           subnode.
         items:
           oneOf:
-            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-5][0-9]|16[0-7])$"
+            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-5][0-9]|16[0-6])$"
             - enum: [ ufs_reset, sdc2_clk, sdc2_cmd, sdc2_data ]
         minItems: 1
         maxItems: 36

-- 
2.47.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 2/7] dt-bindings: pinctrl: qcom,ipq8074: drop nonexistent gpio70 from pins
  2026-12-01 15:47 [PATCH 0/7] dt-bindings: pinctrl: qcom: fix issues in pins patterns Bartosz Golaszewski
  2026-12-01 15:47 ` [PATCH 1/7] dt-bindings: pinctrl: qcom,milos-tlmm: drop nonexistent gpio167 from pins Bartosz Golaszewski
@ 2026-12-01 15:47 ` Bartosz Golaszewski
  2026-12-01 15:53   ` Konrad Dybcio
  2026-12-01 15:47 ` [PATCH 3/7] dt-bindings: pinctrl: qcom,ipq6018: fix the pins pattern range Bartosz Golaszewski
                   ` (4 subsequent siblings)
  6 siblings, 1 reply; 16+ messages in thread
From: Bartosz Golaszewski @ 2026-12-01 15:47 UTC (permalink / raw)
  To: Bjorn Andersson, Bartosz Golaszewski, Linus Walleij, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Luca Weiss,
	Sivaprakash Murugesan, Selvam Sathappan Periakaruppan,
	Rajkumar Ayyasamy, Konrad Dybcio, Martin Botka,
	Srinivas Kandagatla
  Cc: linux-arm-msm, linux-gpio, devicetree, Krzysztof Kozlowski,
	Sricharan Ramabadhran, Bartosz Golaszewski

The IPQ8074 TLMM has 70 GPIOs (0 to 69) but the pins pattern also accepts
gpio70. Limit the pattern to gpio69.

Fixes: a4c54f830da8 ("dt-bindings: pinctrl: qcom,ipq8074: convert to dtschema")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 Documentation/devicetree/bindings/pinctrl/qcom,ipq8074-pinctrl.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,ipq8074-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,ipq8074-pinctrl.yaml
index 40def3ac3bf711f2ba25f30de20f8e5bb48942da..7bb8f095ed6b8a03392b8883bad8f618fc551d3b 100644
--- a/Documentation/devicetree/bindings/pinctrl/qcom,ipq8074-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/qcom,ipq8074-pinctrl.yaml
@@ -54,7 +54,7 @@ $defs:
           List of gpio pins affected by the properties specified in this
           subnode.
         items:
-          pattern: "^gpio([0-9]|[1-6][0-9]|70)$"
+          pattern: "^gpio([0-9]|[1-6][0-9])$"
         minItems: 1
         maxItems: 36
 

-- 
2.47.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 3/7] dt-bindings: pinctrl: qcom,ipq6018: fix the pins pattern range
  2026-12-01 15:47 [PATCH 0/7] dt-bindings: pinctrl: qcom: fix issues in pins patterns Bartosz Golaszewski
  2026-12-01 15:47 ` [PATCH 1/7] dt-bindings: pinctrl: qcom,milos-tlmm: drop nonexistent gpio167 from pins Bartosz Golaszewski
  2026-12-01 15:47 ` [PATCH 2/7] dt-bindings: pinctrl: qcom,ipq8074: drop nonexistent gpio70 " Bartosz Golaszewski
@ 2026-12-01 15:47 ` Bartosz Golaszewski
  2026-12-01 15:53   ` Konrad Dybcio
  2026-12-01 15:47 ` [PATCH 4/7] dt-bindings: pinctrl: qcom,mdm9607-tlmm: " Bartosz Golaszewski
                   ` (3 subsequent siblings)
  6 siblings, 1 reply; 16+ messages in thread
From: Bartosz Golaszewski @ 2026-12-01 15:47 UTC (permalink / raw)
  To: Bjorn Andersson, Bartosz Golaszewski, Linus Walleij, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Luca Weiss,
	Sivaprakash Murugesan, Selvam Sathappan Periakaruppan,
	Rajkumar Ayyasamy, Konrad Dybcio, Martin Botka,
	Srinivas Kandagatla
  Cc: linux-arm-msm, linux-gpio, devicetree, Krzysztof Kozlowski,
	Sricharan Ramabadhran, Bartosz Golaszewski

The IPQ6018 TLMM has 80 GPIOs (0 to 79) but the pins pattern accepts gpio1
to gpio80, rejecting gpio0 and allowing a nonexistent gpio80.

Make the pattern match gpio0 to gpio79.

Fixes: eed1015c4c42 ("dt-bindings: pinctrl: qcom: Add ipq6018 pinctrl bindings")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml
index ed00fbaec11b05760dbe4885884066de78c85d07..79a239098623112ec7324c618f21703777c1caa1 100644
--- a/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml
@@ -46,7 +46,7 @@ $defs:
           subnode.
         items:
           oneOf:
-            - pattern: "^gpio([1-9]|[1-7][0-9]|80)$"
+            - pattern: "^gpio([0-9]|[1-7][0-9])$"
             - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd,
                       sdc2_data, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2,
                       qdsd_data3 ]

-- 
2.47.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 4/7] dt-bindings: pinctrl: qcom,mdm9607-tlmm: fix the pins pattern range
  2026-12-01 15:47 [PATCH 0/7] dt-bindings: pinctrl: qcom: fix issues in pins patterns Bartosz Golaszewski
                   ` (2 preceding siblings ...)
  2026-12-01 15:47 ` [PATCH 3/7] dt-bindings: pinctrl: qcom,ipq6018: fix the pins pattern range Bartosz Golaszewski
@ 2026-12-01 15:47 ` Bartosz Golaszewski
  2026-12-01 15:53   ` Konrad Dybcio
  2026-12-01 15:47 ` [PATCH 5/7] dt-bindings: pinctrl: qcom,sm6125-tlmm: add missing parentheses to pins pattern Bartosz Golaszewski
                   ` (2 subsequent siblings)
  6 siblings, 1 reply; 16+ messages in thread
From: Bartosz Golaszewski @ 2026-12-01 15:47 UTC (permalink / raw)
  To: Bjorn Andersson, Bartosz Golaszewski, Linus Walleij, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Luca Weiss,
	Sivaprakash Murugesan, Selvam Sathappan Periakaruppan,
	Rajkumar Ayyasamy, Konrad Dybcio, Martin Botka,
	Srinivas Kandagatla
  Cc: linux-arm-msm, linux-gpio, devicetree, Krzysztof Kozlowski,
	Sricharan Ramabadhran, Bartosz Golaszewski

The MDM9607 TLMM has 80 GPIOs (0 to 79) but the pins pattern accepts gpio1
to gpio80, rejecting gpio0 and allowing a nonexistent gpio80.

Make the pattern match gpio0 to gpio79.

Fixes: 832e6e3e9d49 ("dt-bindings: pinctrl: qcom: Add bindings for MDM9607")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml
index e75393b3d196c58f13c7c2f0eb47ac5ab69e250a..1687b4c496a45b9d90a131827d1971324682ea22 100644
--- a/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml
@@ -52,7 +52,7 @@ $defs:
           subnode.
         items:
           oneOf:
-            - pattern: "^gpio([1-9]|[1-7][0-9]|80)$"
+            - pattern: "^gpio([0-9]|[1-7][0-9])$"
             - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd,
                       sdc2_data, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2,
                       qdsd_data3 ]

-- 
2.47.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 5/7] dt-bindings: pinctrl: qcom,sm6125-tlmm: add missing parentheses to pins pattern
  2026-12-01 15:47 [PATCH 0/7] dt-bindings: pinctrl: qcom: fix issues in pins patterns Bartosz Golaszewski
                   ` (3 preceding siblings ...)
  2026-12-01 15:47 ` [PATCH 4/7] dt-bindings: pinctrl: qcom,mdm9607-tlmm: " Bartosz Golaszewski
@ 2026-12-01 15:47 ` Bartosz Golaszewski
  2026-12-01 15:54   ` Konrad Dybcio
  2026-12-01 15:47 ` [PATCH 6/7] dt-bindings: pinctrl: qcom,sm8350-lpass-lpi: fix the pins pattern range Bartosz Golaszewski
  2026-12-01 15:47 ` [PATCH 7/7] dt-bindings: pinctrl: qcom,sa8775p-tlmm: fix an off-by-one bug in GPIO count Bartosz Golaszewski
  6 siblings, 1 reply; 16+ messages in thread
From: Bartosz Golaszewski @ 2026-12-01 15:47 UTC (permalink / raw)
  To: Bjorn Andersson, Bartosz Golaszewski, Linus Walleij, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Luca Weiss,
	Sivaprakash Murugesan, Selvam Sathappan Periakaruppan,
	Rajkumar Ayyasamy, Konrad Dybcio, Martin Botka,
	Srinivas Kandagatla
  Cc: linux-arm-msm, linux-gpio, devicetree, Krzysztof Kozlowski,
	Sricharan Ramabadhran, Bartosz Golaszewski

The alternatives in the pins pattern are not grouped, so the anchors
only apply to the first and last branch and strings like gpio9999 or
gpio1x are accepted.

Wrap the alternatives in parentheses.

Fixes: d3decc70d079 ("dt-bindings: pinctrl: qcom: sm6125: Document SM6125 pinctrl driver")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 Documentation/devicetree/bindings/pinctrl/qcom,sm6125-tlmm.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm6125-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm6125-tlmm.yaml
index f0c3a8806972331a7f6affcfba45b3228819977a..747a924da1ec1ca2403bcd727af01604f4dc7b31 100644
--- a/Documentation/devicetree/bindings/pinctrl/qcom,sm6125-tlmm.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm6125-tlmm.yaml
@@ -57,7 +57,7 @@ $defs:
           subnode.
         items:
           oneOf:
-            - pattern: "^gpio[0-9]|[1-9][0-9]|1[0-2][0-9]|13[0-2]$"
+            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-2][0-9]|13[0-2])$"
             - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ]
         minItems: 1
         maxItems: 36

-- 
2.47.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 6/7] dt-bindings: pinctrl: qcom,sm8350-lpass-lpi: fix the pins pattern range
  2026-12-01 15:47 [PATCH 0/7] dt-bindings: pinctrl: qcom: fix issues in pins patterns Bartosz Golaszewski
                   ` (4 preceding siblings ...)
  2026-12-01 15:47 ` [PATCH 5/7] dt-bindings: pinctrl: qcom,sm6125-tlmm: add missing parentheses to pins pattern Bartosz Golaszewski
@ 2026-12-01 15:47 ` Bartosz Golaszewski
  2026-12-01 15:54   ` Konrad Dybcio
  2026-12-01 15:47 ` [PATCH 7/7] dt-bindings: pinctrl: qcom,sa8775p-tlmm: fix an off-by-one bug in GPIO count Bartosz Golaszewski
  6 siblings, 1 reply; 16+ messages in thread
From: Bartosz Golaszewski @ 2026-12-01 15:47 UTC (permalink / raw)
  To: Bjorn Andersson, Bartosz Golaszewski, Linus Walleij, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Luca Weiss,
	Sivaprakash Murugesan, Selvam Sathappan Periakaruppan,
	Rajkumar Ayyasamy, Konrad Dybcio, Martin Botka,
	Srinivas Kandagatla
  Cc: linux-arm-msm, linux-gpio, devicetree, Krzysztof Kozlowski,
	Sricharan Ramabadhran, Bartosz Golaszewski

The SM8350 LPASS LPI has 15 GPIOs but the pins pattern accepts gpio0 to
gpio22. Limit the pattern to gpio14.

Fixes: 2b4e7a87276e ("dt-bindings: pinctrl: qcom,sm8350-lpass-lpi: add SM8350 LPASS TLMM")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 .../devicetree/bindings/pinctrl/qcom,sm8350-lpass-lpi-pinctrl.yaml      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-lpass-lpi-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-lpass-lpi-pinctrl.yaml
index 46aec0713775e8132c7bc8f3a5003ef927cd35e9..3795d966c5b2d7888910475ac9f5f91204ce17f8 100644
--- a/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-lpass-lpi-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-lpass-lpi-pinctrl.yaml
@@ -57,7 +57,7 @@ $defs:
           List of gpio pins affected by the properties specified in this
           subnode.
         items:
-          pattern: "^gpio([0-9]|1[0-9]|2[0-2])$"
+          pattern: "^gpio([0-9]|1[0-4])$"
 
       function:
         enum: [ dmic1_clk, dmic1_data, dmic2_clk, dmic2_data, dmic3_clk,

-- 
2.47.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 7/7] dt-bindings: pinctrl: qcom,sa8775p-tlmm: fix an off-by-one bug in GPIO count
  2026-12-01 15:47 [PATCH 0/7] dt-bindings: pinctrl: qcom: fix issues in pins patterns Bartosz Golaszewski
                   ` (5 preceding siblings ...)
  2026-12-01 15:47 ` [PATCH 6/7] dt-bindings: pinctrl: qcom,sm8350-lpass-lpi: fix the pins pattern range Bartosz Golaszewski
@ 2026-12-01 15:47 ` Bartosz Golaszewski
  2026-12-01 15:54   ` Konrad Dybcio
  6 siblings, 1 reply; 16+ messages in thread
From: Bartosz Golaszewski @ 2026-12-01 15:47 UTC (permalink / raw)
  To: Bjorn Andersson, Bartosz Golaszewski, Linus Walleij, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Luca Weiss,
	Sivaprakash Murugesan, Selvam Sathappan Periakaruppan,
	Rajkumar Ayyasamy, Konrad Dybcio, Martin Botka,
	Srinivas Kandagatla
  Cc: linux-arm-msm, linux-gpio, devicetree, Krzysztof Kozlowski,
	Sricharan Ramabadhran, Bartosz Golaszewski

The SA8775P TLMM has 149 GPIOs (0 to 148) but the binding limits
gpio-line-names to 148 entries and gpio-reserved-ranges to 74, the pins
pattern stops at gpio147 and the example uses a 148-pin gpio-ranges
which doesn't cover the UFS_RESET line exposed by the driver.

Update the limits to 149 GPIOs, allow gpio148 in the pins pattern and
extend the example gpio-ranges to 150 lines.

Fixes: 9a2aaee23c79 ("dt-bindings: pinctrl: describe sa8775p-tlmm")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml
index 1100ddab52290093af87250e4181043e924497a5..7e53f389a6993a35cae7b39c2583c0f2737ff584 100644
--- a/Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml
@@ -33,10 +33,10 @@ properties:
 
   gpio-reserved-ranges:
     minItems: 1
-    maxItems: 74
+    maxItems: 75
 
   gpio-line-names:
-    maxItems: 148
+    maxItems: 149
 
 patternProperties:
   "-state$":
@@ -63,7 +63,7 @@ $defs:
           subnode.
         items:
           oneOf:
-            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-3][0-9]|14[0-7])$"
+            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-3][0-9]|14[0-8])$"
             - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk, ufs_reset ]
         minItems: 1
         maxItems: 16
@@ -122,7 +122,7 @@ examples:
         #gpio-cells = <2>;
         interrupt-controller;
         #interrupt-cells = <2>;
-        gpio-ranges = <&tlmm 0 0 148>;
+        gpio-ranges = <&tlmm 0 0 150>;
 
         qup-uart10-state {
             pins = "gpio46", "gpio47";

-- 
2.47.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* Re: [PATCH 1/7] dt-bindings: pinctrl: qcom,milos-tlmm: drop nonexistent gpio167 from pins
  2026-12-01 15:47 ` [PATCH 1/7] dt-bindings: pinctrl: qcom,milos-tlmm: drop nonexistent gpio167 from pins Bartosz Golaszewski
@ 2026-12-01 15:50   ` Luca Weiss
  2026-12-01 15:53   ` Konrad Dybcio
  1 sibling, 0 replies; 16+ messages in thread
From: Luca Weiss @ 2026-12-01 15:50 UTC (permalink / raw)
  To: Bartosz Golaszewski, Bjorn Andersson, Bartosz Golaszewski,
	Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Luca Weiss, Sivaprakash Murugesan, Selvam Sathappan Periakaruppan,
	Rajkumar Ayyasamy, Konrad Dybcio, Martin Botka,
	Srinivas Kandagatla
  Cc: linux-arm-msm, linux-gpio, devicetree, Krzysztof Kozlowski,
	Sricharan Ramabadhran

On Tue Dec 1, 2026 at 4:47 PM CET, Bartosz Golaszewski wrote:
> The Milos TLMM has 167 GPIOs (0 to 166), pin 167 is UFS_RESET. The pins
> pattern wrongly accepts gpio167. Limit the pattern to gpio166.

Whoops. Thanks for fixing this!

Reviewed-by: Luca Weiss <luca.weiss@fairphone.com>

> Fixes: fd7dac34fda4 ("dt-bindings: pinctrl: document the Milos Top Level Mode Multiplexer")
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> ---
>  Documentation/devicetree/bindings/pinctrl/qcom,milos-tlmm.yaml | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,milos-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,milos-tlmm.yaml
> index 0091204df20a0eca7d0d0e766afcb8d08042b015..f14cb48edfbbf0690df167721c18279d347bc5de 100644
> --- a/Documentation/devicetree/bindings/pinctrl/qcom,milos-tlmm.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/qcom,milos-tlmm.yaml
> @@ -57,7 +57,7 @@ $defs:
>            subnode.
>          items:
>            oneOf:
> -            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-5][0-9]|16[0-7])$"
> +            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-5][0-9]|16[0-6])$"
>              - enum: [ ufs_reset, sdc2_clk, sdc2_cmd, sdc2_data ]
>          minItems: 1
>          maxItems: 36



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH 1/7] dt-bindings: pinctrl: qcom,milos-tlmm: drop nonexistent gpio167 from pins
  2026-12-01 15:47 ` [PATCH 1/7] dt-bindings: pinctrl: qcom,milos-tlmm: drop nonexistent gpio167 from pins Bartosz Golaszewski
  2026-12-01 15:50   ` Luca Weiss
@ 2026-12-01 15:53   ` Konrad Dybcio
  1 sibling, 0 replies; 16+ messages in thread
From: Konrad Dybcio @ 2026-12-01 15:53 UTC (permalink / raw)
  To: Bartosz Golaszewski, Bjorn Andersson, Bartosz Golaszewski,
	Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Luca Weiss, Sivaprakash Murugesan, Selvam Sathappan Periakaruppan,
	Rajkumar Ayyasamy, Konrad Dybcio, Martin Botka,
	Srinivas Kandagatla
  Cc: linux-arm-msm, linux-gpio, devicetree, Krzysztof Kozlowski,
	Sricharan Ramabadhran

On 12/1/26 4:47 PM, Bartosz Golaszewski wrote:
> The Milos TLMM has 167 GPIOs (0 to 166), pin 167 is UFS_RESET. The pins
> pattern wrongly accepts gpio167. Limit the pattern to gpio166.
> 
> Fixes: fd7dac34fda4 ("dt-bindings: pinctrl: document the Milos Top Level Mode Multiplexer")
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH 2/7] dt-bindings: pinctrl: qcom,ipq8074: drop nonexistent gpio70 from pins
  2026-12-01 15:47 ` [PATCH 2/7] dt-bindings: pinctrl: qcom,ipq8074: drop nonexistent gpio70 " Bartosz Golaszewski
@ 2026-12-01 15:53   ` Konrad Dybcio
  0 siblings, 0 replies; 16+ messages in thread
From: Konrad Dybcio @ 2026-12-01 15:53 UTC (permalink / raw)
  To: Bartosz Golaszewski, Bjorn Andersson, Bartosz Golaszewski,
	Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Luca Weiss, Sivaprakash Murugesan, Selvam Sathappan Periakaruppan,
	Rajkumar Ayyasamy, Konrad Dybcio, Martin Botka,
	Srinivas Kandagatla
  Cc: linux-arm-msm, linux-gpio, devicetree, Krzysztof Kozlowski,
	Sricharan Ramabadhran

On 12/1/26 4:47 PM, Bartosz Golaszewski wrote:
> The IPQ8074 TLMM has 70 GPIOs (0 to 69) but the pins pattern also accepts
> gpio70. Limit the pattern to gpio69.
> 
> Fixes: a4c54f830da8 ("dt-bindings: pinctrl: qcom,ipq8074: convert to dtschema")
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH 3/7] dt-bindings: pinctrl: qcom,ipq6018: fix the pins pattern range
  2026-12-01 15:47 ` [PATCH 3/7] dt-bindings: pinctrl: qcom,ipq6018: fix the pins pattern range Bartosz Golaszewski
@ 2026-12-01 15:53   ` Konrad Dybcio
  0 siblings, 0 replies; 16+ messages in thread
From: Konrad Dybcio @ 2026-12-01 15:53 UTC (permalink / raw)
  To: Bartosz Golaszewski, Bjorn Andersson, Bartosz Golaszewski,
	Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Luca Weiss, Sivaprakash Murugesan, Selvam Sathappan Periakaruppan,
	Rajkumar Ayyasamy, Konrad Dybcio, Martin Botka,
	Srinivas Kandagatla
  Cc: linux-arm-msm, linux-gpio, devicetree, Krzysztof Kozlowski,
	Sricharan Ramabadhran

On 12/1/26 4:47 PM, Bartosz Golaszewski wrote:
> The IPQ6018 TLMM has 80 GPIOs (0 to 79) but the pins pattern accepts gpio1
> to gpio80, rejecting gpio0 and allowing a nonexistent gpio80.
> 
> Make the pattern match gpio0 to gpio79.
> 
> Fixes: eed1015c4c42 ("dt-bindings: pinctrl: qcom: Add ipq6018 pinctrl bindings")
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH 4/7] dt-bindings: pinctrl: qcom,mdm9607-tlmm: fix the pins pattern range
  2026-12-01 15:47 ` [PATCH 4/7] dt-bindings: pinctrl: qcom,mdm9607-tlmm: " Bartosz Golaszewski
@ 2026-12-01 15:53   ` Konrad Dybcio
  0 siblings, 0 replies; 16+ messages in thread
From: Konrad Dybcio @ 2026-12-01 15:53 UTC (permalink / raw)
  To: Bartosz Golaszewski, Bjorn Andersson, Bartosz Golaszewski,
	Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Luca Weiss, Sivaprakash Murugesan, Selvam Sathappan Periakaruppan,
	Rajkumar Ayyasamy, Konrad Dybcio, Martin Botka,
	Srinivas Kandagatla
  Cc: linux-arm-msm, linux-gpio, devicetree, Krzysztof Kozlowski,
	Sricharan Ramabadhran

On 12/1/26 4:47 PM, Bartosz Golaszewski wrote:
> The MDM9607 TLMM has 80 GPIOs (0 to 79) but the pins pattern accepts gpio1
> to gpio80, rejecting gpio0 and allowing a nonexistent gpio80.
> 
> Make the pattern match gpio0 to gpio79.
> 
> Fixes: 832e6e3e9d49 ("dt-bindings: pinctrl: qcom: Add bindings for MDM9607")
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH 5/7] dt-bindings: pinctrl: qcom,sm6125-tlmm: add missing parentheses to pins pattern
  2026-12-01 15:47 ` [PATCH 5/7] dt-bindings: pinctrl: qcom,sm6125-tlmm: add missing parentheses to pins pattern Bartosz Golaszewski
@ 2026-12-01 15:54   ` Konrad Dybcio
  0 siblings, 0 replies; 16+ messages in thread
From: Konrad Dybcio @ 2026-12-01 15:54 UTC (permalink / raw)
  To: Bartosz Golaszewski, Bjorn Andersson, Bartosz Golaszewski,
	Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Luca Weiss, Sivaprakash Murugesan, Selvam Sathappan Periakaruppan,
	Rajkumar Ayyasamy, Konrad Dybcio, Martin Botka,
	Srinivas Kandagatla
  Cc: linux-arm-msm, linux-gpio, devicetree, Krzysztof Kozlowski,
	Sricharan Ramabadhran

On 12/1/26 4:47 PM, Bartosz Golaszewski wrote:
> The alternatives in the pins pattern are not grouped, so the anchors
> only apply to the first and last branch and strings like gpio9999 or
> gpio1x are accepted.

I can imagine gpio9999 in 10 years!

> 
> Wrap the alternatives in parentheses.
> 
> Fixes: d3decc70d079 ("dt-bindings: pinctrl: qcom: sm6125: Document SM6125 pinctrl driver")
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH 6/7] dt-bindings: pinctrl: qcom,sm8350-lpass-lpi: fix the pins pattern range
  2026-12-01 15:47 ` [PATCH 6/7] dt-bindings: pinctrl: qcom,sm8350-lpass-lpi: fix the pins pattern range Bartosz Golaszewski
@ 2026-12-01 15:54   ` Konrad Dybcio
  0 siblings, 0 replies; 16+ messages in thread
From: Konrad Dybcio @ 2026-12-01 15:54 UTC (permalink / raw)
  To: Bartosz Golaszewski, Bjorn Andersson, Bartosz Golaszewski,
	Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Luca Weiss, Sivaprakash Murugesan, Selvam Sathappan Periakaruppan,
	Rajkumar Ayyasamy, Konrad Dybcio, Martin Botka,
	Srinivas Kandagatla
  Cc: linux-arm-msm, linux-gpio, devicetree, Krzysztof Kozlowski,
	Sricharan Ramabadhran

On 12/1/26 4:47 PM, Bartosz Golaszewski wrote:
> The SM8350 LPASS LPI has 15 GPIOs but the pins pattern accepts gpio0 to
> gpio22. Limit the pattern to gpio14.
> 
> Fixes: 2b4e7a87276e ("dt-bindings: pinctrl: qcom,sm8350-lpass-lpi: add SM8350 LPASS TLMM")
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH 7/7] dt-bindings: pinctrl: qcom,sa8775p-tlmm: fix an off-by-one bug in GPIO count
  2026-12-01 15:47 ` [PATCH 7/7] dt-bindings: pinctrl: qcom,sa8775p-tlmm: fix an off-by-one bug in GPIO count Bartosz Golaszewski
@ 2026-12-01 15:54   ` Konrad Dybcio
  0 siblings, 0 replies; 16+ messages in thread
From: Konrad Dybcio @ 2026-12-01 15:54 UTC (permalink / raw)
  To: Bartosz Golaszewski, Bjorn Andersson, Bartosz Golaszewski,
	Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Luca Weiss, Sivaprakash Murugesan, Selvam Sathappan Periakaruppan,
	Rajkumar Ayyasamy, Konrad Dybcio, Martin Botka,
	Srinivas Kandagatla
  Cc: linux-arm-msm, linux-gpio, devicetree, Krzysztof Kozlowski,
	Sricharan Ramabadhran

On 12/1/26 4:47 PM, Bartosz Golaszewski wrote:
> The SA8775P TLMM has 149 GPIOs (0 to 148) but the binding limits
> gpio-line-names to 148 entries and gpio-reserved-ranges to 74, the pins
> pattern stops at gpio147 and the example uses a 148-pin gpio-ranges
> which doesn't cover the UFS_RESET line exposed by the driver.
> 
> Update the limits to 149 GPIOs, allow gpio148 in the pins pattern and
> extend the example gpio-ranges to 150 lines.
> 
> Fixes: 9a2aaee23c79 ("dt-bindings: pinctrl: describe sa8775p-tlmm")
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-12-01 15:54 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 15:47 [PATCH 0/7] dt-bindings: pinctrl: qcom: fix issues in pins patterns Bartosz Golaszewski
2026-12-01 15:47 ` [PATCH 1/7] dt-bindings: pinctrl: qcom,milos-tlmm: drop nonexistent gpio167 from pins Bartosz Golaszewski
2026-12-01 15:50   ` Luca Weiss
2026-12-01 15:53   ` Konrad Dybcio
2026-12-01 15:47 ` [PATCH 2/7] dt-bindings: pinctrl: qcom,ipq8074: drop nonexistent gpio70 " Bartosz Golaszewski
2026-12-01 15:53   ` Konrad Dybcio
2026-12-01 15:47 ` [PATCH 3/7] dt-bindings: pinctrl: qcom,ipq6018: fix the pins pattern range Bartosz Golaszewski
2026-12-01 15:53   ` Konrad Dybcio
2026-12-01 15:47 ` [PATCH 4/7] dt-bindings: pinctrl: qcom,mdm9607-tlmm: " Bartosz Golaszewski
2026-12-01 15:53   ` Konrad Dybcio
2026-12-01 15:47 ` [PATCH 5/7] dt-bindings: pinctrl: qcom,sm6125-tlmm: add missing parentheses to pins pattern Bartosz Golaszewski
2026-12-01 15:54   ` Konrad Dybcio
2026-12-01 15:47 ` [PATCH 6/7] dt-bindings: pinctrl: qcom,sm8350-lpass-lpi: fix the pins pattern range Bartosz Golaszewski
2026-12-01 15:54   ` Konrad Dybcio
2026-12-01 15:47 ` [PATCH 7/7] dt-bindings: pinctrl: qcom,sa8775p-tlmm: fix an off-by-one bug in GPIO count Bartosz Golaszewski
2026-12-01 15:54   ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox