From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Chris Brandt <chris.brandt@renesas.com>
Cc: Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Simon Horman <horms@verge.net.au>,
Magnus Damm <magnus.damm@gmail.com>,
Russell King <linux@armlinux.org.uk>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
Geert Uytterhoeven <geert+renesas@glider.be>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Linux-Renesas <linux-renesas-soc@vger.kernel.org>
Subject: Re: [PATCH 1/2] dt-bindings: document renesas-ostm timer
Date: Fri, 13 Jan 2017 09:34:29 +0100 [thread overview]
Message-ID: <CAMuHMdX_hx2M8Q4y7gptJvad4cbb+M54DZVCmbhunKuk4esbGA@mail.gmail.com> (raw)
In-Reply-To: <20170112185952.2780-2-chris.brandt@renesas.com>
Hi Chris,
On Thu, Jan 12, 2017 at 7:59 PM, Chris Brandt <chris.brandt@renesas.com> wrote:
> Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
> ---
> .../devicetree/bindings/timer/renesas,ostm.txt | 36 ++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/timer/renesas,ostm.txt
>
> diff --git a/Documentation/devicetree/bindings/timer/renesas,ostm.txt b/Documentation/devicetree/bindings/timer/renesas,ostm.txt
> new file mode 100644
> index 0000000..46e1f27
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/timer/renesas,ostm.txt
> @@ -0,0 +1,36 @@
> +* Renesas OS Timer (OSTM)
> +
> +The OSTM comes with 2 independent channels.
> +We will use the first channel (OSTM0) as a free running clocksource and the
> +second channel (OSTM1) as a interrupt driven clock event.
> +
> +Additionally we will use the clocksource channel (OTSM0) for the system
> +schedule timer sched_clock().
The above two sentences are software policy, not hardware description.
Hence they do not belong in the DT bindings document.
You can move them to the commit description, though.
> +
> +Required Properties:
> +
> + - compatible: must be one or more of the following:
> + - "renesas,ostm-r7s72100" for the r7s72100 OSTM
Please use "renesas,r7s72100-ostm" instead, to match current practices.
> + - "renesas,ostm" for any OSTM
> + This is a fallback for the above renesas,ostm-* entries
> +
> + - reg: base address and length of the registers block for each timer channel.
> + There should be 2 sets of addresses, one for each channel.
> +
> + - interrupts: interrupt specifiers for the timers. There should be 2
> + interupts, one for each channel.
> +
> + - clocks: a list of phandle + clock-specifier pairs, one for each entry
> + channel. There should be 2 sets, one for each channel.
Are the channels truly independent? If yes, I think it's better to have two
separate device nodes, one for each channel.
Each channel has its own module clock, so using separate devices means
Runtime PM can manage both channels through their module clocks as soon as
you add a "power-domains" property pointing to the clock domain controller.
> +Example: R7S72100 (RZ/A1H) OSTM node
> +
> + ostm: ostm@fcfec000 {
> + compatible = "renesas,ostm-r7s72100", "renesas,ostm";
> + reg = <0xfcfec000 0x30>,
> + <0xfcfec400 0x30>;
> + interrupts = <GIC_SPI 102 IRQ_TYPE_EDGE_RISING
> + GIC_SPI 103 IRQ_TYPE_EDGE_RISING>;
> +
> + clocks = <&mstp5_clks R7S72100_CLK_OSTM0>, <&mstp5_clks R7S72100_CLK_OSTM1>;
> + };
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
next prev parent reply other threads:[~2017-01-13 8:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-12 18:59 [PATCH 0/2] clocksource: Add renesas-ostm timer driver Chris Brandt
2017-01-12 18:59 ` [PATCH 1/2] dt-bindings: document renesas-ostm timer Chris Brandt
2017-01-13 8:34 ` Geert Uytterhoeven [this message]
2017-01-14 3:30 ` Chris Brandt
2017-01-16 10:20 ` Simon Horman
[not found] ` <SG2PR06MB1165BA49D82D9C0835DC0FB38A7B0-ESzmfEwOt/xoAsOJh7vwSm0DtJ1/0DrXvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-01-16 10:30 ` Geert Uytterhoeven
2017-01-17 4:16 ` Chris Brandt
[not found] ` <20170112185952.2780-1-chris.brandt-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2017-01-12 18:59 ` [PATCH 2/2] clocksource: Add renesas-ostm timer driver Chris Brandt
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=CAMuHMdX_hx2M8Q4y7gptJvad4cbb+M54DZVCmbhunKuk4esbGA@mail.gmail.com \
--to=geert@linux-m68k.org \
--cc=chris.brandt@renesas.com \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=horms@verge.net.au \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=magnus.damm@gmail.com \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=tglx@linutronix.de \
/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;
as well as URLs for NNTP newsgroup(s).