img,pistachio-gptimer.txt 1.0 KB

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