Back to home page

OSCL-LXR

 
 

    


0001 * Pistachio general-purpose timer based clocksource
0002 
0003 Required properties:
0004  - compatible: "img,pistachio-gptimer".
0005  - reg: Address range of the timer registers.
0006  - interrupts: An interrupt for each of the four timers
0007  - clocks: Should contain a clock specifier for each entry in clock-names
0008  - clock-names: Should contain the following entries:
0009                 "sys", interface clock
0010                 "slow", slow counter clock
0011                 "fast", fast counter clock
0012  - img,cr-periph: Must contain a phandle to the peripheral control
0013                   syscon node.
0014 
0015 Example:
0016         timer: timer@18102000 {
0017                 compatible = "img,pistachio-gptimer";
0018                 reg = <0x18102000 0x100>;
0019                 interrupts = <GIC_SHARED 60 IRQ_TYPE_LEVEL_HIGH>,
0020                              <GIC_SHARED 61 IRQ_TYPE_LEVEL_HIGH>,
0021                              <GIC_SHARED 62 IRQ_TYPE_LEVEL_HIGH>,
0022                              <GIC_SHARED 63 IRQ_TYPE_LEVEL_HIGH>;
0023                 clocks = <&clk_periph PERIPH_CLK_COUNTER_FAST>,
0024                          <&clk_periph PERIPH_CLK_COUNTER_SLOW>,
0025                          <&cr_periph SYS_CLK_TIMER>;
0026                 clock-names = "fast", "slow", "sys";
0027                 img,cr-periph = <&cr_periph>;
0028         };