Skip to content

Commit 46cfec2

Browse files
tmlindthierryreding
authored andcommitted
dt-bindings: pwm: ti,pwm-omap-dmtimer: Update binding for yaml
Update for yaml and remove the old txt binding. As we can replace most of the custom timer API with standard Linux frameworks such as clock framework, let's tag the properties for ti,prescaler and ti,clock-source as deprecated. Cc: <[email protected]> Cc: Nishanth Menon <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Uwe Kleine-König <[email protected]> Cc: Vignesh Raghavendra <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Tony Lindgren <[email protected]> Reviewed-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 363d0e5 commit 46cfec2

File tree

2 files changed

+59
-22
lines changed

2 files changed

+59
-22
lines changed

Documentation/devicetree/bindings/pwm/pwm-omap-dmtimer.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
7+
title: TI dual mode timer PWM controller
8+
9+
maintainers:
10+
- Tony Lindgren <[email protected]>
11+
12+
description:
13+
TI dual mode timer instances have an IO pin for PWM capability
14+
15+
allOf:
16+
- $ref: pwm.yaml#
17+
18+
properties:
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+
47+
required:
48+
- compatible
49+
- ti,timers
50+
51+
unevaluatedProperties: false
52+
53+
examples:
54+
- |
55+
pwm9: pwm {
56+
compatible = "ti,omap-dmtimer-pwm";
57+
ti,timers = <&timer9>;
58+
#pwm-cells = <3>;
59+
};

0 commit comments

Comments
 (0)