Re: [PATCH v3 4/6] ARM: dts: r8a77470: Add SDHI0 support
On Mon, Oct 15, 2018 at 05:19:30PM +0200, Simon Horman wrote: > On Mon, Oct 08, 2018 at 09:51:50AM +0100, Fabrizio Castro wrote: > > RZ/G1C comes with two different types of IP for the SDHI > > interfaces, SDHI0 and SDHI2 share the same IP type, and > > such an IP is also compatible with the one found in R-Car > > Gen2. SDHI1 IP on the other hand is compatible with R-Car > > Gen3 with internal DMA. > > This patch completes the SDHI support of the R-Car Gen2 > > compatible IPs, including fixing the max-frequency > > definition of SDHI2, as it turns out there is a bug in > > Section 1.3.9 of the RZ/G1C Hardware User's Manual (Rev. > > 1.00 Oct. 2017). > > > > Signed-off-by: Fabrizio Castro > > Reviewed-by: Biju Das > > > > --- > > v2->v3: > > * No change > > > > v2: > > * New patch > > --- > > arch/arm/boot/dts/r8a77470.dtsi | 17 - > > 1 file changed, 16 insertions(+), 1 deletion(-) > > > > diff --git a/arch/arm/boot/dts/r8a77470.dtsi > > b/arch/arm/boot/dts/r8a77470.dtsi > > index 9e7f86d..e01df9c 100644 > > --- a/arch/arm/boot/dts/r8a77470.dtsi > > +++ b/arch/arm/boot/dts/r8a77470.dtsi > > @@ -412,6 +412,21 @@ > > status = "disabled"; > > }; > > > > + sdhi0: sd@ee10 { > > + compatible = "renesas,sdhi-r8a77470", > > +"renesas,rcar-gen2-sdhi"; > > + reg = <0 0xee10 0 0x328>; > > I am unable to verify the base address of this register range, > but I am prepared to take your word for it. > > Reviewed-by: Simon Horman > > I'm happy to apply this patch but I'm holding off for the moment > as I have a question about the following patch in the series. Sorry for the noise, I am now happy with the other patches in this series. I have applied patches 4, 5 and 6 of this series for v4.21. > > > > + interrupts = ; > > + clocks = < CPG_MOD 314>; > > + dmas = < 0xcd>, < 0xce>, > > + < 0xcd>, < 0xce>; > > + dma-names = "tx", "rx", "tx", "rx"; > > + max-frequency = <15600>; > > + power-domains = < R8A77470_PD_ALWAYS_ON>; > > + resets = < 314>; > > + status = "disabled"; > > + }; > > + > > sdhi2: sd@ee16 { > > compatible = "renesas,sdhi-r8a77470", > > "renesas,rcar-gen2-sdhi"; > > @@ -421,7 +436,7 @@ > > dmas = < 0xd3>, < 0xd4>, > >< 0xd3>, < 0xd4>; > > dma-names = "tx", "rx", "tx", "rx"; > > - max-frequency = <9750>; > > + max-frequency = <7800>; > > power-domains = < R8A77470_PD_ALWAYS_ON>; > > resets = < 312>; > > status = "disabled"; > > -- > > 2.7.4 > >
Re: [PATCH v3 4/6] ARM: dts: r8a77470: Add SDHI0 support
On Mon, Oct 08, 2018 at 09:51:50AM +0100, Fabrizio Castro wrote: > RZ/G1C comes with two different types of IP for the SDHI > interfaces, SDHI0 and SDHI2 share the same IP type, and > such an IP is also compatible with the one found in R-Car > Gen2. SDHI1 IP on the other hand is compatible with R-Car > Gen3 with internal DMA. > This patch completes the SDHI support of the R-Car Gen2 > compatible IPs, including fixing the max-frequency > definition of SDHI2, as it turns out there is a bug in > Section 1.3.9 of the RZ/G1C Hardware User's Manual (Rev. > 1.00 Oct. 2017). > > Signed-off-by: Fabrizio Castro > Reviewed-by: Biju Das > > --- > v2->v3: > * No change > > v2: > * New patch > --- > arch/arm/boot/dts/r8a77470.dtsi | 17 - > 1 file changed, 16 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/r8a77470.dtsi b/arch/arm/boot/dts/r8a77470.dtsi > index 9e7f86d..e01df9c 100644 > --- a/arch/arm/boot/dts/r8a77470.dtsi > +++ b/arch/arm/boot/dts/r8a77470.dtsi > @@ -412,6 +412,21 @@ > status = "disabled"; > }; > > + sdhi0: sd@ee10 { > + compatible = "renesas,sdhi-r8a77470", > + "renesas,rcar-gen2-sdhi"; > + reg = <0 0xee10 0 0x328>; I am unable to verify the base address of this register range, but I am prepared to take your word for it. Reviewed-by: Simon Horman I'm happy to apply this patch but I'm holding off for the moment as I have a question about the following patch in the series. > + interrupts = ; > + clocks = < CPG_MOD 314>; > + dmas = < 0xcd>, < 0xce>, > +< 0xcd>, < 0xce>; > + dma-names = "tx", "rx", "tx", "rx"; > + max-frequency = <15600>; > + power-domains = < R8A77470_PD_ALWAYS_ON>; > + resets = < 314>; > + status = "disabled"; > + }; > + > sdhi2: sd@ee16 { > compatible = "renesas,sdhi-r8a77470", >"renesas,rcar-gen2-sdhi"; > @@ -421,7 +436,7 @@ > dmas = < 0xd3>, < 0xd4>, > < 0xd3>, < 0xd4>; > dma-names = "tx", "rx", "tx", "rx"; > - max-frequency = <9750>; > + max-frequency = <7800>; > power-domains = < R8A77470_PD_ALWAYS_ON>; > resets = < 312>; > status = "disabled"; > -- > 2.7.4 >
[PATCH v3 4/6] ARM: dts: r8a77470: Add SDHI0 support
RZ/G1C comes with two different types of IP for the SDHI interfaces, SDHI0 and SDHI2 share the same IP type, and such an IP is also compatible with the one found in R-Car Gen2. SDHI1 IP on the other hand is compatible with R-Car Gen3 with internal DMA. This patch completes the SDHI support of the R-Car Gen2 compatible IPs, including fixing the max-frequency definition of SDHI2, as it turns out there is a bug in Section 1.3.9 of the RZ/G1C Hardware User's Manual (Rev. 1.00 Oct. 2017). Signed-off-by: Fabrizio Castro Reviewed-by: Biju Das --- v2->v3: * No change v2: * New patch --- arch/arm/boot/dts/r8a77470.dtsi | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a77470.dtsi b/arch/arm/boot/dts/r8a77470.dtsi index 9e7f86d..e01df9c 100644 --- a/arch/arm/boot/dts/r8a77470.dtsi +++ b/arch/arm/boot/dts/r8a77470.dtsi @@ -412,6 +412,21 @@ status = "disabled"; }; + sdhi0: sd@ee10 { + compatible = "renesas,sdhi-r8a77470", +"renesas,rcar-gen2-sdhi"; + reg = <0 0xee10 0 0x328>; + interrupts = ; + clocks = < CPG_MOD 314>; + dmas = < 0xcd>, < 0xce>, + < 0xcd>, < 0xce>; + dma-names = "tx", "rx", "tx", "rx"; + max-frequency = <15600>; + power-domains = < R8A77470_PD_ALWAYS_ON>; + resets = < 314>; + status = "disabled"; + }; + sdhi2: sd@ee16 { compatible = "renesas,sdhi-r8a77470", "renesas,rcar-gen2-sdhi"; @@ -421,7 +436,7 @@ dmas = < 0xd3>, < 0xd4>, < 0xd3>, < 0xd4>; dma-names = "tx", "rx", "tx", "rx"; - max-frequency = <9750>; + max-frequency = <7800>; power-domains = < R8A77470_PD_ALWAYS_ON>; resets = < 312>; status = "disabled"; -- 2.7.4