-
Notifications
You must be signed in to change notification settings - Fork 103
/
digi,mca-pwm.txt
50 lines (42 loc) · 1.22 KB
/
digi,mca-pwm.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Digi ConnectCore SOMs Micro Controller Assist PWM
Required properties:
- compatible: must be "digi,mca-pwm"
- #address-cells: must be 1
- #size-cells: must be 0
The child nodes of this node represent the PWM controllers, this
means, the pwmchips. If the nodes are not present no pwmchips will be
added to the system.
The properties of the PWM nodes are the following:
Required properties:
* reg: index of the MCA PWM controller.
* pwm-channels: number of channels of the PWM
controller. Note that the frequency is common for all
the channels of the pwmchip. If different frequency
values are set on different channels the frequency of
all the channels will match the value of the last
channel set.
* #pwm-cells: It must be three.See pwm.txt in this
directory for a description of the cells format.
Example:
mca_cc8x: mca@63 {
pwms {
compatible = "digi,mca-pwm";
#address-cells = <1>;
#size-cells = <0>;
mca_pwm0: pwm@0 {
reg = <0>;
pwm-channels = <6>;
#pwm-cells = <3>;
};
mca_pwm1: pwm@1 {
reg = <1>;
pwm-channels = <2>;
#pwm-cells = <3>;
};
mca_pwm2: pwm@2 {
reg = <2>;
pwm-channels = <2>;
#pwm-cells = <3>;
};
};
};