On Mon, Dec 17, 2018 at 11:38:07AM +0000, Fabrizio Castro wrote: > Hello Simon, > > Thank you for your feedback! > > > From: Simon Horman <horms@xxxxxxxxxxxx> > > Sent: 17 December 2018 10:22 > > To: Fabrizio Castro <fabrizio.castro@xxxxxxxxxxxxxx> > > Subject: Re: [PATCH 07/17] arm64: dts: renesas: r8a774c0: Add audio support > > > > On Fri, Dec 14, 2018 at 09:37:30AM +0000, Fabrizio Castro wrote: > > > Add sound support for the RZ/G2E SoC (a.k.a. R8A774C0). > > > > > > This work is based on similar work done on the R8A77990 SoC > > > by Yoshihiro Kaneko <ykaneko0929@xxxxxxxxx>. > > > > > > Signed-off-by: Fabrizio Castro <fabrizio.castro@xxxxxxxxxxxxxx> > > > --- > > > arch/arm64/boot/dts/renesas/r8a774c0.dtsi | 241 ++++++++++++++++++++++++++++++ > > > 1 file changed, 241 insertions(+) > > > > > > diff --git a/arch/arm64/boot/dts/renesas/r8a774c0.dtsi b/arch/arm64/boot/dts/renesas/r8a774c0.dtsi > > > index 9bd66b1..35b27b8 100644 > > > --- a/arch/arm64/boot/dts/renesas/r8a774c0.dtsi > > > +++ b/arch/arm64/boot/dts/renesas/r8a774c0.dtsi > > > @@ -917,6 +917,247 @@ > > > status = "disabled"; > > > }; > > > > > > +rcar_sound: sound@ec500000 { > > > +/* > > > + * #sound-dai-cells is required > > > + * > > > + * Single DAI : #sound-dai-cells = <0>;<&rcar_sound>; > > > + * Multi DAI : #sound-dai-cells = <1>;<&rcar_sound N>; > > > + */ > > > +/* > > > + * #clock-cells is required for audio_clkout0/1/2/3 > > > + * > > > + * clkout: #clock-cells = <0>;<&rcar_sound>; > > > + * clkout0/1/2/3: #clock-cells = <1>;<&rcar_sound N>; > > > + */ > > > +compatible = "renesas,rcar_sound-r8a774c0", > > > + "renesas,rcar_sound-gen3"; > > > +reg =<0 0xec500000 0 0x1000>, /* SCU */ > > > +<0 0xec5a0000 0 0x100>, /* ADG */ > > > +<0 0xec540000 0 0x1000>, /* SSIU */ > > > +<0 0xec541000 0 0x280>, /* SSI */ > > > +<0 0xec760000 0 0x200>; /* Audio DMAC peri peri*/ > > > +reg-names = "scu", "adg", "ssiu", "ssi", "audmapp"; > > > + > > > +clocks = <&cpg CPG_MOD 1005>, > > > + <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>, > > > + <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>, > > > + <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>, > > > + <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>, > > > + <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>, > > > + <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>, > > > + <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>, > > > + <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>, > > > + <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>, > > > + <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>, > > > + <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>, > > > + <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>, > > > + <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>, > > > + <&audio_clk_a>, <&audio_clk_b>, > > > + <&audio_clk_c>, > > > + <&cpg CPG_CORE R8A774C0_CLK_ZA2>; > > > +clock-names = "ssi-all", > > > + "ssi.9", "ssi.8", "ssi.7", "ssi.6", > > > + "ssi.5", "ssi.4", "ssi.3", "ssi.2", > > > + "ssi.1", "ssi.0", > > > + "src.9", "src.8", "src.7", "src.6", > > > + "src.5", "src.4", "src.3", "src.2", > > > + "src.1", "src.0", > > > + "mix.1", "mix.0", > > > + "ctu.1", "ctu.0", > > > + "dvc.0", "dvc.1", > > > + "clk_a", "clk_b", "clk_c", "clk_i"; > > > +power-domains = <&sysc R8A774C0_PD_ALWAYS_ON>; > > > +resets = <&cpg 1005>, > > > + <&cpg 1006>, <&cpg 1007>, > > > + <&cpg 1008>, <&cpg 1009>, > > > + <&cpg 1010>, <&cpg 1011>, > > > + <&cpg 1012>, <&cpg 1013>, > > > + <&cpg 1014>, <&cpg 1015>; > > > +reset-names = "ssi-all", > > > + "ssi.9", "ssi.8", "ssi.7", "ssi.6", > > > + "ssi.5", "ssi.4", "ssi.3", "ssi.2", > > > + "ssi.1", "ssi.0"; > > > +status = "disabled"; > > > + > > > +rcar_sound,dvc { > > > +dvc0: dvc-0 { > > > +dmas = <&audma0 0xbc>; > > > +dma-names = "tx"; > > > +}; > > > +dvc1: dvc-1 { > > > +dmas = <&audma0 0xbe>; > > > +dma-names = "tx"; > > > +}; > > > +}; > > > + > > > +rcar_sound,mix { > > > +mix0: mix-0 { }; > > > +mix1: mix-1 { }; > > > +}; > > > + > > > +rcar_sound,ctu { > > > +ctu00: ctu-0 { }; > > > +ctu01: ctu-1 { }; > > > +ctu02: ctu-2 { }; > > > +ctu03: ctu-3 { }; > > > +ctu10: ctu-4 { }; > > > +ctu11: ctu-5 { }; > > > +ctu12: ctu-6 { }; > > > +ctu13: ctu-7 { }; > > > +}; > > > + > > > +rcar_sound,src { > > > +src0: src-0 { > > > +interrupts = <GIC_SPI 352 IRQ_TYPE_LEVEL_HIGH>; > > > +dmas = <&audma0 0x85>, <&audma0 0x9a>; > > > +dma-names = "rx", "tx"; > > > +}; > > > > I am a little confused here as the table i48.4 of User's Manual: Hardware > > v0.61 lists DMAR 0x85 and 0x9a as being unavailable on RZ/G2E. Likewise for > > other DMARs used below. And likewise for the R-Car E3 but in that case the > > documentation is corrected by an Errata dated 24th Aug 2018. Is it safe to > > assume that the RZ/G2E documentation is in error in this regards? > > Yeah, the current version of chapter 48 was based on top of R-Car Gen 3 manual, version 1.00. > The new version will be based on version 1.50 of the R-Car Gen3 manual, and therefore they > should rectify this. Thanks, in that case looks good to me but I will wait to see if there are other reviews before applying. Reviewed-by: Simon Horman <horms+renesas@xxxxxxxxxxxx>