All of lore.kernel.org
 help / color / mirror / Atom feed
From: Magnus Damm <magnus.damm@gmail.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH v8 04/07] arm64: renesas: r8a7795 dtsi: Add all SCIF nodes
Date: Mon, 31 Aug 2015 12:59:13 +0000	[thread overview]
Message-ID: <CANqRtoQCSsqV1qZmTNPnnFk7BmkdeHPZcSx=W4K4hwGLAeRegA@mail.gmail.com> (raw)
In-Reply-To: <20150831062952.24004.17072.sendpatchset@little-apple>

Hi Geert,

On Mon, Aug 31, 2015 at 9:47 PM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> Hi Magnus,
>
> On Mon, Aug 31, 2015 at 8:29 AM, Magnus Damm <magnus.damm@gmail.com> wrote:
>> --- 0014/arch/arm64/boot/dts/renesas/r8a7795.dtsi
>> +++ work/arch/arm64/boot/dts/renesas/r8a7795.dtsi       2015-08-29 18:25:06.922366518 +0900
>> @@ -241,6 +246,34 @@
>>                                         R8A7795_CLK_PLL3 R8A7795_CLK_PLL4
>>                                 >;
>>                                 #power-domain-cells = <0>;
>> +
>> +                               mstp2_clks: mstp2_clks@e6150138 {
>
> With the "clock-output-names" dropped, I think the node should be called
> "mstp2" (without "_clks") suffix.

Makes sense!

>> +                                       compatible >> +                                               "renesas,r8a7795-mstp-clocks",
>> +                                               "renesas,cpg-mstp-clocks";
>> +                                       reg = <0 0xe6150138 0 4>,
>> +                                             <0 0xe6150040 0 4>;
>> +                                       clocks = <&s3d4_clk>, <&s3d4_clk>,
>> +                                                <&s3d4_clk>, <&s3d4_clk>,
>> +                                                <&s3d4_clk>;
>> +                                       #clock-cells = <1>;
>> +                                       clock-indices = <
>> +                                               R8A7795_CLK_SCIF5
>> +                                               R8A7795_CLK_SCIF4
>> +                                               R8A7795_CLK_SCIF3
>> +                                               R8A7795_CLK_SCIF1
>> +                                               R8A7795_CLK_SCIF0
>> +                                       >;
>> +                               };
>> +
>> +                               mstp3_clks: mstp3_clks@e615013c {
>
> Likewise.

Sure...

>> +                                       compatible = "renesas,r8a7795-mstp-clocks",
>> +                                                    "renesas,cpg-mstp-clocks";

But if we're going down that route then may I ask why we have
"-clocks" suffix for the MSTP/CPG compat strings? I'd rather make them
shorter and more similar to the rest of the compat strings on the SoC.

>> +                                       reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
>> +                                       clocks =  <&s3d4_clk>;
>> +                                       #clock-cells = <1>;
>> +                                       clock-indices = <R8A7795_CLK_SCIF2>;
>
> Sample (part of) /sys/kernel/debug/clk/clk_summary output:
>
>  s3                                       1            1           0
>        0 0
>     s3d4                                  1            2           0
>        0 0
>        mstp3_clks.10                      2            2           0
>        0 0
>
> I think "mstp3.10" looks nicer than "mstp3_clks.10".
> Note that before we had "scif2".

It is still possible to add extended information in clock-output-names
to the DTS for debugging purpose, right?

Cheers,

/ magnus

  parent reply	other threads:[~2015-08-31 12:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-31  6:29 [PATCH v8 04/07] arm64: renesas: r8a7795 dtsi: Add all SCIF nodes Magnus Damm
2015-08-31 10:40 ` Laurent Pinchart
2015-08-31 12:47 ` Geert Uytterhoeven
2015-08-31 12:59 ` Magnus Damm [this message]
2015-08-31 13:08 ` Geert Uytterhoeven
2015-09-03  7:41 ` Magnus Damm
2015-09-03  7:54 ` Geert Uytterhoeven
2015-09-03  8:06 ` Magnus Damm
2015-09-03  8:23 ` Geert Uytterhoeven
2015-09-03  8:28 ` Magnus Damm
2015-09-03 11:48 ` Laurent Pinchart
2015-09-03 19:03 ` Geert Uytterhoeven
2015-09-07 19:43 ` Laurent Pinchart

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='CANqRtoQCSsqV1qZmTNPnnFk7BmkdeHPZcSx=W4K4hwGLAeRegA@mail.gmail.com' \
    --to=magnus.damm@gmail.com \
    --cc=linux-sh@vger.kernel.org \
    /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.