Message ID | 1547663874-29411-9-git-send-email-fabrizio.castro@bp.renesas.com (mailing list archive) |
---|---|
State | Changes Requested, archived |
Headers | show |
Series | Add basic EK874 support | expand |
Hi Fabrizio, Thanks for your patch! On Wed, Jan 16, 2019 at 7:39 PM Fabrizio Castro <fabrizio.castro@bp.renesas.com> wrote: > This patch adds the missing CANFD clock to the r8a774c0 specific > clock driver. Are you sure the CANFD clock exists on RZ/G2E? > Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> > Reviewed-by: Chris Paterson <Chris.Paterson2@renesas.com> > --- a/drivers/clk/renesas/r8a774c0-cpg-mssr.c > +++ b/drivers/clk/renesas/r8a774c0-cpg-mssr.c > --- a/include/dt-bindings/clock/r8a774c0-cpg-mssr.h > +++ b/include/dt-bindings/clock/r8a774c0-cpg-mssr.h > @@ -48,13 +48,14 @@ > #define R8A774C0_CLK_ZA2 37 > #define R8A774C0_CLK_ZA8 38 > #define R8A774C0_CLK_Z2D 39 > -#define R8A774C0_CLK_MSO 40 > -#define R8A774C0_CLK_R 41 > -#define R8A774C0_CLK_OSC 42 > -#define R8A774C0_CLK_LV0 43 > -#define R8A774C0_CLK_LV1 44 > -#define R8A774C0_CLK_CSI0 45 > -#define R8A774C0_CLK_CP 46 > -#define R8A774C0_CLK_CPEX 47 > +#define R8A774C0_CLK_CANFD 40 > +#define R8A774C0_CLK_MSO 41 > +#define R8A774C0_CLK_R 42 > +#define R8A774C0_CLK_OSC 43 > +#define R8A774C0_CLK_LV0 44 > +#define R8A774C0_CLK_LV1 45 > +#define R8A774C0_CLK_CSI0 46 > +#define R8A774C0_CLK_CP 47 > +#define R8A774C0_CLK_CPEX 48 This file is part of the DT ABI, hence list of definitions is append-only. Please add R8A774C0_CLK_CANFD at the end, i.e. #define R8A774C0_CLK_CANFD 48 Gr{oetje,eeting}s, Geert
Hi Geert, Thank you for your feedback! > From: Geert Uytterhoeven <geert@linux-m68k.org> > Sent: 16 January 2019 19:06 > Subject: Re: [PATCH 08/11] clk: renesas: r8a774c0: Add missing CANFD clock > > Hi Fabrizio, > > Thanks for your patch! > > On Wed, Jan 16, 2019 at 7:39 PM Fabrizio Castro > <fabrizio.castro@bp.renesas.com> wrote: > > This patch adds the missing CANFD clock to the r8a774c0 specific > > clock driver. > > Are you sure the CANFD clock exists on RZ/G2E? I yet have to run tests on the board specific to CANFD, but we know for sure that's going to appear on the RZ/G2E (if it's not in the revision of the SoC we have already). Japan have confirmed that everything CANFD-wise should be the same as per the corresponding Gen3 parts, and that's why are pushing this patch (and shortly something similar for the r8a774a1) for it as it's on our critical path. Anyways, the HW of the EK874 should support CANFD properly, therefore I am going to try and run some tests (as soon as I sort out the cables), so that we clear any doubts. Would you rather we held back all of the CAN related changes for now? > > > Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> > > Reviewed-by: Chris Paterson <Chris.Paterson2@renesas.com> > > > --- a/drivers/clk/renesas/r8a774c0-cpg-mssr.c > > +++ b/drivers/clk/renesas/r8a774c0-cpg-mssr.c > > > --- a/include/dt-bindings/clock/r8a774c0-cpg-mssr.h > > +++ b/include/dt-bindings/clock/r8a774c0-cpg-mssr.h > > @@ -48,13 +48,14 @@ > > #define R8A774C0_CLK_ZA2 37 > > #define R8A774C0_CLK_ZA8 38 > > #define R8A774C0_CLK_Z2D 39 > > -#define R8A774C0_CLK_MSO 40 > > -#define R8A774C0_CLK_R 41 > > -#define R8A774C0_CLK_OSC 42 > > -#define R8A774C0_CLK_LV0 43 > > -#define R8A774C0_CLK_LV1 44 > > -#define R8A774C0_CLK_CSI0 45 > > -#define R8A774C0_CLK_CP 46 > > -#define R8A774C0_CLK_CPEX 47 > > +#define R8A774C0_CLK_CANFD 40 > > +#define R8A774C0_CLK_MSO 41 > > +#define R8A774C0_CLK_R 42 > > +#define R8A774C0_CLK_OSC 43 > > +#define R8A774C0_CLK_LV0 44 > > +#define R8A774C0_CLK_LV1 45 > > +#define R8A774C0_CLK_CSI0 46 > > +#define R8A774C0_CLK_CP 47 > > +#define R8A774C0_CLK_CPEX 48 > > This file is part of the DT ABI, hence list of definitions is append-only. Will fix this with a v2 Thanks, Fab > > Please add R8A774C0_CLK_CANFD at the end, i.e. > > #define R8A774C0_CLK_CANFD 48 > > 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 Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.
diff --git a/drivers/clk/renesas/r8a774c0-cpg-mssr.c b/drivers/clk/renesas/r8a774c0-cpg-mssr.c index 10b9689..28bcc81 100644 --- a/drivers/clk/renesas/r8a774c0-cpg-mssr.c +++ b/drivers/clk/renesas/r8a774c0-cpg-mssr.c @@ -33,6 +33,7 @@ enum clk_ids { CLK_PLL1, CLK_PLL3, CLK_PLL0D4, + CLK_PLL0D6, CLK_PLL0D8, CLK_PLL0D20, CLK_PLL0D24, @@ -61,6 +62,7 @@ static const struct cpg_core_clk r8a774c0_core_clks[] __initconst = { DEF_FIXED(".pll0", CLK_PLL0, CLK_MAIN, 1, 100), DEF_FIXED(".pll0d4", CLK_PLL0D4, CLK_PLL0, 4, 1), + DEF_FIXED(".pll0d6", CLK_PLL0D6, CLK_PLL0, 6, 1), DEF_FIXED(".pll0d8", CLK_PLL0D8, CLK_PLL0, 8, 1), DEF_FIXED(".pll0d20", CLK_PLL0D20, CLK_PLL0, 20, 1), DEF_FIXED(".pll0d24", CLK_PLL0D24, CLK_PLL0, 24, 1), @@ -112,6 +114,7 @@ static const struct cpg_core_clk r8a774c0_core_clks[] __initconst = { DEF_GEN3_PE("s3d2c", R8A774C0_CLK_S3D2C, CLK_S3, 2, CLK_PE, 2), DEF_GEN3_PE("s3d4c", R8A774C0_CLK_S3D4C, CLK_S3, 4, CLK_PE, 4), + DEF_DIV6P1("canfd", R8A774C0_CLK_CANFD, CLK_PLL0D6, 0x244), DEF_DIV6P1("csi0", R8A774C0_CLK_CSI0, CLK_PLL1D2, 0x00c), DEF_DIV6P1("mso", R8A774C0_CLK_MSO, CLK_PLL1D2, 0x014), @@ -187,6 +190,7 @@ static const struct mssr_mod_clk r8a774c0_mod_clks[] __initconst = { DEF_MOD("gpio2", 910, R8A774C0_CLK_S3D4), DEF_MOD("gpio1", 911, R8A774C0_CLK_S3D4), DEF_MOD("gpio0", 912, R8A774C0_CLK_S3D4), + DEF_MOD("can-fd", 914, R8A774C0_CLK_S3D2), DEF_MOD("can-if1", 915, R8A774C0_CLK_S3D4), DEF_MOD("can-if0", 916, R8A774C0_CLK_S3D4), DEF_MOD("i2c6", 918, R8A774C0_CLK_S3D2), diff --git a/include/dt-bindings/clock/r8a774c0-cpg-mssr.h b/include/dt-bindings/clock/r8a774c0-cpg-mssr.h index 8fe51b6..f269ce3 100644 --- a/include/dt-bindings/clock/r8a774c0-cpg-mssr.h +++ b/include/dt-bindings/clock/r8a774c0-cpg-mssr.h @@ -48,13 +48,14 @@ #define R8A774C0_CLK_ZA2 37 #define R8A774C0_CLK_ZA8 38 #define R8A774C0_CLK_Z2D 39 -#define R8A774C0_CLK_MSO 40 -#define R8A774C0_CLK_R 41 -#define R8A774C0_CLK_OSC 42 -#define R8A774C0_CLK_LV0 43 -#define R8A774C0_CLK_LV1 44 -#define R8A774C0_CLK_CSI0 45 -#define R8A774C0_CLK_CP 46 -#define R8A774C0_CLK_CPEX 47 +#define R8A774C0_CLK_CANFD 40 +#define R8A774C0_CLK_MSO 41 +#define R8A774C0_CLK_R 42 +#define R8A774C0_CLK_OSC 43 +#define R8A774C0_CLK_LV0 44 +#define R8A774C0_CLK_LV1 45 +#define R8A774C0_CLK_CSI0 46 +#define R8A774C0_CLK_CP 47 +#define R8A774C0_CLK_CPEX 48 #endif /* __DT_BINDINGS_CLOCK_R8A774C0_CPG_MSSR_H__ */