Devicetree
 help / color / mirror / Atom feed
From: Frank Li <Frank.li@oss.nxp.com>
To: sashiko-reviews@lists.linux.dev
Cc: Stefano Radaelli <stefano.radaelli21@gmail.com>,
	Frank.Li@kernel.org, imx@lists.linux.dev, robh@kernel.org,
	devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 05/15] arm64: dts: freescale: imx8mn-var-som: Add support for WM8904 audio codec
Date: Mon, 6 Jul 2026 10:00:01 -0500	[thread overview]
Message-ID: <akvC8UV5N6Tpk0_h@SMW015318> (raw)
In-Reply-To: <20260706100948.DDA391F000E9@smtp.kernel.org>

On Mon, Jul 06, 2026 at 10:09:47AM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] The `simple-audio-card,routing` property maps `Microphone Jack` to `IN1L` and `IN1R` but omits the connection to the `MICBIAS` supply, which will leave standard electret microphones unpowered.
> --
>
> commit 78e4da0f71f2e53ae4312cbe5ceecb0f6f2345db
> Author: Stefano Radaelli <stefano.r@variscite.com>
>
> arm64: dts: freescale: imx8mn-var-som: Add support for WM8904 audio codec
>
> This commit adds support for the WM8904 audio codec on the VAR-SOM-MX8MN board.
> It configures the device on the I2C bus, enables the SAI peripheral, and adds a
> simple-audio-card sound node to expose the sound card to the system.
>
> > diff --git a/arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi
> > index 09146ab763858..e2e04ad2fbb65 100644
> > --- a/arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi
> > +++ b/arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi
>
> [ ... ]
>
> > @@ -42,6 +50,34 @@ reg_phy_vddio: regulator-phy-vddio {
> >  		regulator-min-microvolt = <1800000>;
> >  		regulator-max-microvolt = <1800000>;
> >  	};
> > +
> > +	sound {
> > +		compatible = "simple-audio-card";
> > +		simple-audio-card,bitclock-master = <&codec_dai>;
> > +		simple-audio-card,format = "i2s";
> > +		simple-audio-card,frame-master = <&codec_dai>;
> > +		simple-audio-card,mclk-fs = <256>;
> > +		simple-audio-card,name = "wm8904-audio";
> > +		simple-audio-card,routing =
> > +			"Headphone Jack", "HPOUTL",
> > +			"Headphone Jack", "HPOUTR",
> > +			"IN2L", "Line In Jack",
> > +			"IN2R", "Line In Jack",
> > +			"IN1L", "Microphone Jack",
> > +			"IN1R", "Microphone Jack";
> [Severity: Medium]
> Will standard electret microphones remain unpowered with this routing?
>
> The routing maps "Microphone Jack" to "IN1L" and "IN1R", but omits a link to
> the "MICBIAS" supply (e.g., "Microphone Jack", "MICBIAS"). Because "MICBIAS"
> is defined as a DAPM supply widget in the codec driver, DAPM will not enable
> it unless it has an explicit routing link connecting it to the active audio
> path. This could leave the microphone without its required bias voltage when
> recording.

Is this true?

Frank

>
> > +		simple-audio-card,widgets =
> > +			"Microphone", "Microphone Jack",
> > +			"Headphone", "Headphone Jack",
> > +			"Line", "Line In Jack";
> > +
> > +		codec_dai: simple-audio-card,codec {
> > +			sound-dai = <&wm8904>;
> > +		};
>
> --
> Sashiko AI review · https://sashiko.dev/#/patchset/cover.1783330236.git.stefano.r@variscite.com?part=5

  reply	other threads:[~2026-07-06 15:00 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-06  9:34 [PATCH v2 00/15] arm64: dts: freescale: imx8mn-var-som: Align SOM and Symphony DTSs Stefano Radaelli
2026-07-06  9:34 ` [PATCH v2 01/15] arm64: dts: freescale: imx8mn-var-som: Move UART4 description to Symphony Stefano Radaelli
2026-07-06 11:16   ` Peng Fan
2026-07-06  9:34 ` [PATCH v2 02/15] arm64: dts: freescale: imx8mn-var-som: move uSD support to carrier boards Stefano Radaelli
2026-07-06 11:18   ` Peng Fan
2026-07-06  9:34 ` [PATCH v2 03/15] arm64: dts: freescale: imx8mn-var-som: Align fsl,pins tables Stefano Radaelli
2026-07-06  9:34 ` [PATCH v2 04/15] arm64: dts: freescale: imx8mn-var-som: Update FEC support with MaxLinear PHY Stefano Radaelli
2026-07-06 11:21   ` Peng Fan
2026-07-06  9:34 ` [PATCH v2 05/15] arm64: dts: freescale: imx8mn-var-som: Add support for WM8904 audio codec Stefano Radaelli
2026-07-06 10:09   ` sashiko-bot
2026-07-06 15:00     ` Frank Li [this message]
2026-07-06  9:34 ` [PATCH v2 06/15] arm64: dts: freescale: imx8mn-var-som: Add MCP251xFD CAN controller Stefano Radaelli
2026-07-06 12:34   ` Peng Fan
2026-07-06  9:34 ` [PATCH v2 07/15] arm64: dts: freescale: imx8mn-var-som: Rework WiFi/BT and add legacy dts Stefano Radaelli
2026-07-06 10:26   ` sashiko-bot
2026-07-06  9:34 ` [PATCH v2 08/15] arm64: dts: freescale: imx8mn-var-som: drop duplicate USB OTG node Stefano Radaelli
2026-07-06 12:34   ` Peng Fan
2026-07-06  9:34 ` [PATCH v2 09/15] arm64: dts: freescale: imx8mn-var-som: enable FlexSPI interface Stefano Radaelli
2026-07-06 10:38   ` sashiko-bot
2026-07-06  9:34 ` [PATCH v2 10/15] arm64: dts: imx8mn-var-som-symphony: Add TPM2 support Stefano Radaelli
2026-07-06 10:47   ` sashiko-bot
2026-07-06  9:34 ` [PATCH v2 11/15] arm64: dts: imx8mn-var-som-symphony: Enable I2C4 Stefano Radaelli
2026-07-06 12:36   ` Peng Fan
2026-07-06  9:34 ` [PATCH v2 12/15] arm64: dts: imx8mn-var-som-symphony: add wakeup sources Stefano Radaelli
2026-07-06 12:37   ` Peng Fan
2026-07-06  9:34 ` [PATCH v2 13/15] arm64: dts: imx8mn-var-som-symphony: keep RGB_SEL low Stefano Radaelli
2026-07-06 12:37   ` Peng Fan
2026-07-06  9:34 ` [PATCH v2 14/15] arm64: dts: imx8mn-var-som-symphony: enable PWM1 Stefano Radaelli
2026-07-06 12:38   ` Peng Fan
2026-07-06  9:34 ` [PATCH v2 15/15] arm64: dts: imx8mn-var-som-symphony: Disable internal RTC Stefano Radaelli
2026-07-06 12:38   ` Peng Fan

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=akvC8UV5N6Tpk0_h@SMW015318 \
    --to=frank.li@oss.nxp.com \
    --cc=Frank.Li@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=imx@lists.linux.dev \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=stefano.radaelli21@gmail.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