From patchwork Sun Feb 11 23:15:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13552648 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 A5F56C4829A for ; Sun, 11 Feb 2024 23:15:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :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=4PSgCA/V2iJAa3617UchrzHW06ugHZrH/mGQYoDHG/Q=; b=uvDMeqq7D9jWKw 6a0x/wiQQRX4Lg87EK4i9/BKfOYP7R52Bilpi8yQEpVztA1wh4HVMDP5N/rt+oHgs5AYWvZ/X3QKM 4BpKXxDasVgn4ihLHJ1Udoobzf005zRiiklEY1XXJAlEeoN5Tf7VSAIQOheePKKXgWfyvFyeR8FBf VV4XN+eA9rFgBHsq4bsanHUehvdUJrm96Hfr80TQ89+HVm9/LJuuTy1H4o8pUiETghJETUs1+YcY/ R9O/StpYB0VGqYsqVfiaevQv/x5BegbVcZmSF1eceslCXSrsBzxtqHSj6UXgBitkl+9MfqxssZqv7 SbH0ciKfpmfq57FoNjKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZJ2x-00000003Qdy-0HYj; Sun, 11 Feb 2024 23:15:39 +0000 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZJ2s-00000003QZM-3kqf for linux-arm-kernel@lists.infradead.org; Sun, 11 Feb 2024 23:15:36 +0000 Received: by mail-qt1-x82a.google.com with SMTP id d75a77b69052e-42c6b6ec76eso14026181cf.1 for ; Sun, 11 Feb 2024 15:15:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707693316; x=1708298116; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/9rb7Vuo0EUaJNM3OE4lE/4ti+cCsniXbuXa8cVO3Qo=; b=RjBuVUngSZ1vflrSimlu4myXJbS/zoOCgzRq+naeaI/Tqu6u2dGg0inaQ+QGMkrBf1 iP1P1plZeKwOIBI6sdPRxf3xcqX5u5owDa7SVzaU7LM4fnypUMa4RNX/hnsuuA9Gdq+g GOFyOqk7Z4IOMejavZbLDw/7rBMifhRQ3gMPrQ9FKyqrRI/0tIjLHz0LqIul3GeP5N8J WsYlZw6j7PVIpl4Kx49S917njBmhHt9nd/ZXJbybI+lL2eKQ43qNBr/lqbZVBGxXW6zS JVIr8vwYut1jCFM5x1lGiSif1vpslz359VXEx+xpxkdqBgsXMNPRln7AG8Qps27KxFoP pr9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707693316; x=1708298116; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/9rb7Vuo0EUaJNM3OE4lE/4ti+cCsniXbuXa8cVO3Qo=; b=XWRhCTA5sW5ws36YJjxhWLkIDcPWMrvc0NleCJkdbgQkDIGtXhXEmU+fTAd4GEb/2h uNIvDrIgKJedoAEIIILt/xC9bjKzQ7zsCmXO3pnkdgsYhxzSFhuAE7Rjq7RbMJHN63+2 RcAK7wBOZv599HY3BcdUobgs6ZOHaAEyoXwCwAn5bP3vxCtY96+Coe8wRpvdXdd5Scau JOa1JWs4w/4QrD9k7GxneZjxAdJmZo532VQgKXa+uiouvDNeCjcNJnwJEOSorTWDPScb +s/HtsnJWhFZWWBjppfBXjpvbWO0HYoXcug4w8Y2jGlqm+iVwwMY5X3xuvZ5N8OxXqp3 7XMw== X-Gm-Message-State: AOJu0Yx9hMeU1CpRRxUtN5Aq+npFIvpDN9hUMCpsiZ5JOqoYuAa3Kugb SFysu9d0/mVXKWJ3oRjTbSmXGzfI48n534kvOTfBlvzyYpsKEvx7jBuOnC/U X-Google-Smtp-Source: AGHT+IGJ4ZMbGiT5clUunfuBZrUJFNzVdTnqLXFnL/ALXUNFc4DpnjczVSH8tzkNkUEtE9ZwVZAnnA== X-Received: by 2002:a05:622a:1341:b0:42c:f24:1893 with SMTP id w1-20020a05622a134100b0042c0f241893mr7896892qtk.52.1707693315631; Sun, 11 Feb 2024 15:15:15 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVadT3SJadJYIB5Auk8+YrOhtUifoFH0HG9icPCnV8HbUCiA2Qb+3xxDXIwmI3Ng1c3oU1E9G2Ny3dIeZKk7rVScGnaHOEF24jcmRqg5G2WSeE9dhfr3rNxSuXiBELIvUS3Iz+B1aOIN/A2qqelaGBo0P1tnzz0m6CqQqGEaodhuyA+IFjFSRoV6aHqGnl3P468Jh+kVm6POWcYKDbNvpjr1nJS8SST7bNcfa9jgqBEBmeLlLMCPETO23OafWgjY58sIjblMBLoblqRKpaSxiYlMCnig9jXO6+NBAzDD0RciSfWEr+h2YVr6EuY6T8CIjZ26wK0uoUVTpfeDcjLpNc9rrabbO4ZEDKk6oeI6cqsml8zicqFjpvf4zFMQhbsSJr9Zazr0dfaW4N7sNRnEozSpaW/vDH7AtGh75nxYjd9Rq0zz+dIcTgxdus= Received: from aford-System-Version.lan ([2601:447:d002:5be:c8c4:8542:9142:2184]) by smtp.gmail.com with ESMTPSA id e9-20020ac81309000000b0042c7b74e767sm280955qtj.22.2024.02.11.15.15.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 15:15:15 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: marex@denx.de, aford@beaconembedded.com, Adam Ford , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: imx8mn: Slow default video_pll clock rate Date: Sun, 11 Feb 2024 17:15:08 -0600 Message-ID: <20240211231508.188567-1-aford173@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240211_151534_941610_D3D06FF1 X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. 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 Since commit 8208181fe536 ("clk: imx: composite-8m: Add imx8m_divider_determine_rate") the lcdif controller has had the ability to set the disp_pixel_clk rate which propagates up the tree and sets the video_pll rate automatically. By setting this value low, it will force the recalculation of video_pll to the lowest rate needed by lcdif instead of dividing a larger clock down to the desired clock speed. This has the advantage of being able to lower the video_pll rate from 594MHz to 148.5MHz when operating at 1080p. It can go even lower when operating at lower resolutions and refresh rates. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index 136e75c51251..932c8b05c75f 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -1168,7 +1168,7 @@ disp_blk_ctrl: blk-ctrl@32e28000 { <&clk IMX8MN_SYS_PLL1_800M>; assigned-clock-rates = <266000000>, <24000000>, - <594000000>, + <24000000>, <500000000>, <200000000>; #power-domain-cells = <1>;