From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Magnus <magnus.damm@gmail.com>,
Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
hoai.luu.ub@renesas.com,
Takeshi Kihara <takeshi.kihara.df@renesas.com>,
Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>,
Khiem Nguyen <khiem.nguyen.xt@renesas.com>,
Hien Dang <hien.dang.eb@renesas.com>
Subject: Re: [PATCH 3/3] arm64: dts: renesas: r8a77995: draak: Add R-Car Sound support
Date: Mon, 17 May 2021 13:46:23 +0200 [thread overview]
Message-ID: <CAMuHMdXUEOMn9x3Ga6czmw2NaAzT3LQGqxp-qmkcEuDSxd40uw@mail.gmail.com> (raw)
In-Reply-To: <87fsymci1d.wl-kuninori.morimoto.gx@renesas.com>
Hi Morimoto-san,
On Mon, May 17, 2021 at 2:37 AM Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com> wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> This patch adds R-Car Sound support for D3 draak.
Thanks for your patch!
> One note is that it is using different clock definition style
> from ulcb/salvator boards to avoid verbose clocks settings
> on rcar_sound node (see ulcb.dtsi rcar_sound::clocks).
>
> cs2000 and ADG are closs connected, and needs each other.
cross connected?
need
> ulcb/salvator boards assume drivers are probed cs2000 -> rcar_sound.
> This draak board assumes drivers are probed rcar_sound -> cs2000.
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
> .../arm64/boot/dts/renesas/r8a77995-draak.dts | 103 ++++++++++++++++++
> 1 file changed, 103 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts
> index 6783c3ad0856..591fad289802 100644
> --- a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts
> +++ b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts
> @@ -6,6 +6,11 @@
> * Copyright (C) 2017 Glider bvba
> */
>
> +/*
> + * This assumes...
> + * SW60 : 2-1
Perhaps this comment should be extended (why is this SW60
setting needed?), and moved to the audio block below?
> + */
> +
> /dts-v1/;
> #include "r8a77995.dtsi"
> @@ -347,6 +366,39 @@ eeprom@50 {
> reg = <0x50>;
> pagesize = <8>;
> };
> +
> + ak4613: codec@10 {
> + compatible = "asahi-kasei,ak4613";
> + #sound-dai-cells = <0>;
> + reg = <0x10>;
> + clocks = <&rcar_sound 0>; /* audio_clkout */
> +
> + asahi-kasei,in1-single-end;
> + asahi-kasei,in2-single-end;
> + asahi-kasei,out1-single-end;
> + asahi-kasei,out2-single-end;
> + asahi-kasei,out3-single-end;
> + asahi-kasei,out4-single-end;
> + asahi-kasei,out5-single-end;
> + asahi-kasei,out6-single-end;
> +
> + port {
> + ak4613_endpoint: endpoint {
> + remote-endpoint = <&rsnd_for_ak4613>;
> + };
> + };
The "port" node seems to be missing from the ak4613 DT bindings:
arch/arm64/boot/dts/renesas/r8a77995-draak.dt.yaml: codec@10:
'port' does not match any of the regexes:
'^asahi-kasei,in[1-2]-single-end$',
'^asahi-kasei,out[1-6]-single-end$', 'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/sound/ak4613.yaml
> +&rcar_sound {
> + pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
> + pinctrl-names = "default";
> +
> + /* Single DAI */
> + #sound-dai-cells = <0>;
arch/arm64/boot/dts/renesas/r8a77995-draak.dt.yaml: sound@ec500000:
'dais' is a required property
From schema: Documentation/devicetree/bindings/sound/renesas,rsnd.yaml
As this error is reported for all Renesas boards, perhaps the bindings
should be fixed instead?
> +
> + /* audio_clkout0/1 */
> + #clock-cells = <1>;
> + clock-frequency = <12288000 11289600>;
> +
> + status = "okay";
> +
> + ports {
> + rsnd_port0: port {
> + rsnd_for_ak4613: endpoint {
> + remote-endpoint = <&ak4613_endpoint>;
> + dai-format = "left_j";
> + bitclock-master = <&rsnd_for_ak4613>;
> + frame-master = <&rsnd_for_ak4613>;
> + playback = <&ssi3>, <&src5>, <&dvc0>;
> + capture = <&ssi4>, <&src6>, <&dvc1>;
> + };
> + };
> + };
arch/arm64/boot/dts/renesas/r8a77995-draak.dt.yaml: sound@ec500000:
'ports' does not match any of the regexes: '^rcar_sound,ctu$',
'^rcar_sound,dai$', '^rcar_sound,dvc$', '^rcar_sound,mix$',
'^rcar_sound,src$', '^rcar_sound,ssi$', '^rcar_sound,ssiu$',
'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/sound/renesas,rsnd.yaml
> +};
> +
> +&ssi4 {
> + shared-pin;
> +};
> +
> &pfc {
> avb0_pins: avb {
> groups = "avb0_link", "avb0_mdio", "avb0_mii";
> @@ -449,6 +541,17 @@ sdhi2_pins_uhs: sd2_uhs {
> power-source = <1800>;
> };
>
> + sound_pins: sound {
> + groups = "ssi34_ctrl", "ssi3_data", "ssi4_data_a";
> + function = "ssi";
> + };
> +
> + sound_clk_pins: sound-clk {
> + groups = "audio_clk_a", "audio_clk_b",
> + "audio_clkout", "audio_clkout1";
> + function = "audio_clk";
> + };
> +
Pin control looks good to me.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
prev parent reply other threads:[~2021-05-17 11:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-17 0:36 [PATCH 0/3] arm64: dts: renesas: r8a77995: draak: add R-Car Sound support Kuninori Morimoto
2021-05-17 0:36 ` [PATCH 1/3] clk: renesas: r8a77995: Add ZA2 clock Kuninori Morimoto
2021-05-17 9:36 ` Geert Uytterhoeven
2021-05-17 22:20 ` Kuninori Morimoto
2021-05-24 0:57 ` Kuninori Morimoto
2021-05-25 7:42 ` Geert Uytterhoeven
2021-05-17 0:36 ` [PATCH 2/3] arm64: dts: renesas: r8a77995: add R-Car Sound support Kuninori Morimoto
2021-05-17 11:33 ` Geert Uytterhoeven
2021-05-17 22:27 ` Kuninori Morimoto
2021-05-24 5:43 ` Kuninori Morimoto
2021-05-25 7:40 ` Geert Uytterhoeven
2021-05-25 22:53 ` Kuninori Morimoto
2021-05-17 0:37 ` [PATCH 3/3] arm64: dts: renesas: r8a77995: draak: Add " Kuninori Morimoto
2021-05-17 11:46 ` Geert Uytterhoeven [this message]
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=CAMuHMdXUEOMn9x3Ga6czmw2NaAzT3LQGqxp-qmkcEuDSxd40uw@mail.gmail.com \
--to=geert@linux-m68k.org \
--cc=harunobu.kurokawa.dn@renesas.com \
--cc=hien.dang.eb@renesas.com \
--cc=hoai.luu.ub@renesas.com \
--cc=kazuya.mizuguchi.ks@renesas.com \
--cc=khiem.nguyen.xt@renesas.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=takeshi.kihara.df@renesas.com \
--cc=yoshihiro.shimoda.uh@renesas.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;
as well as URLs for NNTP newsgroup(s).