xref: /linux/Documentation/devicetree/bindings/pwm/ti,omap-dmtimer-pwm.yaml (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/pwm/ti,omap-dmtimer-pwm.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: TI dual mode timer PWM controller
8
9maintainers:
10  - Tony Lindgren <tony@atomide.com>
11
12description:
13  TI dual mode timer instances have an IO pin for PWM capability
14
15allOf:
16  - $ref: pwm.yaml#
17
18properties:
19  compatible:
20    const: ti,omap-dmtimer-pwm
21
22  "#pwm-cells":
23    const: 3
24
25  ti,timers:
26    description: Timer instance phandle for the PWM
27    $ref: /schemas/types.yaml#/definitions/phandle
28
29  ti,prescaler:
30    description: |
31      Legacy clock prescaler for timer. The timer counter is prescaled
32      with 2^n where n is the prescaler.
33    $ref: /schemas/types.yaml#/definitions/uint32
34    enum: [ 0, 1, 2, 3, 4, 5, 6, 7 ]
35    deprecated: true
36
37  ti,clock-source:
38    description: |
39      Legacy clock for timer, please use assigned-clocks instead.
40      0x00 - high-frequency system clock (timer_sys_ck)
41      0x01 - 32-kHz always-on clock (timer_32k_ck)
42      0x02 - external clock (timer_ext_ck, OMAP2 only)
43    $ref: /schemas/types.yaml#/definitions/uint32
44    enum: [ 0, 1, 2 ]
45    deprecated: true
46
47required:
48  - compatible
49  - ti,timers
50
51unevaluatedProperties: false
52
53examples:
54  - |
55    pwm9: pwm {
56      compatible = "ti,omap-dmtimer-pwm";
57      ti,timers = <&timer9>;
58      #pwm-cells = <3>;
59    };
60