diff mbox series

[5/7] arm64: dts: renesas: r8a77990: Add DAB support

Message ID 20210225225147.29920-6-fabrizio.castro.jz@renesas.com
State New
Headers show
Series Add FFT Support for R-Car Gen3 devices | expand

Commit Message

Fabrizio Castro Feb. 25, 2021, 10:51 p.m. UTC
R-Car E3 (a.k.a. r8a77990) comes with the DAB hardware accelerator.
This patch adds SoC specific support.

Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
---
 arch/arm64/boot/dts/renesas/r8a77990.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

Comments

Geert Uytterhoeven Feb. 26, 2021, 9:37 a.m. UTC | #1
On Thu, Feb 25, 2021 at 11:53 PM Fabrizio Castro
<fabrizio.castro.jz@renesas.com> wrote:
> R-Car E3 (a.k.a. r8a77990) comes with the DAB hardware accelerator.

> This patch adds SoC specific support.

>

> Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>


LGTM (ignoring clock-names bikeshedding)

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
Laurent Pinchart Feb. 26, 2021, 12:47 p.m. UTC | #2
Hi Fabrizio,

Thank you for the patch.

On Thu, Feb 25, 2021 at 10:51:45PM +0000, Fabrizio Castro wrote:
> R-Car E3 (a.k.a. r8a77990) comes with the DAB hardware accelerator.

> This patch adds SoC specific support.

> 

> Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>

> ---

>  arch/arm64/boot/dts/renesas/r8a77990.dtsi | 12 ++++++++++++

>  1 file changed, 12 insertions(+)

> 

> diff --git a/arch/arm64/boot/dts/renesas/r8a77990.dtsi b/arch/arm64/boot/dts/renesas/r8a77990.dtsi

> index 5010f23fafcc..5a6b835f137a 100644

> --- a/arch/arm64/boot/dts/renesas/r8a77990.dtsi

> +++ b/arch/arm64/boot/dts/renesas/r8a77990.dtsi

> @@ -963,6 +963,18 @@ ipmmu_vp0: iommu@fe990000 {

>  			#iommu-cells = <1>;

>  		};

>  

> +		dab: dab@e6730000 {

> +			compatible = "renesas,dab-r8a77990",

> +				     "renesas,rcar-gen3-dab";

> +			reg = <0x00 0xe6730000 0x00 0x120>;


We often express the first cell as just 0.

			reg = <0 0xe6730000 0 0x120>;

> +			interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>;

> +			clocks = <&cpg CPG_MOD 1016>;


As the clock isn't documented in the documentation, I can't verify this
of the resets property :-S

> +			clock-names = "dab";


I'll comment on the clock name in the DT bindings.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>


> +			power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;

> +			resets = <&cpg 1016>;

> +			status = "disabled";

> +		};

> +

>  		avb: ethernet@e6800000 {

>  			compatible = "renesas,etheravb-r8a77990",

>  				     "renesas,etheravb-rcar-gen3";


-- 
Regards,

Laurent Pinchart
Fabrizio Castro March 1, 2021, 2:51 p.m. UTC | #3
Hi Geert,

Thanks for your feedback!

> From: Geert Uytterhoeven <geert@linux-m68k.org>

> Sent: 26 February 2021 09:38

> Subject: Re: [PATCH 5/7] arm64: dts: renesas: r8a77990: Add DAB support

> 

> On Thu, Feb 25, 2021 at 11:53 PM Fabrizio Castro

> <fabrizio.castro.jz@renesas.com> wrote:

> > R-Car E3 (a.k.a. r8a77990) comes with the DAB hardware accelerator.

> > This patch adds SoC specific support.

> >

> > Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>

> 

> LGTM (ignoring clock-names bikeshedding)


Will change the clock name as per your comments.

Thanks,
Fab

> 

> 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
Fabrizio Castro March 1, 2021, 2:53 p.m. UTC | #4
Hi Laurent,

Thanks for your feedback!

> From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> Sent: 26 February 2021 12:47

> Subject: Re: [PATCH 5/7] arm64: dts: renesas: r8a77990: Add DAB support

> 

> Hi Fabrizio,

> 

> Thank you for the patch.

> 

> On Thu, Feb 25, 2021 at 10:51:45PM +0000, Fabrizio Castro wrote:

> > R-Car E3 (a.k.a. r8a77990) comes with the DAB hardware accelerator.

> > This patch adds SoC specific support.

> >

> > Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>

> > ---

> >  arch/arm64/boot/dts/renesas/r8a77990.dtsi | 12 ++++++++++++

> >  1 file changed, 12 insertions(+)

> >

> > diff --git a/arch/arm64/boot/dts/renesas/r8a77990.dtsi

> b/arch/arm64/boot/dts/renesas/r8a77990.dtsi

> > index 5010f23fafcc..5a6b835f137a 100644

> > --- a/arch/arm64/boot/dts/renesas/r8a77990.dtsi

> > +++ b/arch/arm64/boot/dts/renesas/r8a77990.dtsi

> > @@ -963,6 +963,18 @@ ipmmu_vp0: iommu@fe990000 {

> >  			#iommu-cells = <1>;

> >  		};

> >

> > +		dab: dab@e6730000 {

> > +			compatible = "renesas,dab-r8a77990",

> > +				     "renesas,rcar-gen3-dab";

> > +			reg = <0x00 0xe6730000 0x00 0x120>;

> 

> We often express the first cell as just 0.


I will replace 0x00 with 0.

> 

> 			reg = <0 0xe6730000 0 0x120>;

> 

> > +			interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>;

> > +			clocks = <&cpg CPG_MOD 1016>;

> 

> As the clock isn't documented in the documentation, I can't verify this

> of the resets property :-S

> 

> > +			clock-names = "dab";

> 

> I'll comment on the clock name in the DT bindings.


Thanks,
Fab

> 

> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> 

> > +			power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;

> > +			resets = <&cpg 1016>;

> > +			status = "disabled";

> > +		};

> > +

> >  		avb: ethernet@e6800000 {

> >  			compatible = "renesas,etheravb-r8a77990",

> >  				     "renesas,etheravb-rcar-gen3";

> 

> --

> Regards,

> 

> Laurent Pinchart
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/renesas/r8a77990.dtsi b/arch/arm64/boot/dts/renesas/r8a77990.dtsi
index 5010f23fafcc..5a6b835f137a 100644
--- a/arch/arm64/boot/dts/renesas/r8a77990.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77990.dtsi
@@ -963,6 +963,18 @@  ipmmu_vp0: iommu@fe990000 {
 			#iommu-cells = <1>;
 		};
 
+		dab: dab@e6730000 {
+			compatible = "renesas,dab-r8a77990",
+				     "renesas,rcar-gen3-dab";
+			reg = <0x00 0xe6730000 0x00 0x120>;
+			interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 1016>;
+			clock-names = "dab";
+			power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
+			resets = <&cpg 1016>;
+			status = "disabled";
+		};
+
 		avb: ethernet@e6800000 {
 			compatible = "renesas,etheravb-r8a77990",
 				     "renesas,etheravb-rcar-gen3";