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