Skip to contentSkip to conversation

dt-bindings: gpio: gpio-davinci: Increase maxItems in gpio-line-names

PATCH Applied Nishanth Menon 3 participants 3 messages Nov 15, 2022 – Nov 16, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: gpio: gpio-davinci: Increase maxItems in gpio-line-names

gpio-line-names really depends on ti,ngpios. However, the maximum value we have seen across the board is on K2G and da850 platforms where it can be upto 144.

Fixes c830b87a761b ("dt-bindings: gpio: gpio-davinci: Convert to json-schema")

---

I dont see a practical scheme to set the maxItems based on ti,ngpios, but deleting the maxItems was softening the check as well.

 Documentation/devicetree/bindings/gpio/gpio-davinci.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/gpio/gpio-davinci.yaml +1 -1
index f32e09ef937c..10e56cf306db 100644
@@ -35,7 +35,7 @@ properties:
   gpio-line-names:
     description: strings describing the names of each gpio line.
     minItems: 1
-    maxItems: 100
+    maxItems: 144
 
   "#gpio-cells":
     const: 2
Signature · 1 line
2.31.1
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Nishanth Menon

gpio-line-names really depends on ti,ngpios. However, the maximum value we have seen across the board is on K2G and da850 platforms where it can be upto 144.

Fixes c830b87a761b ("dt-bindings: gpio: gpio-davinci: Convert to json-schema")

---

Best regards,
Krzysztof

#2 lore raw
In reply to Nishanth Menon
Quoted 31 lines · Nishanth Menon

gpio-line-names really depends on ti,ngpios. However, the maximum value we have seen across the board is on K2G and da850 platforms where it can be upto 144.

Fixes c830b87a761b ("dt-bindings: gpio: gpio-davinci: Convert to json-schema")

---

I dont see a practical scheme to set the maxItems based on ti,ngpios, but deleting the maxItems was softening the check as well.

 Documentation/devicetree/bindings/gpio/gpio-davinci.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/gpio/gpio-davinci.yaml +1 -2
index f32e09ef937c..10e56cf306db 100644
@@ -35,7 +35,7 @@ properties:
   gpio-line-names:
     description: strings describing the names of each gpio line.
     minItems: 1
-    maxItems: 100
+    maxItems: 144
 
   "#gpio-cells":
     const: 2
--
Quoted 2 lines

2.31.1

Applied, thanks!

Bart