From: hechtb@gmail.com (Bastian Hecht)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 1/7] ARM: shmobile: Define DT bindings for timer devices
Date: Sun, 17 Mar 2013 16:43:45 +0100 [thread overview]
Message-ID: <1363535031-21402-1-git-send-email-hechtb+renesas@gmail.com> (raw)
The SH mobile series currently features 3 timer devices in the kernel:
Compare Match Timer (CMT), Timer Unit (TMU) and MTU2. These devices
share register layout characteristics amongst each that enable us to
define common DT bindings for them.
Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
---
v3: same (only patch 0003 changed)
.../devicetree/bindings/timer/renesas,timer.txt | 45 ++++++++++++++++++++
1 file changed, 45 insertions(+)
create mode 100644 Documentation/devicetree/bindings/timer/renesas,timer.txt
diff --git a/Documentation/devicetree/bindings/timer/renesas,timer.txt b/Documentation/devicetree/bindings/timer/renesas,timer.txt
new file mode 100644
index 0000000..2c001bf
--- /dev/null
+++ b/Documentation/devicetree/bindings/timer/renesas,timer.txt
@@ -0,0 +1,45 @@
+* Renesas SH Mobile Timer
+
+Bindings for several timer devices from Renesas including CMT, TMU and MTU2.
+
+Required properties:
+- compatible : Should be "renesas,{device}-timer",
+ whereas device is "cmt", "tmu" or "mtu2".
+- reg : Address and length of the register set for the device
+- interrupts : Timer interrupt
+- renesas,device-id : The ID of the timer device
+- renesas,channel-id : The channel ID of the timer device
+- renesas,source-quality : The viability to use this device as a free
+ running clock. From 0 (do not use) to 10 (best possible clock).
+- renesas,event-quality : The viability to use this device as an event
+ generator. From 0 (do not use) to 10 (best possible clock).
+
+The properties renesas,{source,event}-quality reflect the situation that the
+usability of the timer devices depend on the location within their SoCs. E.g.
+the power domain affinty affects power management, some mux-ed lines might be
+preferred to be assigned to other functions and other constraints.
+
+Example for CMT1 channel 0 on the R8A7740 SoC:
+
+ timer at e6138010 {
+ compatible = "renesas,cmt-timer";
+ interrupt-parent = <&intca>;
+ reg = <0xe6138010 0xc>;
+ interrupts = <0x0b00>;
+ renesas,device-id = <1>;
+ renesas,channel-id = <0>;
+ renesas,source-quality = <3>;
+ renesas,event-quality = <3>;
+ };
+
+Example for TMU0 channel 1 on the SH7372 SoC:
+ timer at fff60014 {
+ compatible = "renesas,tmu-timer";
+ interrupt-parent = <&intcs>;
+ reg = <0xfff60014 0xc>;
+ interrupts = <0xea0>;
+ renesas,device-id = <0>;
+ renesas,channel-id = <1>;
+ renesas,source-quality = <4>;
+ renesas,event-quality = <0>;
+ };
--
1.7.9.5
next reply other threads:[~2013-03-17 15:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-17 15:43 Bastian Hecht [this message]
2013-03-17 15:43 ` [PATCH v3 2/7] clocksource: sh_cmt: Add OF support Bastian Hecht
2013-03-21 13:07 ` Simon Horman
2013-04-09 13:38 ` Simon Horman
2013-04-09 15:06 ` Bastian Hecht
2013-04-11 8:01 ` Bastian Hecht
2013-03-17 15:43 ` [PATCH v3 3/7] clocksource: sh_tmu: " Bastian Hecht
2013-03-17 15:43 ` [PATCH v3 4/7] ARM: shmobile: sh73a0: Add timer DT names to clock list Bastian Hecht
2013-03-17 15:43 ` [PATCH v3 5/7] ARM: mach-shmobile: sh73a0: Setup the timer CMT10 using DT Bastian Hecht
2013-03-17 15:43 ` [PATCH v3 6/7] ARM: shmobile: r8a7740: Add DT name to clock list for CMT10 Bastian Hecht
2013-03-17 15:43 ` [PATCH v3 7/7] ARM: mach-shmobile: r8a7740: Setup the timer CMT10 using DT Bastian Hecht
2013-03-19 3:28 ` [PATCH v3 1/7] ARM: shmobile: Define DT bindings for timer devices Simon Horman
2013-03-19 10:19 ` Bastian Hecht
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=1363535031-21402-1-git-send-email-hechtb+renesas@gmail.com \
--to=hechtb@gmail.com \
--cc=linux-arm-kernel@lists.infradead.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 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).