Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3139002ybi; Mon, 29 Jul 2019 01:34:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzA3FBR1PI5m1SIkQWUqgVZSWHclD8Y4ZeGOYOjkwUxT/x6mQ5vIuTytRuQxxnXjSU08axg X-Received: by 2002:a17:902:361:: with SMTP id 88mr110429695pld.123.1564389251959; Mon, 29 Jul 2019 01:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564389251; cv=none; d=google.com; s=arc-20160816; b=OREwbrgfyDDPkjww58cFe1AL9vqfyCLxtvdNpGUAcAzGqRLM6s9LXStdWZHAJaMT+c YHMGX1Ushg1mi5eQh1ONtzfiHTtkZ7DAGZZzuqAzA2NdodDzD7y447f1Vt43fT9+yUbt Jvb/YWC4wLj7ldWKAn74vC8CfaDwbvlrM83j4Zks56SJ+ELwJdJnkCRCPU5/m0mr/D+K toeArDUbehsjarcFg9kKaVsGB2ofm6n6yMfcOfN4HVadb4d6UH7ov4REAn7J5SLjRcIr hGwsBE2D9Kzk0LFHuEhX6picxhPdSkuP4ibXXUFrGAubcBpp/al+GL0YSmtXtnqJa6UZ MLcA== 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=072do54zvq/iaGI5x2mYrJK/e6WU914Gy7XKUYqezDs=; b=BVHh4rqv23iWo414qH5iGyy1nKtyQyvcD8zJDecuRESJuIMBKz3zok0K2jlHggpmwj 4J4PM6ZYsv8hGNPHZKdsuUDfAv1xclev/yP9BVKxnziqkvVkatEUzKERnavHnmuVo0AG 1cf0YSnyUy1bySvC07YK08ZU0uKr7otTXpRvVNqkxNzplbFu0q+5qSzNGOryLui4aDEO bkDoizkdu3iSPrkcRCw0TtEsP8+CW1CDhI2mO2ZQRxJzc1blObrRunJYAJmxbqDQg0g6 sWTKATC4CDyADbYlszuzX8mvKsnm7uaRGc0BLcIcCqcb6w5aNup37hVx/tYE00Qe/90u 0XNA== 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 d22si24143761plr.120.2019.07.29.01.33.56; Mon, 29 Jul 2019 01:34:11 -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 S1727593AbfG2Ibf (ORCPT + 99 others); Mon, 29 Jul 2019 04:31:35 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:48702 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbfG2Ibe (ORCPT ); Mon, 29 Jul 2019 04:31:34 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 9B614FB03; Mon, 29 Jul 2019 10:31:32 +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 3gdsxkg-VJ_P; Mon, 29 Jul 2019 10:31:31 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 1B86846BAF; Mon, 29 Jul 2019 10:31:31 +0200 (CEST) Date: Mon, 29 Jul 2019 10:31:31 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Daniel Baluta Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, l.stach@pengutronix.de, ccaione@baylibre.com, abel.vesa@nxp.com, baruch@tkos.co.il, andrew.smirnov@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, shengjiu.wang@nxp.com, angus@akkea.ca, Anson.Huang@nxp.com Subject: Re: [PATCH v3] arm64: dts: imx8mq: Init rates and parents configs for clocks Message-ID: <20190729083130.GA3904@bogon.m.sigxcpu.org> References: <20190728141218.12702-1-daniel.baluta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190728141218.12702-1-daniel.baluta@nxp.com> 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, On Sun, Jul 28, 2019 at 05:12:18PM +0300, Daniel Baluta wrote: > From: Abel Vesa > > Add the initial configuration for clocks that need default parent and rate > setting. This is based on the vendor tree clock provider parents and rates > configuration except this is doing the setup in dts rather then using clock > consumer API in a clock provider driver. > > Note that by adding the initial rate setting for audio_pll1/audio_pll > setting we need to remove it from imx8mq-librem5-devkit.dts > imx8mq-librem5-devkit.dts > > Signed-off-by: Abel Vesa > Signed-off-by: Daniel Baluta > --- > Changes since v2: > - set rate for audio_pll1/audio_pll2 in the dtsi file and > remove the setting from imx8mq-librem5-devkit.dts > > .../dts/freescale/imx8mq-librem5-devkit.dts | 5 ----- > arch/arm64/boot/dts/freescale/imx8mq.dtsi | 21 +++++++++++++++++++ > 2 files changed, 21 insertions(+), 5 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts > index 683a11035643..c702ccc82867 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts > @@ -169,11 +169,6 @@ > }; > }; > > -&clk { > - assigned-clocks = <&clk IMX8MQ_AUDIO_PLL1>, <&clk IMX8MQ_AUDIO_PLL2>; > - assigned-clock-rates = <786432000>, <722534400>; > -}; > - > &dphy { > status = "okay"; > }; > diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi > index 02fbd0625318..c67625a881a4 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi > @@ -494,6 +494,27 @@ > clock-names = "ckil", "osc_25m", "osc_27m", > "clk_ext1", "clk_ext2", > "clk_ext3", "clk_ext4"; > + assigned-clocks = <&clk IMX8MQ_VIDEO_PLL1>, > + <&clk IMX8MQ_AUDIO_PLL1>, > + <&clk IMX8MQ_AUDIO_PLL2>, > + <&clk IMX8MQ_CLK_AHB>, > + <&clk IMX8MQ_CLK_NAND_USDHC_BUS>, > + <&clk IMX8MQ_CLK_AUDIO_AHB>, > + <&clk IMX8MQ_VIDEO_PLL1_REF_SEL>, > + <&clk IMX8MQ_CLK_NOC>; > + assigned-clock-parents = <0>, > + <0>, > + <0>, > + <&clk IMX8MQ_SYS1_PLL_133M>, > + <&clk IMX8MQ_SYS1_PLL_266M>, > + <&clk IMX8MQ_SYS2_PLL_500M>, > + <&clk IMX8MQ_CLK_27M>, > + <&clk IMX8MQ_SYS1_PLL_800M>; > + assigned-clock-rates = <593999999>, > + <786432000>, > + <722534400>; > + > + > }; > > src: reset-controller@30390000 { togethe with http://code.bulix.org/pd88jp-812381?raw tested on linux-20190725 (plus mipi dsi): Tested-by: Guido G?nther Cheers, -- Guido > -- > 2.17.1 >