[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOP2_Tjg=Y4XRTT-WyHfTP_YgBx3PvXEHEbrMRgSHgY96C+_xA@mail.gmail.com>
Date: Thu, 16 Mar 2023 14:25:45 +0800
From: Tianling Shen <cnsztl@...il.com>
To: Vasily Khoruzhick <anarsoul@...il.com>
Cc: Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Heiko Stuebner <heiko@...ech.de>,
Jagan Teki <jagan@...rulasolutions.com>,
Peter Geis <pgwipeout@...il.com>, Andy Yan <andyshrk@....com>,
Brian Norris <briannorris@...omium.org>,
Chris Morgan <macromorgan@...mail.com>,
Sebastian Reichel <sebastian.reichel@...labora.com>,
Andrew Lunn <andrew@...n.ch>,
Michael Riesch <michael.riesch@...fvision.net>,
Maya Matuszczyk <maccraft123mc@...il.com>,
Andrew Powers-Holmes <aholmes@...om.net>,
Sascha Hauer <s.hauer@...gutronix.de>,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 5/5] arm64: dts: rockchip: enable rk809 audio codec on the
NanoPi R5 series
Hi,
On Thu, Mar 16, 2023 at 7:54 AM Vasily Khoruzhick <anarsoul@...il.com> wrote:
>
> On Wed, Mar 15, 2023 at 9:03 AM Tianling Shen <cnsztl@...il.com> wrote:
>
> Hi Tianling,
>
> > + rk809-sound {
>
> There is no audio jack on my R5S, see [1] and I don't see it on R5C
> either, see [2]. I don't see audio output on the pin header either.
> How is it supposed to work?
I was confused by the vendor dts. I found them enabled rk809 audio
codec [1],but also disabled
the I2S1 TDM audio controller. I'm not sure what they want to do.
But from my side I agree this should not be added. And the i2s1_8ch
node in current dts
should be removed as well.
Thanks,
Tianling.
1. https://github.com/friendlyarm/kernel-rockchip/blob/2b22fccccb0c6ff18a6c952fe81e13ba4c9ba6a1/arch/arm64/boot/dts/rockchip/rk3568-nanopi5-common.dtsi#L125-L138
2. https://github.com/friendlyarm/kernel-rockchip/blob/2b22fccccb0c6ff18a6c952fe81e13ba4c9ba6a1/arch/arm64/boot/dts/rockchip/rk3568-nanopi5-common.dtsi#L592-L600
>
> > + compatible = "simple-audio-card";
> > + simple-audio-card,format = "i2s";
> > + simple-audio-card,name = "Analog RK809";
> > + simple-audio-card,mclk-fs = <256>;
> > +
> > + simple-audio-card,cpu {
> > + sound-dai = <&i2s1_8ch>;
> > + };
> > +
> > + simple-audio-card,codec {
> > + sound-dai = <&rk809>;
>
> It looks like rk809 doesn't have #sound-dai-cells property and it
> results in a warning:
>
> arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi:48.27-50.5:
> Warning (sound_dai_property): /rk809-sound/simple-audio-card,codec:
> Missing property '#sound-dai-cells' in node /i2c@...40000/pmic@20 or
> bad phandle (referred from sound-dai[0])
Yeah, I did miss some properties here. There are some minor differences between
vendor bindings and upstream ones.
>
> Regards,
> Vasily
>
> [1] https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R5S
> [2] https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R5C
Powered by blists - more mailing lists