xref: /freebsd/sys/contrib/device-tree/Bindings/pwm/atmel-pwm.txt (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
1Atmel PWM controller
2
3Required properties:
4  - compatible: should be one of:
5    - "atmel,at91sam9rl-pwm"
6    - "atmel,sama5d3-pwm"
7    - "atmel,sama5d2-pwm"
8    - "microchip,sam9x60-pwm"
9  - reg: physical base address and length of the controller's registers
10  - #pwm-cells: Should be 3. See pwm.yaml in this directory for a
11    description of the cells format.
12
13Example:
14
15	pwm0: pwm@f8034000 {
16		compatible = "atmel,at91sam9rl-pwm";
17		reg = <0xf8034000 0x400>;
18		#pwm-cells = <3>;
19	};
20
21	pwmleds {
22		compatible = "pwm-leds";
23
24		d1 {
25			label = "d1";
26			pwms = <&pwm0 3 5000 0>
27			max-brightness = <255>;
28		};
29
30		d2 {
31			label = "d2";
32			pwms = <&pwm0 1 5000 1>
33			max-brightness = <255>;
34		};
35	};
36