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