[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250530082910.o5jg7s5ckbm6knms@pengutronix.de>
Date: Fri, 30 May 2025 10:29:10 +0200
From: Marco Felsch <m.felsch@...gutronix.de>
To: Shengjiu Wang <shengjiu.wang@...il.com>
Cc: Shengjiu Wang <shengjiu.wang@....com>, robh@...nel.org,
krzk+dt@...nel.org, conor+dt@...nel.org, shawnguo@...nel.org,
s.hauer@...gutronix.de, kernel@...gutronix.de, festevam@...il.com,
devicetree@...r.kernel.org, imx@...ts.linux.dev,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
carlos.song@....com
Subject: Re: [PATCH v2 4/6] arm64: dts: imx943-evk: add sound-wm8962 support
On 25-05-30, Shengjiu Wang wrote:
> On Wed, May 28, 2025 at 4:37 PM Marco Felsch <m.felsch@...gutronix.de> wrote:
> >
> > Hi,
> >
> > On 25-05-28, Shengjiu Wang wrote:
> > > Add WM8962 codec connected to SAI1 interface.
> > >
> > > Signed-off-by: Shengjiu Wang <shengjiu.wang@....com>
> > > Reviewed-by: Frank Li <Frank.Li@....com>
> > > ---
> > > arch/arm64/boot/dts/freescale/imx943-evk.dts | 79 ++++++++++++++++++++
> > > 1 file changed, 79 insertions(+)
> > >
> > > diff --git a/arch/arm64/boot/dts/freescale/imx943-evk.dts b/arch/arm64/boot/dts/freescale/imx943-evk.dts
> > > index ff6e9ac5477f..da08aaa95904 100644
> > > --- a/arch/arm64/boot/dts/freescale/imx943-evk.dts
> > > +++ b/arch/arm64/boot/dts/freescale/imx943-evk.dts
> > > @@ -36,6 +36,15 @@ reg_usdhc2_vmmc: regulator-usdhc2 {
> > > enable-active-high;
> > > };
> > >
> > > + reg_audio_pwr: regulator-wm8962-pwr {
> > > + compatible = "regulator-fixed";
> > > + regulator-max-microvolt = <3300000>;
> > > + regulator-min-microvolt = <3300000>;
> > > + regulator-name = "audio-pwr";
> > > + gpio = <&pcal6416_i2c3_u171 12 GPIO_ACTIVE_HIGH>;
> > > + enable-active-high;
> > > + };
> > > +
> > > reserved-memory {
> > > ranges;
> > > #address-cells = <2>;
> > > @@ -50,6 +59,21 @@ linux,cma {
> > > };
> > > };
> > >
> > > + sound-wm8962 {
> > > + compatible = "fsl,imx-audio-wm8962";
> >
> > Out of curiosity did you considered making use of "audio-graph-card2"?
> >
> > The "fsl,imx-audio-wm8962" seems like a pretty simple sound card which
> > could be added via the "audio-graph-card2" as well. Don't get me wrong,
> > it's not wrong what you're doing here but making use of the generic
> > sound card would be nice because it's very common to just copy'n'paste
> > the audio integration from the corresponding evk.dts file.
>
> Thanks for the suggestion.
>
> WM8962 has a function .set_pll(), which hasn't been supported in
> audio-graph-card2. so we still use fsl,imx-audio-wm8962.
Thanks for the explanation.
Regards,
Marco
Powered by blists - more mailing lists