ARM: clocksource: Add support for MOXA ART SoCs
This patch adds an clocksource driver for the main timer(s) found on MOXA ART SoCs. The MOXA ART SoC provides three separate timers with individual count/load/match registers, two are used here: TIMER1: clockevents, used to support oneshot and periodic events TIMER2: set up as a free running counter, used as clocksource Timers are preconfigured by bootloader to count down and interrupt on match or zero. Count increments every APB clock cycle and is automatically reloaded when it reaches zero. Signed-off-by: Jonas Jensen <jonas.jensen@gmail.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
This commit is contained in:

committed by
Daniel Lezcano

parent
3d77b30efc
commit
07862c1cd6
@@ -0,0 +1,17 @@
|
||||
MOXA ART timer
|
||||
|
||||
Required properties:
|
||||
|
||||
- compatible : Should be "moxa,moxart-timer"
|
||||
- reg : Should contain registers location and length
|
||||
- interrupts : Should contain the timer interrupt number
|
||||
- clocks : Should contain phandle for APB clock "clkapb"
|
||||
|
||||
Example:
|
||||
|
||||
timer: timer@98400000 {
|
||||
compatible = "moxa,moxart-timer";
|
||||
reg = <0x98400000 0x42>;
|
||||
interrupts = <19 1>;
|
||||
clocks = <&clkapb>;
|
||||
};
|
Reference in New Issue
Block a user