From patchwork Wed Jan 15 11:10:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 11333791 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 4F39792A for ; Wed, 15 Jan 2020 11:10:48 +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 2D19D24671 for ; Wed, 15 Jan 2020 11:10:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BGYgCFNp"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="Snn9dHj3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2D19D24671 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=0QhugcbdZc5VQNRX8UdBtwQYSfLYmEWc3h5fanEQ0t0=; b=BGYgCFNpRQ4yMW k73BM6jvCEXrPiKoKk32FfwYyRLEqV1W3dP7iFtpfdNecz54Lx57kAP73brBB0/d3bCiWyWv/Gbj3 p8iaqnqxtYFZxt8/9hNBW9Bl5dpXsXQJuN8spHZl11Q5Pd3sF9LuTsd7A9HGPlBmyV1OHU2HtHOU9 /G+N7F2ulDDe432NIkNDE7bvY5M5Xf2BTHjCPk7rRcOMwN+Bxw8tWZiu2Rui+EhLFTXAKJa7KxsgM 4jT/E3RtMxLK/hoPBDxxDSgyFj4wVqUmTy/YGaTw+YiXALveEXlfXbB/sa6E1WRk3QUFFjcgAFpGC CBcbQB7PFNZsdV7GAtTw==; 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 1irgZT-0001M0-M7; Wed, 15 Jan 2020 11:10:47 +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 1irgZO-0001LG-Jg for linux-arm-kernel@lists.infradead.org; Wed, 15 Jan 2020 11:10:46 +0000 Received: from T480 (98.142.130.235.16clouds.com [98.142.130.235]) (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 7BCED222C3; Wed, 15 Jan 2020 11:10:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579086641; bh=xTHrg5/F20scBUneFWL35xeEaTnP5zm0fgHuucG+X4g=; h=Date:From:To:Cc:Subject:From; b=Snn9dHj3tFhbOAT+/D0e9lgk0lt+M2zaNTptlj4v03Xkhh9MPme/xrq4VfEnWD/FR DiUzZpDsRWG7G7TAls7hX+ObpEr6bU8RJPruLtzkgGvzaWHdOOR04JsR5fafMUk0ss 2DGPyIi6QA6RbDbPOPxc9i3rjZH1ePHWyvp61PLk= Date: Wed, 15 Jan 2020 19:10:32 +0800 From: Shawn Guo To: Stephen Boyd Subject: [GIT PULL v2] i.MX clock changes for 5.6 Message-ID: <20200115111030.GA29329@T480> 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-20200115_031042_684999_5F155FD9 X-CRM114-Status: GOOD ( 15.72 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.2 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_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 Message has at least one valid DKIM or DK signature -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 Changes for v2: - Drop imx8m_clk_hw_composite_core() change set, which breaks some existing DTB right away. The following changes since commit e42617b825f8073569da76dc4510bfa019b1c35a: Linux 5.5-rc1 (2019-12-08 14:57:55 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git tags/imx-clk-5.6 for you to fetch changes up to 9c140d9926761b0f5d329ff6c09a1540f3d5e1d3: clk: imx: Add support for i.MX8MP clock driver (2020-01-12 14:07:36 +0800) ---------------------------------------------------------------- i.MX clock changes for 5.6: - A series from Abel Vesa to do some trivial cleanups which will be helpful for i.MX clock driver switching to clk_hw based API. - A series from Anson Huang to add i.MX8MP clock driver support. - Disable non-functional divider between pll4_audio_div and pll4_post_div on imx6q. - Fix watchdog2 clock name typo in imx7ulp clock driver. - A couple of patches from Leonard Crestez to set CLK_GET_RATE_NOCACHE flag for DRAM related clocks on i.MX8M SoCs. - Suppress bind attrs for i.MX8M clock driver to avoid the possibility of reloading the driver at runtime. - Add a big comment in imx8qxp-lpcg driver to tell why devm_platform_ioremap_resource() shouldn't be used for the driver. - A correction on i.MX8MN usb1_ctrl parent clock setting. - A couple of trivial cleanup on clk-divider-gate driver. - A series from Peng Fan to convert i.MX8M clock drivers to clk_hw based API. ---------------------------------------------------------------- Abel Vesa (11): clk: imx: Add correct failure handling for clk based helpers clk: imx: Rename the SCCG to SSCG clk: imx: Replace all the clk based helpers with macros clk: imx: pllv1: Switch to clk_hw based API clk: imx: pllv2: Switch to clk_hw based API clk: imx: imx7ulp composite: Rename to show is clk_hw based clk: imx: Rename sccg and frac pll register to suggest clk_hw clk: imx: Rename the imx_clk_pllv4 to imply it's clk_hw based clk: imx: Rename the imx_clk_pfdv2 to imply it's clk_hw based clk: imx: Rename the imx_clk_divider_gate to imply it's clk_hw based clk: imx7up: Rename the clks to hws Anson Huang (3): clk: imx: gate4: Switch imx_clk_gate4_flags() to clk_hw based API dt-bindings: imx: Add clock binding doc for i.MX8MP clk: imx: Add support for i.MX8MP clock driver Fabio Estevam (1): clk: imx7ulp: Fix watchdog2 clock name typo Jan Remmet (1): clk: imx6q: disable non functional divider Leonard Crestez (4): clk: imx8m: Set CLK_GET_RATE_NOCACHE on dram clocks clk: imx: Mark dram pll on 8mm and 8mn with CLK_GET_RATE_NOCACHE clk: imx8m: Suppress bind attrs clk: imx8qxp-lpcg: Warn against devm_platform_ioremap_resource Li Jun (1): clk: imx8mn: correct the usb1_ctrl parent to be usb_bus Peng Fan (11): clk: imx: clk-divider-gate: fix a typo in comment clk: imx: clk-divider-gate: drop redundant initialization clk: imx: clk-pll14xx: Switch to clk_hw based API clk: imx: clk-composite-8m: Switch to clk_hw based API clk: imx: add imx_unregister_hw_clocks clk: imx: add hw API imx_clk_hw_mux2_flags clk: imx: gate3: Switch to clk_hw based API clk: imx: Remove __init for imx_obtain_fixed_clk_hw() API clk: imx: imx8mn: Switch to clk_hw based API clk: imx: imx8mm: Switch to clk_hw based API clk: imx: imx8mq: Switch to clk_hw based API .../devicetree/bindings/clock/imx8mp-clock.yaml | 68 ++ drivers/clk/imx/Kconfig | 6 + drivers/clk/imx/Makefile | 3 +- drivers/clk/imx/clk-composite-7ulp.c | 2 +- drivers/clk/imx/clk-composite-8m.c | 4 +- drivers/clk/imx/clk-divider-gate.c | 12 +- drivers/clk/imx/clk-frac-pll.c | 7 +- drivers/clk/imx/clk-imx6q.c | 5 +- drivers/clk/imx/clk-imx7ulp.c | 182 ++--- drivers/clk/imx/clk-imx8mm.c | 565 +++++++-------- drivers/clk/imx/clk-imx8mn.c | 498 +++++++------- drivers/clk/imx/clk-imx8mp.c | 764 +++++++++++++++++++++ drivers/clk/imx/clk-imx8mq.c | 584 ++++++++-------- drivers/clk/imx/clk-imx8qxp-lpcg.c | 11 + drivers/clk/imx/clk-pfdv2.c | 2 +- drivers/clk/imx/clk-pll14xx.c | 29 +- drivers/clk/imx/clk-pllv1.c | 14 +- drivers/clk/imx/clk-pllv2.c | 14 +- drivers/clk/imx/clk-pllv4.c | 2 +- drivers/clk/imx/{clk-sccg-pll.c => clk-sscg-pll.c} | 152 ++-- drivers/clk/imx/clk.c | 12 +- drivers/clk/imx/clk.h | 162 +++-- include/dt-bindings/clock/imx8mp-clock.h | 300 ++++++++ 23 files changed, 2346 insertions(+), 1052 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/imx8mp-clock.yaml create mode 100644 drivers/clk/imx/clk-imx8mp.c rename drivers/clk/imx/{clk-sccg-pll.c => clk-sscg-pll.c} (70%) create mode 100644 include/dt-bindings/clock/imx8mp-clock.h