From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v3 14/19] ARM: shmobile: r8a7779: Add TMU devices to DT
Date: Mon, 16 Jun 2014 20:31:17 +0000 [thread overview]
Message-ID: <5236750.dtz35JItTk@avalon> (raw)
In-Reply-To: <CAMuHMdXeyKy4vR0jNS3RC9E7+0_=xPXRUDokXe0kP+V8uVEiyQ@mail.gmail.com>
Hi Geert,
On Monday 16 June 2014 18:19:02 Geert Uytterhoeven wrote:
> On Mon, Jun 16, 2014 at 4:22 PM, Laurent Pinchart wrote:
> >> diff --git a/arch/arm/boot/dts/r8a7779.dtsi
> >> b/arch/arm/boot/dts/r8a7779.dtsi index bf716ce..81714ce 100644
> >> --- a/arch/arm/boot/dts/r8a7779.dtsi
> >> +++ b/arch/arm/boot/dts/r8a7779.dtsi
> >> @@ -269,9 +269,10 @@
> >> tmu0: timer@ffd80000 {
> >> compatible = "renesas,tmu";
> >> reg = <0xffd80000 0x30>;
> >> - interrupts = <0 40 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 41 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 42 IRQ_TYPE_LEVEL_HIGH>;
> >> + interrupt-parent = <&gic>;
> >> + interrupts = <0 32 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 33 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 34 IRQ_TYPE_LEVEL_HIGH>;
> >>
> >> clocks = <&mstp0_clks R8A7779_CLK_TMU0>;
> >> clock-names = "fck";
> >>
> >> @@ -283,9 +284,10 @@
> >> tmu1: timer@ffd81000 {
> >> compatible = "renesas,tmu";
> >> reg = <0xffd81000 0x30>;
> >> - interrupts = <0 44 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 45 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 46 IRQ_TYPE_LEVEL_HIGH>;
> >> + interrupt-parent = <&gic>;
> >> + interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 36 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 37 IRQ_TYPE_LEVEL_HIGH>;
> >
> > If I'm not mistaken the interrupts should be 36, 37 and 38.
>
> (diving into the documentation)
>
> Yes, probably 36, 37, and 38. I say "probably", as I find it non-trivial
> to convert from docs to DT.
>
> What happens with 35, which is "TMU21 (input capture)"?
> As DT describes the hardware, shouldn't it be mentioned here?
Input capture isn't supported by the TMU driver yet. I haven't checked how the
feature is implemented in the hardware, which is why I've left it out from the
DT bindings for now.
> >> clocks = <&mstp0_clks R8A7779_CLK_TMU1>;
> >> clock-names = "fck";
> >>
> >> @@ -296,10 +298,11 @@
> >>
> >> tmu2: timer@ffd82000 {
> >> compatible = "renesas,tmu";
> >> + interrupt-parent = <&gic>;
> >> reg = <0xffd82000 0x30>;
> >> - interrupts = <0 48 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 49 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 50 IRQ_TYPE_LEVEL_HIGH>;
> >> + interrupts = <0 38 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 39 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 40 IRQ_TYPE_LEVEL_HIGH>;
> >
> > And 40, 41 and 42 here.
>
> Likewise for "TMU51 (input capture)"?
>
> >> clocks = <&mstp0_clks R8A7779_CLK_TMU2>;
> >> clock-names = "fck";
--
Regards,
Laurent Pinchart
WARNING: multiple messages have this Message-ID (diff)
From: laurent.pinchart@ideasonboard.com (Laurent Pinchart)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 14/19] ARM: shmobile: r8a7779: Add TMU devices to DT
Date: Mon, 16 Jun 2014 22:31:17 +0200 [thread overview]
Message-ID: <5236750.dtz35JItTk@avalon> (raw)
In-Reply-To: <CAMuHMdXeyKy4vR0jNS3RC9E7+0_=xPXRUDokXe0kP+V8uVEiyQ@mail.gmail.com>
Hi Geert,
On Monday 16 June 2014 18:19:02 Geert Uytterhoeven wrote:
> On Mon, Jun 16, 2014 at 4:22 PM, Laurent Pinchart wrote:
> >> diff --git a/arch/arm/boot/dts/r8a7779.dtsi
> >> b/arch/arm/boot/dts/r8a7779.dtsi index bf716ce..81714ce 100644
> >> --- a/arch/arm/boot/dts/r8a7779.dtsi
> >> +++ b/arch/arm/boot/dts/r8a7779.dtsi
> >> @@ -269,9 +269,10 @@
> >> tmu0: timer at ffd80000 {
> >> compatible = "renesas,tmu";
> >> reg = <0xffd80000 0x30>;
> >> - interrupts = <0 40 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 41 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 42 IRQ_TYPE_LEVEL_HIGH>;
> >> + interrupt-parent = <&gic>;
> >> + interrupts = <0 32 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 33 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 34 IRQ_TYPE_LEVEL_HIGH>;
> >>
> >> clocks = <&mstp0_clks R8A7779_CLK_TMU0>;
> >> clock-names = "fck";
> >>
> >> @@ -283,9 +284,10 @@
> >> tmu1: timer at ffd81000 {
> >> compatible = "renesas,tmu";
> >> reg = <0xffd81000 0x30>;
> >> - interrupts = <0 44 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 45 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 46 IRQ_TYPE_LEVEL_HIGH>;
> >> + interrupt-parent = <&gic>;
> >> + interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 36 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 37 IRQ_TYPE_LEVEL_HIGH>;
> >
> > If I'm not mistaken the interrupts should be 36, 37 and 38.
>
> (diving into the documentation)
>
> Yes, probably 36, 37, and 38. I say "probably", as I find it non-trivial
> to convert from docs to DT.
>
> What happens with 35, which is "TMU21 (input capture)"?
> As DT describes the hardware, shouldn't it be mentioned here?
Input capture isn't supported by the TMU driver yet. I haven't checked how the
feature is implemented in the hardware, which is why I've left it out from the
DT bindings for now.
> >> clocks = <&mstp0_clks R8A7779_CLK_TMU1>;
> >> clock-names = "fck";
> >>
> >> @@ -296,10 +298,11 @@
> >>
> >> tmu2: timer at ffd82000 {
> >> compatible = "renesas,tmu";
> >> + interrupt-parent = <&gic>;
> >> reg = <0xffd82000 0x30>;
> >> - interrupts = <0 48 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 49 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 50 IRQ_TYPE_LEVEL_HIGH>;
> >> + interrupts = <0 38 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 39 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 40 IRQ_TYPE_LEVEL_HIGH>;
> >
> > And 40, 41 and 42 here.
>
> Likewise for "TMU51 (input capture)"?
>
> >> clocks = <&mstp0_clks R8A7779_CLK_TMU2>;
> >> clock-names = "fck";
--
Regards,
Laurent Pinchart
WARNING: multiple messages have this Message-ID (diff)
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Simon Horman <horms@verge.net.au>,
Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
Linux-sh list <linux-sh@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCH v3 14/19] ARM: shmobile: r8a7779: Add TMU devices to DT
Date: Mon, 16 Jun 2014 22:31:17 +0200 [thread overview]
Message-ID: <5236750.dtz35JItTk@avalon> (raw)
In-Reply-To: <CAMuHMdXeyKy4vR0jNS3RC9E7+0_=xPXRUDokXe0kP+V8uVEiyQ@mail.gmail.com>
Hi Geert,
On Monday 16 June 2014 18:19:02 Geert Uytterhoeven wrote:
> On Mon, Jun 16, 2014 at 4:22 PM, Laurent Pinchart wrote:
> >> diff --git a/arch/arm/boot/dts/r8a7779.dtsi
> >> b/arch/arm/boot/dts/r8a7779.dtsi index bf716ce..81714ce 100644
> >> --- a/arch/arm/boot/dts/r8a7779.dtsi
> >> +++ b/arch/arm/boot/dts/r8a7779.dtsi
> >> @@ -269,9 +269,10 @@
> >> tmu0: timer@ffd80000 {
> >> compatible = "renesas,tmu";
> >> reg = <0xffd80000 0x30>;
> >> - interrupts = <0 40 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 41 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 42 IRQ_TYPE_LEVEL_HIGH>;
> >> + interrupt-parent = <&gic>;
> >> + interrupts = <0 32 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 33 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 34 IRQ_TYPE_LEVEL_HIGH>;
> >>
> >> clocks = <&mstp0_clks R8A7779_CLK_TMU0>;
> >> clock-names = "fck";
> >>
> >> @@ -283,9 +284,10 @@
> >> tmu1: timer@ffd81000 {
> >> compatible = "renesas,tmu";
> >> reg = <0xffd81000 0x30>;
> >> - interrupts = <0 44 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 45 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 46 IRQ_TYPE_LEVEL_HIGH>;
> >> + interrupt-parent = <&gic>;
> >> + interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 36 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 37 IRQ_TYPE_LEVEL_HIGH>;
> >
> > If I'm not mistaken the interrupts should be 36, 37 and 38.
>
> (diving into the documentation)
>
> Yes, probably 36, 37, and 38. I say "probably", as I find it non-trivial
> to convert from docs to DT.
>
> What happens with 35, which is "TMU21 (input capture)"?
> As DT describes the hardware, shouldn't it be mentioned here?
Input capture isn't supported by the TMU driver yet. I haven't checked how the
feature is implemented in the hardware, which is why I've left it out from the
DT bindings for now.
> >> clocks = <&mstp0_clks R8A7779_CLK_TMU1>;
> >> clock-names = "fck";
> >>
> >> @@ -296,10 +298,11 @@
> >>
> >> tmu2: timer@ffd82000 {
> >> compatible = "renesas,tmu";
> >> + interrupt-parent = <&gic>;
> >> reg = <0xffd82000 0x30>;
> >> - interrupts = <0 48 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 49 IRQ_TYPE_LEVEL_HIGH>,
> >> - <0 50 IRQ_TYPE_LEVEL_HIGH>;
> >> + interrupts = <0 38 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 39 IRQ_TYPE_LEVEL_HIGH>,
> >> + <0 40 IRQ_TYPE_LEVEL_HIGH>;
> >
> > And 40, 41 and 42 here.
>
> Likewise for "TMU51 (input capture)"?
>
> >> clocks = <&mstp0_clks R8A7779_CLK_TMU2>;
> >> clock-names = "fck";
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2014-06-16 20:31 UTC|newest]
Thread overview: 76+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-14 16:23 [PATCH v3 00/19] Renesas CMT, MTU2 and TMU timers DT support Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 01/19] clocksource: sh_tmu: Fix channel IRQ retrieval in legacy case Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 02/19] clocksource: sh_cmt: Drop support for legacy platform data Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 03/19] clocksource: sh_cmt: Replace global spinlock with a per-device spinlock Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 04/19] clocksource: sh_tmu: Drop support for legacy platform data Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 05/19] clocksource: sh_tmu: Replace global spinlock with a per-device spinlock Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 06/19] clocksource: sh_mtu2: Drop support for legacy platform data Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 07/19] clocksource: sh_mtu2: Replace global spinlock with a per-device spinlock Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 08/19] clocksource: shmobile: Remove unused sh_timer_config members Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 09/19] clocksource: sh_cmt: Add DT support Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 10/19] clocksource: sh_tmu: " Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-16 8:34 ` Simon Horman
2014-06-16 8:34 ` Simon Horman
2014-06-16 14:32 ` Laurent Pinchart
2014-06-16 14:32 ` Laurent Pinchart
2014-06-16 8:48 ` Simon Horman
2014-06-16 8:48 ` Simon Horman
2014-06-16 14:24 ` Laurent Pinchart
2014-06-16 14:24 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 11/19] clocksource: sh_mtu2: " Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 17:00 ` Sergei Shtylyov
2014-06-14 17:00 ` Sergei Shtylyov
2014-06-16 14:40 ` Laurent Pinchart
2014-06-16 14:40 ` Laurent Pinchart
2014-06-16 14:50 ` Laurent Pinchart
2014-06-16 14:50 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 12/19] ARM: shmobile: r8a7790: Add CMT devices to DT Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 16:54 ` Sergei Shtylyov
2014-06-14 16:54 ` Sergei Shtylyov
2014-06-16 14:38 ` Laurent Pinchart
2014-06-16 14:38 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 13/19] ARM: shmobile: r8a7791: " Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 16:55 ` Sergei Shtylyov
2014-06-14 16:55 ` Sergei Shtylyov
2014-06-14 16:23 ` [PATCH v3 14/19] ARM: shmobile: r8a7779: Add TMU " Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-16 8:47 ` Simon Horman
2014-06-16 8:47 ` Simon Horman
2014-06-16 14:22 ` Laurent Pinchart
2014-06-16 14:22 ` Laurent Pinchart
2014-06-16 14:22 ` Laurent Pinchart
2014-06-16 16:19 ` Geert Uytterhoeven
2014-06-16 16:19 ` Geert Uytterhoeven
2014-06-16 16:19 ` Geert Uytterhoeven
2014-06-16 20:31 ` Laurent Pinchart [this message]
2014-06-16 20:31 ` Laurent Pinchart
2014-06-16 20:31 ` Laurent Pinchart
2014-06-16 23:34 ` Simon Horman
2014-06-16 23:34 ` Simon Horman
2014-06-16 23:34 ` Simon Horman
2014-06-14 16:23 ` [PATCH v3 15/19] ARM: shmobile: r7s72100: Add MTU2 device " Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 16/19] ARM: shmobile: lager-reference: Enable CMT0 in device tree Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 17/19] ARM: shmobile: koelsch-reference: " Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 18/19] ARM: shmobile: marzen-reference: Enable TMU0 " Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-14 16:23 ` [PATCH v3 19/19] ARM: shmobile: genmai-reference: Enable MTU2 " Laurent Pinchart
2014-06-14 16:23 ` Laurent Pinchart
2014-06-16 9:00 ` [PATCH v3 00/19] Renesas CMT, MTU2 and TMU timers DT support Simon Horman
2014-06-16 9:00 ` 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=5236750.dtz35JItTk@avalon \
--to=laurent.pinchart@ideasonboard.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 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.