Skip to contentSkip to conversation

dt-bindings: pinctrl: airoha: limit the conf pins to the largest pin group

PATCH New John Crispin 1 participant 1 message Nov 24

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

PATCH 1/1 dt-bindings: pinctrl: airoha: limit the conf pins to the largest pin group

A conf node holds the pins of one peripheral. The bindings allow as many pins as the SoC has, so a node can name pins that do not belong to its peripheral.

Use the size of the largest pin group of each SoC as the limit: the 17 pins of pnand on the AN7563, AN7583 and EN7581, and the 8 pins of pcm_spi on the EN7523.

---
Follow up to the review of the AN7589 binding [1], as offered in [2]. The numbers are counted from the pin group tables of the drivers.

[1] https://lore.kernel.org/r/20261116-resolved-riot-c6a310bb2d8c@spud
[2] https://lore.kernel.org/r/[email protected]

 .../devicetree/bindings/pinctrl/airoha,an7563-pinctrl.yaml      | 2 +-
 .../devicetree/bindings/pinctrl/airoha,an7583-pinctrl.yaml      | 2 +-
 .../devicetree/bindings/pinctrl/airoha,en7523-pinctrl.yaml      | 2 +-
 .../devicetree/bindings/pinctrl/airoha,en7581-pinctrl.yaml      | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/pinctrl/airoha,an7563-pinctrl.yaml +1 -1
index 6d186ebe4a41..77294c1e55f4 100644
@@ -258,7 +258,7 @@ patternProperties:
                      pcie_reset0, pcie_reset1, i2c_scl, i2c_sda, spi_clk,
                      spi_cs, spi_mosi, spi_miso, uart_txd, uart_rxd]
             minItems: 1
-            maxItems: 38
+            maxItems: 17
 
           bias-disable: true
 
Documentation/devicetree/bindings/pinctrl/airoha,an7583-pinctrl.yaml +1 -1
index aad2e9880ec6..9e161e1a1cfb 100644
@@ -307,7 +307,7 @@ patternProperties:
                      i2c1_sda, spi_clk, spi_cs, spi_mosi, spi_miso, uart_txd,
                      uart_rxd, pcie_reset0, pcie_reset1, mdc_0, mdio_0]
             minItems: 1
-            maxItems: 53
+            maxItems: 17
 
           bias-disable: true
 
Documentation/devicetree/bindings/pinctrl/airoha,en7523-pinctrl.yaml +1 -1
index 599f80e94432..b5f95b0b7191 100644
@@ -286,7 +286,7 @@ patternProperties:
                      gpio20, gpio21, gpio22, gpio23, gpio24, gpio25, gpio26,
                      gpio27, pcie_reset0, pcie_reset1]
             minItems: 1
-            maxItems: 38
+            maxItems: 8
 
           bias-disable: true
 
Documentation/devicetree/bindings/pinctrl/airoha,en7581-pinctrl.yaml +1 -1
index 0cf1826c691f..453f41e862ba 100644
@@ -308,7 +308,7 @@ patternProperties:
                      gpio41, gpio42, gpio43, gpio44, gpio45, gpio46,
                      pcie_reset0, pcie_reset1, pcie_reset2]
             minItems: 1
-            maxItems: 58
+            maxItems: 17
 
           bias-disable: true
 

base-commit: 3191063649dbf7c0d0b768e1f3655e4c5fc6edb5

Signature · 1 line
2.34.1