Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp1655743rwe; Sat, 15 Apr 2023 03:42:38 -0700 (PDT) X-Google-Smtp-Source: AKy350bIvMqNRrmX/bfiw191712Nwegkncdb236/fRaVso9rTSeS3nVc1PsgFoi39Ord0UGS37GZ X-Received: by 2002:a05:6a20:4406:b0:ee:8be4:c4cc with SMTP id ce6-20020a056a20440600b000ee8be4c4ccmr4264560pzb.35.1681555358496; Sat, 15 Apr 2023 03:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681555358; cv=none; d=google.com; s=arc-20160816; b=gSOU6U154Nv7mFXtiq503PkDVNNBV8tHALQZoLHxDZAonsM59UCAw+cD3wbwikfrko 7GjzVuH9NJ4fr5JqMEzMim89mJdwyEEf9KR0RfH/w+uDUS/wwt4vT66E3aPYEhFBU9JV n5waC6cDtftWi5InrYz3IipdiMc/WJbrSK5tAglkirVewa/JDDlJZAAjKUsiru3WgG9k swS+R/E3Gh1FdJE6edGCuuMwulpAC7b8yZhHvEE45MTbbzxLlCK3FpjJsx2ZHshRj7ms vu7DLiibZAgXkX8ACAtzi1zf/zTI28c7IL0Q3yAgKYc/6bLIt/t98Kd4iqXzRMyhSvSl wANQ== 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=hcAU830LZXIq4Od+MpqJpps0tJki2Rs3z9GrCN5O5F8=; b=J1gBH/agHtBTtd0Xd4B/sthAjUbNetN7sMXYePWSFzhSLFyblL1/sY+fOiwFhIZzi5 9m3Lmw43yF0bU4/8YbEIQ+DlgqVvnb219h9t1bjcvHmKMGQC96aD5Rji0n8W3UdXVy2T XYvM5KJxsM78E2QsXPyFWBwomQh05lrnDpQEN0MpFiiGYo7aqZnFbczWORH4B04Q5lVD zE+sNV6GOHiQ1Ul30IiLWf+FXa1ROaN70SdzHOYCkV/vXbVX7uj+PNG0ePEqI07sWvVM 0qkiCNz++1xrzhW1mhBMbDTH+nuADRm2Gfs1IdTCqlabyjwxuHDIt6I7xOTirUPeJfBD PNdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=YLeiKPXw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i24-20020a63cd18000000b0050fae6024f8si6608456pgg.792.2023.04.15.03.42.27; Sat, 15 Apr 2023 03:42:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=YLeiKPXw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230017AbjDOKll (ORCPT + 99 others); Sat, 15 Apr 2023 06:41:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbjDOKl2 (ORCPT ); Sat, 15 Apr 2023 06:41:28 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE0705BB0; Sat, 15 Apr 2023 03:41:26 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id ca18e2360f4ac-760e8acca3eso690539f.1; Sat, 15 Apr 2023 03:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681555286; x=1684147286; 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=hcAU830LZXIq4Od+MpqJpps0tJki2Rs3z9GrCN5O5F8=; b=YLeiKPXwGyo5iZJpXn3Tkc+hE+FtHtfsYG2mlXimXOohTZ555+VueT+KOzYLdwkjPb hupPmnNpskhX3EbEKJdLw+EJQXvrdx2dN7LLpa9ivtY0TkryvmppUQZUec4PbnQJy28K 0O+yJ1tjUEJRbhSYrIUYsEEAh9t3XytXuTb/PwTZ0ciHMnW2gdplq44vdr9DQNJvRPOp q1u9xylNN4wa4hLLY10jsUEH0dqFYMCqBV/7DQfRkYxuzbrbivtd4IZfOfzcckH0/yxT YckoQhfJLpxkI12awnBW7LUXw/CSxBI6q9XfW4b9GH83iVqnDbSxo6zVLYSq/l3kjoa+ wEig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681555286; x=1684147286; 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=hcAU830LZXIq4Od+MpqJpps0tJki2Rs3z9GrCN5O5F8=; b=kMSAsbHEgglPXJMXf4f1z3W+KRrbnXuZsVx9yJawe4tLl052e0aHMk5sx5rN8WWIeb rbKTCkw8mNCKgHbanFVU3RW5GuPYP1N7KMHX57MqU8ziurYh+muCtsRu8nQS+TWzuyVG xjyDkA40ErrXnBwUbl2UtrUevBkWYPKuz5ZWQ+I5ZiwjfqEnZDaXkBmYqvmzM+sgMqWp IF9/AkwrZpOAi9GM1PQW5Ui7Oldm5TjdWE/w59rRkW8/fwHmmj+LTOc3AtT7CcafeCi+ aZmNasR2LuakHNd36pNF/8XXfhasJSn0NeJWx7zA3xquo+wj3u3hQw9zIo8BzDga67Ah A0uQ== X-Gm-Message-State: AAQBX9ex/kvpCdwBLrES2s3yeq46YAqLyGM122ZpMvLJsXONSg78EgvQ VaB+drbEcxSvs3CGT8ml8QI= X-Received: by 2002:a92:c04c:0:b0:32a:abbe:e6b5 with SMTP id o12-20020a92c04c000000b0032aabbee6b5mr2790610ilf.11.1681555286038; Sat, 15 Apr 2023 03:41:26 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:40bb:6fe6:ddbc:cc9a]) by smtp.gmail.com with ESMTPSA id bp11-20020a056638440b00b0040b38102b79sm246536jab.82.2023.04.15.03.41.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Apr 2023 03:41:25 -0700 (PDT) From: Adam Ford To: dri-devel@lists.freedesktop.org Cc: m.szyprowski@samsung.com, marex@denx.de, aford@beaconembedded.com, Adam Ford , Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Inki Dae , Jagan Teki , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Frieder Schrempf , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] arm64: dts: imx8mn: Fix video clock parents Date: Sat, 15 Apr 2023 05:41:03 -0500 Message-Id: <20230415104104.5537-6-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230415104104.5537-1-aford173@gmail.com> References: <20230415104104.5537-1-aford173@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are a few clocks whose parents are set in mipi_dsi and mxsfb nodes, but these clocks are used by the disp_blk_ctrl power domain which may cause an issue when re-parenting, resuling in a disp_pixel clock having the wrong parent and wrong rate. Fix this by moving the assigned-clock-parents as associate clock assignments to the power-domain node to setup these clocks before they are enabled. Fixes: d825fb6455d5 ("arm64: dts: imx8mn: Add display pipeline components") Signed-off-by: Adam Ford --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 28 ++++++++++++----------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index bd84db550053..8be8f090e8b8 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -1069,13 +1069,6 @@ lcdif: lcdif@32e00000 { <&clk IMX8MN_CLK_DISP_APB_ROOT>, <&clk IMX8MN_CLK_DISP_AXI_ROOT>; clock-names = "pix", "axi", "disp_axi"; - assigned-clocks = <&clk IMX8MN_CLK_DISP_PIXEL_ROOT>, - <&clk IMX8MN_CLK_DISP_AXI>, - <&clk IMX8MN_CLK_DISP_APB>; - assigned-clock-parents = <&clk IMX8MN_CLK_DISP_PIXEL>, - <&clk IMX8MN_SYS_PLL2_1000M>, - <&clk IMX8MN_SYS_PLL1_800M>; - assigned-clock-rates = <594000000>, <500000000>, <200000000>; interrupts = ; power-domains = <&disp_blk_ctrl IMX8MN_DISPBLK_PD_LCDIF>; status = "disabled"; @@ -1093,12 +1086,6 @@ mipi_dsi: dsi@32e10000 { clocks = <&clk IMX8MN_CLK_DSI_CORE>, <&clk IMX8MN_CLK_DSI_PHY_REF>; clock-names = "bus_clk", "sclk_mipi"; - assigned-clocks = <&clk IMX8MN_CLK_DSI_CORE>, - <&clk IMX8MN_CLK_DSI_PHY_REF>; - assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_266M>, - <&clk IMX8MN_CLK_24M>; - assigned-clock-rates = <266000000>, <24000000>; - samsung,pll-clock-frequency = <24000000>; interrupts = ; power-domains = <&disp_blk_ctrl IMX8MN_DISPBLK_PD_MIPI_DSI>; status = "disabled"; @@ -1142,6 +1129,21 @@ disp_blk_ctrl: blk-ctrl@32e28000 { "lcdif-axi", "lcdif-apb", "lcdif-pix", "dsi-pclk", "dsi-ref", "csi-aclk", "csi-pclk"; + assigned-clocks = <&clk IMX8MN_CLK_DSI_CORE>, + <&clk IMX8MN_CLK_DSI_PHY_REF>, + <&clk IMX8MN_CLK_DISP_PIXEL>, + <&clk IMX8MN_CLK_DISP_AXI>, + <&clk IMX8MN_CLK_DISP_APB>; + assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_266M>, + <&clk IMX8MN_CLK_24M>, + <&clk IMX8MN_VIDEO_PLL1_OUT>, + <&clk IMX8MN_SYS_PLL2_1000M>, + <&clk IMX8MN_SYS_PLL1_800M>; + assigned-clock-rates = <266000000>, + <24000000>, + <594000000>, + <500000000>, + <200000000>; #power-domain-cells = <1>; }; -- 2.39.2