Neil Armstrong | 6604c65 | 2015-11-02 12:14:21 +0100 | [diff] [blame] | 1 | * OMAP PWM for dual-mode timers |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible: Shall contain "ti,omap-dmtimer-pwm". |
| 5 | - ti,timers: phandle to PWM capable OMAP timer. See arm/omap/timer.txt for info |
| 6 | about these timers. |
| 7 | - #pwm-cells: Should be 3. See pwm.txt in this directory for a description of |
| 8 | the cells format. |
| 9 | |
| 10 | Optional properties: |
| 11 | - ti,prescaler: Should be a value between 0 and 7, see the timers datasheet |
Ivaylo Dimitrov | a74a198 | 2016-06-22 22:22:18 +0300 | [diff] [blame] | 12 | - ti,clock-source: Set dmtimer parent clock, values between 0 and 2: |
| 13 | - 0x00 - high-frequency system clock (timer_sys_ck) |
| 14 | - 0x01 - 32-kHz always-on clock (timer_32k_ck) |
| 15 | - 0x02 - external clock (timer_ext_ck, OMAP2 only) |
Neil Armstrong | 6604c65 | 2015-11-02 12:14:21 +0100 | [diff] [blame] | 16 | |
| 17 | Example: |
| 18 | pwm9: dmtimer-pwm@9 { |
| 19 | compatible = "ti,omap-dmtimer-pwm"; |
| 20 | ti,timers = <&timer9>; |
| 21 | #pwm-cells = <3>; |
| 22 | }; |