Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934966AbcKWKCE (ORCPT ); Wed, 23 Nov 2016 05:02:04 -0500 Received: from mail-db5eur01on0068.outbound.protection.outlook.com ([104.47.2.68]:62800 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934866AbcKWKBa (ORCPT ); Wed, 23 Nov 2016 05:01:30 -0500 From: Scott Wood To: "Y.T. Tang" , "mturquette@baylibre.com" CC: "sboyd@codeaurora.org" , "linux-clk@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v2] clk: qoriq: added ls1012a clock configuration Thread-Topic: [PATCH v2] clk: qoriq: added ls1012a clock configuration Thread-Index: AQHSRJphoShXoQC+5kmMJvXNm4om2w== Date: Wed, 23 Nov 2016 07:27:07 +0000 Message-ID: References: <1479802499-9083-1-git-send-email-yuantian.tang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=scott.wood@nxp.com; x-originating-ip: [2601:449:8400:923b:12bf:48ff:fe84:c9a0] x-microsoft-exchange-diagnostics: 1;VI1PR0402MB2847;7:QoX6gGqGl3AaFcWgQtLeRk8Tg67mfn7Q1QCUOvLOhC95RPTSyJqGQsgMlC6tfpQnTk8bqcqLrr8kQ1e1+CloaiUDMsAAb3BK8ELeoJiVs1rE5EXPcphziPHu/pAEBhIlHML6YGcXOVQu30zn7vroZGCgiq2HVYkX4kUF8i86OBlw7d/maFP34KSgcvOjH3VE4u/xWoueUHA395aIvMIFD9wI8lhCyF3SV53r3gDFSiMRTwENn6QBIv12pxJTfbqBBAZfcpqbvjk1ZvrN46KLDrTKIlXWa3E32AFEq9ehUOzmKfWDM9zSKtJI+LcZcHtRTmKhdJl0gHsa3yOkPdVNGKFc5UDGUgSC1V8CH4eUsnk= x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10009020)(6009001)(7916002)(377454003)(189002)(199003)(24454002)(105586002)(106356001)(2906002)(9686002)(229853002)(106116001)(38730400001)(6506003)(92566002)(189998001)(54356999)(6116002)(76176999)(5001770100001)(50986999)(102836003)(97736004)(4326007)(2501003)(2900100001)(305945005)(74316002)(101416001)(7736002)(81156014)(3280700002)(86362001)(8676002)(81166006)(7846002)(3660700001)(575784001)(7696004)(5660300001)(8936002)(33656002)(68736007)(77096005)(122556002)(76576001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0402MB2847;H:DB5PR0401MB1928.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; x-ms-office365-filtering-correlation-id: 9554f5b7-1886-4feb-627e-08d4137221a4 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:VI1PR0402MB2847; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6045199)(6040307)(6060326)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6061324)(6041248)(6046074)(6047074)(6072148);SRVR:VI1PR0402MB2847;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0402MB2847; x-forefront-prvs: 013568035E spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Nov 2016 07:27:07.6011 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2847 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id uANA3eLP009311 Content-Length: 1911 Lines: 60 On 11/22/2016 02:28 AM, yuantian.tang@nxp.com wrote: > From: Tang Yuantian > > Signed-off-by: Tang Yuantian > --- > v2: > - remove commit message as it is duplicated to title > > drivers/clk/clk-qoriq.c | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c > index 1bece0f..65c21d7 100644 > --- a/drivers/clk/clk-qoriq.c > +++ b/drivers/clk/clk-qoriq.c > @@ -202,6 +202,14 @@ static const struct clockgen_muxinfo ls1021a_cmux = { > } > }; > > +static const struct clockgen_muxinfo ls1012a_cmux = { > + { > + [0] = { CLKSEL_VALID, CGA_PLL1, PLL_DIV1 }, > + {}, > + [2] = { CLKSEL_VALID, CGA_PLL1, PLL_DIV2 }, > + } > +}; > + > static const struct clockgen_muxinfo t1040_cmux = { > { > [0] = { CLKSEL_VALID, CGA_PLL1, PLL_DIV1 }, > @@ -482,6 +490,16 @@ static const struct clockgen_chipinfo chipinfo[] = { > .pll_mask = 0x03, > }, > { > + .compat = "fsl,ls1012a-clockgen", > + .cmux_groups = { > + &ls1012a_cmux > + }, > + .cmux_to_group = { > + 0, -1 > + }, > + .pll_mask = 0x03, > + }, > + { > .compat = "fsl,ls1043a-clockgen", > .init_periph = t2080_init_periph, > .cmux_groups = { > @@ -1282,6 +1300,7 @@ static void __init clockgen_init(struct device_node *np) > CLK_OF_DECLARE(qoriq_clockgen_1, "fsl,qoriq-clockgen-1.0", clockgen_init); > CLK_OF_DECLARE(qoriq_clockgen_2, "fsl,qoriq-clockgen-2.0", clockgen_init); > CLK_OF_DECLARE(qoriq_clockgen_ls1021a, "fsl,ls1021a-clockgen", clockgen_init); > +CLK_OF_DECLARE(qoriq_clockgen_ls1012a, "fsl,ls1012a-clockgen", clockgen_init); > CLK_OF_DECLARE(qoriq_clockgen_ls1043a, "fsl,ls1043a-clockgen", clockgen_init); > CLK_OF_DECLARE(qoriq_clockgen_ls2080a, "fsl,ls2080a-clockgen", clockgen_init); Again, can you please keep the chip lists sorted? ls1012a doesn't go after ls1021a. -Scott