Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5890641ybi; Sun, 21 Jul 2019 04:47:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNVC3FROnkUhES5gaXT1RdfUhV9SUF9xUAm9Z8nMhFYlp4FGw65mF+x/F79xRl8UWBEpFb X-Received: by 2002:a63:f452:: with SMTP id p18mr40295154pgk.373.1563709672881; Sun, 21 Jul 2019 04:47:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563709672; cv=none; d=google.com; s=arc-20160816; b=LIZtKssl3OZ4r8jAVQSwW2LNVpWGEPn8ZGqKph9HaHTRavvvm+PngkQsQezDyJOtkS nffgYCqGrBqHctrNXbPMigto/UNX9vKEaQ0pRGpp2qt4xzoPzlImNL4LxRnjqmqJxzUq nTDNLN+2T5XI7klMBY2PWLTm1pkt0ON7qOANcO9qszObQODr9zdZ1HwC29RJn7f9CqUT lXY5WISLT0XkqXJx8v6EqX+IxdmyR2IKXN4iWzUWRgLYOnRKbvlUc+TNcovDXHjniWEU knH3WO8jx9WJ7lUuetFdHHzuQE+AbbOySwJnZKipoX/iFx/xppMiJN3vQYh3hCIYAArb THfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=U3TOOWVjN6jt1heZ9ZMoI/+EHRqfE/v3Gp+lZ1UFFWQ=; b=Xt4mhhUibFoM4v8s1NnIm7DZ5lRN1vt4Onaf/8OqSpjsAj6LQEIiQdr8koshkGWQSv ecF3sgt2sZJoRvs23O8EkSzG6WwWTHqX+aAN4XmCEZgWC3100B4K3uc58KaxICldkjYv uSRoKBKHjiTMe9NLCWdmlKdNAX04KxJq7VrGlgdMiIgPsp1izjcRUJ4V5Ip6zO2X5GL6 QUccLcuG0cKQ25GFl5/Q0pmjRcmJdyxZQ4i+ktO4dx4RyjTUGkSpcEavQTvwcbL3Qt/j sTU2duxK7V7+/QxlcdrH51D5z7D/P4SK4j4NYeNJoPP4nWCW41WElxYFndpSFOG0k53o 1/yA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w62si6158983pgd.209.2019.07.21.04.47.36; Sun, 21 Jul 2019 04:47:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726482AbfGULrM (ORCPT + 99 others); Sun, 21 Jul 2019 07:47:12 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:58918 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726188AbfGULrM (ORCPT ); Sun, 21 Jul 2019 07:47:12 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id D8422FB03; Sun, 21 Jul 2019 13:47:08 +0200 (CEST) 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 Wb98aE-Qp-3O; Sun, 21 Jul 2019 13:47:07 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 3880941113; Sun, 21 Jul 2019 13:47:07 +0200 (CEST) Date: Sun, 21 Jul 2019 13:47:07 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Abel Vesa Cc: Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , dl-linux-imx , Pavel Machek , "Angus Ainslie (Purism)" , Lucas Stach , Anson Huang , Carlo Caione , Andrey Smirnov , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 1/2] arm64: dts: imx8mq: Add MIPI D-PHY Message-ID: <20190721114707.GA10132@bogon.m.sigxcpu.org> References: <30c7622bf590670190b93c9b5b6dd1e8f809bbb2.1563187253.git.agx@sigxcpu.org> <20190715111027.a4wlpzex3taxymyr@fsr-ub1664-175> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190715111027.a4wlpzex3taxymyr@fsr-ub1664-175> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Abel, On Mon, Jul 15, 2019 at 11:10:27AM +0000, Abel Vesa wrote: > On 19-07-15 12:43:05, Guido G?nther wrote: > > Add a node for the Mixel MIPI D-PHY, "disabled" by default. > > > > Signed-off-by: Guido G?nther > > Acked-by: Angus Ainslie (Purism) > > --- > > arch/arm64/boot/dts/freescale/imx8mq.dtsi | 13 +++++++++++++ > > 1 file changed, 13 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi > > index d09b808eff87..891ee7578c2d 100644 > > --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi > > +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi > > @@ -728,6 +728,19 @@ > > status = "disabled"; > > }; > > > > + dphy: dphy@30a00300 { > > + compatible = "fsl,imx8mq-mipi-dphy"; > > + 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>; > > We have the following in the clk-imx8mq in the vendor tree: > > clk_set_parent(clks[IMX8MQ_VIDEO_PLL1_BYPASS], clks[IMX8MQ_VIDEO_PLL1]); > > This unbypasses the video pll 1. And then we also have this: > > /* config video_pll1 clock */ > clk_set_parent(clks[IMX8MQ_VIDEO_PLL1_REF_SEL], clks[IMX8MQ_CLK_27M]); > clk_set_rate(clks[IMX8MQ_VIDEO_PLL1], 593999999); We don't have anything like this in our tree. This is our current clock tree in that area which is setup by either the lcdif or dcss DT: osc_25m 10 12 0 25000000 0 0 50000 video_pll1_ref_sel 1 1 0 25000000 0 0 50000 video_pll1_ref_div 1 1 0 5000000 0 0 50000 video_pll1 1 1 0 593999998 0 0 50000 video_pll1_bypass 1 1 0 593999998 0 0 50000 video_pll1_out 2 2 0 593999998 0 0 50000 dsi_phy_ref 1 1 0 23760000 0 0 50000 e.g. for lcdif we have: lcdif: lcdif@30320000 { ... clock-names = "pix"; assigned-clocks = <&clk IMX8MQ_VIDEO_PLL1_REF_SEL>, <&clk IMX8MQ_VIDEO_PLL1_BYPASS>, <&clk IMX8MQ_CLK_LCDIF_PIXEL>, <&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>, <0>, <594000000>; ... }; Do we want to add this add for dphy and lcdif? Cheers, -- Guido > But none of that is acceptable upstream since the clock provider should not > use clock consumer API. > > So please update the assigned-clock* properties to something like this: > 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_27M>, > <&clk IMX8MQ_VIDEO_PLL1>, > <&clk IMX8MQ_VIDEO_PLL1_OUT> > <0>; > assigned-clock-rates = <0>, > <0>, > <24000000>, > <593999999>; > > I've written this without testing, so please do test it on your setup. > > > + #phy-cells = <0>; > > + power-domains = <&pgc_mipi>; > > + status = "disabled"; > > + }; > > + > > i2c1: i2c@30a20000 { > > compatible = "fsl,imx8mq-i2c", "fsl,imx21-i2c"; > > reg = <0x30a20000 0x10000>; > > -- > > 2.20.1 > >