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 11/22] arm64: dts: apple: t8103-j274: Add speaker/headset jack nodes
Date: Tue, 03 Nov 2026 08:15:56 +0000 [thread overview]
Message-ID: <sashiko-outbox-194812@kernel.org> (raw)
In-Reply-To: <20261103-macaudio-v4-11-637484efe46d@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] arm64: dts: apple: t8103-j274: unnecessary #address-cells/#size-cells in sound
- [Low] arm64: dts: apple: t8103-j274: duplicate &i2c2 and root node blocks
--
commit 5f98a7f1339930a19f607ba0ee5a326410be0b76
Author: James Calligeros <jcalligeros99@gmail.com>
arm64: dts: apple: t8103-j274: Add speaker/headset jack nodes
This commit adds the TI TAS5770L speaker amplifier and Cirrus CS42L83
headset jack codec nodes to the M1 Mac mini (J274) device tree, along
with the sound node linking them to the MCA controller.
> diff --git a/arch/arm64/boot/dts/apple/t8103-j274.dts b/arch/arm64/boot/dts/apple/t8103-j274.dts
> index 1212852251e07..2fcadd77b1c90 100644
> --- a/arch/arm64/boot/dts/apple/t8103-j274.dts
> +++ b/arch/arm64/boot/dts/apple/t8103-j274.dts
> @@ -75,4 +75,74 @@ &i2c2 {
> status = "okay";
> };
>
> +/* Audio codecs */
> +&i2c1 {
> + status = "okay";
> +
> + speaker: codec@31 {
> + compatible = "ti,tas5770l";
> + reg = <0x31>;
> + interrupts-extended = <&pinctrl_ap 182 IRQ_TYPE_LEVEL_LOW>;
> + shutdown-gpios = <&pinctrl_ap 181 GPIO_ACTIVE_HIGH>;
> + #sound-dai-cells = <0>;
> + ti,imon-slot-no = <0>;
> + ti,vmon-slot-no = <2>;
> + };
> +};
> +
> +&i2c2 {
> + status = "okay";
> +
> + jack_codec: codec@48 {
[ ... ]
> + };
> +};
> +
> +/ {
[Severity: Low]
As reported by Sashiko on v3 [1], arch/arm64/boot/dts/apple/t8103-j274.dts
already has an &i2c2 block just above &i2c1 that sets status = "okay", as
well as a root / { ... }; node at the top of the file:
/ {
compatible = "apple,j274", "apple,t8103", "apple,arm-platform";
model = "Apple Mac mini (M1, 2020)";
chassis-type = "desktop";
aliases {
ethernet0 = ðernet0;
};
};
Could jack_codec be placed inside the existing &i2c2 block (or replace the
earlier stub) and the sound node be placed inside the existing root / node
instead of opening duplicate &i2c2 and / blocks in the same file?
> + sound: sound {
> + compatible = "apple,j274-macaudio";
> + model = "Mac mini J274";
> +
> + #address-cells = <1>;
> + #size-cells = <0>;
[Severity: Low]
Does defining #address-cells and #size-cells in the sound node trigger a
dtc avoid_unnecessary_addr_size warning when building dtbs with W=1?
Neither the sound node nor its headphone-dai-link and speaker-dai-link
child nodes define reg, ranges, or dma-ranges properties, which causes
check_avoid_unnecessary_addr_size() in scripts/dtc/checks.c to warn:
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 removed from both the sound node
here and Documentation/devicetree/bindings/sound/apple,macaudio.yaml?
[1] https://lore.kernel.org/r/20261018-macaudio-v3-10-abdff7741dea@gmail.com
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261103-macaudio-v4-0-637484efe46d@gmail.com?part=11
next prev parent reply other threads:[~2026-11-03 8:15 UTC|newest]
Thread overview: 31+ 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-03 7:39 ` [PATCH v4 02/22] ASoC: dt-bindings: cs42l42: " James Calligeros
2026-11-03 7:51 ` sashiko-bot
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
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 [this message]
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-194812@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox