From: Simon Horman Subject: Re: [PATCH 05/13] DT: clock: rcar-gen2-cpg-clocks: document R8A7792 support Date: Wed, 1 Jun 2016 09:30:16 +0900 Message-ID: <20160601003016.GE20527@verge.net.au> References: <13205049.n7pM8utpHF@wasted.cogentembedded.com> <4688920.9Ektl04hDh@wasted.cogentembedded.com> <20160601002535.GB20527@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <20160601002535.GB20527@verge.net.au> Sender: linux-renesas-soc-owner@vger.kernel.org To: Sergei Shtylyov Cc: linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org, Geert Uytterhoeven List-Id: devicetree@vger.kernel.org On Wed, Jun 01, 2016 at 09:25:35AM +0900, Simon Horman wrote: > [Cc: Geert] >=20 > On Wed, Jun 01, 2016 at 01:20:11AM +0300, Sergei Shtylyov wrote: > > Renesas R8A7792 SoC is a member of the R-Car gen2 family and so has= CPG... > >=20 > > Signed-off-by: Sergei Shtylyov >=20 > Hi Sergei, >=20 > I think the prefix of this patch should be "clk: shmobile: rcar-gen2:= " >=20 > Hi Geert, >=20 > I apologise if I have missed a discussion of this topic or if my anal= ysis > is wrong for some reason but I am curious to know what the intended w= ay > is for the rcar-gen2 CPG driver to handle differences in the availabi= lity > of clocks across different SoCs. >=20 > My possibly na=C3=AFve expectation is that the implementation would u= se compat > strings. But as it stands it appears that all clocks supported by the > driver are available for all SoCs. This does not seem to reflect the > documentation (v2.00). >=20 > FWIW my quick analysis of clocks supported by the driver present in > renesas-drivers-2016-05-31-v4.7-rc1 but not present on one or more So= Cs > is as follows: >=20 > Not present on V2H: sdh, sd0 > Not present on V2H or E2: sd1 > Not present on H2, M2-W, M2-N, E2: rcan Thinking about a little more, which I obviously should have done before hitting send: There does not seem to be any conflict in the implementation of individ= ual clocks between SoCs at least so far as clocks supported by the driver g= oes. Its just that some of them aren't present on all SoCs. But in that case they shouldn't be used in DT: the DT describes the HW. So I think I'm o= k with this patch. Sorry for the noise! Acked-by: Simon Horman > > --- > > Documentation/devicetree/bindings/clock/renesas,rcar-gen2-cpg-cloc= ks.txt | 1 + > > 1 file changed, 1 insertion(+) > >=20 > > Index: renesas/Documentation/devicetree/bindings/clock/renesas,rcar= -gen2-cpg-clocks.txt > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > --- renesas.orig/Documentation/devicetree/bindings/clock/renesas,rc= ar-gen2-cpg-clocks.txt > > +++ renesas/Documentation/devicetree/bindings/clock/renesas,rcar-ge= n2-cpg-clocks.txt > > @@ -10,6 +10,7 @@ Required Properties: > > - compatible: Must be one of > > - "renesas,r8a7790-cpg-clocks" for the r8a7790 CPG > > - "renesas,r8a7791-cpg-clocks" for the r8a7791 CPG > > + - "renesas,r8a7792-cpg-clocks" for the r8a7792 CPG > > - "renesas,r8a7793-cpg-clocks" for the r8a7793 CPG > > - "renesas,r8a7794-cpg-clocks" for the r8a7794 CPG > > and "renesas,rcar-gen2-cpg-clocks" as a fallback. > >=20 >=20