Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
From: Frank Li <Frank.li@oss.nxp.com>
To: Stefano Radaelli <stefano.radaelli21@gmail.com>
Cc: sashiko-reviews@lists.linux.dev, 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: Tue, 7 Jul 2026 13:50:10 -0500	[thread overview]
Message-ID: <ak1KYjOUWDy6po5j@SMW015318> (raw)
In-Reply-To: <akz_Lr1bRSEE5rhC@Lord-Beerus.station>

On Tue, Jul 07, 2026 at 03:29:18PM +0200, Stefano Radaelli wrote:
> Hi Frank,
>
> On Mon, Jul 06, 2026 at 10:00:01AM -0500, Frank Li wrote:
> > 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
> >
>
> Thanks for pointing this out.
>
> This audio routing is not new for this board. It follows the same WM8904
> routing that we have been using on our other platforms for quite some
> time, and we are not aware of any reported issues related to the
> analogue microphone path.
>
> If adding an explicit route to MICBIAS is indeed required by the
> codec driver, then this would not be specific to this board but would
> potentially apply to all of our WM8904-based platforms.
>
> I'd prefer not to introduce this functional change as part of this DTS
> alignment series without validating it across all affected platforms.
> If needed, we can investigate the MICBIAS routing separately and
> submit a dedicated fix covering all WM8904-based boards.

Okay, thanks.

Frank

>
> Thanks,
> Stefano

  reply	other threads:[~2026-07-07 18:50 UTC|newest]

Thread overview: 33+ 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
2026-07-07 13:29       ` Stefano Radaelli
2026-07-07 18:50         ` 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=ak1KYjOUWDy6po5j@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