Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | Spreadtrum timers |
| 2 | |
| 3 | The Spreadtrum SC9860 platform provides 3 general-purpose timers. |
| 4 | These timers can support 32bit or 64bit counter, as well as supporting |
| 5 | period mode or one-shot mode, and they are can be wakeup source |
| 6 | during deep sleep. |
| 7 | |
| 8 | Required properties: |
| 9 | - compatible: should be "sprd,sc9860-timer" for SC9860 platform. |
| 10 | - reg: The register address of the timer device. |
| 11 | - interrupts: Should contain the interrupt for the timer device. |
| 12 | - clocks: The phandle to the source clock (usually a 32.768 KHz fixed clock). |
| 13 | |
| 14 | Example: |
| 15 | timer@40050000 { |
| 16 | compatible = "sprd,sc9860-timer"; |
| 17 | reg = <0 0x40050000 0 0x20>; |
| 18 | interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; |
| 19 | clocks = <&ext_32k>; |
| 20 | }; |