Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3124111imd; Mon, 29 Oct 2018 01:58:53 -0700 (PDT) X-Google-Smtp-Source: AJdET5cdTqoeXahQUSAUTZ+JrUQs3YkcxYxs94WhyluIjghHR5GZQMT9TRhFzqE70LY/b5oN+WEC X-Received: by 2002:a62:5343:: with SMTP id h64-v6mr14180729pfb.226.1540803533273; Mon, 29 Oct 2018 01:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540803533; cv=none; d=google.com; s=arc-20160816; b=b4e0C7wQgbm+gl9e1CCizEwTBvmoju/VMTs8ysrLG5EsKUSeP+nK3xIb4sZn+LzNz+ 2mJEk6+/t6KLufbcbRQ+8Ik9SfcuM61NOyD2KM3hT5F2DjH7yG1XXVqML65zjV8F+sD3 X7IkV9ixVHNtl9T0dfvwxQpPK6OFLcEx6APXHiQH5b4rkCc2Zi0x8HAnLg8k3nzVPCwL Ub/KgqkyI1NnYTEkIiwLeE/BvhSYiCAIx+KAq7Dci3CPZEE83AZJbIOQwlcShJ++opZp rOB4lMpqkp1Tz3uD0qk8HsAdYFHluj4qi9677NiHezIS0OtI6ZvZVoLQzGQVvgdZfWlD jSGA== 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=sxzmX7RswK7uyapo3+eq4ugB+YRn++FXWCeQi0/0t8dyN7P6GZDc9YJeLoM0nJ8O2z 3NkwKM/Ecls8I6D1Q2JvT4+9cX526VGrGHQ4QueFtM47/YobP1ZOJFhWAUOC3NADNcvU seiiU12LZIEBQvRqKxzoJMSymFxVIzMmQLFHGa9NQ66I9M4rrGolme2kKey26K/w8EBR 3ehXyL9etNS8ifV8xXK0XMCF+QDctCUHYmxg50HB9NgH0gk1zGcQvByQ1keXGtNCTZ92 PJlYeBIFKmZMTZm/H8HUTQeIAZ6WVQeljluU+f4Uq6+ptLCwiScSnlo00tHbmSoUpAUi RZ+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=GqRNTl6q; 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 a15-v6si20193145pfn.248.2018.10.29.01.58.38; Mon, 29 Oct 2018 01:58:53 -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=GqRNTl6q; 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 S1729615AbeJ2Rph (ORCPT + 99 others); Mon, 29 Oct 2018 13:45:37 -0400 Received: from mail-he1eur01on0083.outbound.protection.outlook.com ([104.47.0.83]:39640 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729588AbeJ2Rpg (ORCPT ); Mon, 29 Oct 2018 13:45:36 -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=GqRNTl6qTOmGLhLMMSVcIBH3nxZk+vdzoK/x6DIJT/qo9FCsovjI7v5JFpWUrAkCRHYhGvn20RsXI3kklEnEw95CVJ9OcMJRXBd+9NbLAKgas00hvUVhZlgYpzPPMJqQjWvPFlY8Dxbo4WXZEaaMSMWiJBecBIu6r5CNQzC0jE0= Received: from VI1PR04MB4800.eurprd04.prod.outlook.com (20.177.48.221) by VI1PR04MB4125.eurprd04.prod.outlook.com (52.133.14.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.18; Mon, 29 Oct 2018 08:57:47 +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.027; Mon, 29 Oct 2018 08:57:47 +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 v7 4/6] clk: qoriq: Add clockgen support for lx2160a Thread-Topic: [PATCH v7 4/6] clk: qoriq: Add clockgen support for lx2160a Thread-Index: AQHUb2V2fdiYZfrH3kSMzqsJmyAK6w== Date: Mon, 29 Oct 2018 08:57:47 +0000 Message-ID: <1540759926-3641-5-git-send-email-vabhav.sharma@nxp.com> References: <1540759926-3641-1-git-send-email-vabhav.sharma@nxp.com> In-Reply-To: <1540759926-3641-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: BM1PR0101CA0028.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::14) 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;VI1PR04MB4125;6:xilpQNb0f3m647I7vKU6L25fs2Z2/kbec8oCmQP9wYrKF/PeQVl9W9dy/rjngHiRXqNaRL2wEO6wEyAHtl2AKU1mTMvnDvgJw1Meu2Lsbn2nR6MXOtLJVGkx3IUzmclbOBDXDv7kPsO4V37gay+3eL/X0DjdYcKFlAY/PTEg3zF2N+3lfwzhJXqgGWlzupGiDLEfPPdnpdWXJmmtzKHhAFFdmA0EoJ4RmtaMX+Oicp2xWXtY+JfbuUOnDr5M1oMhO1sCLmkdtQA737VnOQwvcPQf9EgLuI1iPPwf+bZT3HEUMO4UfB/lGa3VTMmY/nts8X/CeIVRAciDDGx9C4V+lu3Bu2lk8Xmyc/5E+LVbyKyc5GZeg/oVuz60EWjIpouYsb/1CRv4oSJx95+YXDkBBbHpK4R3hBqVC8Z8numuMuDI63mWZsXN5XCo9kPgs6sDTfR2PNGPOssshrPZd2zSFA==;5:llEAlFQHdT6uM+s6dPaTRICONZrxXoX57gXi5uli8RarwMVI81gVw21DJ1yv+FC1WMAX6XfpnCOCDc5Feso07OxB5TwOBkvVFjZ2MxdaSscMZbJY7apE7rZr3ek41y13KAirfSJZmNpUIraXzObUYNefvaz3AD4tWBqTed/kFY8=;7:mmtt3p3U3khODb89UdH25x+E4XCi1NONkZm4J6DpsgDyQv2TXPh78dZTJYRy0MExTuqaCnFaTeaIl2FuWnn7ce8ZNhk7aSydwfumKtoAdl6D7wqAIBLc4kGykOWlmq71b4yBXs+qxOCN+kEnPciDAw== x-ms-office365-filtering-correlation-id: 916cc28c-8e2a-4139-3fb5-08d63d7c98f2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB4125; x-ms-traffictypediagnostic: VI1PR04MB4125: 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)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231382)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB4125;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB4125; x-forefront-prvs: 084080FC15 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(346002)(396003)(376002)(39860400002)(366004)(199004)(189003)(316002)(44832011)(86362001)(106356001)(5250100002)(2501003)(305945005)(11346002)(7736002)(71190400001)(446003)(8936002)(2616005)(476003)(71200400001)(2201001)(486006)(105586002)(186003)(76176011)(81156014)(81166006)(2906002)(110136005)(6512007)(54906003)(26005)(99286004)(6116002)(14454004)(25786009)(256004)(7416002)(36756003)(4326008)(53936002)(6436002)(3846002)(102836004)(6486002)(5660300001)(97736004)(52116002)(66066001)(2900100001)(68736007)(478600001)(8676002)(55236004)(386003)(6506007)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4125;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-microsoft-antispam-message-info: gsqK9s+N0Dm82zOwzWkHrUvsX2A1geJWOUEHTD7HO0raIzJDH0rTWqGYbZ3X84E47Bs+kByyI/BZA3xbKid0sicB+v2NjeOdb3aWyivB1ZG24a/O0S500oSzpxotoHvaM/Ybs+Zjr+yc/386noXbM/NJDWDVYODbriAJawQUIiPNKFS4wTihYkfIg7nmi3m2SrMV62qzqmGHmy8qcWtcKexs9eUO741BoiYkd+LLHKHnvvaA8AAsjd/Batv/jm7na8k8QNKZK8yjt/iqdDNwTdOXG/PUM8x4z9sw30jwKwJSPChdQXGtfNyHBB+zq6pY9srgeTRnN3QjL9qSV0hJAMzYv5NIE66Yh1VtRR7ZNuI= 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: 916cc28c-8e2a-4139-3fb5-08d63d7c98f2 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Oct 2018 08:57:47.5130 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4125 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