Skip to content

Commit 972c76b

Browse files
Terezventkartben
authored andcommitted
dts: pwm: add a binding for the SAM0 TC in PWM mode
Add a binding for the TC in PWM mode. Signed-off-by: Teresa Zepeda Ventura <[email protected]>
1 parent 830fe6e commit 972c76b

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Copyright (c) 2020 Google LLC.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: Atmel SAM0 TC in PWM mode
5+
6+
compatible: "atmel,sam0-tc-pwm"
7+
8+
include:
9+
- name: base.yaml
10+
- name: pwm-controller.yaml
11+
- name: pinctrl-device.yaml
12+
13+
properties:
14+
reg:
15+
required: true
16+
17+
interrupts:
18+
required: true
19+
20+
clocks:
21+
required: true
22+
23+
clock-names:
24+
required: true
25+
26+
channels:
27+
type: int
28+
required: true
29+
description: Number of channels this TC has
30+
enum:
31+
- 2
32+
33+
counter-size:
34+
type: int
35+
required: true
36+
description: Width of the TC counter in bits
37+
enum:
38+
- 8
39+
- 16
40+
41+
prescaler:
42+
type: int
43+
required: true
44+
description: PWM prescaler
45+
enum:
46+
- 1
47+
- 2
48+
- 4
49+
- 8
50+
- 16
51+
- 64
52+
- 256
53+
- 1024
54+
55+
"#pwm-cells":
56+
const: 2
57+
58+
pwm-cells:
59+
- channel
60+
- period

0 commit comments

Comments
 (0)