dt-bindings: pinctrl: airoha: limit the conf pins to the largest pin group
Subsystems (5)
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.
Suggested-by Conor Dooley <[email protected]>
Signed-off-by John Crispin <[email protected]>
---
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
@@ -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
@@ -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
@@ -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
@@ -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