Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1522720ima; Thu, 25 Oct 2018 00:04:16 -0700 (PDT) X-Google-Smtp-Source: AJdET5cqk5Ow5YuPOc8MqH5RMD5mQgUyiu2pHt3vGhhQ6q+xj5PaU1b+X4QBB9rTqh9c3U3XJLBz X-Received: by 2002:a17:902:5982:: with SMTP id p2-v6mr361707pli.241.1540451055949; Thu, 25 Oct 2018 00:04:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540451055; cv=none; d=google.com; s=arc-20160816; b=y80RusBCaLMZJWG9x0OZrAA1I4eNcBC+mLrbfZzrDNn9k0dhhEpTo4odyftti7UqUw 9o/nj8UNWQ3aXO9tGeTVYJWZhtJiuGOOCeXuah90pZFK49GTwBezwqb+Buzrq6mxeMf+ qpfuWCcFJwrp49puc4m0J3igCpD0zlTPngBqWt0E0h+jDzr6hQN1xr9rTzmlgmRCW/du E2Xa/c1Ugjj89CS39YTtrsdi1ZUSYFO6eQSvymrxISDKos/xlw3kdYgDfXJTdZ/fcwvt xa13CcRWVkWMCFM6O+WXJ9e3I8RMfG6v+Hs7lKXpggdJ+qPsl0fLrRpb3xWsCvogxQSX ITeQ== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=MALEO5ltLd+Bp7OEryabJF+FlyngHm0DrJeZKbB87sM=; b=nSF5I8UTVWs8P/Wf5VemLrARv1B/CjmuVb5DgJKvmT9vXCwV4FqU15Ss8gHckqOfh/ hM4ZiHmNP/SddFRQ9YhwlHq+Vc26Z9slpvNpZO+XEkxg6Ul+hoyhlmAvpk73MhiJDrHN 4pTC6zfRpdQ51PcwjRgxPTWxmTDtEAZc2tKsoyT9FYPsljFJEoRu7Ll25bVBIEXD+Qdh iga3fJVEHCvQPUXolzkKt6pQezAbOBRz+WtiMJBU/M7cN7EkmcwUekv+hILCZ33PTZKc mQD5MwKK+jNvfa/RoQI6+2Fvf8NvDsw5QzwFlxQ0gkgIGd2tTcBaZq5cB4Bxpgy+rPwc FJrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=AdCP6PtU; 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 b1-v6si6844957pld.419.2018.10.25.00.04.00; Thu, 25 Oct 2018 00:04:15 -0700 (PDT) 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=AdCP6PtU; 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 S1727182AbeJYPd0 (ORCPT + 99 others); Thu, 25 Oct 2018 11:33:26 -0400 Received: from mail-eopbgr30052.outbound.protection.outlook.com ([40.107.3.52]:20997 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727117AbeJYPd0 (ORCPT ); Thu, 25 Oct 2018 11:33:26 -0400 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=MALEO5ltLd+Bp7OEryabJF+FlyngHm0DrJeZKbB87sM=; b=AdCP6PtUWg+QOgh3CqorQJtyRNAZ0ZDjrZKqx7hW41oiXxICLwWBiYAwgpGegiVVByn61AbVFk//N4EqXByBm9uTSpAvtWtHlV9HWg5KSaC6BbUgNiVja12JqbGaqnnqxpITYR7opoDeGuIsEkvYex31NrOehT79UcSSzObznVU= Received: from VI1PR04MB4800.eurprd04.prod.outlook.com (20.177.48.221) by VI1PR04MB0909.eurprd04.prod.outlook.com (10.161.106.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.19; Thu, 25 Oct 2018 07:01:54 +0000 Received: from VI1PR04MB4800.eurprd04.prod.outlook.com ([fe80::c9af:2da0:2fc4:1aca]) by VI1PR04MB4800.eurprd04.prod.outlook.com ([fe80::c9af:2da0:2fc4:1aca%3]) with mapi id 15.20.1273.021; Thu, 25 Oct 2018 07:01:54 +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" , Varun Sethi , Udit Kumar , Pankaj Bansal , Yogesh Narayan Gaur , Andy Tang , Vabhav Sharma Subject: [PATCH v6 4/6] clk: qoriq: Add clockgen support for lx2160a Thread-Topic: [PATCH v6 4/6] clk: qoriq: Add clockgen support for lx2160a Thread-Index: AQHUbDCc0zkWJqs0YU6lPEAT1AT4FQ== Date: Thu, 25 Oct 2018 07:01:54 +0000 Message-ID: <1540407376-24115-5-git-send-email-vabhav.sharma@nxp.com> References: <1540407376-24115-1-git-send-email-vabhav.sharma@nxp.com> In-Reply-To: <1540407376-24115-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: BM1PR0101CA0059.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::21) 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-originating-ip: [14.143.30.134] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR04MB0909;6:VH3knDkhbyxSX76dDWDUYWakPribYt1h+EB2xNmKkZZLcZt88C+9iHdAT3NAelyNe8OSnCFmJlKYme/LHZtztIndFekTEJNHbsBQzZXDt4ujpE1Vgw+/jimeFlWWw2JOwq49YEaMrAS0Tqmklenm0DkBhKVRpfU9rhOeL0R3MSMTFUssPJ06rXA80uoZ7Jre3rzHLwk6OUSnDS+7K0cdfiKtRwHRl0yZJ67s5quGNwQJ7FAumSHdb+iaW82qZR9n0wRkPEeJjVJDALYmG1FmvIjtn/yRWrKNeSS2HYYyUNSzmJHH//VAGT+HlCxnImmSiqCuL7/wnOTwT0G99BB5tc6QLnZVzoejBaea9ZQiI4hoqxWjFkbPQodUUxGO8dWVm5WHUe0rROM78RRCFRwjvwJHMv6ksLZeXwC2ql2tMmIVTq475K5hEtSHJwZ6IkSlVv62oKhwB3Eu3oGxXTJSDQ==;5:tG4lBU9gFmD+dIvK0hGrgQa/8FbDHqAfWO1EM6+K68AnB3JqgN7Uf7lPhb9QFyrdRqei/IpygXd451izaM3kipAazpQKTpAKutikP8Pg9ZGPjPjbi+SX4ALernnjb0hzGwhfHwmsR7Y0vRyuptLjVR06wVmRmedc5eON59hrnxE=;7:/zA1ShNwAHBR2uFK6ZqaMDPZt4U4bHfJKj21ZHzwBjUgybm/79laXpvmOcZqUdlnx3lc0L80waOPlejR8bc8/2Z1fWzB9TszVMZ7c6Dcz/7eIfkw6uE3fc6WWNXtcTORm0a39Ljt9fli6I2dLSIh4Q== x-ms-office365-filtering-correlation-id: 0c12bb51-f051-455d-fc5e-08d63a47beb8 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB0909; x-ms-traffictypediagnostic: VI1PR04MB0909: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231355)(944501410)(52105095)(3002001)(6055026)(148016)(149066)(150057)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB0909;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB0909; x-forefront-prvs: 083691450C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(366004)(136003)(39860400002)(376002)(396003)(189003)(199004)(186003)(478600001)(5660300001)(14454004)(4326008)(25786009)(7416002)(105586002)(106356001)(36756003)(26005)(110136005)(3846002)(6116002)(6436002)(2906002)(102836004)(55236004)(316002)(2900100001)(305945005)(66066001)(8676002)(99286004)(7736002)(6506007)(6512007)(386003)(81156014)(8936002)(52116002)(81166006)(53936002)(476003)(54906003)(68736007)(6486002)(256004)(2616005)(97736004)(2201001)(44832011)(486006)(86362001)(76176011)(5250100002)(11346002)(71190400001)(446003)(2501003)(71200400001)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB0909;H:VI1PR04MB4800.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: jIGFEVha+Z8bH70iOCSxzHr7lztBI1LcPQWhXKLGEy3xbKMSDYE9G1LK0HMKH7WTu8m5Gge+fwnl7JR0MiWnhKrXnV38CmHPeFYIUGtR4Rc5xd4o/mgXFWAISe1MFIUfx4e45wKMf4Z8s2Arc/QgrtzSaawHtF2mXAZRoLisvAVT1ATpeEi73VqUcCcnHNjKPnnOHlp8Lhnx3pZCuKUCbddMiOpkwasnqUwS9CcSV1z1cMcDWfd44R2THlkpuykkARh5xDL8VgkYeGvKx5J2W2RjLCzACoaUqUIqrBxUbU3mWCu1GNuY+ncpH6ZCb2Fp9wU9hkUYwvd4w6r9J1nVjBmHLlnO+i7lYNq5kbicGCY= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM 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: 0c12bb51-f051-455d-fc5e-08d63a47beb8 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Oct 2018 07:01:54.2480 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB0909 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 e152bfb..99675de 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, @@ -1424,6 +1435,7 @@ CLK_OF_DECLARE(qoriq_clockgen_ls1043a, "fsl,ls1043a-c= lockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_ls1046a, "fsl,ls1046a-clockgen", clockgen_in= it); CLK_OF_DECLARE(qoriq_clockgen_ls1088a, "fsl,ls1088a-clockgen", clockgen_in= it); CLK_OF_DECLARE(qoriq_clockgen_ls2080a, "fsl,ls2080a-clockgen", clockgen_in= it); +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