From: Marek Vasut <marek.vasut@gmail.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
linux-clk <linux-clk@vger.kernel.org>,
Marek Vasut <marek.vasut+renesas@gmail.com>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Simon Horman <horms+renesas@verge.net.au>
Subject: Re: [PATCH 2/2] ARM: dts: r8a7791: Add GyroADC bindings
Date: Tue, 18 Apr 2017 21:57:08 +0200 [thread overview]
Message-ID: <d9ca7b13-cdc7-32b9-b931-e66ee70d1b66@gmail.com> (raw)
In-Reply-To: <CAMuHMdUoaRSGX7=Jh28d9SRRj3MQ+M4k1Bo1qH1OsWPkqEc3ow@mail.gmail.com>
On 04/18/2017 09:09 PM, Geert Uytterhoeven wrote:
> Hi Marek,
Hi!
> On Tue, Apr 18, 2017 at 9:05 PM, Marek Vasut <marek.vasut@gmail.com> wrote:
>> On 04/18/2017 03:59 PM, Geert Uytterhoeven wrote:
>>> On Sun, Apr 16, 2017 at 6:57 PM, Marek Vasut <marek.vasut@gmail.com> wrote:
>>>> --- a/arch/arm/boot/dts/r8a7791.dtsi
>>>> +++ b/arch/arm/boot/dts/r8a7791.dtsi
>>>> @@ -776,6 +776,15 @@
>>>> status = "disabled";
>>>> };
>>>>
>>>> + adc: adc@e6e54000 {
>>>> + compatible = "renesas,r8a7791-gyroadc", "renesas,rcar-gyroadc";
>>>> + reg = <0 0xe6e54000 0 64>;
>>>> + clocks = <&mstp9_clks R8A7791_CLK_GYROADC>, <&adc_clk>;
>>>> + clock-names = "fck", "if";
>>>> + power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
>>>> + status = "disabled";
>>>> + };
>>>> +
>>>> scif2: serial@e6e58000 {
>>>> compatible = "renesas,scif-r8a7791", "renesas,rcar-gen2-scif",
>>>> "renesas,scif";
>>>> @@ -1133,6 +1142,13 @@
>>>> clock-frequency = <0>;
>>>> };
>>>>
>>>> + /* GyroADC clock */
>>>> + adc_clk: adc_clk {
>>>> + compatible = "fixed-clock";
>>>> + #clock-cells = <0>;
>>>> + clock-frequency = <65000000>;
>>>> + };
>>>
>>> Why do you have to add a clock?
>>> I think you should just refer to the on-SoC peripheral clock: &cp_clk.
>>
>> I think you are right, in fact, see below ...
>>
>>>> +
>>>> /* Special CPG clocks */
>>>> cpg_clocks: cpg_clocks@e6150000 {
>>>> compatible = "renesas,r8a7791-cpg-clocks",
>>>> @@ -1432,6 +1448,7 @@
>>>> <&hp_clk>, <&hp_clk>;
>>>
>>> Missing addition of the parent clock for the newly added module clock.
>>> Perhaps this should be the peripheral clock (<&cp_clk>)?
>>>
>>> Oops, that means there's no need to have two clock inputs in the adc device
>>> node, and thus we screwed up when reviewing the GyroADC bindings :-(
>>
>> I think you're right. I should be just getting the clk rate of the fck
>> and derive the gyroadc timings from that, correct ? I can send a patch
>> for the driver to just ignore the second clock entry and update the DT
>> binding document to drop the "if" clock (?) .
>
> Fine for me. Thanks!
OK, patches are ready. I need to find koelsch to test on ..
--
Best regards,
Marek Vasut
next prev parent reply other threads:[~2017-04-18 20:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-16 16:57 [PATCH 1/2] ARM: shmobile: r8a7791: add GyroADC clock Marek Vasut
2017-04-16 16:57 ` [PATCH 2/2] ARM: dts: r8a7791: Add GyroADC bindings Marek Vasut
2017-04-17 9:19 ` Sergei Shtylyov
2017-04-18 18:44 ` Marek Vasut
2017-04-18 13:59 ` Geert Uytterhoeven
2017-04-18 19:05 ` Marek Vasut
2017-04-18 19:09 ` Geert Uytterhoeven
2017-04-18 19:57 ` Marek Vasut [this message]
2017-04-18 13:42 ` [PATCH 1/2] ARM: shmobile: r8a7791: add GyroADC clock Geert Uytterhoeven
2017-04-20 9:00 ` Simon Horman
2017-04-20 15:39 ` Marek Vasut
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=d9ca7b13-cdc7-32b9-b931-e66ee70d1b66@gmail.com \
--to=marek.vasut@gmail.com \
--cc=geert+renesas@glider.be \
--cc=geert@linux-m68k.org \
--cc=horms+renesas@verge.net.au \
--cc=linux-clk@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=marek.vasut+renesas@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox