dw-apb.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. * Designware APB timer
  2. Required properties:
  3. - compatible: "snps,dw-apb-timer-sp" or "snps,dw-apb-timer-osc"
  4. - reg: physical base address of the controller and length of memory mapped
  5. region.
  6. - interrupts: IRQ line for the timer.
  7. - either clocks+clock-names or clock-frequency properties
  8. Optional properties:
  9. - clocks : list of clock specifiers, corresponding to entries in
  10. the clock-names property;
  11. - clock-names : should contain "timer" and "pclk" entries, matching entries
  12. in the clocks property.
  13. - clock-frequency: The frequency in HZ of the timer.
  14. - clock-freq: For backwards compatibility with picoxcell
  15. If using the clock specifiers, the pclk clock is optional, as not all
  16. systems may use one.
  17. Example:
  18. timer1: timer@ffc09000 {
  19. compatible = "snps,dw-apb-timer-sp";
  20. interrupts = <0 168 4>;
  21. clock-frequency = <200000000>;
  22. reg = <0xffc09000 0x1000>;
  23. };
  24. timer2: timer@ffd00000 {
  25. compatible = "snps,dw-apb-timer-osc";
  26. interrupts = <0 169 4>;
  27. clock-frequency = <200000000>;
  28. reg = <0xffd00000 0x1000>;
  29. };
  30. timer3: timer@ffe00000 {
  31. compatible = "snps,dw-apb-timer-osc";
  32. interrupts = <0 170 4>;
  33. reg = <0xffe00000 0x1000>;
  34. clocks = <&timer_clk>, <&timer_pclk>;
  35. clock-names = "timer", "pclk";
  36. };