Re: [PATCH 2/2] clk: renesas: cpg-mssr: add R8A77980 support

2018-02-05 Thread Geert Uytterhoeven
Hi Sergei,

On Wed, Jan 31, 2018 at 9:31 PM, Sergei Shtylyov
 wrote:
> Add R-Car V3H (R8A77980) Clock Pulse Generator / Module Standby and
> Software Reset support,  using the CPG/MSSR driver core and the common
> R-Car Gen3 code.
>
> Based on the original (and large) patch by Vladimir Barinov.
>
> Signed-off-by: Vladimir Barinov 
> Signed-off-by: Sergei Shtylyov 

Thanks for your patch!

> --- /dev/null
> +++ renesas-drivers/drivers/clk/renesas/r8a77980-cpg-mssr.c
> @@ -0,0 +1,227 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * r8a77980 Clock Pulse Generator / Module Standby and Software Reset
> + *
> + * Copyright (C) 2018 Renesas Electronics Corp.
> + * Copyright (C) 2018 Cogent Embedded, Inc.
> + *
> + * Based on r8a7795-cpg-mssr.c
> + *
> + * Copyright (C) 2016 Renesas Electronics Corp.

Interesting, the above copyright line isn't present in r8a7795-cpg-mssr.c?

> +static const struct mssr_mod_clk r8a77980_mod_clks[] __initconst = {
> +   DEF_MOD("tmu4",  121,   R8A77980_CLK_S0D6),
> +   DEF_MOD("tmu3",  122,   R8A77980_CLK_S0D6),
> +   DEF_MOD("tmu2",  123,   R8A77980_CLK_S0D6),
> +   DEF_MOD("tmu1",  124,   R8A77980_CLK_S0D6),
> +   DEF_MOD("tmu0",  125,   R8A77980_CLK_CP),
> +   DEF_MOD("scif4", 203,   R8A77980_CLK_S3D4),
> +   DEF_MOD("scif3", 204,   R8A77980_CLK_S3D4),
> +   DEF_MOD("scif1", 206,   R8A77980_CLK_S3D4),
> +   DEF_MOD("scif0", 207,   R8A77980_CLK_S3D4),
> +   DEF_MOD("msiof3",208,   R8A77980_CLK_MSO),
> +   DEF_MOD("msiof2",209,   R8A77980_CLK_MSO),
> +   DEF_MOD("msiof1",210,   R8A77980_CLK_MSO),
> +   DEF_MOD("msiof0",211,   R8A77980_CLK_MSO),
> +   DEF_MOD("sys-dmac2", 217,   R8A77980_CLK_S0D3),
> +   DEF_MOD("sys-dmac1", 218,   R8A77980_CLK_S0D3),
> +   DEF_MOD("tpu0",  304,   R8A77980_CLK_S3D4),
> +   DEF_MOD("sdif",  314,   R8A77980_CLK_SD0), /* OK */

Please remove the "OK" comment.

> +   DEF_MOD("pciec0",319,   R8A77980_CLK_S3D1),
> +   DEF_MOD("intc-ex",   407,   R8A77980_CLK_CP), /* OK */

Please remove the "OK" comment.

> +   DEF_MOD("intc-ap",   408,   R8A77980_CLK_S0D3),
> +   DEF_MOD("hscif3",517,   R8A77980_CLK_S3D1),
> +   DEF_MOD("hscif2",518,   R8A77980_CLK_S3D1),
> +   DEF_MOD("hscif1",519,   R8A77980_CLK_S3D1),
> +   DEF_MOD("hscif0",520,   R8A77980_CLK_S3D1),
> +   DEF_MOD("imp4",  521,   R8A77980_CLK_S1D1), /* OK? */

Please remove the "OK" comment.

I couldn't verify all parent clocks though, especially for multimedia-related
blocks.

With the above fixed:
Reviewed-by: Geert Uytterhoeven 

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@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


Re: [PATCH 2/2] clk: renesas: cpg-mssr: add R8A77980 support

2018-02-05 Thread Simon Horman
On Wed, Jan 31, 2018 at 11:31:05PM +0300, Sergei Shtylyov wrote:
> Add R-Car V3H (R8A77980) Clock Pulse Generator / Module Standby and
> Software Reset support,  using the CPG/MSSR driver core and the common
> R-Car Gen3 code.
> 
> Based on the original (and large) patch by Vladimir Barinov.
> 
> Signed-off-by: Vladimir Barinov 
> Signed-off-by: Sergei Shtylyov 

Reviewed-by: Simon Horman 



Re: [PATCH 2/2] clk: renesas: cpg-mssr: add R8A77980 support

2018-02-04 Thread Rob Herring
On Wed, Jan 31, 2018 at 11:31:05PM +0300, Sergei Shtylyov wrote:
> Add R-Car V3H (R8A77980) Clock Pulse Generator / Module Standby and
> Software Reset support,  using the CPG/MSSR driver core and the common
> R-Car Gen3 code.
> 
> Based on the original (and large) patch by Vladimir Barinov.
> 
> Signed-off-by: Vladimir Barinov 
> Signed-off-by: Sergei Shtylyov 
> 
> ---
>  Documentation/devicetree/bindings/clock/renesas,cpg-mssr.txt |5 

Reviewed-by: Rob Herring 

>  drivers/clk/renesas/Kconfig  |5 
>  drivers/clk/renesas/Makefile |1 
>  drivers/clk/renesas/r8a77980-cpg-mssr.c  |  227 
> +++
>  drivers/clk/renesas/renesas-cpg-mssr.c   |6 
>  drivers/clk/renesas/renesas-cpg-mssr.h   |1 
>  6 files changed, 243 insertions(+), 2 deletions(-)