From: sashiko-bot@kernel.org
To: "James Calligeros" <jcalligeros99@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 02/21] ASoC: dt-bindings: cs42l42: Document additional dai-common properties
Date: Sun, 18 Oct 2026 06:04:02 +0000 [thread overview]
Message-ID: <sashiko-outbox-175975@kernel.org> (raw)
In-Reply-To: <20261018-macaudio-v3-2-abdff7741dea@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] ASoC: dt-bindings: cs42l42: unconstrained #sound-dai-cells property
--
commit 41e0b44d1b55811c2f6af66b07ffb649188a35d3
Author: James Calligeros <jcalligeros99@gmail.com>
ASoC: dt-bindings: cs42l42: Document additional dai-common properties
This patch references dai-common.yaml# and documents #sound-dai-cells
and sound-name-prefix in the cirrus,cs42l42.yaml device tree binding.
> diff --git a/Documentation/devicetree/bindings/sound/cirrus,cs42l42.yaml b/Documentation/devicetree/bindings/sound/cirrus,cs42l42.yaml
> index ab4c7d22dc0eb..aba2121ac64a7 100644
> --- a/Documentation/devicetree/bindings/sound/cirrus,cs42l42.yaml
> +++ b/Documentation/devicetree/bindings/sound/cirrus,cs42l42.yaml
> @@ -9,6 +9,9 @@ title: Cirrus Logic CS42L42 audio CODEC
> maintainers:
> - patches@opensource.cirrus.com
>
> +allOf:
> + - $ref: dai-common.yaml#
> +
> description:
> The CS42L42 is a low-power audio codec designed for portable applications.
> It provides a high-dynamic range, stereo DAC for audio playback and a mono
> @@ -26,6 +29,10 @@ properties:
> The I2C address of the CS42L42.
> maxItems: 1
>
> + '#sound-dai-cells': true
> +
> + sound-name-prefix: true
> +
[Severity: Low]
Should '#sound-dai-cells' be constrained to const: 0 here instead of true?
In Documentation/devicetree/bindings/sound/dai-common.yaml,
'#sound-dai-cells': true is a generic placeholder, and referencing codec
schemas normally constrain the cell count to match the hardware.
In sound/soc/codecs/cs42l42.c, cs42l42_common_probe() registers a single
DAI without a custom .of_xlate_dai_name callback:
ret = devm_snd_soc_register_component(cs42l42->dev, component_drv, dai, 1);
Leaving '#sound-dai-cells' as true allows non-zero cell counts in device
tree nodes to pass schema validation while failing at runtime during
ASoC DAI phandle resolution.
Also, if additionalProperties: false at the bottom of
Documentation/devicetree/bindings/sound/cirrus,cs42l42.yaml is changed
to unevaluatedProperties: false when referencing dai-common.yaml# in
allOf, would that avoid needing to list sound-name-prefix: true here?
> VP-supply:
> description:
> VP power supply.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261018-macaudio-v3-0-abdff7741dea@gmail.com?part=2
next prev parent reply other threads:[~2026-10-18 6:04 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-18 5:53 [PATCH v3 00/21] Add speaker and headset jack support for Apple Silicon Macs James Calligeros
2026-10-18 5:53 ` [PATCH v3 01/21] ASoC: dt-bindings: cs42l84: Document sound-name-prefix property James Calligeros
2026-10-18 5:53 ` [PATCH v3 02/21] ASoC: dt-bindings: cs42l42: Document additional dai-common properties James Calligeros
2026-10-18 6:04 ` sashiko-bot [this message]
2026-10-18 5:53 ` [PATCH v3 03/21] ASoC: dt-bindings: Add binding for Apple Silicon Mac audio James Calligeros
2026-10-18 6:07 ` sashiko-bot
2026-10-18 5:53 ` [PATCH v3 04/21] ASoC: ops: Introduce 'snd_soc_ctl_activate' James Calligeros
2026-10-18 5:53 ` [PATCH v3 05/21] ASoC: ops: Introduce 'soc_set_enum_kctl' James Calligeros
2026-10-18 5:54 ` [PATCH v3 06/21] ASoC: card: Let 'fixup_controls' return errors James Calligeros
2026-10-18 5:54 ` [PATCH v3 07/21] ASoC: tas2770: Add compatible for TAS5770L James Calligeros
2026-10-18 5:54 ` [PATCH v3 08/21] ASoC: apple: Add macaudio machine driver James Calligeros
2026-10-18 5:54 ` [PATCH v3 09/21] arm64: dts: apple: t8103-jxxx: Add regulators for CS42L83 power supply James Calligeros
2026-10-18 6:04 ` sashiko-bot
2026-10-18 5:54 ` [PATCH v3 10/21] arm64: dts: apple: t8103-j274: Add speaker/headset jack nodes James Calligeros
2026-10-18 6:10 ` sashiko-bot
2026-10-18 5:54 ` [PATCH v3 11/21] arm64: dts: apple: t8103-j313: " James Calligeros
2026-10-18 6:15 ` sashiko-bot
2026-10-18 5:54 ` [PATCH v3 12/21] arm64: dts: apple: t8103-j293: " James Calligeros
2026-10-18 5:54 ` [PATCH v3 13/21] arm64: dts: apple: t8103-j45x: Add headset " James Calligeros
2026-10-18 5:54 ` [PATCH v3 14/21] arm64: dts: apple: t8112-j413: Add speaker/headset " James Calligeros
2026-10-18 5:54 ` [PATCH v3 15/21] arm64: dts: apple: t8112-j415: " James Calligeros
2026-10-18 5:54 ` [PATCH v3 16/21] arm64: dts: apple: t8112-j473: " James Calligeros
2026-10-18 5:54 ` [PATCH v3 17/21] arm64: dts: apple: t8112-j493: " James Calligeros
2026-10-18 5:54 ` [PATCH v3 18/21] arm64: dts: apple: t600x-j31x: " James Calligeros
2026-10-18 5:54 ` [PATCH v3 19/21] arm64: dts: apple: t600x-j375: " James Calligeros
2026-10-18 5:54 ` [PATCH v3 20/21] arm64: dts: apple: t602x-j41x: " James Calligeros
2026-10-18 5:54 ` [PATCH v3 21/21] arm64: dts: apple: t602x-j47x: " James Calligeros
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-175975@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jcalligeros99@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox