From patchwork Thu Oct 25 07:01:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vabhav Sharma X-Patchwork-Id: 10655525 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8F8F813A4 for ; Thu, 25 Oct 2018 07:04:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 786352B30A for ; Thu, 25 Oct 2018 07:04:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BCAB2B356; Thu, 25 Oct 2018 07:04:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C777D2B361 for ; Thu, 25 Oct 2018 07:04:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=A2uVmNMOJKVjDlmCN3MrDkXF38ICwNBKb9LtDkLB8Qo=; b=m/3+Rrh9NiMHpl Xn5mK9QGhJ10GCFW4MmOIOQCEznu4wJAPhBRrZkgKCK/B99OpONsu326XC+SL5L570C/8GCgSWaik VWfDcAhWnqew5HbNBOnQLKuI9x5inRkaPsPiBdFeJL84WPbQpIne3xuEju78s+F6uU30fGtO1sZRL K6/xcmu/inHzWE2aOiGmICBAqL5ntoAhIgxfIvC8VHlbaB53rgNiUCR5+wx6omsipkrIhuvarx+WI ZuyViv90KIFBDjwieXhljV1ktI6kvSP21Np0ve3APCPg9dEyZw+cuLL0hMPYDAwOpFLGZfAb4Wiba w8Wsxr+UES2eRI1W6Vjg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gFZhF-0002iY-L5; Thu, 25 Oct 2018 07:04:45 +0000 Received: from mail-db3eur04on0602.outbound.protection.outlook.com ([2a01:111:f400:fe0c::602] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gFZel-0001c2-AP for linux-arm-kernel@lists.infradead.org; Thu, 25 Oct 2018 07:02:32 +0000 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" 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181025_000211_539536_B52456EE X-CRM114-Status: GOOD ( 13.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "ulf.hansson@linaro.org" , Yogesh Narayan Gaur , Andy Tang , Udit Kumar , Pankaj Bansal , "linux@armlinux.org.uk" , "adrian.hunter@intel.com" , Varun Sethi , Vabhav Sharma Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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[] = { .flags = CG_VER3 | CG_LITTLE_ENDIAN, }, { + .compat = "fsl,lx2160a-clockgen", + .cmux_groups = { + &clockgen2_cmux_cga12, &clockgen2_cmux_cgb + }, + .cmux_to_group = { + 0, 0, 0, 0, 1, 1, 1, 1, -1 + }, + .pll_mask = 0x37, + .flags = CG_VER3 | CG_LITTLE_ENDIAN, + }, + { .compat = "fsl,p2041-clockgen", .guts_compat = "fsl,qoriq-device-config-1.0", .init_periph = p2041_init_periph, @@ -1424,6 +1435,7 @@ CLK_OF_DECLARE(qoriq_clockgen_ls1043a, "fsl,ls1043a-clockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_ls1046a, "fsl,ls1046a-clockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_ls1088a, "fsl,ls1088a-clockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_ls2080a, "fsl,ls2080a-clockgen", clockgen_init); +CLK_OF_DECLARE(qoriq_clockgen_lx2160a, "fsl,lx2160a-clockgen", clockgen_init); /* 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-cpufreq.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[] __initconst = { { .compatible = "fsl,ls1046a-clockgen", }, { .compatible = "fsl,ls1088a-clockgen", }, { .compatible = "fsl,ls2080a-clockgen", }, + { .compatible = "fsl,lx2160a-clockgen", }, { .compatible = "fsl,p4080-clockgen", }, { .compatible = "fsl,qoriq-clockgen-1.0", }, { .compatible = "fsl,qoriq-clockgen-2.0", },