From patchwork Mon Mar 16 06:43:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 11439801 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B3AC090 for ; Mon, 16 Mar 2020 06:43:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 82BDA2071C for ; Mon, 16 Mar 2020 06:43:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jkzu7Rze"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="V3GQIwuM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 82BDA2071C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:Subject:To:From :Date: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=JQTaz6gWW3nIGpY+aXNc9w1tC5bi9GPXkFGo4XEHR2s=; b=jkzu7RzekNVNZ/ OcdJMrKDQUTQPOhVCQQv13Jz5uyNexcHbpqYkkEEhRFuz5KuCkM9jEIHvP+hgfUWXcpYLLkfjSHrc /1DImlmRj59zjgJKQt1KbVUeQ/0C8S40/N91HYDOt/9AvxQxGQs4yIyfj0vuvbbegvUpITUaN82ZA 6/jp/ydm72aBKfqyYCzm04PVBDJoDEY+euUjeX5wclGQJLVzGYEEIERl5F/0gRR8GYkzjoxrRDHP3 hwrBGenxbkm2mv4VWyF5x42B/1EGDRO7x0vW99c6oM3C2BqsdSrv2GOVllhWFL5MgXM3Fz7v3lUHB eZTEEv3QFFkmN3zsEeNw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jDjTO-0005GF-1E; Mon, 16 Mar 2020 06:43:38 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jDjTE-00058A-TG for linux-arm-kernel@lists.infradead.org; Mon, 16 Mar 2020 06:43:30 +0000 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B2C292071C; Mon, 16 Mar 2020 06:43:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584341008; bh=GML3hxtvT+990HulKQpNUxDglfh7BzBN9PUEJREf6Uc=; h=Date:From:To:Cc:Subject:From; b=V3GQIwuM8upML/IirHwPbltYu8aaV0D9bMqvYisAy2R/TMeUQym6dXzkfGZl+if9T bnLbFn4O2SiHuUIhlGMN3AkXwqA5Z7q7Fbw8jypZpRiHhfxJfXXQMByhMPWGop3otH 7y9nw4d5jlh9PelI70+GdNf4Q6fvatA7ncJbshI0= Date: Mon, 16 Mar 2020 14:43:23 +0800 From: Shawn Guo To: Stephen Boyd Subject: [GIT PULL] i.MX clock drivers update for 5.7 Message-ID: <20200316064322.GI17221@dragon> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200315_234328_985390_DFF53323 X-CRM114-Status: GOOD ( 16.98 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [198.145.29.99 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Agner , linux-imx@nxp.com, kernel@pengutronix.de, Fabio Estevam , 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 Hi Stephen, This is i.MX clock driver update I collected for 5.7. Please consider to pull. Also, 16e71d4da799 ("clk: imx8mn: add SNVS clock to clock tree") was pulled into DT branch as dependency, so please keep it stable. Thanks! Shawn The following changes since commit bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9: Linux 5.6-rc1 (2020-02-09 16:08:48 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git tags/clk-imx-5.7 for you to fetch changes up to b5881e8019e0d39c43a2da56c4ae616a50615e00: clk: imx: clk-gate2: Pass the device to the register function (2020-03-16 09:38:30 +0800) ---------------------------------------------------------------- i.MX clock drivers update for 5.7: - A series from Anson to convert i.MX8 clock bindings to json-schema. - Update pll14xx driver to include new frequency entries for pll1443x table, and return error for invalid PLL type. - Clean up header includes and unnecessary code on a few clock driver. - Add mssing of_node_put() call for a number of clock drivers. - Drop flag CLK_IS_CRITICAL from 'A53_CORE' mux clock, as we already have the flag on its child cpu clock. - Fix a53 cpu clock for i.MX8 drivers to get it source from ARM PLL via CORE_SEL slice, and source from A53 CCM clk root when we need to change ARM PLL frequency. Thus, we can support core running above 1GHz safely. - Update pfdv2 driver to check zero rate and use determine_rate for getting the best rate. - Add CLKO2 for imx8mm, SNVS clock for imx8mn, and PXP clock for imx7d. ---------------------------------------------------------------- Abel Vesa (1): clk: imx: clk-gate2: Pass the device to the register function Anson Huang (23): dt-bindings: clock: Convert i.MX8MQ to json-schema dt-bindings: clock: Convert i.MX8MM to json-schema dt-bindings: clock: Refine i.MX8MN clock binding clk: imx: pll14xx: Add new frequency entries for pll1443x table clk: imx: Include clk-provider.h instead of clk.h for i.MX8M SoCs clock driver clk: imx: drop redundant initialization clk: imx7ulp: Include clk-provider.h instead of clk.h clk: imx6sl: Add missing of_node_put() clk: imx8mq: Add missing of_node_put() clk: imx8mm: Add missing of_node_put() clk: imx8mn: Add missing of_node_put() clk: imx8mp: Add missing of_node_put() clk: imx8mp: Include slab.h instead of clkdev.h clk: imx8mm: Remove unused includes clk: imx8mn: Remove unused includes clk: imx8mp: Rename the IMX8MP_CLK_HDMI_27M clock clk: imx: pll14xx: Return error if pll type is invalid clk: imx: clk-sscg-pll: Drop unnecessary initialization clk: imx: Fix division by zero warning on pfdv2 clk: imx8mn: A53 core clock no need to be critical clk: imx8mm: A53 core clock no need to be critical clk: imx8mp: A53 core clock no need to be critical clk: imx8mq: A53 core clock no need to be critical Fabio Estevam (2): clk: imx8mm: Fix the CLKO1 source select list clk: imx8mm: Add CLKO2 support Horia Geantă (2): dt-bindings: clock: imx8mn: add SNVS clock clk: imx8mn: add SNVS clock to clock tree Laurent Pinchart (1): clk: imx7d: Add PXP clock Peng Fan (12): clk: imx: imx8mp: add ocotp root clk clk: imx: composite-8m: add imx8m_clk_hw_composite_core clk: imx: imx8mq: use imx8m_clk_hw_composite_core clk: imx: imx8mm: use imx8m_clk_hw_composite_core clk: imx: imx8mn: use imx8m_clk_hw_composite_core clk: imx: imx8mq: fix a53 cpu clock clk: imx: imx8mm: fix a53 cpu clock clk: imx: imx8mn: fix a53 cpu clock clk: imx: imx8mp: fix a53 cpu clock clk: imx: pfdv2: switch to use determine_rate clk: imx: pfdv2: determine best parent rate clk: imx: pllv4: use prepare/unprepare .../devicetree/bindings/clock/imx8mm-clock.txt | 29 --------- .../devicetree/bindings/clock/imx8mm-clock.yaml | 68 ++++++++++++++++++++ .../devicetree/bindings/clock/imx8mn-clock.yaml | 48 +-------------- .../devicetree/bindings/clock/imx8mq-clock.txt | 20 ------ .../devicetree/bindings/clock/imx8mq-clock.yaml | 72 ++++++++++++++++++++++ drivers/clk/imx/clk-composite-8m.c | 20 ++++-- drivers/clk/imx/clk-fixup-div.c | 2 +- drivers/clk/imx/clk-fixup-mux.c | 2 +- drivers/clk/imx/clk-gate2.c | 8 +-- drivers/clk/imx/clk-imx6sl.c | 1 + drivers/clk/imx/clk-imx7d.c | 1 + drivers/clk/imx/clk-imx7ulp.c | 2 +- drivers/clk/imx/clk-imx8mm.c | 63 ++++++++++++------- drivers/clk/imx/clk-imx8mn.c | 41 +++++++----- drivers/clk/imx/clk-imx8mp.c | 24 +++++--- drivers/clk/imx/clk-imx8mq.c | 53 ++++++++++------ drivers/clk/imx/clk-pfdv2.c | 61 ++++++++++++------ drivers/clk/imx/clk-pll14xx.c | 4 ++ drivers/clk/imx/clk-pllv4.c | 12 ++-- drivers/clk/imx/clk-sscg-pll.c | 14 ++--- drivers/clk/imx/clk.h | 13 +++- include/dt-bindings/clock/imx7d-clock.h | 3 +- include/dt-bindings/clock/imx8mm-clock.h | 11 +++- include/dt-bindings/clock/imx8mn-clock.h | 8 ++- include/dt-bindings/clock/imx8mp-clock.h | 5 +- include/dt-bindings/clock/imx8mq-clock.h | 9 ++- 26 files changed, 383 insertions(+), 211 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/imx8mm-clock.txt create mode 100644 Documentation/devicetree/bindings/clock/imx8mm-clock.yaml delete mode 100644 Documentation/devicetree/bindings/clock/imx8mq-clock.txt create mode 100644 Documentation/devicetree/bindings/clock/imx8mq-clock.yaml