All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "James Calligeros" <jcalligeros99@gmail.com>
Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v4 04/22] ASoC: dt-bindings: Add binding for Apple Silicon Mac audio
Date: Tue, 03 Nov 2026 07:58:57 +0000	[thread overview]
Message-ID: <sashiko-outbox-194781@kernel.org> (raw)
In-Reply-To: <20261103-macaudio-v4-4-637484efe46d@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] ASoC: dt-bindings: apple,macaudio: drop unnecessary #address-cells/#size-cells
--

commit 7babcc38fd08c53ef9be38d7c4acfca64730a1a5
Author: Martin Povišer <povik+lin@cutebit.org>

ASoC: dt-bindings: Add binding for Apple Silicon Mac audio

This commit adds a Devicetree binding schema for the primary audio
subsystem found on Apple Silicon Macs, integrating the SoC I2S peripheral
and codecs for the headphone jack and speaker arrays.

> diff --git a/Documentation/devicetree/bindings/sound/apple,macaudio.yaml b/Documentation/devicetree/bindings/sound/apple,macaudio.yaml
> new file mode 100644
> index 0000000000000..7a97ce5bb7a1d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/apple,macaudio.yaml
> @@ -0,0 +1,195 @@

[ ... ]

> +  "#address-cells":
> +    const: 1
> +
> +  "#size-cells":
> +    const: 0
> +
> +  model:
> +    description:
> +      Model name for presentation to users
> +    $ref: /schemas/types.yaml#/definitions/string
> +
> +patternProperties:
> +  "^([a-z]+-)?dai-link$":
> +    description: Node for each sound peripheral such as the speaker array,
> +      headphones jack, or microphone.
> +    type: object
> +    $ref: tdm-slot.yaml#
> +    unevaluatedProperties: false

[ ... ]

> +required:
> +  - '#address-cells'
> +  - '#size-cells'
> +  - compatible
> +  - model

[Severity: Low]
Are #address-cells and #size-cells needed in this binding?

The only child nodes permitted under the sound node match the pattern
^([a-z]+-)?dai-link$ with unevaluatedProperties: false, which forbids unit
addresses in the child node names and disallows reg and ranges properties
on the child nodes. The parent sound node also sets additionalProperties:
false without allowing ranges or dma-ranges.

Because these properties are marked as required, any conforming devicetree
source file will trigger a dtc avoid_unnecessary_addr_size warning when
compiled with W=1 in scripts/dtc/checks.c:check_avoid_unnecessary_addr_size():

	FAIL(c, dti, node, "unnecessary #address-cells/#size-cells without \"ranges\", \"dma-ranges\" or child \"reg\" or \"ranges\" property");

Should #address-cells and #size-cells be dropped from properties, required,
and examples in Documentation/devicetree/bindings/sound/apple,macaudio.yaml?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261103-macaudio-v4-0-637484efe46d@gmail.com?part=4

  reply	other threads:[~2026-11-03  7:58 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03  7:39 [PATCH v4 00/22] Add speaker and headset jack support for Apple Silicon Macs James Calligeros
2026-11-03  7:39 ` [PATCH v4 01/22] ASoC: dt-bindings: cs42l84: Allow referenced dai-common properties James Calligeros
2026-11-03  7:53   ` sashiko-bot
2026-11-04 10:48   ` Krzysztof Kozlowski
2026-11-04 10:59     ` James Calligeros
2026-11-03  7:39 ` [PATCH v4 02/22] ASoC: dt-bindings: cs42l42: " James Calligeros
2026-11-03  7:51   ` sashiko-bot
2026-11-04 10:49   ` Krzysztof Kozlowski
2026-11-04 10:52     ` Krzysztof Kozlowski
2026-11-04 10:58       ` James Calligeros
2026-11-04 11:04         ` Krzysztof Kozlowski
2026-11-03  7:39 ` [PATCH v4 03/22] ASoC: dt-bindings: tdm-slot: Allow indexed TDM idle properties James Calligeros
2026-11-03  7:39 ` [PATCH v4 04/22] ASoC: dt-bindings: Add binding for Apple Silicon Mac audio James Calligeros
2026-11-03  7:58   ` sashiko-bot [this message]
2026-11-03  7:39 ` [PATCH v4 05/22] ASoC: ops: Introduce 'snd_soc_ctl_activate' James Calligeros
2026-11-03  7:39 ` [PATCH v4 06/22] ASoC: ops: Introduce 'soc_set_enum_kctl' James Calligeros
2026-11-03  8:06   ` sashiko-bot
2026-11-03  7:39 ` [PATCH v4 07/22] ASoC: card: Let 'fixup_controls' return errors James Calligeros
2026-11-03  7:39 ` [PATCH v4 08/22] ASoC: tas2770: Add compatible for TAS5770L James Calligeros
2026-11-03  7:39 ` [PATCH v4 09/22] ASoC: apple: Add macaudio machine driver James Calligeros
2026-11-03  8:28   ` sashiko-bot
2026-11-03  7:39 ` [PATCH v4 10/22] arm64: dts: apple: t8103-jxxx: Add regulators for CS42L83 power supply James Calligeros
2026-11-03  7:39 ` [PATCH v4 11/22] arm64: dts: apple: t8103-j274: Add speaker/headset jack nodes James Calligeros
2026-11-03  8:15   ` sashiko-bot
2026-11-03  7:40 ` [PATCH v4 12/22] arm64: dts: apple: t8103-j313: " James Calligeros
2026-11-03  8:36   ` sashiko-bot
2026-11-03  7:40 ` [PATCH v4 13/22] arm64: dts: apple: t8103-j293: " James Calligeros
2026-11-03  8:52   ` sashiko-bot
2026-11-03  7:40 ` [PATCH v4 14/22] arm64: dts: apple: t8103-j45x: Add headset " James Calligeros
2026-11-03  7:40 ` [PATCH v4 15/22] arm64: dts: apple: t8112-j413: Add speaker/headset " James Calligeros
2026-11-03  7:40 ` [PATCH v4 16/22] arm64: dts: apple: t8112-j415: " James Calligeros
2026-11-03  7:40 ` [PATCH v4 17/22] arm64: dts: apple: t8112-j473: " James Calligeros
2026-11-03  7:40 ` [PATCH v4 18/22] arm64: dts: apple: t8112-j493: " James Calligeros
2026-11-03  7:40 ` [PATCH v4 19/22] arm64: dts: apple: t600x-j31x: " James Calligeros
2026-11-03  7:40 ` [PATCH v4 20/22] arm64: dts: apple: t600x-j375: " James Calligeros
2026-11-03  7:40 ` [PATCH v4 21/22] arm64: dts: apple: t602x-j41x: " James Calligeros
2026-11-03  7:40 ` [PATCH v4 22/22] 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-194781@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jcalligeros99@gmail.com \
    --cc=linux-sound@vger.kernel.org \
    --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.