From: Conor Dooley <conor@kernel.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: sashiko-reviews@lists.linux.dev,
John Madieu <john.madieu.xa@bp.renesas.com>,
conor+dt@kernel.org, wsa+renesas@sang-engineering.com,
devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v4 1/8] dt-bindings: clock: renesas: Add audio clock inputs for RZ/V2H family
Date: Wed, 27 May 2026 17:36:12 +0100 [thread overview]
Message-ID: <20260527-botanical-pushy-b9cffbe9ea16@spud> (raw)
In-Reply-To: <CAMuHMdVtLorK+Hjc-ZWCAn273ZN6yUEdyjxpJ5ynZ09sWqcBdg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3789 bytes --]
On Wed, May 27, 2026 at 05:45:12PM +0200, Geert Uytterhoeven wrote:
> Hi Conor,
>
> On Wed, 27 May 2026 at 16:54, Conor Dooley <conor@kernel.org> wrote:
> > On Wed, May 27, 2026 at 02:44:51PM +0200, Geert Uytterhoeven wrote:
> > > On Mon, 25 May 2026 at 18:57, Conor Dooley <conor@kernel.org> wrote:
> > > > On Mon, May 25, 2026 at 11:19:19AM +0000, sashiko-bot@kernel.org wrote:
> > > > > Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> > > > > - [Medium] Strict array ordering prevents the independent use of newly added optional clocks.
> > > > > --
> > > > >
> > > > > commit 3723d06ba80fe72a3e7492af52e5e54aa0f36b03
> > > > > Author: John Madieu <john.madieu.xa@bp.renesas.com>
> > > > >
> > > > > dt-bindings: clock: renesas: Add audio clock inputs for RZ/V2H family
> > > > >
> > > > > This commit updates the clock bindings for the RZ/V2H family SoCs to include
> > > > > the optional external audio clock inputs AUDIO_CLKB and AUDIO_CLKC. The
> > > > > AUDIO_CLKA input is fed internally and thus does not require a binding entry.
> > > > >
> > > > > > diff --git a/Documentation/devicetree/bindings/clock/renesas,rzv2h-cpg.yaml b/Documentation/devicetree/bindings/clock/renesas,rzv2h-cpg.yaml
> > > > > > --- a/Documentation/devicetree/bindings/clock/renesas,rzv2h-cpg.yaml
> > > > > > +++ b/Documentation/devicetree/bindings/clock/renesas,rzv2h-cpg.yaml
> > > > > > @@ -26,16 +26,22 @@ properties:
> > > > > > maxItems: 1
> > > > > >
> > > > > > clocks:
> > > > > > + minItems: 3
> > > > > > items:
> > > > > > - description: AUDIO_EXTAL clock input
> > > > > > - description: RTXIN clock input
> > > > > > - description: QEXTAL clock input
> > > > > > + - description: AUDIO_CLKB clock input
> > > > > > + - description: AUDIO_CLKC clock input
> > > > > >
> > > > > > clock-names:
> > > > > > + minItems: 3
> > > > > > items:
> > > > > > - const: audio_extal
> > > > > > - const: rtxin
> > > > > > - const: qextal
> > > > > > + - const: audio_clkb
> > > > > > + - const: audio_clkc
> > > > >
> > > > > [Severity: Medium]
> > > > > Will this strict array ordering prevent the independent use of the newly
> > > > > added optional clocks?
> > > > >
> > > > > Because JSON schema validates arrays strictly by position based on the items
> > > > > list, if a hardware board connects AUDIO_CLKC but does not connect AUDIO_CLKB,
> > > > > the device tree node would provide an array of 4 clocks where the 4th name
> > > > > is audio_clkc.
> > > > >
> > > > > When dt_binding_check evaluates this, won't it check the 4th element against
> > > > > the schema's expectation of audio_clkb and fail, incorrectly rejecting a valid
> > > > > hardware configuration?
> > > > >
> > > > > Should this use an anyOf block enumerating the valid permutations of optional
> > > > > clocks to avoid forcing users to write incorrect device trees to pass
> > > > > validation?
> > > >
> > > > Seems like a valid question to me. Can be solved by making the second
> > > > last clock an enum.
> > >
> > > Calling them optional may be a misnomer: these pins are present.
> > > Typically we provide zero rate fixed clocks for such clocks in the
> > > SoC .dtsi, to be filled in or replaced by the board .dts.
> >
> > IOW, either both clocks will be provided or none will be?
>
> Exactly, see the first hunk of "[PATCH v4 3/8] arm64: dts: renesas:
> rzv2h: Add audio clock inputs" later in this series.
> https://lore.kernel.org/20260525110603.4018170-4-john.madieu.xa@bp.renesas.com
In that case,
Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: not-applicable
Cheers,
Conor.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-05-27 16:36 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-25 11:05 [PATCH v4 0/8] arm64: dts: renesas: Add RZ/G3E audio enablement John Madieu
2026-05-25 11:05 ` [PATCH v4 1/8] dt-bindings: clock: renesas: Add audio clock inputs for RZ/V2H family John Madieu
2026-05-25 11:19 ` sashiko-bot
2026-05-25 16:56 ` Conor Dooley
2026-05-27 12:44 ` Geert Uytterhoeven
2026-05-27 14:54 ` Conor Dooley
2026-05-27 15:45 ` Geert Uytterhoeven
2026-05-27 16:36 ` Conor Dooley [this message]
2026-06-04 11:39 ` Geert Uytterhoeven
2026-05-27 12:45 ` Geert Uytterhoeven
2026-05-25 11:05 ` [PATCH v4 2/8] clk: renesas: r9a09g047: Add audio clock and reset support John Madieu
2026-06-04 11:41 ` Geert Uytterhoeven
2026-05-25 11:05 ` [PATCH v4 3/8] arm64: dts: renesas: rzv2h: Add audio clock inputs John Madieu
2026-05-25 11:41 ` sashiko-bot
2026-06-04 11:59 ` Geert Uytterhoeven
2026-05-25 11:05 ` [PATCH v4 4/8] arm64: dts: renesas: r9a09g047: Add RZ/G3E Sound support John Madieu
2026-05-27 14:22 ` Geert Uytterhoeven
2026-05-28 9:54 ` John Madieu
2026-06-04 12:25 ` Geert Uytterhoeven
2026-05-25 11:06 ` [PATCH v4 5/8] arm64: dts: renesas: rzg3e-smarc-som: Add Versa3 clock generator John Madieu
2026-06-04 12:34 ` Geert Uytterhoeven
2026-05-25 11:06 ` [PATCH v4 6/8] arm64: dts: renesas: rzg3e-smarc-som: Add I2C1 support John Madieu
2026-06-04 12:37 ` Geert Uytterhoeven
2026-05-25 11:06 ` [PATCH v4 7/8] arm64: dts: renesas: rzg3e-smarc-som: add audio pinmux definitions John Madieu
2026-05-25 12:28 ` sashiko-bot
2026-06-04 12:43 ` Geert Uytterhoeven
2026-05-25 11:06 ` [PATCH v4 8/8] arm64: dts: renesas: r9a09g047e57-smarc: add DA7212 audio codec support John Madieu
2026-05-25 12:49 ` sashiko-bot
2026-06-04 12:49 ` Geert Uytterhoeven
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=20260527-botanical-pushy-b9cffbe9ea16@spud \
--to=conor@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=john.madieu.xa@bp.renesas.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=wsa+renesas@sang-engineering.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