Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2302117pxu; Fri, 18 Dec 2020 09:54:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWauMRNzo7K1rlLww/QPkpReh0Zc3XXQrMJ4CDSayCWnnDXySs8bBTad3GsTLKAoc5EQln X-Received: by 2002:a17:906:3687:: with SMTP id a7mr5112966ejc.210.1608314074337; Fri, 18 Dec 2020 09:54:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608314074; cv=none; d=google.com; s=arc-20160816; b=gMCNbbZ7Z7iEU9mzmU1TiOtPIWSJz4yFR/e6sqfoYP4K10DPwMfp0XkFfx6PF/T7eg p5goEdtOrdxyr0AltpLKDsidmv5Ccxd/J48Xm0OBeix53gXWFW+bQWR+Q1T3enDKLoWD zCCv4EtonO4XQnl7xVnO4v7nTp3vmGAqvK7mdn6jx8kHf+/rF/jJCoEZaC/O58WS8P5a tPYvfwEc/jo54Gi7RvWf1DXBb3cD4gzf0h0N+JzOT6dlDrn62o6vRDGXCgPyaXH2WXLq HQzVuj7+JHZVynhu/qsdvfe2aF4hkhRcwbW4+SJLr+5GA//31hmLSxKzPo2egOetT47L HCDQ== 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 :message-id:date:subject:to:from; bh=U4Uw0zuLY7HMwV6Jzt4Ir+4dQznPvlR/qnnycIOSA44=; b=K3t4H9Q/1KYKRbVzwq5k510Wo11Cnx9QLrD9fhQI6csKzN6euW3lEizlEhgqmbkguV OJnN2hdV3X34gl8DOulhfKC23oO6ahB6iJdFdam+oYBJcUcswoSu3cp/7/rx9IcwpEJK rAtpvxwTWViIjm1Q1xMHzE+rTfZjnzjh9be5VPY6+Db4O4yB9hGdGRCOp+lY+5GNeAUv Ulx9adK0n9MVsFWXtpleLiZjmXg7tK0xEce/Ysa3OapGVUTyIrp6wHaYKGD9jMa4bk8j AD9cTa9OPFXhBNXpfkLEgDHQy07sHKgXsLqhuD/ZQ6iJxUs8RD8wtFa/Umnqvn3GF00C lL8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h17si5171399ejd.473.2020.12.18.09.54.10; Fri, 18 Dec 2020 09:54:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729591AbgLRRut (ORCPT + 99 others); Fri, 18 Dec 2020 12:50:49 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:49500 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727326AbgLRRut (ORCPT ); Fri, 18 Dec 2020 12:50:49 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 1F9DEFB03; Fri, 18 Dec 2020 18:50:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bjWEg9DrS5lx; Fri, 18 Dec 2020 18:50:06 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 788BB43FDC; Fri, 18 Dec 2020 18:50:05 +0100 (CET) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Peng Fan , Dong Aisheng , Anson Huang , Krzysztof Kozlowski , Shengjiu Wang , =?UTF-8?q?Guido=20G=C3=BCnther?= , Philipp Zabel , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: imx8mq: Add clock parents for mipi dphy Date: Fri, 18 Dec 2020 18:50:05 +0100 Message-Id: X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This makes sure the clock tree setup for the dphy is not dependent on other components. Without this change bringing up the display can fail like kernel: phy phy-30a00300.dphy.2: Invalid CM/CN/CO values: 165/217/1 kernel: phy phy-30a00300.dphy.2: for hs_clk/ref_clk=451656000/593999998 ~ 165/217 if LCDIF doesn't set up that part of the clock tree first. This was noticed when testing the Librem 5 devkit with defconfig. It doesn't happen when modules are built in. Signed-off-by: Guido Günther --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index a841a023e8e0..ca0847e8f13c 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -1016,9 +1016,14 @@ dphy: dphy@30a00300 { reg = <0x30a00300 0x100>; clocks = <&clk IMX8MQ_CLK_DSI_PHY_REF>; clock-names = "phy_ref"; - assigned-clocks = <&clk IMX8MQ_CLK_DSI_PHY_REF>; - assigned-clock-parents = <&clk IMX8MQ_VIDEO_PLL1_OUT>; - assigned-clock-rates = <24000000>; + assigned-clocks = <&clk IMX8MQ_VIDEO_PLL1_REF_SEL>, + <&clk IMX8MQ_VIDEO_PLL1_BYPASS>, + <&clk IMX8MQ_CLK_DSI_PHY_REF>, + <&clk IMX8MQ_VIDEO_PLL1>; + assigned-clock-parents = <&clk IMX8MQ_CLK_25M>, + <&clk IMX8MQ_VIDEO_PLL1>, + <&clk IMX8MQ_VIDEO_PLL1_OUT>; + assigned-clock-rates = <0>, <0>, <24000000>; #phy-cells = <0>; power-domains = <&pgc_mipi>; status = "disabled"; -- 2.29.2