From: John Crispin <john@phrozen.org>
To: Linus Walleij <linusw@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Lorenzo Bianconi <lorenzo@kernel.org>
Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
linux-mediatek@lists.infradead.org,
Christian Marangi <ansuelsmth@gmail.com>,
lei.dong@airoha.com, Linqi.zhang@airoha.com,
Rajeev.kumar@airoha.com, upstream@airoha.com,
Weifeng.xu@airoha.com, zhengping.zhang@airoha.com,
linux-kernel@vger.kernel.org,
Conor Dooley <conor.dooley@microchip.com>
Subject: [PATCH] dt-bindings: pinctrl: airoha: limit the conf pins to the largest pin group
Date: Tue, 24 Nov 2026 11:07:46 +0100 [thread overview]
Message-ID: <20261124100746.3887616-1-john@phrozen.org> (raw)
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
reply other threads:[~2026-11-24 10:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124100746.3887616-1-john@phrozen.org \
--to=john@phrozen.org \
--cc=Linqi.zhang@airoha.com \
--cc=Rajeev.kumar@airoha.com \
--cc=Weifeng.xu@airoha.com \
--cc=ansuelsmth@gmail.com \
--cc=conor+dt@kernel.org \
--cc=conor.dooley@microchip.com \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lei.dong@airoha.com \
--cc=linusw@kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=lorenzo@kernel.org \
--cc=robh@kernel.org \
--cc=upstream@airoha.com \
--cc=zhengping.zhang@airoha.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox