From patchwork Tue Nov 28 04:54:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13470498 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 7B559C4167B for ; Tue, 28 Nov 2023 04:55:15 +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:References:In-Reply-To: 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: List-Owner; bh=UJTEL+UpBP2Tw1AoNXpluY3p6eUmjAJMgyfsXr8d3Xg=; b=IsCIfrrqWxBr5f NI4bd+OEoSQLynYN6T1B1h2zX60JvvYLbGKTc3RHd0VbOwXl7YJ6W4wwSGmUoI91TPKAV85QMMbv2 56Hav93ipFo2XGn4yEG0t2IEL0bRSpy/6Gr/1/eo10AfU6ZvZtj5/aWTX1s9EBi/wzwLgfLmLiyde jhAcI7sg5QSWruZQHI+kIgL95YilhEIQOYBb/DRLhr0nkQ9uYNxq7xLCDvYE3Ip9qr+OG4b2ECgkj 1kGv+eVVQhO7n3ZI6n36N+N2R3UEBZcNI93tR5U7SiIVp6y4kbfqpzys/ruXyFKvHuuWwmTqGEUfj dTy/sQwkQas2IP8pX0pw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r7q7V-0044d6-0u; Tue, 28 Nov 2023 04:54:49 +0000 Received: from mail-il1-x134.google.com ([2607:f8b0:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r7q7F-0044ZV-1y for linux-arm-kernel@lists.infradead.org; Tue, 28 Nov 2023 04:54:35 +0000 Received: by mail-il1-x134.google.com with SMTP id e9e14a558f8ab-35b10f45696so15673515ab.0 for ; Mon, 27 Nov 2023 20:54:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701147272; x=1701752072; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VNceZKOO+3PgAe77vYkS4p5mUHqXVjcNpHRywKWrUJE=; b=Z6CX1f5bQNFbqlWDRKrD5Vk6SoYabor5XrMkwAMfpjidYbh7+ug/CIzZHkF3EUxSHc GC/Mn4jbYD6xg3mCSRhuujHqAdb0H4K7tosCbmCsG0FG3hUqTyfXT55vKkJKvxWLHZEf 6Q/aisZ6HI3p3Nv7bkOry3jgiqJtr1dl/0dl0Ay+Q3uXsgP91tfe8rq2Oipm5HZEjHOf 3raQpBAjh/RiUtwgTKFbzCgNrtnYNmsgwSN6mU6t44th6U9F57aVA6F7aWMGX0Smx32I QEw9UfpfzJakJFHjiKmoWjSCCD9voW68DWp0fRk0mVLPNiswEQZbHBZM3ayvRZmRU5CN Hfzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701147272; x=1701752072; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VNceZKOO+3PgAe77vYkS4p5mUHqXVjcNpHRywKWrUJE=; b=S1MfmtL2C16Kh7dYBQq+g4Rii4BeM1J6T8DLcYwEmGwpgVRVrj4XhCHXm2r0QkMRTH Po4nhSWjDj1ZzpOqL43ryWbMwz993dv1l2gqlIV1crJRpTByegUZDBVugiAMzzUOmFJJ vbDybP7uJLfhaXZmDYaAw2FlrYgP/+i/O6WeuHP6UVNXskyW345o3TXuRGoH7QZYxtRa om5q0WJrxcIDxCHGePlIQHRzEb0+gr4GxXEvcdJ2zGooHreFkij+Mnu2V3ksmLroPQLl jp1QY4B2r0QTc0mdtvx2wW2CeLp2aCfPbRoZE6Ay30/akDZMllkEW6VISFWcOBMdvuHk yqgg== X-Gm-Message-State: AOJu0YzXcLe9XWBhcngvqhGoN9YX8ywSCUmUViDpOlVaer+Uf0h4jVKl WZY3kTBli7xt4C5RR0gWxd0ijBhfiow= X-Google-Smtp-Source: AGHT+IExnDh815yNXcdkZQfo9IX7WR97yNJG3EUz1x0WT2HG5Y2G5t4wO/8aeDBpZWykVIfrcsDVTQ== X-Received: by 2002:a05:6e02:1c07:b0:35c:d4c8:b272 with SMTP id l7-20020a056e021c0700b0035cd4c8b272mr5638454ilh.30.1701147271815; Mon, 27 Nov 2023 20:54:31 -0800 (PST) Received: from aford-System-Version.lan ([2601:447:d002:5be:5d62:b359:8b5c:90ac]) by smtp.gmail.com with ESMTPSA id bo33-20020a056e02342100b0035b0b05189bsm3357251ilb.38.2023.11.27.20.54.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 20:54:31 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembeded.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 3/3] arm64: dts: imx8mm: Slow default video_pll1 clock rate Date: Mon, 27 Nov 2023 22:54:15 -0600 Message-Id: <20231128045415.210682-3-aford173@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231128045415.210682-1-aford173@gmail.com> References: <20231128045415.210682-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231127_205433_647921_4ADA3791 X-CRM114-Status: GOOD ( 10.86 ) 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 lcdif_pixel rate which propagates up the tree and sets the video_pll1 rate automatically. By setting this value low, it will force the recalculation of video_pll1 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_pll1 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 Reviewed-by: Frieder Schrempf Tested-by: Frieder Schrempf # Kontron BL diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index a3dae114c20e..669fdd2c54e4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -1131,7 +1131,7 @@ lcdif: lcdif@32e00000 { assigned-clock-parents = <&clk IMX8MM_VIDEO_PLL1_OUT>, <&clk IMX8MM_SYS_PLL2_1000M>, <&clk IMX8MM_SYS_PLL1_800M>; - assigned-clock-rates = <594000000>, <500000000>, <200000000>; + assigned-clock-rates = <24000000>, <500000000>, <200000000>; interrupts = ; power-domains = <&disp_blk_ctrl IMX8MM_DISPBLK_PD_LCDIF>; status = "disabled";