GNU Linux-libre 4.19.264-gnu1
[releases.git] / Documentation / devicetree / bindings / pwm / atmel-pwm.txt
1 Atmel PWM controller
2
3 Required properties:
4   - compatible: should be one of:
5     - "atmel,at91sam9rl-pwm"
6     - "atmel,sama5d3-pwm"
7     - "atmel,sama5d2-pwm"
8   - reg: physical base address and length of the controller's registers
9   - #pwm-cells: Should be 3. See pwm.txt in this directory for a
10     description of the cells format.
11
12 Example:
13
14         pwm0: pwm@f8034000 {
15                 compatible = "atmel,at91sam9rl-pwm";
16                 reg = <0xf8034000 0x400>;
17                 #pwm-cells = <3>;
18         };
19
20         pwmleds {
21                 compatible = "pwm-leds";
22
23                 d1 {
24                         label = "d1";
25                         pwms = <&pwm0 3 5000 0>
26                         max-brightness = <255>;
27                 };
28
29                 d2 {
30                         label = "d2";
31                         pwms = <&pwm0 1 5000 1>
32                         max-brightness = <255>;
33                 };
34         };