From: Biju Das <biju.das@bp.renesas.com> To: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Geert Uytterhoeven <geert+renesas@glider.be>, linux-clk <linux-clk@vger.kernel.org>, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS <devicetree@vger.kernel.org>, Linux-Renesas" <linux-renesas-soc@vger.kernel.org>, Simon Horman <horms@verge.net.au>, Chris Paterson <Chris.Paterson2@renesas.com>, Fabrizio Castro <fabrizio.castro@bp.renesas.com> Subject: RE: [PATCH 5/5] clk: renesas: cpg-mssr: Add r8a774a1 support Date: Wed, 1 Aug 2018 09:31:57 +0000 [thread overview] Message-ID: <OSBPR01MB2103CD9033D38A005C40E3E9B82D0@OSBPR01MB2103.jpnprd01.prod.outlook.com> (raw) In-Reply-To: <CAMuHMdV1vQkBg+d8HmNDVPZOBiH-tmRbmE+ZcWcnqMaP1zgWhg@mail.gmail.com> Hi Geert, Thanks for the feedback. > Subject: Re: [PATCH 5/5] clk: renesas: cpg-mssr: Add r8a774a1 support > > Hi Biju, > > On Mon, Jul 30, 2018 at 9:54 AM Biju Das <biju.das@bp.renesas.com> wrote: > > Add RZ/G2M (R8A774A1) Clock Pulse Generator / Module Standby and > > Software Reset support. > > > > Based on the Table 8.2b of "RZ/G Series, 2nd Generation User's Manual: > > Hardware ((Rev. 0.61, June 12, 2018)". > > > > Signed-off-by: Biju Das <biju.das@bp.renesas.com> > > Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> > > Thanks for your patch! > > > --- /dev/null > > +++ b/drivers/clk/renesas/r8a774a1-cpg-mssr.c > > > +static const struct cpg_core_clk r8a774a1_core_clks[] __initconst = { > > > + DEF_DIV6_RO("osc", R8A774A1_CLK_OSC, CLK_EXTAL, > CPG_RCKCR, 8), > > + DEF_DIV6_RO("r_int", CLK_RINT, CLK_EXTAL, CPG_RCKCR, 32), > > RZ/G2M does not have the CPG_RCKCR register. > The internal R CLK is an internal clock, hence please name it ".r". > > Please have a look at "clk: renesas: rcar-gen3: OSC and RCLK improvements" > (https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=2063) Will send V2 incorporating this changes. > > +/* > > + * CPG Clock Data > > + */ > > + > > +/* > > + * MD EXTAL PLL0 PLL1 PLL2 PLL3 PLL4 > > + * 14 13 19 17 (MHz) > > + *------------------------------------------------------------------- > > + * 0 0 0 0 16.66 x 1 x180 x192 x144 x192 x144 > > + * 0 0 0 1 16.66 x 1 x180 x192 x144 x128 x144 > > + * 0 0 1 0 Prohibited setting > > + * 0 0 1 1 16.66 x 1 x180 x192 x144 x192 x144 > > + * 0 1 0 0 20 x 1 x150 x160 x120 x160 x120 > > + * 0 1 0 1 20 x 1 x150 x160 x120 x106 x120 > > + * 0 1 1 0 Prohibited setting > > + * 0 1 1 1 20 x 1 x150 x160 x120 x160 x120 > > + * 1 0 0 0 25 x 1 x120 x128 x96 x128 x96 > > + * 1 0 0 1 25 x 1 x120 x128 x96 x84 x96 > > + * 1 0 1 0 Prohibited setting > > + * 1 0 1 1 25 x 1 x120 x128 x96 x128 x96 > > + * 1 1 0 0 33.33 / 2 x180 x192 x144 x192 x144 > > + * 1 1 0 1 33.33 / 2 x180 x192 x144 x128 x144 > > + * 1 1 1 0 Prohibited setting > > + * 1 1 1 1 33.33 / 2 x180 x192 x144 x192 x144 > > + */ > > +#define CPG_PLL_CONFIG_INDEX(md) ((((md) & BIT(14)) >> 11) | \ > > + (((md) & BIT(13)) >> 11) | \ > > + (((md) & BIT(19)) >> 18) | \ > > + (((md) & BIT(17)) >> 17)) > > + > > +static const struct rcar_gen3_cpg_pll_config cpg_pll_configs[16] > __initconst = { > > + /* EXTAL div PLL1 mult/div PLL3 mult/div */ > > + { 1, 192, 1, 192, 1, }, > > + { 1, 192, 1, 128, 1, }, > > + { 0, /* Prohibited setting */ }, > > + { 1, 192, 1, 192, 1, }, > > + { 1, 160, 1, 160, 1, }, > > + { 1, 160, 1, 106, 1, }, > > + { 0, /* Prohibited setting */ }, > > + { 1, 160, 1, 160, 1, }, > > + { 1, 128, 1, 128, 1, }, > > + { 1, 128, 1, 84, 1, }, > > + { 0, /* Prohibited setting */ }, > > + { 1, 128, 1, 128, 1, }, > > + { 2, 192, 1, 192, 1, }, > > + { 2, 192, 1, 128, 1, }, > > + { 0, /* Prohibited setting */ }, > > + { 2, 192, 1, 192, 1, }, > > +}; > > Please add the new OSC predividers. You're gonna need them for the > corrected OSC clock. Will send V2 incorporating this changes. Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.
WARNING: multiple messages have this Message-ID (diff)
From: Biju Das <biju.das@bp.renesas.com> To: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Geert Uytterhoeven <geert+renesas@glider.be>, linux-clk <linux-clk@vger.kernel.org>, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" <devicetree@vger.kernel.org>, Linux-Renesas <linux-renesas-soc@vger.kernel.org>, Simon Horman <horms@verge.net.au>, Chris Paterson <Chris.Paterson2@renesas.com>, Fabrizio Castro <fabrizio.castro@bp.renesas.com> Subject: RE: [PATCH 5/5] clk: renesas: cpg-mssr: Add r8a774a1 support Date: Wed, 1 Aug 2018 09:31:57 +0000 [thread overview] Message-ID: <OSBPR01MB2103CD9033D38A005C40E3E9B82D0@OSBPR01MB2103.jpnprd01.prod.outlook.com> (raw) In-Reply-To: <CAMuHMdV1vQkBg+d8HmNDVPZOBiH-tmRbmE+ZcWcnqMaP1zgWhg@mail.gmail.com> SGkgR2VlcnQsDQoNClRoYW5rcyBmb3IgdGhlIGZlZWRiYWNrLg0KDQo+IFN1YmplY3Q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EgIDMzLjMzIC8gMiAgICAgICB4MTgwICAgIHgxOTIgICAg eDE0NCAgICB4MTkyICAgIHgxNDQNCj4gPiArICovDQo+ID4gKyNkZWZpbmUgQ1BHX1BMTF9DT05G SUdfSU5ERVgobWQpICAgICAgICgoKChtZCkgJiBCSVQoMTQpKSA+PiAxMSkgfCBcDQo+ID4gKyAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoKChtZCkgJiBCSVQoMTMpKSA+ PiAxMSkgfCBcDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAo KChtZCkgJiBCSVQoMTkpKSA+PiAxOCkgfCBcDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAoKChtZCkgJiBCSVQoMTcpKSA+PiAxNykpDQo+ID4gKw0KPiA+ICtz dGF0aWMgY29uc3Qgc3RydWN0IHJjYXJfZ2VuM19jcGdfcGxsX2NvbmZpZyBjcGdfcGxsX2NvbmZp Z3NbMTZdDQo+IF9faW5pdGNvbnN0ID0gew0KPiA+ICsgICAgICAgLyogRVhUQUwgZGl2ICAgIFBM TDEgbXVsdC9kaXYgICBQTEwzIG11bHQvZGl2ICovDQo+ID4gKyAgICAgICB7IDEsICAgICAgICAg ICAgMTkyLCAgICAxLCAgICAgIDE5MiwgICAgMSwgICAgICB9LA0KPiA+ICsgICAgICAgeyAxLCAg ICAgICAgICAgIDE5MiwgICAgMSwgICAgICAxMjgsICAgIDEsICAgICAgfSwNCj4gPiArICAgICAg IHsgMCwgLyogUHJvaGliaXRlZCBzZXR0aW5nICovICAgICAgICAgICAgICAgICAgIH0sDQo+ID4g KyAgICAgICB7IDEsICAgICAgICAgICAgMTkyLCAgICAxLCAgICAgIDE5MiwgICAgMSwgICAgICB9 LA0KPiA+ICsgICAgICAgeyAxLCAgICAgICAgICAgIDE2MCwgICAgMSwgICAgICAxNjAsICAgIDEs ICAgICAgfSwNCj4gPiArICAgICAgIHsgMSwgICAgICAgICAgICAxNjAsICAgIDEsICAgICAgMTA2 LCAgICAxLCAgICAgIH0sDQo+ID4gKyAgICAgICB7IDAsIC8qIFByb2hpYml0ZWQgc2V0dGluZyAq LyAgICAgICAgICAgICAgICAgICB9LA0KPiA+ICsgICAgICAgeyAxLCAgICAgICAgICAgIDE2MCwg ICAgMSwgICAgICAxNjAsICAgIDEsICAgICAgfSwNCj4gPiArICAgICAgIHsgMSwgICAgICAgICAg ICAxMjgsICAgIDEsICAgICAgMTI4LCAgICAxLCAgICAgIH0sDQo+ID4gKyAgICAgICB7IDEsICAg ICAgICAgICAgMTI4LCAgICAxLCAgICAgIDg0LCAgICAgMSwgICAgICB9LA0KPiA+ICsgICAgICAg eyAwLCAvKiBQcm9oaWJpdGVkIHNldHRpbmcgKi8gICAgICAgICAgICAgICAgICAgfSwNCj4gPiAr ICAgICAgIHsgMSwgICAgICAgICAgICAxMjgsICAgIDEsICAgICAgMTI4LCAgICAxLCAgICAgIH0s DQo+ID4gKyAgICAgICB7IDIsICAgICAgICAgICAgMTkyLCAgICAxLCAgICAgIDE5MiwgICAgMSwg ICAgICB9LA0KPiA+ICsgICAgICAgeyAyLCAgICAgICAgICAgIDE5MiwgICAgMSwgICAgICAxMjgs ICAgIDEsICAgICAgfSwNCj4gPiArICAgICAgIHsgMCwgLyogUHJvaGliaXRlZCBzZXR0aW5nICov ICAgICAgICAgICAgICAgICAgIH0sDQo+ID4gKyAgICAgICB7IDIsICAgICAgICAgICAgMTkyLCAg ICAxLCAgICAgIDE5MiwgICAgMSwgICAgICB9LA0KPiA+ICt9Ow0KPg0KPiBQbGVhc2UgYWRkIHRo ZSBuZXcgT1NDIHByZWRpdmlkZXJzLiBZb3UncmUgZ29ubmEgbmVlZCB0aGVtIGZvciB0aGUNCj4g Y29ycmVjdGVkIE9TQyBjbG9jay4NCg0KV2lsbCBzZW5kIFYyIGluY29ycG9yYXRpbmcgdGhpcyBj aGFuZ2VzLg0KDQoNCg0KUmVuZXNhcyBFbGVjdHJvbmljcyBFdXJvcGUgTHRkLCBEdWtlcyBNZWFk b3csIE1pbGxib2FyZCBSb2FkLCBCb3VybmUgRW5kLCBCdWNraW5naGFtc2hpcmUsIFNMOCA1Rkgs IFVLLiBSZWdpc3RlcmVkIGluIEVuZ2xhbmQgJiBXYWxlcyB1bmRlciBSZWdpc3RlcmVkIE5vLiAw NDU4NjcwOS4NCg==
next prev parent reply other threads:[~2018-08-01 9:31 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-07-30 7:48 [PATCH 0/5] Add RZ/G2M SYSC/RST/Clock support Biju Das 2018-07-30 7:48 ` [PATCH 1/5] dt-bindings: power: Add r8a774a1 SYSC power domain definitions Biju Das 2018-08-01 8:01 ` Geert Uytterhoeven 2018-07-30 7:48 ` [PATCH 2/5] soc: renesas: rcar-sysc: Add r8a774a1 support Biju Das 2018-08-01 8:05 ` Geert Uytterhoeven 2018-07-30 7:48 ` [PATCH 3/5] soc: renesas: rcar-rst: Add support for RZ/G2M Biju Das 2018-08-01 8:46 ` Geert Uytterhoeven 2018-07-30 7:48 ` [PATCH 4/5] clk: renesas: Add r8a774a1 CPG Core Clock Definitions Biju Das 2018-08-01 8:46 ` Geert Uytterhoeven 2018-08-01 9:33 ` Biju Das 2018-07-30 7:48 ` [PATCH 5/5] clk: renesas: cpg-mssr: Add r8a774a1 support Biju Das 2018-08-01 9:26 ` Geert Uytterhoeven 2018-08-01 9:31 ` Biju Das [this message] 2018-08-01 9:31 ` Biju Das 2018-08-01 9:31 ` Biju Das
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=OSBPR01MB2103CD9033D38A005C40E3E9B82D0@OSBPR01MB2103.jpnprd01.prod.outlook.com \ --to=biju.das@bp.renesas.com \ --cc=Chris.Paterson2@renesas.com \ --cc=fabrizio.castro@bp.renesas.com \ --cc=geert+renesas@glider.be \ --cc=geert@linux-m68k.org \ --cc=horms@verge.net.au \ --cc=linux-clk@vger.kernel.org \ --cc=linux-renesas-soc@vger.kernel.org \ --cc=mark.rutland@arm.com \ --cc=mturquette@baylibre.com \ --cc=robh+dt@kernel.org \ --cc=sboyd@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.