linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: horms+renesas@verge.net.au (Simon Horman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/8] ARM: shmobile: r8a7791: Add CMT devices to DT
Date: Thu, 17 Jul 2014 09:40:29 +0900	[thread overview]
Message-ID: <c25af2c1e70dd5885e4e71b51ae6a9d1530bb251.1405556312.git.horms+renesas@verge.net.au> (raw)
In-Reply-To: <cover.1405556312.git.horms+renesas@verge.net.au>

From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

Add the CMT0 and CMT1 counters to the r8a7791 device tree and make them
disabled by default.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tested-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/r8a7791.dtsi | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi
index 6e9a556..56841d3 100644
--- a/arch/arm/boot/dts/r8a7791.dtsi
+++ b/arch/arm/boot/dts/r8a7791.dtsi
@@ -189,6 +189,38 @@
 			     <1 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
 	};
 
+	cmt0: timer at ffca0000 {
+		compatible = "renesas,cmt-48-gen2";
+		reg = <0 0xffca0000 0 0x1004>;
+		interrupts = <0 142 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 143 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp1_clks R8A7791_CLK_CMT0>;
+		clock-names = "fck";
+
+		renesas,channels-mask = <0x60>;
+
+		status = "disabled";
+	};
+
+	cmt1: timer at e6130000 {
+		compatible = "renesas,cmt-48-gen2";
+		reg = <0 0xe6130000 0 0x1004>;
+		interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 121 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 122 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 123 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 124 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 125 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 126 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 127 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp3_clks R8A7791_CLK_CMT1>;
+		clock-names = "fck";
+
+		renesas,channels-mask = <0xff>;
+
+		status = "disabled";
+	};
+
 	irqc0: interrupt-controller at e61c0000 {
 		compatible = "renesas,irqc-r8a7791", "renesas,irqc";
 		#interrupt-cells = <2>;
-- 
2.0.0

  parent reply	other threads:[~2014-07-17  0:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-17  0:40 [GIT PULL] Renesas ARM Based SoC DT Timers Updates for v3.17 Simon Horman
2014-07-17  0:40 ` [PATCH 1/8] ARM: shmobile: r8a7790: Add CMT devices to DT Simon Horman
2014-07-17  0:40 ` Simon Horman [this message]
2014-07-17  0:40 ` [PATCH 3/8] ARM: shmobile: r8a7779: Add TMU " Simon Horman
2014-07-17  0:40 ` [PATCH 4/8] ARM: shmobile: lager-reference: Enable CMT0 in device tree Simon Horman
2014-07-17  0:40 ` [PATCH 5/8] ARM: shmobile: koelsch-reference: " Simon Horman
2014-07-17  0:40 ` [PATCH 6/8] ARM: shmobile: marzen-reference: Enable TMU0 " Simon Horman
2014-07-17  0:40 ` [PATCH 7/8] ARM: shmobile: r7s72100: Add MTU2 device to DT Simon Horman
2014-07-17  0:40 ` [PATCH 8/8] ARM: shmobile: genmai-reference: Enable MTU2 in device tree Simon Horman
2014-07-19  5:27 ` [GIT PULL] Renesas ARM Based SoC DT Timers Updates for v3.17 Olof Johansson
2014-07-20 13:51   ` Simon Horman
2014-07-23 23:54     ` Simon Horman
2014-07-24  0:00       ` Olof Johansson
2014-07-24  2:05         ` Simon Horman
2014-08-20  0:24 [GIT PULL] Renesas ARM Based SoC DT Timers Updates for v3.18 Simon Horman
2014-08-20  0:24 ` [PATCH 2/8] ARM: shmobile: r8a7791: Add CMT devices to DT Simon Horman

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=c25af2c1e70dd5885e4e71b51ae6a9d1530bb251.1405556312.git.horms+renesas@verge.net.au \
    --to=horms+renesas@verge.net.au \
    --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).