From: Tony Lindgren <tony@atomide.com>
To: Joel Fernandes <joelf@ti.com>
Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, benoit.cousson@linaro.org,
santosh.shilimkar@ti.com, jgchunter@gmail.com, rnayak@ti.com,
balbi@ti.com
Subject: Re: [PATCH 6/8] devicetree: doc: Document ti,timer-parent property
Date: Fri, 22 Nov 2013 07:58:45 -0800 [thread overview]
Message-ID: <20131122155838.GF10023@atomide.com> (raw)
In-Reply-To: <1385085414-9034-7-git-send-email-joelf@ti.com>
* Joel Fernandes <joelf@ti.com> [131121 18:00]:
> +Required properties for system timers (clockevents/clocksource):
> +- ti,timer-parent: System timer's parent mux clock needs to be setup.
> + This is currently hardcoded in code, for DT boot we
> + move this to DT.
> +
This can be replaced with just clk_set_rate, or clk_set_parent if needed.
Or by having a clocks = <&32k_clk> property in the dmtimer node in the
.dts file.
> Optional properties:
> - ti,timer-alwon: Indicates the timer is in an alway-on power domain.
Hmm this we may not need, this can probably be deciphered from the compatible
flag already?
Then for the users of a specific dmtimer, they can select the right one using
the interrupt-parent property:
timer1: timer@0x4800abcd {
compatible = "ti,omap5430-timer";
#interrupt-cells = <1>; /* needs irqchip implemented for dmtimer */
interrupt-controller;
#clock-cells = <1>; /* needs clocksource implemented for dmtimer */
clock-output-names = "32k", "sys_ck";
...
};
counter32k: counter@4ae04000 {
compatible = "ti,omap-counter32k";
#clock-cells = <1>; /* needs clocksource implemented for 32k counter */
clock-output-names = "32k";
...
};
timer {
compatible = "ti,omap5-timer";
interrupt-parent = <&timer1>;
interrupts = <1>;
clocks = <&timer1 0>, /* use timer1 as clockevent, clock index 0 = 32k, 1 = sys_ck ... */
<&counter32k 0>; /* use 32k counter as clocksource */
};
> - ti,timer-dsp: Indicates the timer can interrupt the on-chip DSP in
This can be probably also be mapped based on the compatible property?
Regards,
Tony
WARNING: multiple messages have this Message-ID (diff)
From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 6/8] devicetree: doc: Document ti,timer-parent property
Date: Fri, 22 Nov 2013 07:58:45 -0800 [thread overview]
Message-ID: <20131122155838.GF10023@atomide.com> (raw)
In-Reply-To: <1385085414-9034-7-git-send-email-joelf@ti.com>
* Joel Fernandes <joelf@ti.com> [131121 18:00]:
> +Required properties for system timers (clockevents/clocksource):
> +- ti,timer-parent: System timer's parent mux clock needs to be setup.
> + This is currently hardcoded in code, for DT boot we
> + move this to DT.
> +
This can be replaced with just clk_set_rate, or clk_set_parent if needed.
Or by having a clocks = <&32k_clk> property in the dmtimer node in the
.dts file.
> Optional properties:
> - ti,timer-alwon: Indicates the timer is in an alway-on power domain.
Hmm this we may not need, this can probably be deciphered from the compatible
flag already?
Then for the users of a specific dmtimer, they can select the right one using
the interrupt-parent property:
timer1: timer at 0x4800abcd {
compatible = "ti,omap5430-timer";
#interrupt-cells = <1>; /* needs irqchip implemented for dmtimer */
interrupt-controller;
#clock-cells = <1>; /* needs clocksource implemented for dmtimer */
clock-output-names = "32k", "sys_ck";
...
};
counter32k: counter at 4ae04000 {
compatible = "ti,omap-counter32k";
#clock-cells = <1>; /* needs clocksource implemented for 32k counter */
clock-output-names = "32k";
...
};
timer {
compatible = "ti,omap5-timer";
interrupt-parent = <&timer1>;
interrupts = <1>;
clocks = <&timer1 0>, /* use timer1 as clockevent, clock index 0 = 32k, 1 = sys_ck ... */
<&counter32k 0>; /* use 32k counter as clocksource */
};
> - ti,timer-dsp: Indicates the timer can interrupt the on-chip DSP in
This can be probably also be mapped based on the compatible property?
Regards,
Tony
next prev parent reply other threads:[~2013-11-22 15:58 UTC|newest]
Thread overview: 80+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-22 1:56 [PATCH 0/8] OMAP: timers: Preparation for migration to clocksource Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 1:56 ` [PATCH 1/8] ARM: OMAP: Move public portion of dmtimer.h to include/linux/omap-timer.h Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 15:33 ` Tony Lindgren
2013-11-22 15:33 ` Tony Lindgren
2013-11-22 16:01 ` Joel Fernandes
2013-11-22 16:01 ` Joel Fernandes
2013-11-22 16:01 ` Joel Fernandes
2013-11-26 3:02 ` Joel Fernandes
2013-11-26 3:02 ` Joel Fernandes
2013-11-26 3:02 ` Joel Fernandes
2013-11-26 18:29 ` Tony Lindgren
2013-11-26 18:29 ` Tony Lindgren
2013-11-26 19:52 ` Joel Fernandes
2013-11-26 19:52 ` Joel Fernandes
2013-11-26 19:52 ` Joel Fernandes
2013-11-26 20:32 ` Tony Lindgren
2013-11-26 20:32 ` Tony Lindgren
2013-11-22 1:56 ` [PATCH 2/8] rc: ir-rx51: Use clk API to get clock rate Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 1:56 ` [PATCH 3/8] rc: ir-rx51: Turn ON ir-rx51 as it should work for MULTIPLATFORM Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 1:56 ` [PATCH 4/8] ARM: OMAP4: timer: Remove non-DT code for TWD timer Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 1:56 ` [PATCH 5/8] ARM: OMAP2+: timer: Introduce OF-friendly clocksource/clockevent system timers Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 3:51 ` Felipe Balbi
2013-11-22 3:51 ` Felipe Balbi
2013-11-22 3:51 ` Felipe Balbi
2013-11-22 15:09 ` Joel Fernandes
2013-11-22 15:09 ` Joel Fernandes
2013-11-22 15:09 ` Joel Fernandes
2013-11-22 15:58 ` Rob Herring
2013-11-22 15:58 ` Rob Herring
2013-11-22 16:42 ` Joel Fernandes
2013-11-22 16:42 ` Joel Fernandes
2013-11-22 16:42 ` Joel Fernandes
2013-11-22 20:01 ` Rob Herring
2013-11-22 20:01 ` Rob Herring
2013-11-23 1:12 ` Joel Fernandes
2013-11-23 1:12 ` Joel Fernandes
2013-11-23 1:12 ` Joel Fernandes
2013-11-23 1:22 ` Joel Fernandes
2013-11-23 1:22 ` Joel Fernandes
2013-11-23 1:22 ` Joel Fernandes
2013-11-23 16:26 ` Rob Herring
2013-11-23 16:26 ` Rob Herring
2013-11-22 1:56 ` [PATCH 6/8] devicetree: doc: Document ti,timer-parent property Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 15:58 ` Tony Lindgren [this message]
2013-11-22 15:58 ` Tony Lindgren
2013-11-22 16:36 ` Joel Fernandes
2013-11-22 16:36 ` Joel Fernandes
2013-11-22 16:36 ` Joel Fernandes
2013-11-22 17:08 ` Tony Lindgren
2013-11-22 17:08 ` Tony Lindgren
2013-11-23 0:31 ` Joel Fernandes
2013-11-23 0:31 ` Joel Fernandes
2013-11-23 0:31 ` Joel Fernandes
2013-11-23 0:52 ` Tony Lindgren
2013-11-23 0:52 ` Tony Lindgren
2013-11-22 17:05 ` Joel Fernandes
2013-11-22 17:05 ` Joel Fernandes
2013-11-22 17:05 ` Joel Fernandes
2013-11-22 17:11 ` Tony Lindgren
2013-11-22 17:11 ` Tony Lindgren
2013-11-22 1:56 ` [PATCH 7/8] ARM: DTS: am33xx: Provide the " Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 1:56 ` [PATCH 8/8] ARM: AM33xx: Move to using omap_generic_timer_init for init_time Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
2013-11-22 1:56 ` Joel Fernandes
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=20131122155838.GF10023@atomide.com \
--to=tony@atomide.com \
--cc=balbi@ti.com \
--cc=benoit.cousson@linaro.org \
--cc=jgchunter@gmail.com \
--cc=joelf@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=rnayak@ti.com \
--cc=santosh.shilimkar@ti.com \
/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.