Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp337536img; Tue, 26 Feb 2019 00:36:16 -0800 (PST) X-Google-Smtp-Source: AHgI3IYMkY8Y8pjFeanJGOOmb64al9d1J2om2xpcPKuTL06bSyfr+E32VJgLh0wJvF6cEIKdC4mL X-Received: by 2002:a17:902:264:: with SMTP id 91mr25143439plc.108.1551170176342; Tue, 26 Feb 2019 00:36:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551170176; cv=none; d=google.com; s=arc-20160816; b=nTltTJp2ZZ9R8QtPPyyh04afWNkLR13OxSq2zwDrE7r9lnC4vNaVU51LNpX3Rq0nqM TcVGVNE21lM/O46acmVxbuItxGqlTpyo8Oy89DO2ihQ4w8L1ysuCSFm+bQ28oXJkULtv DMq0+jfw5pKHtQ3ho0hveQQ3JbtZCaEIbS/O7jxsovQDleX4aGygL6Dpo7OIxSE9vzrz XZ2Zaa0zMcmtxYKWHNwLIoMFSXeB2pGguPuKlLjHaOJ82b7Mk093xjFxJhzPo043z07X GuQwO+IZEQAsTHAeLMzY/3Tj2yjkGNpl2sNnCXEIccLcKLx62eGVBAfrOOSsCgmVWwF4 8yow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=2Eh9bZ7fPwTvuq+JvMheQIuTmdboHpxr+blzrFJ/2Jc=; b=C1N8qSmtWQuPJgCjAaEymepc0hXcARxr0lHZ+p4GD2q0Th08yPT0PZvfDzYuyR0Z7w DOaqDYA+juAJC32qK9DvSG2iRAESpZqVQYQtENH+ntKSike0ni4jMPoS6ogoAFjtIdtm HqBelsdWrVKOMoxkRe0TworLylgIoBM1AKvTtHQmTLomk8B3hWQShvzvA5E4JJuob6hh F/gTYas00bg38iNQytr21EsPGxrPUqR2AOr99qV+DhDAYCV3zY3bZmp2cCAX1cj/mSbJ khfogDL22duQblvl+oz4CdwL3Aa2K98fS6MvhiteQJXn03cCnPhvqNq8ypf0tnowsCbM 9uKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b="fAhe/blz"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v82si12057032pfa.275.2019.02.26.00.36.00; Tue, 26 Feb 2019 00:36:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b="fAhe/blz"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727315AbfBZIex (ORCPT + 99 others); Tue, 26 Feb 2019 03:34:53 -0500 Received: from mail-eopbgr80050.outbound.protection.outlook.com ([40.107.8.50]:59776 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727286AbfBZIev (ORCPT ); Tue, 26 Feb 2019 03:34:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2Eh9bZ7fPwTvuq+JvMheQIuTmdboHpxr+blzrFJ/2Jc=; b=fAhe/blzlGYZAf5SEtMKwe5yDZcpe3gkCE0ThT9m7yG4T1HVDVcuxSGN5n9ksicHDb5V7h4XSwFXL2IsMnPY2bXM200vhpD46mVMJ711kNLHBJtv897M1kruIW18PgQIU2w44swkBgQpfKiysnsgk60+uFeQajZyk/Nv3b28Q2U= Received: from VI1PR04MB4800.eurprd04.prod.outlook.com (20.177.48.221) by VI1PR04MB1645.eurprd04.prod.outlook.com (10.164.84.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.15; Tue, 26 Feb 2019 08:34:46 +0000 Received: from VI1PR04MB4800.eurprd04.prod.outlook.com ([fe80::7437:2195:ffd3:a33a]) by VI1PR04MB4800.eurprd04.prod.outlook.com ([fe80::7437:2195:ffd3:a33a%5]) with mapi id 15.20.1643.019; Tue, 26 Feb 2019 08:34:46 +0000 From: Vabhav Sharma To: "sudeep.holla@arm.com" , "oss@buserror.net" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "linuxppc-dev@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" , "mturquette@baylibre.com" , "sboyd@kernel.org" , "rjw@rjwysocki.net" , "viresh.kumar@linaro.org" , "linux-clk@vger.kernel.org" , "linux-pm@vger.kernel.org" , "linux-kernel-owner@vger.kernel.org" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "gregkh@linuxfoundation.org" , "arnd@arndb.de" , "kstewart@linuxfoundation.org" , "yamada.masahiro@socionext.com" , Leo Li , "shawnguo@kernel.org" CC: "linux@armlinux.org.uk" , "adrian.hunter@intel.com" , "ulf.hansson@linaro.org" , Yogesh Narayan Gaur , Andy Tang , Vabhav Sharma Subject: [PATCH 4/4] clk: qoriq: Add clockgen support for lx2160a Thread-Topic: [PATCH 4/4] clk: qoriq: Add clockgen support for lx2160a Thread-Index: AQHUza4hvZ73Kv/IW0iTEWsunnaw7g== Date: Tue, 26 Feb 2019 08:34:46 +0000 Message-ID: <1551126463-5341-5-git-send-email-vabhav.sharma@nxp.com> References: <1551126463-5341-1-git-send-email-vabhav.sharma@nxp.com> In-Reply-To: <1551126463-5341-1-git-send-email-vabhav.sharma@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0013.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::23) To VI1PR04MB4800.eurprd04.prod.outlook.com (2603:10a6:803:53::29) authentication-results: spf=none (sender IP is ) smtp.mailfrom=vabhav.sharma@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.9.1 x-originating-ip: [92.120.1.65] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: adf79c23-bace-481d-cb29-08d69bc54377 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB1645; x-ms-traffictypediagnostic: VI1PR04MB1645: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;VI1PR04MB1645;23:TehsCnGrBLBta51VOu47FsiLHP2EaAu/iylAI1i?= =?iso-8859-1?Q?sXN6tB8R/Ssz5WYhwtMx3IcuXIDnkiGKUZqP8LRiIhZEQTf/AsrXtppGbg?= =?iso-8859-1?Q?dW4hNYuuW5MDkMGY/+/rjqbkXk/imy69S/W6IJZeTxadr+3iQfkD5uAz3u?= =?iso-8859-1?Q?kbttnx6Ur1sqgiC9tTnJG6qKUHbkqgLSGnAZUAwbQY1ymM9wHsj16nbLXm?= =?iso-8859-1?Q?aHHhxtdHUmHpy8GdZEzxPAmj9YLQek7cIQQ92vcRw92k2CS/TNbIgw7Cla?= =?iso-8859-1?Q?rWYwfiW+m7zgKmkKev8fgna02HgCcKm+NqF/Oyha9WFL2RddAT4K7HOLs8?= =?iso-8859-1?Q?b3p5Ar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fgMzNeHAx6+9?= =?iso-8859-1?Q?j5lcGvv/nOwUaesg9wIGItV/vkJ2qpX9DuKrbGGCLOvD/M4d57/MDMG0//?= =?iso-8859-1?Q?S4/4y5plQcXaarG8rn4NW8kjhnvalwZB0sal6Wq+tMsDg=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 096029FF66 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(396003)(366004)(346002)(136003)(39860400002)(199004)(189003)(71190400001)(446003)(11346002)(25786009)(476003)(2616005)(71200400001)(7416002)(2906002)(97736004)(316002)(4326008)(478600001)(6512007)(68736007)(6116002)(6486002)(44832011)(3846002)(6436002)(486006)(2501003)(105586002)(5660300002)(106356001)(81166006)(256004)(386003)(52116002)(6506007)(7736002)(305945005)(50226002)(102836004)(2201001)(86362001)(26005)(53936002)(110136005)(8676002)(54906003)(14454004)(81156014)(8936002)(186003)(99286004)(76176011)(66066001)(36756003)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB1645;H:VI1PR04MB4800.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: KtGynWCfSWdToGQ4YMI1MRA/c6e+pWFAbms7/X45TXNpPFMQ8p0HQYpIzYFdL7mkBcXRIBgWA44a/jHw249T0zb/lV1Wp+Hqi/svlzbOilCT4yXxVPHsneSCMouMPB9XX6/PPXW26TzgCmR94Fn95W8R+vqp4AIBSGCzw+/IYXrbO3QflpMpCKGA7S0DBvvUMkHM5l/o50eGRFelekpOaKIH+YHCdB+mMRiZikJH9wcbovIvKryK3j7js3ZRYgN0Lbn1A4x5yISSUWCbnkgfvrMa1IcchLDgIZPIsa4qvDukSpD5qzQvJUVZ7GlLdXNt8D6rzKHaBEVKoOwmLaf1NHTJRZP8pyuvP0Jjse24F2tttImJLWgM/CtxQYsPFyZImqlIxDbA8v3leItwDRXCpTlmA4mt34hG72CN78Jw/Nw= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: adf79c23-bace-481d-cb29-08d69bc54377 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Feb 2019 08:34:41.0118 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1645 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yogesh Gaur Add clockgen support for lx2160a. Added entry for compat 'fsl,lx2160a-clockgen'. Signed-off-by: Tang Yuantian Signed-off-by: Yogesh Gaur Signed-off-by: Vabhav Sharma Acked-by: Stephen Boyd Acked-by: Viresh Kumar --- drivers/clk/clk-qoriq.c | 12 ++++++++++++ drivers/cpufreq/qoriq-cpufreq.c | 1 + 2 files changed, 13 insertions(+) diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c index e75194a..cfd14ef 100644 --- a/drivers/clk/clk-qoriq.c +++ b/drivers/clk/clk-qoriq.c @@ -570,6 +570,17 @@ static const struct clockgen_chipinfo chipinfo[] =3D { .flags =3D CG_VER3 | CG_LITTLE_ENDIAN, }, { + .compat =3D "fsl,lx2160a-clockgen", + .cmux_groups =3D { + &clockgen2_cmux_cga12, &clockgen2_cmux_cgb + }, + .cmux_to_group =3D { + 0, 0, 0, 0, 1, 1, 1, 1, -1 + }, + .pll_mask =3D 0x37, + .flags =3D CG_VER3 | CG_LITTLE_ENDIAN, + }, + { .compat =3D "fsl,p2041-clockgen", .guts_compat =3D "fsl,qoriq-device-config-1.0", .init_periph =3D p2041_init_periph, @@ -1435,6 +1446,7 @@ CLK_OF_DECLARE(qoriq_clockgen_t1023, "fsl,t1023-clock= gen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_t1040, "fsl,t1040-clockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_t2080, "fsl,t2080-clockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_t4240, "fsl,t4240-clockgen", clockgen_init); +CLK_OF_DECLARE(qoriq_clockgen_lx2160a, "fsl,lx2160a-clockgen", clockgen_in= it); =20 /* Legacy nodes */ CLK_OF_DECLARE(qoriq_sysclk_1, "fsl,qoriq-sysclk-1.0", sysclk_init); diff --git a/drivers/cpufreq/qoriq-cpufreq.c b/drivers/cpufreq/qoriq-cpufre= q.c index 3d773f6..83921b7 100644 --- a/drivers/cpufreq/qoriq-cpufreq.c +++ b/drivers/cpufreq/qoriq-cpufreq.c @@ -295,6 +295,7 @@ static const struct of_device_id node_matches[] __initc= onst =3D { { .compatible =3D "fsl,ls1046a-clockgen", }, { .compatible =3D "fsl,ls1088a-clockgen", }, { .compatible =3D "fsl,ls2080a-clockgen", }, + { .compatible =3D "fsl,lx2160a-clockgen", }, { .compatible =3D "fsl,p4080-clockgen", }, { .compatible =3D "fsl,qoriq-clockgen-1.0", }, { .compatible =3D "fsl,qoriq-clockgen-2.0", }, --=20 2.7.4