Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2407897ybi; Sun, 28 Jul 2019 08:23:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqx34FqX6oLtjjQlPbM7K1rtdLXNbgu86ukYlrKb74Waffg2B19y/4/mwvyNJhdhrFe8tTHJ X-Received: by 2002:a17:902:8203:: with SMTP id x3mr106623180pln.304.1564327390880; Sun, 28 Jul 2019 08:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564327390; cv=none; d=google.com; s=arc-20160816; b=ivRs1q9LtCKePW/xixBNHRqBgtCUUUZc0YlSy12TU6pvn3yHQ4Ng9SGRbmv4kfR40r c+tnOizNwBGftj9iRo82DXy1cbf93C6Gk7erF9G5VFoO4IVJTH4XrGUCnc/PJAR2r4gk MmgdOdUg6ezGgqaFEF9/ECGmGxAqkvM2NmBkkXMxmU3QvXGj5FY1UIwK7+KAoGrJ6Yqe DT40R00lHDUxWrGshzdyU3Y4zQMWudg5AlJUF+b5U1bCXW9jOMn1Qwthl5ZVmV0Sl8GO Ae6b1ruJCHDIYCEOvauecS+ZQmP4c+d3P/jqMiHiHVGvmeXO8UZ3ac7p/w0kPVi8jZXA Iwgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=CdhckpofVWyrddR1I/47UlnWpR9ufrifgp/2MnqL61g=; b=oMBHHOCFMSCV3ENt1LzFLmWIHCpZd4L1f6ur5SIomI821W6jX4yXiJsuxefYFRAvPg LzVy2JZYx5xtW8a+1sej6JmQNzyy4Np4Ms7MmstWDuCqXsHtC1UH4JRXZVzCnyylEfDU lmaAjGBtRGiQ/sLwEYXDCisx1bth5x+Lt08lyKVJkwUsg3vrIYdKPtElVx5iQLKbPfOz JcrxV/x7iD1DzIYVKMf11vqj2YaoMANDbbcDcNi4wYC9X1jZNPeT0KgvSQNEID1KeZDY PwOnhRtbxQs9+AgIXta6WxspesfmQXLh2sv6+GwTZ1X7PmD9OZ2LvzzF0yFXEnpzRKP7 PyGQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i187si27280913pfe.21.2019.07.28.08.22.55; Sun, 28 Jul 2019 08:23:10 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726203AbfG1PUr (ORCPT + 99 others); Sun, 28 Jul 2019 11:20:47 -0400 Received: from inva021.nxp.com ([92.121.34.21]:51204 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbfG1PUr (ORCPT ); Sun, 28 Jul 2019 11:20:47 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id D7C042011E2; Sun, 28 Jul 2019 17:20:44 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C90682011D4; Sun, 28 Jul 2019 17:20:44 +0200 (CEST) Received: from fsr-ub1864-103.ea.freescale.net (fsr-ub1864-103.ea.freescale.net [10.171.82.17]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 1B2C52060A; Sun, 28 Jul 2019 17:20:44 +0200 (CEST) From: Daniel Baluta To: shawnguo@kernel.org Cc: 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, agx@sigxcpu.org, Anson.Huang@nxp.com, Daniel Baluta Subject: [PATCH v4] arm64: dts: imx8mq: Init rates and parents configs for clocks Date: Sun, 28 Jul 2019 18:20:40 +0300 Message-Id: <20190728152040.15323-1-daniel.baluta@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 { -- 2.17.1