From: Rajendra Nayak <rnayak@ti.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: linux-omap@vger.kernel.org, tony@atomide.com, t-kristo@ti.com,
benoit.cousson@gmail.com, linux-arm-kernel@lists.infradead.org,
nm@ti.com, mark.rutland@arm.com, pawel.moll@arm.com,
swarren@wwwdotorg.org, tomasz.figa@gmail.com,
rob.herring@calxeda.com, ian.campbell@citrix.com,
galak@codeaurora.org, mturquette@linaro.org
Subject: Re: [PATCH 3/3] ARM: OMAP4: dts: Add main and optional clock data into DT
Date: Wed, 21 Aug 2013 13:58:26 +0530 [thread overview]
Message-ID: <52147A2A.60105@ti.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1308202352330.6426@utopia.booyaka.com>
On Wednesday 21 August 2013 05:27 AM, Paul Walmsley wrote:
> Hi
>
> On Tue, 23 Jul 2013, Rajendra Nayak wrote:
>
>> With support to parse clock data from DT, move all main and optional
>> clock information from hwmod to DT.
>>
>> We still retain clocks in hwmod for devices which do not have a DT node.
>>
>> Signed-off-by: Rajendra Nayak <rnayak@ti.com>
>> ---
>> arch/arm/boot/dts/omap4.dtsi | 100 +++++++++++++++++++++++++
>> arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 112 ----------------------------
>> 2 files changed, 100 insertions(+), 112 deletions(-)
>>
>> diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi
>> index 8e142f9..4dddf64 100644
>> --- a/arch/arm/boot/dts/omap4.dtsi
>> +++ b/arch/arm/boot/dts/omap4.dtsi
>> @@ -106,6 +106,8 @@
>> compatible = "ti,omap-counter32k";
>> reg = <0x4a304000 0x20>;
>> ti,hwmods = "counter_32k";
>> + clocks = <&sys_32k_ck>;
>> + clock-names = "fck";
>
> Shouldn't these patches be using the official DT clock binding format?
They are, already.
> Either the 'clocks' property should be something like:
>
> clocks = <&prm 10>;
That depends on the #clock-cells for the clock provider node. These patches
are based on Teros series to move all OMAP clocks to DT [1], and the clock providers
in his series have the #clock-cells set to 0.
So the clock bindings do not mandate
clocks = <&clk-provider index>
or
clocks = <&clk-provider>
It just depends on how the clk-provider node is defined.
[1] http://comments.gmane.org/gmane.linux.ports.arm.omap/100117
>
> or a change to the bindings needs to be discussed and implemented.
>
>
> - Paul
>
WARNING: multiple messages have this Message-ID (diff)
From: rnayak@ti.com (Rajendra Nayak)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] ARM: OMAP4: dts: Add main and optional clock data into DT
Date: Wed, 21 Aug 2013 13:58:26 +0530 [thread overview]
Message-ID: <52147A2A.60105@ti.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1308202352330.6426@utopia.booyaka.com>
On Wednesday 21 August 2013 05:27 AM, Paul Walmsley wrote:
> Hi
>
> On Tue, 23 Jul 2013, Rajendra Nayak wrote:
>
>> With support to parse clock data from DT, move all main and optional
>> clock information from hwmod to DT.
>>
>> We still retain clocks in hwmod for devices which do not have a DT node.
>>
>> Signed-off-by: Rajendra Nayak <rnayak@ti.com>
>> ---
>> arch/arm/boot/dts/omap4.dtsi | 100 +++++++++++++++++++++++++
>> arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 112 ----------------------------
>> 2 files changed, 100 insertions(+), 112 deletions(-)
>>
>> diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi
>> index 8e142f9..4dddf64 100644
>> --- a/arch/arm/boot/dts/omap4.dtsi
>> +++ b/arch/arm/boot/dts/omap4.dtsi
>> @@ -106,6 +106,8 @@
>> compatible = "ti,omap-counter32k";
>> reg = <0x4a304000 0x20>;
>> ti,hwmods = "counter_32k";
>> + clocks = <&sys_32k_ck>;
>> + clock-names = "fck";
>
> Shouldn't these patches be using the official DT clock binding format?
They are, already.
> Either the 'clocks' property should be something like:
>
> clocks = <&prm 10>;
That depends on the #clock-cells for the clock provider node. These patches
are based on Teros series to move all OMAP clocks to DT [1], and the clock providers
in his series have the #clock-cells set to 0.
So the clock bindings do not mandate
clocks = <&clk-provider index>
or
clocks = <&clk-provider>
It just depends on how the clk-provider node is defined.
[1] http://comments.gmane.org/gmane.linux.ports.arm.omap/100117
>
> or a change to the bindings needs to be discussed and implemented.
>
>
> - Paul
>
next prev parent reply other threads:[~2013-08-21 8:29 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-23 6:24 [PATCH 0/3] OMAP2+: hwmod: Add support to parse clock info from DT Rajendra Nayak
2013-07-23 6:24 ` Rajendra Nayak
2013-07-23 6:24 ` [PATCH 1/3] ARM: OMAP2+: Add support to parse 'main_clk' " Rajendra Nayak
2013-07-23 6:24 ` Rajendra Nayak
2013-08-14 12:50 ` menon.nishanth
2013-08-14 12:50 ` menon.nishanth at gmail.com
2013-07-23 6:24 ` [PATCH 2/3] ARM: OMAP2+: Add support to parse optional clk " Rajendra Nayak
2013-07-23 6:24 ` Rajendra Nayak
2013-08-14 12:48 ` Nishanth Menon
2013-08-14 12:48 ` Nishanth Menon
2013-08-14 13:20 ` Rajendra Nayak
2013-08-14 13:20 ` Rajendra Nayak
2013-08-14 13:39 ` Nishanth Menon
2013-08-14 13:39 ` Nishanth Menon
2013-08-14 13:41 ` Rajendra Nayak
2013-08-14 13:41 ` Rajendra Nayak
2013-08-14 13:49 ` Mark Rutland
2013-08-14 13:49 ` Mark Rutland
2013-08-14 13:57 ` Russell King - ARM Linux
2013-08-14 13:57 ` Russell King - ARM Linux
2013-08-14 13:58 ` Nishanth Menon
2013-08-14 13:58 ` Nishanth Menon
2013-08-14 14:05 ` Rajendra Nayak
2013-08-14 14:05 ` Rajendra Nayak
2013-08-14 14:08 ` Rajendra Nayak
2013-08-14 14:08 ` Rajendra Nayak
2013-08-14 14:13 ` Mark Rutland
2013-08-14 14:13 ` Mark Rutland
2013-08-14 14:20 ` Rajendra Nayak
2013-08-14 14:20 ` Rajendra Nayak
2013-08-14 14:41 ` Nishanth Menon
2013-08-14 14:41 ` Nishanth Menon
2013-08-14 14:08 ` Mark Rutland
2013-08-14 14:08 ` Mark Rutland
2013-08-14 14:13 ` Rajendra Nayak
2013-08-14 14:13 ` Rajendra Nayak
2013-08-14 13:45 ` Mark Rutland
2013-08-14 13:45 ` Mark Rutland
2013-08-14 13:54 ` Rajendra Nayak
2013-08-14 13:54 ` Rajendra Nayak
2013-08-14 13:59 ` Mark Rutland
2013-08-14 13:59 ` Mark Rutland
2013-07-23 6:24 ` [PATCH 3/3] ARM: OMAP4: dts: Add main and optional clock data into DT Rajendra Nayak
2013-07-23 6:24 ` Rajendra Nayak
2013-08-20 23:57 ` Paul Walmsley
2013-08-20 23:57 ` Paul Walmsley
2013-08-21 8:28 ` Rajendra Nayak [this message]
2013-08-21 8:28 ` Rajendra Nayak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52147A2A.60105@ti.com \
--to=rnayak@ti.com \
--cc=benoit.cousson@gmail.com \
--cc=galak@codeaurora.org \
--cc=ian.campbell@citrix.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mturquette@linaro.org \
--cc=nm@ti.com \
--cc=paul@pwsan.com \
--cc=pawel.moll@arm.com \
--cc=rob.herring@calxeda.com \
--cc=swarren@wwwdotorg.org \
--cc=t-kristo@ti.com \
--cc=tomasz.figa@gmail.com \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.