Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | Marvell PWM controller |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible: should be one or more of: |
| 5 | - "marvell,pxa250-pwm" |
| 6 | - "marvell,pxa270-pwm" |
| 7 | - "marvell,pxa168-pwm" |
| 8 | - "marvell,pxa910-pwm" |
| 9 | - reg: Physical base address and length of the registers used by the PWM channel |
| 10 | Note that one device instance must be created for each PWM that is used, so the |
| 11 | length covers only the register window for one PWM output, not that of the |
| 12 | entire PWM controller. Currently length is 0x10 for all supported devices. |
| 13 | - #pwm-cells: Should be 1. This cell is used to specify the period in |
| 14 | nanoseconds. |
| 15 | |
| 16 | Example PWM device node: |
| 17 | |
| 18 | pwm0: pwm@40b00000 { |
| 19 | compatible = "marvell,pxa250-pwm"; |
| 20 | reg = <0x40b00000 0x10>; |
| 21 | #pwm-cells = <1>; |
| 22 | }; |
| 23 | |
| 24 | Example PWM client node: |
| 25 | |
| 26 | backlight { |
| 27 | compatible = "pwm-backlight"; |
| 28 | pwms = <&pwm0 5000000>; |
| 29 | ... |
| 30 | } |