Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1875901ybl; Tue, 3 Dec 2019 14:13:38 -0800 (PST) X-Google-Smtp-Source: APXvYqxuOVW1qIPEPsNTWzc0w5rvuEE7LzeN3H83H1vfIpD8fMoC30fJrCXGnsiJ/NN0NzmyD5/j X-Received: by 2002:a05:6808:901:: with SMTP id w1mr199545oih.57.1575411218032; Tue, 03 Dec 2019 14:13:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575411218; cv=none; d=google.com; s=arc-20160816; b=H1kewuIns8Fm6c64sMzMhzVznPtdFFR5PQPl2/oNl7OspbKX8cJiKdl90Nd39+RA6R fkmazr1TNcThQczin4KNAoZj11kmvzFZXqpKyssN7WSwvWC5BwifY0o4TdNAF6mhltK6 M+hR750WzXn5L1qddi9wsKEm2Sj4L2tQorhOw5233/WIORdLRVorkFj/vKU+yiiDx+ZC c9eE3oiV7uBkhPCDvqCXqwgC/cDugJKOE5DVgDagR3dut+PMhyXnmqyIcEs56t3cGkN/ JHWI6egOGeFZfpbh6HcH3Ekqv5lCVk/W0tUOxyUb7rtzjyapd8A27ZTPs80RTs8R1h4/ MQUg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=477xV8KhxSU4eFJtRC9YkvcLWD2tDbYJIPfmHJ8cs4I=; b=JXap1Bte618dI2KxzqkDmwgjrCQ8cfcCMGWcSFYWrjzf4ScPq+gea5wVUnFJLBT2Vb /4E4+VEE49IsJw/SUQ4FR2zKUbNspujAZ0EtbMz/OdMU0X/zSA5MPk1qefy8k8nox7Tc UVizXKCJhgiwv/1uEotk8uSe0nRVwZpWnj8fsY2i1FHwwurB8tvkUFj1VL5m4mDFDj3T VvxxAoeUdcXNMeJzmo2Aig1naziXFQBMrH+pKqWDwiN1IVO/zgsFNkXYzH18bZdOXCLB 1nrAontdpFA706lii3BEvYo9nzU5zNMHedceSfA0/UP9ivxOzOwPiLdxqNBqCDb+L+nU TJcg== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q8si2213343otg.108.2019.12.03.14.13.25; Tue, 03 Dec 2019 14:13:38 -0800 (PST) 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727650AbfLCWLk (ORCPT + 99 others); Tue, 3 Dec 2019 17:11:40 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:45440 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727502AbfLCWLj (ORCPT ); Tue, 3 Dec 2019 17:11:39 -0500 Received: by mail-oi1-f193.google.com with SMTP id v10so2835663oiv.12; Tue, 03 Dec 2019 14:11:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=477xV8KhxSU4eFJtRC9YkvcLWD2tDbYJIPfmHJ8cs4I=; b=lFew31/q93Jl+RjRw6W++MjzuPwAv2yos1eIdY1tct5cGaRm0FmRzQR2DTh7p14fad EHxSpfNsoVcyxmBlZkZqvSW96nHIA8xPCiIuD65VYKubY5BeLC77T7PlRbU+RFYhsUIC KNU6JEhC29SbDYYpDGIu/PdW80Z3TiYB82paVYR5dWOtPXteKpP2bGQfh0pe4FAs4w+y aos7QQ2Q9NTcp3LaNofOVeu4oQGvhua8F/4mK/xedoYxBT104z5hgNwF6czQmtDzdjAo maYkmMP3Ui0cVxZZ6Jfins3/L9MJFxHafiW4W68s5zwqp58kq4kA/iwjtF7HXszmllwx 872w== X-Gm-Message-State: APjAAAXtcMPQpgalWE6jDYq0z3sM1USnVmcYM/QIt1zWMgfWWvIhGOrZ AbPHCj9rMW80MH+ix2hD5Q== X-Received: by 2002:aca:d80b:: with SMTP id p11mr183106oig.83.1575411098160; Tue, 03 Dec 2019 14:11:38 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id f1sm1539410otq.4.2019.12.03.14.11.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Dec 2019 14:11:37 -0800 (PST) Date: Tue, 3 Dec 2019 16:11:37 -0600 From: Rob Herring To: Sowjanya Komatineni Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, digetx@gmail.com, mperttunen@nvidia.com, gregkh@linuxfoundation.org, sboyd@kernel.org, tglx@linutronix.de, mark.rutland@arm.com, allison@lohutok.net, pdeschrijver@nvidia.com, pgaikwad@nvidia.com, mturquette@baylibre.com, horms+renesas@verge.net.au, Jisheng.Zhang@synaptics.com, krzk@kernel.org, arnd@arndb.de, spujar@nvidia.com, josephl@nvidia.com, vidyas@nvidia.com, daniel.lezcano@linaro.org, mmaddireddy@nvidia.com, markz@nvidia.com, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 15/17] dt-bindings: tegra186-pmc: Add Tegra PMC clock bindings Message-ID: <20191203221137.GC22716@bogus> References: <1574146234-3871-1-git-send-email-skomatineni@nvidia.com> <1574146234-3871-16-git-send-email-skomatineni@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1574146234-3871-16-git-send-email-skomatineni@nvidia.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 On Mon, Nov 18, 2019 at 10:50:32PM -0800, Sowjanya Komatineni wrote: > Document clock bindings for pmc clocks clk_out_1, clk_out_2 and clk_out_3. > These clocks are part of Tegra PMC block and pmc node is the provider for > these clocks. > > Signed-off-by: Sowjanya Komatineni > --- > .../bindings/arm/tegra/nvidia,tegra186-pmc.txt | 44 ++++++++++++++++++++++ > 1 file changed, 44 insertions(+) > > diff --git a/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra186-pmc.txt b/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra186-pmc.txt > index 2d89cdc39eb0..4576de92e4cc 100644 > --- a/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra186-pmc.txt > +++ b/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra186-pmc.txt > @@ -12,6 +12,10 @@ Required properties: > - "aotag" > - "scratch" > - "misc" (Only for Tegra194) > +- #clock-cells : Should be 1 for Tegra30 and higher. > + In clock consumers, this cell represents the PMC clock ID. > + The assignments may be found in header file > + . Kind of strange the header is shared, but the binding doc is not. > > Optional properties: > - nvidia,invert-interrupt: If present, inverts the PMU interrupt signal. > @@ -130,3 +134,43 @@ Pinctrl client example: > pinctrl-1 = <&hdmi_on>; > pinctrl-names = "hdmi-on", "hdmi-off"; > }; > + > +== Clock Control == > + > +Tegra PMC has 3 clocks clk_1, clk_2 and clk_3. Each of these clocks has > +source selection and enable/disable gate. > +Parent/source for these clocks can be either of clk_m, clk_m_div2, clk_m_div4, > +or extern clock from Tegra CAR module. > + > +Clock configuration example: > + pmc: pmc@7000e400 { > + compatible = "nvidia,tegra186-pmc"; > + reg = <0 0x0c360000 0 0x10000>, > + <0 0x0c370000 0 0x10000>, > + <0 0x0c380000 0 0x10000>, > + <0 0x0c390000 0 0x10000>; > + reg-names = "pmc", "wake", "aotag", "scratch"; > + ... > + #clock-cells = <1>; > + ... Once converted to schema, the examples have to compile and this won't. They also have to be complete enough to pass validation checks. > + }; > + > +Clock consumer example: > + host1x@50000000 { > + ... > + vi@54080000 { > + ... > + assigned-clocks = <&pmc TEGRA_PMC_CLK_OUT_3_MUX>; > + assigned-clock-parents = <&tegra_car TEGRA210_CLK_EXTERN3>; Indentation is wrong. > + }; > + ... > + }; > + ... > + i2c@7000c500 { > + cam_sensor { > + ... > + clocks = <&pmc TEGRA_PMC_CLK_OUT_3>; > + clock-names = "mclk"; Same here. > + ... > + }; > + }; > -- > 2.7.4 >