From patchwork Thu Apr 25 13:57:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vabhav Sharma X-Patchwork-Id: 10917171 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 B662D14D5 for ; Thu, 25 Apr 2019 13:57:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A41A628ABC for ; Thu, 25 Apr 2019 13:57:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 983C928AFA; Thu, 25 Apr 2019 13:57:15 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 30AF928ABC for ; Thu, 25 Apr 2019 13:57:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727413AbfDYN5J (ORCPT ); Thu, 25 Apr 2019 09:57:09 -0400 Received: from mail-eopbgr70049.outbound.protection.outlook.com ([40.107.7.49]:6078 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726202AbfDYN5J (ORCPT ); Thu, 25 Apr 2019 09:57:09 -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=yhLo980Z9FNglNps+aM4DA57SzvzK3sS3YwUOtX3bEw=; b=xypuXb7YgBX7PwO52oZVglSE7pP8bezwXDGK+iu56syc8XfRMAiQxB12t07w6dUZ+YA1CfxBCcZWWEO0VkcMzf3LtHBeYyfNxxGmW9gyV+QzPQH3XmB3GKY7MseCRtJ0qYd1I/Al4gHq4n1VXYTtOOA69yZWeZl7ej/YTKemEI8= Received: from VI1PR04MB4800.eurprd04.prod.outlook.com (20.177.48.221) by VI1PR04MB3248.eurprd04.prod.outlook.com (10.170.232.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.14; Thu, 25 Apr 2019 13:57:05 +0000 Received: from VI1PR04MB4800.eurprd04.prod.outlook.com ([fe80::9bd:1d31:d6c3:d157]) by VI1PR04MB4800.eurprd04.prod.outlook.com ([fe80::9bd:1d31:d6c3:d157%6]) with mapi id 15.20.1813.017; Thu, 25 Apr 2019 13:57:05 +0000 From: Vabhav Sharma To: "linux-kernel@vger.kernel.org" , "linux-clk@vger.kernel.org" , "linux-pm@vger.kernel.org" CC: "sboyd@kernel.org" , "mturquette@baylibre.com" , "rjw@rjwysocki.net" , "viresh.kumar@linaro.org" , Yogesh Narayan Gaur , Andy Tang , Vabhav Sharma Subject: [PATCH v3] clk: qoriq: add support for lx2160a Thread-Topic: [PATCH v3] clk: qoriq: add support for lx2160a Thread-Index: AQHU+27EnTHp/aOrT06vySVf5Nn13A== Date: Thu, 25 Apr 2019 13:57:05 +0000 Message-ID: <1556200638-24066-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: BMXPR01CA0011.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::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-mailer: git-send-email 1.9.1 x-originating-ip: [92.120.1.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8bb49b7f-4e22-4f61-da8f-08d6c985e667 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:VI1PR04MB3248; x-ms-traffictypediagnostic: VI1PR04MB3248: x-microsoft-antispam-prvs: x-forefront-prvs: 0018A2705B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(346002)(39860400002)(136003)(376002)(366004)(199004)(189003)(66066001)(53936002)(386003)(86362001)(71200400001)(71190400001)(2201001)(7736002)(5660300002)(8676002)(81156014)(8936002)(50226002)(81166006)(6506007)(305945005)(26005)(256004)(102836004)(186003)(6116002)(3846002)(44832011)(2616005)(54906003)(25786009)(14454004)(316002)(99286004)(2906002)(68736007)(4326008)(36756003)(6512007)(478600001)(110136005)(52116002)(2501003)(97736004)(66446008)(64756008)(6486002)(66476007)(66556008)(66946007)(6436002)(73956011)(476003)(486006);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB3248;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: aMhuQKq6HRhDOyRRDEy0JRwlHdrjnEMn2j2INaPxixgSiBv8Y0J++cGaN1tWoI528xGfw5+dFiZ9kXEEvkS/5yj0SNWwAZZ5ke3KZ1oEpuJ5w0+FErSMKmiiOFd69kuzzhJihRyRGY9a+2Km86GORMLR4uafxWK8r63Ub/0n+7AFysiIkcUdkw99rYsSw4uPCbbn3m9IgdevluFt6F5vwDFTdHf7k+S+DxdPgnmry33cOCdzzfUYIv0V/AReNs3RzDExHATb4v1Xc3lOBeczYSBrgQBphJi0yCM0pWTQb1z0qF8RJowDw9j2MUCD5D1mNzGqiTKCyCDrGi3QRcdxtz86bIKxhFHpLeGFebszOyvn7XUfhKCC9ZZnNMlTnlaIUKF148wFCk3Ll0UpF6axNvzupZWKNgsiqeQdHcRWwpU= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8bb49b7f-4e22-4f61-da8f-08d6c985e667 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Apr 2019 13:57:05.6285 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3248 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Yogesh Gaur Add clockgen support and configuration for NXP SoC lx2160a in qoriq clock driver with compatible property as "fsl,lx2160a-clockgen". qoriq-cpufreq driver is based on qoriq clock driver, enable support of NXP SoC lx2160a in qoriq cpufreq driver to handle the lx2160a SoC. Signed-off-by: Tang Yuantian Signed-off-by: Yogesh Gaur Signed-off-by: Vabhav Sharma Acked-by: Scott Wood Acked-by: Stephen Boyd Acked-by: Viresh Kumar --- Changes for v3: - Incorporated review comments of Rafael J. Wysocki - Updated commit message Changes for v2: - Subject line updated 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 3d51d7c..1a15201 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, @@ -1427,6 +1438,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); CLK_OF_DECLARE(qoriq_clockgen_p2041, "fsl,p2041-clockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_p3041, "fsl,p3041-clockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_p4080, "fsl,p4080-clockgen", clockgen_init); diff --git a/drivers/cpufreq/qoriq-cpufreq.c b/drivers/cpufreq/qoriq-cpufreq.c index 4295e54..81f0288 100644 --- a/drivers/cpufreq/qoriq-cpufreq.c +++ b/drivers/cpufreq/qoriq-cpufreq.c @@ -284,6 +284,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", },