From patchwork Mon Jan 6 14:21:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmad Fatoum X-Patchwork-Id: 13927536 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 85D33E77198 for ; Mon, 6 Jan 2025 14:27:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: 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=KunUZLJqOUd85UjEsocRku4mWeTHDQcxoeR8mWW2PN0=; b=xas9AuGofu7kMn SfWwNyKyaOo3wLIXGaEIsOJvgBRDIYmq/A6/Bhanq0RMvixBbWRS7DeXN3jhLPd6Hh8Jf4gt0yrUM GDxwLeiinV8DiGyHDLCN+vhUXE6ap4JE/H14oY9N6C06M80Wz3WXH0jZo9jpnpegAMv693a7R2VGV rtjNvYg8WZdCZv6Aa82lXKqOgArGQnbKjPhzDwhDOkm8v+a8saDHIvCVjnO4CBMF4OOt8EfPIE+1P v+RlBl3Yd/0HR39fZKayjTGXN98Q5ZHZbxmmgfpguUUAczNSGXhj8O8xwKr9+/jwmLoXDypUXEFCs iGwy0v+nGSO/HbslLIJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tUo4j-00000001ZVN-1cSW; Mon, 06 Jan 2025 14:27:25 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tUnza-00000001Y4g-2umz for linux-arm-kernel@lists.infradead.org; Mon, 06 Jan 2025 14:22:07 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUnzF-0003vQ-E1; Mon, 06 Jan 2025 15:21:45 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tUnzE-007BQz-0G; Mon, 06 Jan 2025 15:21:44 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1tUnzE-008rLw-2V; Mon, 06 Jan 2025 15:21:44 +0100 From: Ahmad Fatoum Subject: [PATCH v2 0/6] arm64: dts: freescale: imx8mp-skov: switch to nominal drive mode Date: Mon, 06 Jan 2025 15:21:41 +0100 Message-Id: <20250106-imx8m-clk-v2-0-6aaeadac65fe@pengutronix.de> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAPXme2cC/03M0QqDIBTG8VeJcz1HulDb1d5jdCF6rMOWhTZpR O8+Fwx2+f/4+G2QMBImuFYbRMyUaAolxKkCO5jQIyNXGkQtGi64YjSuemT2+WBtI5WSF+et01D +c0RP62Hdu9IDpWWK74PO/Lv+lPZPyZzVzHrjvam1ckbeZgz9a4lToPXsELp93z+udY/cpwAAA A== X-Change-ID: 20241217-imx8m-clk-9467763dfcd8 To: Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Abel Vesa , Marek Vasut Cc: linux-clk@vger.kernel.org, imx@lists.linux.dev, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Conor Dooley , Ahmad Fatoum X-Mailer: b4 0.14.2 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250106_062206_734849_D7D80397 X-CRM114-Status: GOOD ( 14.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Unlike the i.MX8MM and i.MX8MN SoCs added earlier, the imx8mp.dtsi configures some clocks at frequencies that are only validated for overdrive mode, i.e., when VDD_SOC is 950 mV. For the Skov i.MX8MP board, we want to run the SoC at the lower voltage of 850 mV though to reduce heat generation and power usage. For this to work, clock rates need to adhere to the limits of the nominal drive mode. This is done by this series: A new imx8mp-nominal.dtsi reconfigures the imx8mp.dtsi clock tree to be compatible with nominal mode, an adaptation to the Linux clock driver makes it sanity check the actual clock rates against the SoC operating mode's constraints and finally the Skov DT makes use of it. Actual configuration of the VDD_SOC rail continues to happen prior to Linux as well as PLL configuration that needs to happen earlier than the kernel running. See the corresponding barebox patch series[1] for details. Note that the barebox series didn't yet include VDD_SOC reconfiguration to 850mV, that would follow once the kernel changes have been merged. [1]: https://lore.kernel.org/barebox/20240503103717.1370636-1-a.fatoum@pengutronix.de/ --- Changes in v2: - Explain in Patch 1/6 why two properties are added instead of one (Conor) - Collect Conor's Acked-by - Collect Peng's Reviewed-by - Link to v1: https://lore.kernel.org/r/20241219-imx8m-clk-v1-0-cfaffa087da6@pengutronix.de --- Ahmad Fatoum (6): dt-bindings: clock: imx8m: document nominal/overdrive properties arm64: dts: imx8mp: Add optional nominal drive mode DTSI arm64: dts: imx8mp: add fsl,nominal-mode property into nominal.dtsi arm64: dts: freescale: imx8mp-skov: fix LDB clock rate configuration arm64: dts: freescale: imx8mp-skov: operate SoC in nominal mode clk: imx8mp: inform CCF of maximum frequency of clocks .../devicetree/bindings/clock/imx8m-clock.yaml | 14 ++ arch/arm64/boot/dts/freescale/imx8mp-nominal.dtsi | 64 +++++++++ .../arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi | 5 +- .../freescale/imx8mp-skov-revb-mi1010ait-1cp1.dts | 19 +-- drivers/clk/imx/clk-imx8mp.c | 147 +++++++++++++++++++++ 5 files changed, 233 insertions(+), 16 deletions(-) --- base-commit: 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8 change-id: 20241217-imx8m-clk-9467763dfcd8 Best regards,