Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3610260rdh; Mon, 27 Nov 2023 20:55:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IG4nI1Tl5ZtPIZMcYct6GCtFuZ54cWuYpWGS40IGNhsBoZndZiRsLNtfqzixVo/+dB+Pqgr X-Received: by 2002:a05:6358:a083:b0:16e:43c6:5c6e with SMTP id u3-20020a056358a08300b0016e43c65c6emr5555789rwn.2.1701147331537; Mon, 27 Nov 2023 20:55:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701147331; cv=none; d=google.com; s=arc-20160816; b=HFNDbRzkUl7BcR+I178KOFk9Qaz0MyfdNu8aXdM8eYyIiJCeGQ9ncabfbV2eIndy0T ALlP57s96alFI9n+qUnEez4pfUHT1SuW9kv9Ge049ELuuXzWOsqJ0cibGUlFKQt9vvIt eAde8iah6xaKQ0D+UM2QJalGpSNN6zOW4MCrXo4k9BMKedZB6epYyFcadUgC3TUefPWT c2/cZan7t2Oe1Qhe9X07g5NZbO0B6o43yA//oaNnIihyP/BONXUhikFkTLLhdzTEk0qZ XHjJmV1e0xbJuaReVJnIy2P2OAfMirjH5ESDN5yB2B7b0SkSPY5PXifS0RQpJpA+QmSA vNHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VNceZKOO+3PgAe77vYkS4p5mUHqXVjcNpHRywKWrUJE=; fh=tUzw7UQgGhEQOtLRaMsrdtE+RLk8Yeyavv+daiYMc1s=; b=FbdFQsTz0pCrzbJyXP0w1RytQyXXMTBJSrE55RGHu78HwGxSRoQsPZYOrmk7alqwl0 qI4QyB0A0OxFGM05qNHTKbNFFDszROzFnRvi2e5VWQ6CPzHPDJ5Vq3FcpsU5V7LcuRnB ze57phyJRLR/OZOGfP+aF0B8jLh4I3BKp2/JXl7KjzbD7uTDl/OO+McJZ3s3FB7CwaN+ BVAYyLz+uVRSaepLXryTnODszLzCR3q8QBvlIvN9E1y13AkAtR9lP6tm2f6IKL7Cg3fv OMJF+vKnT7LhaH+7/kmTDGaPql7cqCssKHL1rH91Ps0vVumJl54ClWq7FW8ytY2Tgk2p QJ1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fJEZySqe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id v186-20020a632fc3000000b005bdd8af5a15si11042695pgv.668.2023.11.27.20.55.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 20:55:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fJEZySqe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 2382082BB180; Mon, 27 Nov 2023 20:55:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343514AbjK1Eya (ORCPT + 99 others); Mon, 27 Nov 2023 23:54:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343507AbjK1Ey1 (ORCPT ); Mon, 27 Nov 2023 23:54:27 -0500 Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9FFB1A1; Mon, 27 Nov 2023 20:54:32 -0800 (PST) Received: by mail-il1-x135.google.com with SMTP id e9e14a558f8ab-35c7971a374so9520425ab.2; Mon, 27 Nov 2023 20:54:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701147272; x=1701752072; darn=vger.kernel.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=fJEZySqe1Ql8o9xYoOK67a3mvaDut5U6zgo1C7dm39m2Par8eoZMPpTfkuLY4jlris X5jBoULkHsTb9hpwu/IP/Y0w/5Z/cr3wGqMxNa0iGrM/rjkTP5ntWio5a4l7T+TvBSi7 38X0Yrl1pbHkLZ+SzncYnWoCPW/5s3ZijvixVyNEj+i9ujtTijaAfJPjG2AyYTe6MGiU 6RGQAfmHqcSjh/1JF3U4mZyoXnNVaRMi8LjHFAI0/jwF9BZ6Rrlgw/P1DH5EyCS6GtXt HLTObHhkpCkj/rbTqvbTGQidp+NLMUQmr+23RLExnMsXxK0diwxmwmmjjsi7ZWL49nGU F9Zw== 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=PTQhxFncBEaf5tochsqb6ndJDoawpc2E3v5Q84vPJaecb7wOSxrZ/l7MZ/QRBDWLfn /vOfAMoi9eg6K2VCrIyhrpgO33SlZaPLi1sYhVBFv4Ujn/sW9kXplP3blgMXme5bhQf5 q1W6/YVOq6G202Z2Q0KjAyOBerSmoabBoMd4Y5yPal2MjZv8pbf1iqk9mYzQ7SS/15nX 0dk51UNP6cSMdW7onGVMjhbA97wtsrHTN3G8DZAIk9/kE1hr21vTZCBW8sT6//vIvXl4 qvxVPRSk4Y2gSv5M0lrW7gnzETbjq3IP320D3PlLzxgcBtQesSQdRhtT/gVkos4Xv0gR 1SIQ== X-Gm-Message-State: AOJu0Yz5piXtfJtZ6IQZqRFKqRFIzaKaYWSUS3K19hbBNmiAptW6XtGG +yZW+4xS/tjcN1k3oBW6SUX8Z1eSGs0= 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 27 Nov 2023 20:55:29 -0800 (PST) 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 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"; -- 2.40.1