From patchwork Thu Aug 9 14:45:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 10561491 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 B05E014C0 for ; Thu, 9 Aug 2018 14:46:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E5C92B35C for ; Thu, 9 Aug 2018 14:46:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9165B2B49E; Thu, 9 Aug 2018 14:46:18 +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=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI 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 410AA2B35C for ; Thu, 9 Aug 2018 14:46:18 +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: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:In-Reply-To:References: List-Owner; bh=eVoi8Ev2nQMY6EG82MZTOhQ4pwCuRrxIRnzpTQKHIY0=; b=FXzXk2Gu/RPjaT wohDjzSel9YVGw5AAM4qu+iikqE5bEK/TD0RXx0B6wIP6k2nVJD0g1pq4s8Lqpv8bDy/9eWmImXfC XtExml/VrRDOxE1qzRIi9PnSHVaTyd1vWn5EbSBoCmE4SlQQKS7PvmsJeTn1/L0rqoFFJc2FHHJQ8 IzAIfoyCLTanIhEm5KEHmF3iMKtvJSQa+NOYV4qhi/bASxsqmttc5Xvmw0YPrluZFwP2CDCYGMWKJ AdyfZXzWrdXYMuHbIaJO9o2WQctdmHxNdkIA4dXjqBUx3DjMiQdPtMKgE5B++ff0D3lSA40G93DID ZwPenU1REgULxhPL2Mjg==; 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 1fnmCe-0002Qo-Sj; Thu, 09 Aug 2018 14:46:16 +0000 Received: from mail-db3eur04on0604.outbound.protection.outlook.com ([2a01:111:f400:fe0c::604] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fnmCb-0002OY-Ja for linux-arm-kernel@lists.infradead.org; Thu, 09 Aug 2018 14:46:15 +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=DBDy+dPDhk7dMC5fJxfKCSSEFhvHn7eH+xL7qQffaoE=; b=pX+N8QE/PmlFgocncAsLL0khB9fCa59bWXiKp4KCxa8j08KoPcj8i3PUZKcjWaGOfu7SBT0QtCEcejqyXUkzGnAr7GDyZS9cGr/lASSVr+2edd2vyUBTyPwWTgr8FvcJmLpW5TMRvgV0BBRJZ7qvx1oQ8eZpulJFgm/qY7a1KEE= Received: from fsr-ub1664-175.ea.freescale.net (95.76.156.53) by HE1PR04MB1611.eurprd04.prod.outlook.com (2a01:111:e400:59a9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.18; Thu, 9 Aug 2018 14:45:56 +0000 From: Abel Vesa To: Lucas Stach , Dong Aisheng , Pengutronix Kernel Team Subject: [PATCH v3 0/4] Add i.MX8MQ clock driver Date: Thu, 9 Aug 2018 17:45:37 +0300 Message-Id: <1533825941-17224-1-git-send-email-abel.vesa@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [95.76.156.53] X-ClientProxiedBy: AM3PR04CA0141.eurprd04.prod.outlook.com (2603:10a6:207::25) To HE1PR04MB1611.eurprd04.prod.outlook.com (2a01:111:e400:59a9::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fed6c580-a49e-4b74-8467-08d5fe06d16d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4618075)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:HE1PR04MB1611; X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1611; 3:QVDk6diuBn3y4TKjY7HjLS0njAZ9fAf2llOdjF3rKyuSRgHdPwVafgcSIPYVEsKoeYBpSt35SgneDFZE+M7qF2VbeoNwZDL+du9dYaMXow3fWiQCxIVirDIKW2XiJYNcGy4uefVehjyJyHDtl4/iHNTZxmUzlYy+qbkfzcGUqQ85gkPUwyMXdC2kdYZjN0evyGfliI68flya4KVmSXZ9KFaJlj8zmdYBokGx4lLJtBHt8zWkDX9WmE1cq0Ubat+H; 25:I9qRbDgds1v/m6EuRYoOondcdezzCc2fxSufGwDPY1QI/lWH6Q0t2dFdlG4DrOWo+XIs25i5v5546E+ZwqlJCGvoM+OODT0eGEiZp5ZL4sV49muA9Vq0gl7qDgRNchaElbymaQdG4Mv4Dq5wtxo8cXwXyjaANZVYp6CgkRZWm1KNjs2I6N8mGKbHnb2aldykR/YfvsnQLO24xRsRr3uxfmuCfXERLIHQRkX+gk1MBwZ3TweoQhU2beeWdWgc07/KypVdQuUCYCc3g3Knq9sl+5UNQH5h0arcWoyZ5owTQ5s0XfzuaS5wPphuSbZ0cT05tBvH4eL2S5/b6CravTVc5g==; 31:lA0Q+L9ouo1nXP/sfbGrxGpOeszm0HkdTZe5Zmb96wYZNnwCOE/UFs9vHuNSL3TXQYNSbiA20qbRQ3WufOxTResjMoLPkNCr2iMTdCSBYoHcL35x2HqzYx1luKgso2x/5MioU8gM8xyCVSR+T37gnoC/DUQxpsK9Wqzwhsd6XVTF35Dh4zZI9/3UDJgT9n8W/2NBnwU5aofdMQFwVS6OzgWVPdedBAqqQGYe3IjUcKM= X-MS-TrafficTypeDiagnostic: HE1PR04MB1611: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=abel.vesa@nxp.com; X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1611; 20:bQB7WNjTnUx+iR4NGHL3sCDjobBUtSUaoCuxUQ5bC9rMO/NU0Gbz0fdWF5lRp3bKamhqYl2YI6OUT2F7guB8hnfyMUCWjT6LjXuYyXMH1Wh6cwLajY1SVebFsF8c+2M2wgY3LygrCFxbNapV0Y6Y3CMIxE+gfw86b1qJ+MhpOw3Fp2mcUA3SHlmVvt4rAQvBOWvk2mMvXpjeuyaGWFHnjTFiIuhIkcHreIjpclVnZ6CA9ogbkqqrxTMJzKR4+YvAD5kE0HVzoWYuPjo5m30VrlDBZQFr9CR4g1LoKn75yAedpMxhTjMp+oppRGrnPJn63Cj+8k3d8D5eFbvQM8tCXckjoRLtrNwvHiixMVs3eV3msE3Tjoij44EnVbhyXN4dlMaJq0RUjHKHj4L9ZrAAv1fECeBCD/AhZ5+K7X8yLAsyz06qFPT4vOMNQwhPc1nmLn+m7BGz+znK9v704uveXRFmR8HapmiwIC4JinffWifKOOo9xkqIkecF7tcLwxRC; 4:9N3wXupB68ImLISgkY4SI6uen0+spKvZDuPTBxRatmlJs8YGwbfxbR099jLN6x6B0LvdkkQDN+3481Oee6RYodM9pYX7Ew3ee57d9KXZ8jF618JfWXIMARMFmXjBLBKKzHMI7bMXVOZlG4nErlCqfxI6el2BguypJWcXB4ORD10X2OEP+wTikCbqA7K2WJ7mPqvZcqk+7WV7EvlEuyIeoCneLN0PeWy3oqMaKpkQh0MeVzARIkwu8l6zIVhRYCNc0o+LgZ2LUcG7VoRtezSWTQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:HE1PR04MB1611; BCL:0; PCL:0; RULEID:; SRVR:HE1PR04MB1611; X-Forefront-PRVS: 0759F7A50A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(376002)(366004)(346002)(136003)(189003)(199004)(8936002)(47776003)(50226002)(53936002)(6116002)(81156014)(54906003)(110136005)(81166006)(8676002)(16586007)(5660300001)(68736007)(316002)(7736002)(305945005)(14444005)(6666003)(7416002)(51416003)(66066001)(52116002)(36756003)(3846002)(25786009)(105586002)(97736004)(6506007)(386003)(106356001)(48376002)(6512007)(6306002)(186003)(2906002)(16526019)(26005)(4326008)(966005)(50466002)(478600001)(476003)(44832011)(2616005)(6486002)(956004)(86362001)(486006); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR04MB1611; H:fsr-ub1664-175.ea.freescale.net; 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-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR04MB1611; 23:2Zpxsd8c246QnU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xE7t9mpGQGapjGUlf+PkYZIXEcYZKssuwFjttHNYs8ot+bP6RmqVGvmWKA8/XtTxuK0JPox2O8QHy4RiPzTNXglYt0crBMbjXM=; 7:GEPxan/EbICZkgHxmsoTZxYamuTzHvpkOmnc6GoRkO1Kui0zScgfMZXF1avE0wFCXwNNiini3wKF2I80jHC/wF+uRBACpB1HOudhVwoXVGtzUpuso1LyiEwT81V1Wp0wrT3JZCGWxswPqOU/7fG0dF7uQ8EUY+/uiEvN70HKgeT9WJUJT49vlWS1WS4lg02tAcMJdaWJE2fm6xdG1EvIYTSL+POq+LvQr3iDg0DiQcpVpMlltC54+tfTbMAGd6/R SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2018 14:45:56.7157 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fed6c580-a49e-4b74-8467-08d5fe06d16d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1611 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180809_074613_793532_4DE30C2D X-CRM114-Status: GOOD ( 11.48 ) 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: Mark Rutland , Rob Herring , Abel Vesa , devicetree@vger.kernel.org, Stephen Boyd , Michael Turquette , linux-kernel@vger.kernel.org, linux-imx@nxp.com, Fabio Estevam , Shawn Guo , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 This is basically just a resend of the following patchset: https://www.spinics.net/lists/linux-clk/msg23141.html I've just updated the patchset and implemented Shawn's and Aisheng's comments. I hope I haven't missed any of their comments. Lucas Stach (4): dt-bindings: add binding for i.MX8MQ CCM clk: imx: add fractional PLL output clock clk: imx: add SCCG PLL type clk: imx: add clock driver for i.MX8MQ CCM .../devicetree/bindings/clock/imx8mq-clock.txt | 20 + drivers/clk/imx/Makefile | 5 +- drivers/clk/imx/clk-frac-pll.c | 230 ++++++ drivers/clk/imx/clk-imx8mq.c | 856 +++++++++++++++++++++ drivers/clk/imx/clk-sccg-pll.c | 231 ++++++ drivers/clk/imx/clk.h | 48 ++ include/dt-bindings/clock/imx8mq-clock.h | 629 +++++++++++++++ 7 files changed, 2018 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/clock/imx8mq-clock.txt create mode 100644 drivers/clk/imx/clk-frac-pll.c create mode 100644 drivers/clk/imx/clk-imx8mq.c create mode 100644 drivers/clk/imx/clk-sccg-pll.c create mode 100644 include/dt-bindings/clock/imx8mq-clock.h