* [PATCH] dt-bindings: pinctrl: airoha: limit the conf pins to the largest pin group
@ 2026-11-24 10:07 John Crispin
0 siblings, 0 replies; only message in thread
From: John Crispin @ 2026-11-24 10:07 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Lorenzo Bianconi
Cc: linux-gpio, devicetree, linux-mediatek, Christian Marangi,
lei.dong, Linqi.zhang, Rajeev.kumar, upstream, Weifeng.xu,
zhengping.zhang, linux-kernel, Conor Dooley
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 <conor.dooley@microchip.com>
Signed-off-by: John Crispin <john@phrozen.org>
---
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/e20f708f-ebfe-4dc0-a64c-1590fdf608f3@phrozen.org
.../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(-)
diff --git a/Documentation/devicetree/bindings/pinctrl/airoha,an7563-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/airoha,an7563-pinctrl.yaml
index 6d186ebe4a41..77294c1e55f4 100644
--- a/Documentation/devicetree/bindings/pinctrl/airoha,an7563-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/airoha,an7563-pinctrl.yaml
@@ -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
diff --git a/Documentation/devicetree/bindings/pinctrl/airoha,an7583-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/airoha,an7583-pinctrl.yaml
index aad2e9880ec6..9e161e1a1cfb 100644
--- a/Documentation/devicetree/bindings/pinctrl/airoha,an7583-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/airoha,an7583-pinctrl.yaml
@@ -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
diff --git a/Documentation/devicetree/bindings/pinctrl/airoha,en7523-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/airoha,en7523-pinctrl.yaml
index 599f80e94432..b5f95b0b7191 100644
--- a/Documentation/devicetree/bindings/pinctrl/airoha,en7523-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/airoha,en7523-pinctrl.yaml
@@ -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
diff --git a/Documentation/devicetree/bindings/pinctrl/airoha,en7581-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/airoha,en7581-pinctrl.yaml
index 0cf1826c691f..453f41e862ba 100644
--- a/Documentation/devicetree/bindings/pinctrl/airoha,en7581-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/airoha,en7581-pinctrl.yaml
@@ -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
--
2.34.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-24 10:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 10:07 [PATCH] dt-bindings: pinctrl: airoha: limit the conf pins to the largest pin group John Crispin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.