29 lines · plain
1* Pistachio general-purpose timer based clocksource2 3Required properties:4 - compatible: "img,pistachio-gptimer".5 - reg: Address range of the timer registers.6 - interrupts: An interrupt for each of the four timers7 - clocks: Should contain a clock specifier for each entry in clock-names8 - clock-names: Should contain the following entries:9 "sys", interface clock10 "slow", slow counter clock11 "fast", fast counter clock12 - img,cr-periph: Must contain a phandle to the peripheral control13 syscon node.14 15Example:16 timer: timer@18102000 {17 compatible = "img,pistachio-gptimer";18 reg = <0x18102000 0x100>;19 interrupts = <GIC_SHARED 60 IRQ_TYPE_LEVEL_HIGH>,20 <GIC_SHARED 61 IRQ_TYPE_LEVEL_HIGH>,21 <GIC_SHARED 62 IRQ_TYPE_LEVEL_HIGH>,22 <GIC_SHARED 63 IRQ_TYPE_LEVEL_HIGH>;23 clocks = <&clk_periph PERIPH_CLK_COUNTER_FAST>,24 <&clk_periph PERIPH_CLK_COUNTER_SLOW>,25 <&cr_periph SYS_CLK_TIMER>;26 clock-names = "fast", "slow", "sys";27 img,cr-periph = <&cr_periph>;28 };29