Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp763929ybd; Wed, 26 Jun 2019 05:47:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPAISym2abpPwJEqPyMJUQNd3Xv3cE04CzrH190EsK51b4oUTeW7maCGPW4LcFmLzwMZa1 X-Received: by 2002:a17:90a:30cf:: with SMTP id h73mr4643099pjb.42.1561553228984; Wed, 26 Jun 2019 05:47:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561553228; cv=none; d=google.com; s=arc-20160816; b=csQDU9wM5Q7qyCvcfVdkn5VVq+NMDbYHEGDVlNHyw+fHOuE+poSE+AmPILCxJHB6Ie o16dBpGrnXh8HNSNk38wDh3uM7Z2KARRA5vYpHs6k5g6NWnPcjyw6RbpAedZ/OLcI3T6 BFJKYxBCyG/kIXvsK8kLvLCjIedSfjRHeMUzIdgmM3fFpIGiOUszgm7M8BDjzt1PvGB2 +m6dYRwdNAdd3z4YUeJzsCl6qdU1r1slbUerBNdfWBR3+hgiYtG7Re99L/eVd1+U2NUh gZd+54rGQxPF7Dm++/tpTPAhuidq13WVkbSQOV148va72+UBtrJu5A197qtb+YbeFrWT q1aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gAbbihM74t8q2UMVhMTR5xnkBr8o8yTLh+oQn0ML/yk=; b=kv2KcHadPr1w1w1fhvAzfgP0XhXx9QxyipINM5IaejId0StDZbUxayPLxK6CB3lwTl 6c8ZZXIFOJxL29swwcSZ+Zi7qtqF/+0NbRVELU9228d98TVaCDBr4oj5TqPDq3tJdSjH aDRSTTfn3coSM3vKpULFU5SGAxOUXDVWWY2ugF57MIr7+1TLapNMwLkNzadkY0bYOcOv 20EVPIhf5FLZhZccWKSzc01+Aa7M798WDidRwDTl2iv89zIlf8EGG7ITDBXck5ZlMhXQ Z7baCPNxa65bQs1YQFebxm6Tr1kIFrpwCJQYdB9UMXEIz1PJE2rSrOARYuBnbHGLEnjY Uv9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ivsiGwVl; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3si7744682pgb.264.2019.06.26.05.46.52; Wed, 26 Jun 2019 05:47:08 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ivsiGwVl; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727422AbfFZMp3 (ORCPT + 99 others); Wed, 26 Jun 2019 08:45:29 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44693 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbfFZMp3 (ORCPT ); Wed, 26 Jun 2019 08:45:29 -0400 Received: by mail-wr1-f66.google.com with SMTP id r16so2554549wrl.11; Wed, 26 Jun 2019 05:45:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gAbbihM74t8q2UMVhMTR5xnkBr8o8yTLh+oQn0ML/yk=; b=ivsiGwVl83y9FI7hcXLb1AHoNEdPPw9E9/GVHE8u3kTwO1C8LY033LVpyHOqujBrcv fw0NnYE0PP94udJQJkCS/lfXLnQKgGmlJDVOjIdNVGpJRX1RQ+UUirq49t3meA4aGvXV NVROUsvQBXXhyq4OFtWjLyR8PuheX4BMDJqM4QkRbO7/CZPGwluDHD/CSmzeXFIJQQJ7 sHcPzkijbaPqD+SQ1HJnRi4lqt5fbzTM2dNYHsEnCmJtagYWSWDmX87cc7KABifuI+94 lZfmnrS5OL+gbyO/XMLTroey6Dr6fGqd4yhpHSDvQGKb8GBP2Zs9qLWYGGrL6JOAJVgk ugDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gAbbihM74t8q2UMVhMTR5xnkBr8o8yTLh+oQn0ML/yk=; b=ULzn4R65gcGQJNotykoMuoG216VKlF/K2FdRNbyhR71a1lsLGUUnwy7mxj5AWad0jd qRzLQtIys4r08U/R4Y2knhEJYkCjbAWwRTOBcd1s6KF7PTN9I6t+aBAXN6o7CN2OH8NB rRx+y3oUqQ2fihENX6dQikRHUFtge2sii0flO0MA2Nl7Y+KN+G2848DgNU2jGk82Ugod xv89QYTNBIXU7yhYBgnNJ073hjtuIVPpITZIuwLXIalSq3A838iTv+IjtDY7b7rhd1hQ OzmKWbA8jRJQK08P47L4QJHh9OPGjgQ6iGlY6pvKYLrugRRrPIN2sLKFCHz5bFjwBmwC bKcA== X-Gm-Message-State: APjAAAXHcrbDwK5EKhKxXOMlcg+rvnYXWgTCP0IHrtGboCDggQ2I8tEN Cxc9V6QCPRhv09xpW14bDiByBGhyxvr+5zE0wXI= X-Received: by 2002:a05:6000:9:: with SMTP id h9mr3617731wrx.212.1561553126908; Wed, 26 Jun 2019 05:45:26 -0700 (PDT) MIME-Version: 1.0 References: <1561469191-26840-1-git-send-email-abel.vesa@nxp.com> In-Reply-To: <1561469191-26840-1-git-send-email-abel.vesa@nxp.com> From: Daniel Baluta Date: Wed, 26 Jun 2019 15:45:15 +0300 Message-ID: Subject: Re: [PATCH] arm64: dts: imx8mm: Init rates and parents configs for clocks To: Abel Vesa Cc: Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Fabio Estevam , Anson Huang , NXP Linux Team , Lucas Stach , Devicetree List , linux-arm-kernel , Linux Kernel Mailing List , Daniel Baluta Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 25, 2019 at 4:42 PM Abel Vesa wrote: > > 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 than using clock > consumer API in a clock provider driver. > > Signed-off-by: Abel Vesa > --- > arch/arm64/boot/dts/freescale/imx8mm.dtsi | 36 +++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi > index 232a741..ab92108 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi > @@ -451,6 +451,42 @@ > <&clk_ext3>, <&clk_ext4>; > clock-names = "osc_32k", "osc_24m", "clk_ext1", "clk_ext2", > "clk_ext3", "clk_ext4"; > + assigned-clocks = <&clk IMX8MM_CLK_AUDIO_AHB>, > + <&clk IMX8MM_CLK_IPG_AUDIO_ROOT>, > + <&clk IMX8MM_SYS_PLL3>, > + <&clk IMX8MM_VIDEO_PLL1>, > + <&clk IMX8MM_CLK_NOC>, > + <&clk IMX8MM_CLK_PCIE1_CTRL>, > + <&clk IMX8MM_CLK_PCIE1_PHY>, > + <&clk IMX8MM_CLK_CSI1_CORE>, > + <&clk IMX8MM_CLK_CSI1_PHY_REF>, > + <&clk IMX8MM_CLK_CSI1_ESC>, > + <&clk IMX8MM_CLK_DISP_AXI>, > + <&clk IMX8MM_CLK_DISP_APB>; > + assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_800M>, > + <0>, Isn't there a macro for 0? (dummy clock?) > + <0>, > + <0>, > + <&clk IMX8MM_SYS_PLL3_OUT>, > + <&clk IMX8MM_SYS_PLL2_250M>, > + <&clk IMX8MM_SYS_PLL2_100M>, > + <&clk IMX8MM_SYS_PLL2_1000M>, > + <&clk IMX8MM_SYS_PLL2_1000M>, > + <&clk IMX8MM_SYS_PLL1_800M>, > + <&clk IMX8MM_SYS_PLL2_1000M>, > + <&clk IMX8MM_SYS_PLL1_800M>; > + assigned-clock-rates = <400000000>, > + <400000000>, > + <750000000>, > + <594000000>, > + <0>, > + <0>, > + <0>, > + <0>, > + <0>, > + <0>, > + <500000000>, > + <200000000>; > }; > > src: reset-controller@30390000 { > -- > 2.7.4 >