Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3453431ybi; Mon, 29 Jul 2019 06:52:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVLfOkthGU8Ck3pEVyzl6kmIp4nqgkBO7JyyE10+wRh1ff4+rpne7arrqssat2bUmlN/EL X-Received: by 2002:a65:4b8b:: with SMTP id t11mr103985483pgq.130.1564408346396; Mon, 29 Jul 2019 06:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564408346; cv=none; d=google.com; s=arc-20160816; b=mppnphWvEgTajbaDVgJl0SyoIsCZb8pEQ1Vw27bWEmehjN44EmYH3SwBTLgAYyuDoL tYnw7EPiVepPyQGU1Ln/P6ZL1j5DVB1DolahuWPzyJKni1465yLHMbkKq/mMAFNEbxe8 YxlsjncWp8sjgd/QqCcm2k5oq3wvAsfxQkIBD8qAHwpK8mT5DReE6eUPort0Ph4f751R 7W5+amWb2tJLk1Me/5icePY0yhlsQTjRTLCsp/eX2YqUIp1MnstizJOOUw/z4brtGPUg T3qFkSFMlBX3E7uXRiXqpx/aFIirCa2VjXdJd6GmjBYbmS/gYqEcYcaRP7fxLQKVihYS +ShA== 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=0SQHoX+m538AlqzFNXXHVwQ87FjznkePwVrDRNkGLic=; b=csCsXq1sTce3kLUPjxdP7gUM+LBBhu/JAjyHIXQi5wVOdeTrSdjSi8JYUSRNRlmmcc ea+yY3jBdrFCxgh0lpMy1yfe55U539QMoWNG8jXo2wavyVObfaHJGQldAm0o/9wyzPGw Wu+VNLzAmWg3p32gosJENiNShG02MleZ4AkutJNbiP2JWes98jVpIcnKtngTtbkAdg3k ZamlNYkQwtcJrOqjgqO+zM0ltHNRXw3MHcURWAzX9o6qfwkbW0mU7Ueih91MI2+dbbJb j8lRnuf337z6UK6GyXnkRX70X8MFUWZ/0rCse0lYtwWPfYfwQ7AOYrlgvifDP0aoghgi 0mkw== 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 a63si26122782pge.113.2019.07.29.06.52.10; Mon, 29 Jul 2019 06:52:26 -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 S1727937AbfG2Msv (ORCPT + 99 others); Mon, 29 Jul 2019 08:48:51 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:53574 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726432AbfG2Msu (ORCPT ); Mon, 29 Jul 2019 08:48:50 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 291E8FB03; Mon, 29 Jul 2019 14:48:47 +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 kaCWHnVd1ww1; Mon, 29 Jul 2019 14:48:46 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 9752146CDF; Mon, 29 Jul 2019 14:48:45 +0200 (CEST) Date: Mon, 29 Jul 2019 14:48:45 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Daniel Baluta Cc: shawnguo@kernel.org, devicetree@vger.kernel.org, baruch@tkos.co.il, abel.vesa@nxp.com, Anson.Huang@nxp.com, ccaione@baylibre.com, andrew.smirnov@gmail.com, s.hauer@pengutronix.de, angus@akkea.ca, linux-kernel@vger.kernel.org, linux-imx@nxp.com, festevam@gmail.com, shengjiu.wang@nxp.com, linux-arm-kernel@lists.infradead.org, l.stach@pengutronix.de Subject: Re: [PATCH v4] arm64: dts: imx8mq: Init rates and parents configs for clocks Message-ID: <20190729124845.GA12650@bogon.m.sigxcpu.org> References: <20190728152040.15323-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: <20190728152040.15323-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 06:20:40PM +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 > > Signed-off-by: Abel Vesa > Signed-off-by: Daniel Baluta > Tested-by: Angus Ainslie (Purism) > --- > Changes since v3: > - fix extra new lines > > .../dts/freescale/imx8mq-librem5-devkit.dts | 5 ----- > arch/arm64/boot/dts/freescale/imx8mq.dtsi | 19 +++++++++++++++++++ > 2 files changed, 19 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..a55d72ba2e05 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi > @@ -494,6 +494,25 @@ > 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 { Tested-by: Guido G?nther Cheers, -- Guido