| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | NXP System Counter Module(sys_ctr) |
| 2 | |
| 3 | The system counter(sys_ctr) is a programmable system counter which provides |
| 4 | a shared time base to Cortex A15, A7, A53, A73, etc. it is intended for use in |
| 5 | applications where the counter is always powered and support multiple, |
| 6 | unrelated clocks. The compare frame inside can be used for timer purpose. |
| 7 | |
| 8 | Required properties: |
| 9 | |
| 10 | - compatible : should be "nxp,sysctr-timer" |
| 11 | - reg : Specifies the base physical address and size of the comapre |
| 12 | frame and the counter control, read & compare. |
| 13 | - interrupts : should be the first compare frames' interrupt |
| 14 | - clocks : Specifies the counter clock. |
| 15 | - clock-names: Specifies the clock's name of this module |
| 16 | |
| 17 | Example: |
| 18 | |
| 19 | system_counter: timer@306a0000 { |
| 20 | compatible = "nxp,sysctr-timer"; |
| 21 | reg = <0x306a0000 0x20000>;/* system-counter-rd & compare */ |
| 22 | clocks = <&clk_8m>; |
| 23 | clock-names = "per"; |
| 24 | interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>; |
| 25 | }; |