From: sashiko-bot@kernel.org
To: "H. Nikolaus Schaller" <hns@goldelico.com>
Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org,
linux-sound@vger.kernel.org, robh@kernel.org,
conor+dt@kernel.org, lee@kernel.org
Subject: Re: [PATCH v2 17/20] ARM: dts: omap3pandora: Describe sound card
Date: Tue, 24 Nov 2026 07:47:46 +0000 [thread overview]
Message-ID: <sashiko-outbox-230672@kernel.org> (raw)
In-Reply-To: <0269f30c3f766431c0c20a36fd6e2b2dce1b3f2f.1795505160.git.hns@goldelico.com>
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Medium] ARM: dts: omap3pandora: incomplete and unused sound-dai
property on sound node
- [Medium] ASoC: ti: omap3pandora: built-in driver fails to bind DT
McBSP DAIs
- [Low] ARM: dts: omap3pandora: redundant clocks properties on mcbsp2
--
commit 51a8d5eee5be53980684a82cdf4795c967918b82
Author: Stefan Leichter <sle85276@gmx.de>
ARM: dts: omap3pandora: Describe sound card
This commit adds the OpenPandora sound card node and McBSP2 DAI properties
to omap3-pandora-common.dtsi.
> diff --git a/arch/arm/boot/dts/ti/omap/omap3-pandora-common.dtsi b/arch/arm/boot/dts/ti/omap/omap3-pandora-common.dtsi
> index 6e349f7ae6936..a5633d93547a3 100644
> --- a/arch/arm/boot/dts/ti/omap/omap3-pandora-common.dtsi
> +++ b/arch/arm/boot/dts/ti/omap/omap3-pandora-common.dtsi
> @@ -69,6 +69,41 @@ dac: pcm1773-codec {
> vcc-supply = <&vsim>;
> enable-gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>; /* GPIO 118 */
> status = "okay";
> + #sound-dai-cells = <0>;
> + };
> +
> + sound: sound {
> + compatible = "openpandora,omap3pandora-sound";
> + status = "okay";
> +
> + label = "OpenPandora";
> +
> + amp-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
> + amp-supply = <&aux_5v>;
> +
> + widgets =
> + "Line", "Line Out",
> + "Line", "Line In",
> + "Headphone", "Headphone Jack",
> + "Microphone", "Mic (internal)",
> + "Microphone", "Mic (external)";
> +
> + routing =
> + "DAC1", "APLL Enable",
> + "DAC2", "APLL Enable",
> + "Headphone Amplifier", "VOUTL",
> + "Headphone Amplifier", "VOUTR",
> + "Line Out", "VOUTL",
> + "Line Out", "VOUTR",
> + "Headphone Jack", "Headphone Amplifier",
> + "AUXL", "Line In",
> + "AUXR", "Line In",
> + "MAINMIC", "Mic (internal)",
> + "Mic (internal)", "Mic Bias 1",
> + "SUBMIC", "Mic (external)",
> + "Mic (external)", "Mic Bias 2";
> +
> + sound-dai = <&mcbsp2>, <&dac>;
[Severity: Medium]
Is sound-dai here both incomplete for the capture link and unused by
omap3pandora_probe()?
The sound card has both a playback link (McBSP2 to PCM1773) and a capture
link (McBSP4 to TWL4030), but sound-dai and #sound-dai-cells only cover
&mcbsp2 and &dac, omitting &mcbsp4 and the TWL4030 codec. In addition,
omap3pandora_probe() in sound/soc/ti/omap3pandora.c only parses label,
widgets and routing, and never reads sound-dai to populate the CPU,
platform or codec of_node pointers in omap3pandora_dai[]. As a result,
component matching still relies on hardcoded device names in
omap3pandora_dai[], including the non-generic pcm1773-codec DT node name.
[Severity: Medium]
Can this sound card probe when CONFIG_SND_SOC_OMAP3_PANDORA=y?
Because omap3pandora_probe() does not populate dai_link->cpus->of_node or
dai_link->platforms->of_node from sound-dai, ASoC matches the McBSP DAIs
using the hardcoded names in omap3pandora_dai[] from commit "ASoC: ti:
omap3pandora: Convert sound card to DT":
sound/soc/ti/omap3pandora.c:
#if IS_BUILTIN(CONFIG_SND_SOC_OMAP3_PANDORA)
SND_SOC_DAILINK_DEFS(out,
DAILINK_COMP_ARRAY(COMP_CPU("omap-mcbsp.2")),
DAILINK_COMP_ARRAY(COMP_CODEC("pcm1773-codec", "pcm1773")),
DAILINK_COMP_ARRAY(COMP_PLATFORM("omap-mcbsp.2")));
SND_SOC_DAILINK_DEFS(in,
DAILINK_COMP_ARRAY(COMP_CPU("omap-mcbsp.4")),
DAILINK_COMP_ARRAY(COMP_CODEC("twl4030-codec", "twl4030-hifi")),
DAILINK_COMP_ARRAY(COMP_PLATFORM("omap-mcbsp.4")));
#else /* IS_BUILTIN(CONFIG_SND_SOC_OMAP3_PANDORA) */
On a Device Tree boot, the McBSP devices are always registered as
49022000.mcbsp and 49026000.mcbsp regardless of whether the sound driver
is built-in or modular, so a built-in driver will never find omap-mcbsp.2
or omap-mcbsp.4 and card registration will defer indefinitely.
[ ... ]
> @@ -736,6 +771,9 @@ &mcbsp1 {
> /* audio DAC */
> &mcbsp2 {
> status = "okay";
> + #sound-dai-cells = <0>;
> + clocks = <&mcbsp2_fck>, <&mcbsp2_ick>;
> + clock-names = "fck", "ick";
> };
[Severity: Low]
This isn't a bug, but clocks and clock-names on &mcbsp2 duplicate the
exact same properties already defined in the base mcbsp2 node in
arch/arm/boot/dts/ti/omap/omap3.dtsi.
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1795505160.git.hns@goldelico.com?part=17
next prev parent reply other threads:[~2026-11-24 7:47 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 7:25 [PATCH v2 00/20] ARM: omap3: pandora: Modernize audio and backlight to use Device Tree to finally remove pdata-quirks H. Nikolaus Schaller
2026-11-24 7:25 ` [PATCH v2 01/20] dt-bindings: gpio: twl4030: Document REGEN GPIO H. Nikolaus Schaller
2026-11-24 7:25 ` [PATCH v2 02/20] gpio: twl4030: Support " H. Nikolaus Schaller
2026-11-24 7:43 ` sashiko-bot
2026-11-24 7:25 ` [PATCH v2 03/20] ASoC: twl4030: Allow APLL rate selection through set_sysclk() H. Nikolaus Schaller
2026-11-24 7:25 ` [PATCH v2 04/20] dt-bindings: sound: pcm1754: Describe PCM1773 H. Nikolaus Schaller
2026-11-24 7:25 ` [PATCH v2 05/20] ASoC: codecs: pcm1754: Add PCM1773 support H. Nikolaus Schaller
2026-11-24 7:25 ` [PATCH v2 06/20] dt-bindings: sound: Document OpenPandora sound card H. Nikolaus Schaller
2026-11-24 7:40 ` sashiko-bot
2026-11-24 7:25 ` [PATCH v2 07/20] ASoC: ti: omap3pandora: Convert sound card to DT H. Nikolaus Schaller
2026-11-24 7:45 ` sashiko-bot
2026-11-24 7:25 ` [PATCH v2 08/20] dt-bindings: mfd: twl4030: Document 64-cycle PWM H. Nikolaus Schaller
2026-11-24 7:25 ` [PATCH v2 09/20] pwm: twl: Support 64-cycle PWM frame H. Nikolaus Schaller
2026-11-24 7:37 ` sashiko-bot
2026-11-24 7:25 ` [PATCH v2 10/20] dt-bindings: backlight: pwm: Document enable guard H. Nikolaus Schaller
2026-11-24 7:25 ` [PATCH v2 11/20] backlight: pwm: Support enable guard period H. Nikolaus Schaller
2026-11-24 7:36 ` sashiko-bot
2026-11-24 7:25 ` [PATCH v2 12/20] drm/panel: td043mtea1: Attach DT backlight H. Nikolaus Schaller
2026-11-24 7:25 ` [PATCH v2 13/20] ARM: dts: omap3pandora: Disable unused DMA channels H. Nikolaus Schaller
2026-11-24 7:25 ` [PATCH v2 14/20] ARM: dts: omap3-pandora: Model LCD power enable dependencies H. Nikolaus Schaller
2026-11-24 7:45 ` sashiko-bot
2026-11-24 7:25 ` [PATCH v2 15/20] ARM: dts: omap3pandora: Enable audio interfaces H. Nikolaus Schaller
2026-11-24 7:25 ` [PATCH v2 16/20] ARM: dts: omap3pandora: Describe PCM1773 H. Nikolaus Schaller
2026-11-24 7:40 ` sashiko-bot
2026-11-24 7:25 ` [PATCH v2 17/20] ARM: dts: omap3pandora: Describe sound card H. Nikolaus Schaller
2026-11-24 7:47 ` sashiko-bot [this message]
2026-11-24 7:25 ` [PATCH v2 18/20] ARM: dts: omap3pandora: Switch backlight to PWM H. Nikolaus Schaller
2026-11-24 7:46 ` sashiko-bot
2026-11-24 7:25 ` [PATCH v2 19/20] backlight: Remove legacy Pandora driver H. Nikolaus Schaller
2026-11-24 7:26 ` [PATCH v2 20/20] ARM: OMAP2+: Remove Pandora platform-data quirks H. Nikolaus Schaller
2026-11-24 7:47 ` [PATCH v2 00/20] ARM: omap3: pandora: Modernize audio and backlight to use Device Tree to finally remove pdata-quirks sashiko-bot
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-230672@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=hns@goldelico.com \
--cc=lee@kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--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