From patchwork Sun Oct 14 17:08:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vabhav Sharma X-Patchwork-Id: 10641103 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 AD82A13AD for ; Mon, 15 Oct 2018 05:16:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A53C28EE3 for ; Mon, 15 Oct 2018 05:16:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8AF7D295A8; Mon, 15 Oct 2018 05:16:45 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DATE_IN_PAST_12_24,DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=unavailable 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 0025828EE3 for ; Mon, 15 Oct 2018 05:16:44 +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:References:In-Reply-To: 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=e+4D3tpnvbsN2u AtyoH0egzLscr71FdI68h+PfVuo1xFtfXHiETq8u12WHVNBQN/K/RgzNy0hv8hh2vLrbPJdoIhSOr YJ307sV989TReabk2UJAOWm+6/I/qfuNWtsLYrmzM9l35t7oPO36pU07D4iaazsFmhvdRHXq0lSBX MPuh4AxucafX/zz4316wNY1J3FzoUptoamMlDjJk0WS3M4UMmD1gpqqyCmLpkZNiMgm365u+7zYKq fFA4Upm8op0HDyKpGhvR1A0his2c3m6Ew7MZ60WEQQWMMSf0qgxR0MTHv8KfnwwHjjo3f0jVtmpih HhRQdpFXTouE82deDAzQ==; 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 1gBvF1-00080W-Vk; Mon, 15 Oct 2018 05:16:32 +0000 Received: from mail-am5eur03on060d.outbound.protection.outlook.com ([2a01:111:f400:fe08::60d] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gBvCM-0005Vp-Al for linux-arm-kernel@lists.infradead.org; Mon, 15 Oct 2018 05:13:56 +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=v9hMqqThZ68alsJmloQ2lTVQ1zkW/136SvAplbvzl3M=; b=OsXYytUt6oiagcEbSy2CacCmr+bUpUYmEO/rkM5XmogxalWtc4327yTgU6YEaM3QkVbzbn/oLEyAHSxewbq2l8sdslWsd+yJns7qEOXfjEzVsYCH6wKUXxb/YEMu/Tqr/6ZAStJKuK+hcpUPcj7++WzxGC/YN++uq4RN9zO7QxQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=vabhav.sharma@nxp.com; Received: from uefi-OptiPlex-790.ap.freescale.net (14.143.30.134) by AM6PR04MB4790.eurprd04.prod.outlook.com (2603:10a6:20b:3::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.26; Mon, 15 Oct 2018 05:13:35 +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, leoyang.li@nxp.com, shawnguo@kernel.org Subject: [PATCH v5 4/6] clk: qoriq: Add clockgen support for lx2160a Date: Sun, 14 Oct 2018 22:38:01 +0530 Message-Id: <1539536883-1928-5-git-send-email-vabhav.sharma@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1539536883-1928-1-git-send-email-vabhav.sharma@nxp.com> References: <1539536883-1928-1-git-send-email-vabhav.sharma@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: PN1PR01CA0082.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::22) To AM6PR04MB4790.eurprd04.prod.outlook.com (2603:10a6:20b:3::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6a2cc02a-4f06-4915-a633-08d6325cf903 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:AM6PR04MB4790; X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4790; 3:s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z0jAGM1mPPjA6M33E4h8snPvwTNtFBRnrD+wIM68BqwPa1UkVT5tRWVFAPUksb1cDBOr97Srm6vb7VUYA+vBfw/l7G6WrrKnnPosBi+jGqZfTdLYOIVr8Jk2EKVj8W04d+w1RxFz9+EzxNAVpAAn0tdkaW/Zje7dKBk2eSeTN/3fLiLTNOzB32LWjJ0vIm6iP7ym1/kcdXKXNJ+fsRyyz3XoSqMOGrZXIcBTBj+EbLPen1alG+JFeEFw/icOis/h9v8MwkHYk13/kRRK8C3lJkpvED+2h1HGJEKttPO3uAisjof8v7TGcV7sztpPXAj2dQaTQc00O1GBwvfjgdftcfAFG; 4:DkPSKgF0ZS3qGC71t+qoYzjtZiMdcSy4UXDqVIk4iyw4o8iQXIIpdbaB7xfueP8SbOCNnIHXFl3lEjXVPczeW7halvavXW9zgUYXthBJv6IM4q8BzmIWf47E+PnxyiMJaUV+JnwWSHqKsx6ezKh0rwNfHVGXlHSHh8N98uDJO/4c5U8ojDjXFyADyjk82E2eOc5cWVo1ggNyh8RAGvNQd5lOxDiXVVbezYB9jIx+7cUiWX9VG5KINw3E+QVhegVw9T51e1ABQVnvrBzdnqU47lJUfkDIDqytoHJvJ4Q6eTeyEZzTBs7hL2FHVXZyrD0S 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)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991067); SRVR:AM6PR04MB4790; BCL:0; PCL:0; RULEID:; SRVR:AM6PR04MB4790; X-Forefront-PRVS: 0826B2F01B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(346002)(376002)(39860400002)(136003)(366004)(396003)(199004)(189003)(53936002)(478600001)(6512007)(2906002)(52116002)(51416003)(3846002)(6116002)(1006002)(86362001)(6666004)(5660300001)(316002)(50226002)(8936002)(8676002)(97736004)(68736007)(81156014)(81166006)(486006)(956004)(44832011)(2616005)(476003)(7736002)(47776003)(305945005)(66066001)(25786009)(186003)(16526019)(50466002)(48376002)(26005)(106356001)(36756003)(105586002)(446003)(11346002)(4326008)(76176011)(386003)(6506007)(54906003)(55236004)(7416002)(6486002)(16586007)(110426005)(921003)(1121003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB4790; H:uefi-OptiPlex-790.ap.freescale.net; 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-Exchange-Diagnostics: =?us-ascii?Q?1; AM6PR04MB4790; 23:5n1NqLOkcyZ+1EG4BI9TneCjjgrPKe4oqbDI61xYS?= avx8LjMKPOpXeUzAhZFYGQ9VOMYTB91Jf1xkX+yHFHdiUTmBzV3LWvCk2P85caC+WFrqpqkpKbmTAQ4d50StbQxRKZEbXh1OoHxgSs69wf4PFb233BLxLPm2GoYEjJOkqnPIcmvLKTHXYqTbBWvpQ9/UaxR8OIajSqlIT1qKzZbJcZuxMFTiinfUAEtz2NQLHITYJzab4t5w7h7CpmdpIfJoGvoYIrZSI20sjs/+zExctAu2RZnmnq9YsBNwexMsnBlfDhqOU1nVqrgbRQjAkeXINt6liWhjBO8ShJzrvcjhvRLVJ6LuqgO4P0nXbCBSDAEDJ7bFKk3T9U3gjy4icbSANIcyJ/X69YTB+Sd1QhQeFfe7VrkPnrQ48Z436IrlYzkyQGH22hU882AEt3c3mccbBh4jwk/CPqBtshBPckIPlgQ6ad9YM5yHy096AM0IMAdeIdI5fi6iKEbYctCPHmeV6GBNkCA8VOi4X8sUwceQUJm8Zw0HFQ5/EW2rt5fe+sK3iT18M3Z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uf1 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2018 05:13:35.8799 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6a2cc02a-4f06-4915-a633-08d6325cf903 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4790 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181014_221346_396725_F30CB915 X-CRM114-Status: GOOD ( 11.78 ) 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 Gaur , Tang Yuantian , udit.kumar@nxp.com, pankaj.bansal@nxp.com, linux@armlinux.org.uk, adrian.hunter@intel.com, V.Sethi@nxp.com, 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", },