From: sashiko-bot@kernel.org
To: "Peng Fan (OSS)" <peng.fan@oss.nxp.com>
Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
imx@lists.linux.dev, robh@kernel.org, conor+dt@kernel.org,
Frank.Li@kernel.org
Subject: Re: [PATCH v2 01/11] dt-bindings: gpio: vf610: fix clock requirements per SoC
Date: Tue, 03 Nov 2026 00:05:16 +0000 [thread overview]
Message-ID: <sashiko-outbox-194355@kernel.org> (raw)
In-Reply-To: <20261103-gpio-vf610-fixes-v2-1-7c71fb36e184@nxp.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: gpio: vf610: unwieldy per-compatible conditionals in schema
--
commit f45327f7512fd2e644abcea33601844cbc02415b
Author: Peng Fan <peng.fan@nxp.com>
dt-bindings: gpio: vf610: fix clock requirements per SoC
This patch updates Documentation/devicetree/bindings/gpio/gpio-vf610.yaml to
set minItems: 1 on clocks and clock-names and adds per-compatible if-then
rules under allOf requiring two clocks for fsl,imx7ulp-gpio and one clock for
fsl,imx8ulp-gpio.
> diff --git a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml
> index a31f64b6d40b4..822fa11d18d97 100644
> --- a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml
> +++ b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml
> @@ -57,11 +57,13 @@ properties:
> maxItems: 32
>
> clocks:
> + minItems: 1
> items:
> - description: SoC GPIO clock
> - description: SoC PORT clock
>
> clock-names:
> + minItems: 1
> items:
> - const: gpio
> - const: port
> @@ -116,6 +118,36 @@ allOf:
> reg:
> items:
> - description: GPIO register base address
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: fsl,imx7ulp-gpio
> + then:
> + properties:
> + clocks:
> + minItems: 2
> + maxItems: 2
> + clock-names:
> + minItems: 2
> + maxItems: 2
> + required:
> + - clocks
> + - clock-names
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: fsl,imx8ulp-gpio
> + then:
> + properties:
> + clocks:
> + maxItems: 1
> + clock-names:
> + maxItems: 1
> + required:
> + - clocks
> + - clock-names
[Severity: Low]
This isn't a bug, but in Documentation/devicetree/bindings/gpio/gpio-vf610.yaml
nearly every hardware resource property now differs between the
fsl,vf610-gpio / fsl,imx7ulp-gpio dual-module PORT+GPIO controller and the
fsl,imx8ulp-gpio family (including fsl,imx93-gpio, fsl,imx94-gpio, and
fsl,imx95-gpio), which does not share a compatible fallback with
fsl,vf610-gpio.
The existing conditional in allOf already splits reg and interrupts between the
two hardware families:
- if:
properties:
compatible:
contains:
enum:
- fsl,vf610-gpio
- fsl,imx7ulp-gpio
then:
properties:
interrupts:
maxItems: 1
reg:
items:
- description: PORT register base address
- description: GPIO register base address
else:
properties:
interrupts:
minItems: 2
reg:
items:
- description: GPIO register base address
With clocks and clock-names also diverging across variants, would it be
cleaner to split the fsl,imx8ulp-gpio binding into a separate schema document
(or at least fold the fsl,imx8ulp-gpio clock constraints into the existing
else branch above) rather than adding more per-compatible if-then blocks to
allOf?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261103-gpio-vf610-fixes-v2-0-7c71fb36e184@nxp.com?part=1
next prev parent reply other threads:[~2026-11-03 0:05 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 23:44 [PATCH v2 00/11] gpio: vf610: fix clocks and misc cleanup Peng Fan (OSS)
2026-11-02 23:44 ` [PATCH v2 01/11] dt-bindings: gpio: vf610: fix clock requirements per SoC Peng Fan (OSS)
2026-11-03 0:05 ` sashiko-bot [this message]
2026-11-03 11:46 ` Krzysztof Kozlowski
2026-11-03 13:15 ` Peng Fan
2026-11-03 13:14 ` Krzysztof Kozlowski
2026-11-03 14:00 ` Peng Fan
2026-11-03 14:19 ` Krzysztof Kozlowski
2026-11-02 23:44 ` [PATCH v2 02/11] gpio: vf610: simplify with irq_set_irq_wake() Peng Fan (OSS)
2026-11-02 23:44 ` [PATCH v2 03/11] gpio: vf610: use devm_clk_get_optional_enabled() for clock handling Peng Fan (OSS)
2026-11-02 23:44 ` [PATCH v2 04/11] gpio: vf610: drop unneeded header Peng Fan (OSS)
2026-11-02 23:44 ` [PATCH v2 05/11] gpio: vf610: drop unnecessary wrappers Peng Fan (OSS)
2026-11-02 23:44 ` [PATCH v2 06/11] MAINTAINERS: Update i.MX GPIO entry Peng Fan (OSS)
2026-11-03 11:47 ` Krzysztof Kozlowski
2026-11-02 23:44 ` [PATCH v2 07/11] arm64: dts: imx8ulp: fix gpio clocks Peng Fan (OSS)
2026-11-02 23:44 ` [PATCH v2 08/11] arm64: dts: imx93: " Peng Fan (OSS)
2026-11-02 23:44 ` [PATCH v2 09/11] arm64: dts: imx95: " Peng Fan (OSS)
2026-11-02 23:44 ` [PATCH v2 10/11] arm64: dts: imx952: " Peng Fan (OSS)
2026-11-02 23:44 ` [PATCH v2 11/11] arm64: dts: imx94: add clocks for gpio controller Peng Fan (OSS)
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=sashiko-outbox-194355@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Frank.Li@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=imx@lists.linux.dev \
--cc=linux-gpio@vger.kernel.org \
--cc=peng.fan@oss.nxp.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 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.