From: hechtb@gmail.com (Bastian Hecht)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] ARM: mach-shmobile: sh73a0: Setup the timer device CMT10 using DT
Date: Fri, 1 Mar 2013 11:45:32 -0600 [thread overview]
Message-ID: <1362159932-18533-4-git-send-email-hechtb+renesas@gmail.com> (raw)
In-Reply-To: <1362159932-18533-1-git-send-email-hechtb+renesas@gmail.com>
We can now use the Device Tree for bringing up our timer device CMT10.
We move it out of the DT devices list into the early_devices list by
the non-reference board code. And we add the device to the
kzm9g-reference .dts file.
Not-yet-signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
---
I wonder if this should go to arch/arm/boot/dts/sh73a0.dtsi.
The moving to the early_devices is a bit hackish - I will cook up a better
patch when I know into which .dts(i) file things go.
arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 11 +++++++++++
arch/arm/mach-shmobile/setup-sh73a0.c | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
index 7fad4b9..fef12f0 100644
--- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
+++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
@@ -69,6 +69,17 @@
toshiba,mmc-wrprotect-disable;
toshiba,mmc-has-idle-wait;
};
+
+ cmt at 0xe6138010 {
+ compatible = "renesas,cmt";
+ reg = <0xe6138010 0xc>;
+ interrupt-parent = <&gic>;
+ interrupts = <0 65 0x4>;
+ renesas,timer-device-id = <1>;
+ renesas,timer-channel-id = <0>;
+ renesas,clocksource-rating = <125>;
+ renesas,clockevent-rating = <125>;
+ };
};
&mmcif {
diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c
index 6259e07..b7fdec0 100644
--- a/arch/arm/mach-shmobile/setup-sh73a0.c
+++ b/arch/arm/mach-shmobile/setup-sh73a0.c
@@ -913,10 +913,10 @@ static struct platform_device *sh73a0_devices_dt[] __initdata = {
&scif6_device,
&scif7_device,
&scif8_device,
- &cmt10_device,
};
static struct platform_device *sh73a0_early_devices[] __initdata = {
+ &cmt10_device,
&tmu00_device,
&tmu01_device,
};
--
1.7.9.5
next prev parent reply other threads:[~2013-03-01 17:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-01 17:45 [PATCH 0/3] Add OF support to CMT driver - bindings discussion Bastian Hecht
2013-03-01 17:45 ` [PATCH 1/3] clocksource: sh_cmt: Add Device Tree probing Bastian Hecht
2013-03-04 4:09 ` Paul Mundt
2013-03-04 15:51 ` Bastian Hecht
2013-03-04 10:03 ` Mark Rutland
2013-03-04 16:29 ` Bastian Hecht
2013-03-05 9:43 ` Mark Rutland
2013-03-06 1:06 ` Paul Mundt
2013-03-06 13:44 ` Bastian Hecht
2013-03-01 17:45 ` [PATCH 2/3] ARM: mach-shmobile: sh73a0: Add CMT DT name to clock list Bastian Hecht
2013-03-01 17:45 ` Bastian Hecht [this message]
2013-03-01 19:17 ` [PATCH 3/3] ARM: mach-shmobile: sh73a0: Setup the timer device CMT10 using DT Sergei Shtylyov
2013-03-04 15:46 ` 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=1362159932-18533-4-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).