Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1623791rwr; Fri, 5 May 2023 17:58:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ50yYT42nBtHeytpbGVNONKAKTw8cTxMAYcb4K/0RW7XHfcYiOdyiAj4F2NdlD3+JodwPdS X-Received: by 2002:a17:902:c453:b0:1a2:96d6:7d8 with SMTP id m19-20020a170902c45300b001a296d607d8mr2881060plm.28.1683334711305; Fri, 05 May 2023 17:58:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683334711; cv=none; d=google.com; s=arc-20160816; b=YH/6P7VYUEaaLwLAMOONbz9AOPUHpX8UX0y732JrTgWjqtopiCqRNZxO9dopAsJiIu i/JSzhj/PUMr915XJ1jxcHt5nwrBFfLn0DhaFZ9AezQg9stelcxJ3gnQpkimMDvP+Bp0 1CosyIaR5/mA3Sd/37pGX8M0tnjOmcgspsOK2SPWKmLQMMY0g8whlnaUy3UFUOCWzVvg CJaSut+cx9GIWhsgVrRN77TvA4W1oDxamVJJKaeu9gG3+MogGjetPDeN9vi/Y7FVja5Q UQUwiyp90bC9TbbDEg78WGy9myD4+qP8zLLLyfXNlP9yhrrospWyaSIz3tPsoY2LGJPG gASg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Lksvsdy5ZBGz5N+QewT9TIbE/aUyvQ4IEKQ9nU6eAT4=; b=UpnWHo9PmY/r5qJtyUoKzq6cs0TCvDl2T3zuLdrwOlED2rOTusbOOaOWteE71ugJa4 9N/CNARiCtlfGxpLdnE3RbtZ/Owtk0Hlh9OFHw322EygaNaeLzt1rI+dQGXZCN84jK0a RCBfE7IKyduakRuFJ8YdqtsNtKg1/TdfDir7C9UQyEFOopI7scbXCu/yOLzlaX8Hb1ub wTRk0C6Z999+1/Kck0rHMv0zWTCT3Ui0Nq4igW0hdPFJz+Zixd6EvfOr0RjCoc70cYNo oaG+RbTu9TmQpWaW6cYUD5zkSdeCm9LuYTUWw1rjOdKbczIlV52eyPzce4JAF1SYVkM4 GKiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ZsTAe8yY; 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 ju5-20020a170903428500b001aaf6322d95si2687072plb.433.2023.05.05.17.58.19; Fri, 05 May 2023 17:58:31 -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=ZsTAe8yY; 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 S232110AbjEFAhb (ORCPT + 99 others); Fri, 5 May 2023 20:37:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229792AbjEFAha (ORCPT ); Fri, 5 May 2023 20:37:30 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63A504C19; Fri, 5 May 2023 17:37:29 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1aaea3909d1so22108715ad.2; Fri, 05 May 2023 17:37:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683333449; x=1685925449; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Lksvsdy5ZBGz5N+QewT9TIbE/aUyvQ4IEKQ9nU6eAT4=; b=ZsTAe8yYgYPZkeBQ6jCuPIh7HAbrjZXPTPTwxPQHhJWwbyJs3VqikzIgIAXsklozz7 ogCXZC71rWThF8C3b57hqJce2yovmE/7HGpic98964RxoWIdINg+wSN1iZMnREXELfVD mE1J4I6nXAOAXSlQI6ryMjYaYRdHTDr2K5ctlDJu2ITi1RHWVwl9Ny2XwnOCQceEGNxJ 3sDE820K7EVBWM3llYfYZGcG+X3xUuWPe27f13FIxh0PCOaZHphwewUvRcDnpX81t0jX riYdDncDClW/lmvdzm/Z8KvTYvypolz5QQeImR3RENbkWPSBWHhJfaQR4pFhEFe7EPZ7 oHFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683333449; x=1685925449; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Lksvsdy5ZBGz5N+QewT9TIbE/aUyvQ4IEKQ9nU6eAT4=; b=PASn2RN8geo67UT1b1ch15/TyIeTG4TvkWXFojkfU4ziziwlFD6oXKbG+mVLKNXewh mDQRCS+I0eHXG4Q6w17n0AipuT2LPTGQGwBMwFwoTiCLnzne2AJq2BN1dZRMGhH3He0k VC2rKJpnPxjLGs1/MH61O0GMtDhdqOUFwJdA8lklk2Srg1vbes7vyQWd/dp2Ekj2mB0k Cg7XDyfrvWnwX2CU8kNfFFeWFWHggNonpUiUL2oLIoOpvG00dtvl99DQzFHakOjJ6O/o TZjSyawKhVJAzbwIcywFfU9XeiJyHOayEhu2ZnQcvzKCl72o6gUrHbG3O96r3jgRiXZJ 4fSg== X-Gm-Message-State: AC+VfDxmF0cEJWceN7nzrAxebmP3Pf82MKbCF7Pmmrflu5jsiN1HFO4D asYpWZ0yzYchSxI6+S+1vvoxFKeOzAjzeOEtCjQ= X-Received: by 2002:a17:90b:1d0d:b0:24d:ea7f:9ea2 with SMTP id on13-20020a17090b1d0d00b0024dea7f9ea2mr3355514pjb.15.1683333448544; Fri, 05 May 2023 17:37:28 -0700 (PDT) MIME-Version: 1.0 References: <20230423123513.1346323-1-aford173@gmail.com> In-Reply-To: <20230423123513.1346323-1-aford173@gmail.com> From: Adam Ford Date: Fri, 5 May 2023 19:37:17 -0500 Message-ID: Subject: Re: [PATCH V2] arm64: dts: imx8mn: Fix video clock parents To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Marek Vasut , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 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, T_SCC_BODY_TEXT_LINE 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 On Sun, Apr 23, 2023 at 7:35=E2=80=AFAM Adam Ford wrot= e: > > 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 Shawn, Any chance this can get applied? Without it, the 8MN video doesn't have correct parents and therefore the wrong clock rates too. adam > --- > V2: Split this into a separate patch away from a series of DSIM changes. > No actual changes made to the patch. > > 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 =3D "pix", "axi", "disp_axi"; > - assigned-clocks =3D <&clk IMX8MN_CLK_DISP= _PIXEL_ROOT>, > - <&clk IMX8MN_CLK_DISP_A= XI>, > - <&clk IMX8MN_CLK_DISP_A= PB>; > - assigned-clock-parents =3D <&clk IMX8MN_C= LK_DISP_PIXEL>, > - <&clk IMX8MN_SYS= _PLL2_1000M>, > - <&clk IMX8MN_SYS= _PLL1_800M>; > - assigned-clock-rates =3D <594000000>, <50= 0000000>, <200000000>; > interrupts =3D ; > power-domains =3D <&disp_blk_ctrl IMX8MN_= DISPBLK_PD_LCDIF>; > status =3D "disabled"; > @@ -1093,12 +1086,6 @@ mipi_dsi: dsi@32e10000 { > clocks =3D <&clk IMX8MN_CLK_DSI_CORE>, > <&clk IMX8MN_CLK_DSI_PHY_REF>; > clock-names =3D "bus_clk", "sclk_mipi"; > - assigned-clocks =3D <&clk IMX8MN_CLK_DSI_= CORE>, > - <&clk IMX8MN_CLK_DSI_PH= Y_REF>; > - assigned-clock-parents =3D <&clk IMX8MN_S= YS_PLL1_266M>, > - <&clk IMX8MN_CLK= _24M>; > - assigned-clock-rates =3D <266000000>, <24= 000000>; > - samsung,pll-clock-frequency =3D <24000000= >; > interrupts =3D ; > power-domains =3D <&disp_blk_ctrl IMX8MN_= DISPBLK_PD_MIPI_DSI>; > status =3D "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 =3D <&clk IMX8MN_CLK_DSI_= CORE>, > + <&clk IMX8MN_CLK_DSI_PH= Y_REF>, > + <&clk IMX8MN_CLK_DISP_P= IXEL>, > + <&clk IMX8MN_CLK_DISP_A= XI>, > + <&clk IMX8MN_CLK_DISP_A= PB>; > + assigned-clock-parents =3D <&clk IMX8MN_S= YS_PLL1_266M>, > + <&clk IMX8MN_CLK= _24M>, > + <&clk IMX8MN_VID= EO_PLL1_OUT>, > + <&clk IMX8MN_SYS= _PLL2_1000M>, > + <&clk IMX8MN_SYS= _PLL1_800M>; > + assigned-clock-rates =3D <266000000>, > + <24000000>, > + <594000000>, > + <500000000>, > + <200000000>; > #power-domain-cells =3D <1>; > }; > > -- > 2.39.2 >