Shawn Guo | 4dce82c | 2012-04-04 10:50:52 +0800 | [diff] [blame] | 1 | Freescale MXS PWM controller |
| 2 | |
| 3 | Required properties: |
Shawn Guo | 071407e | 2012-06-26 16:58:08 +0800 | [diff] [blame] | 4 | - compatible: should be "fsl,imx23-pwm" |
Shawn Guo | 4dce82c | 2012-04-04 10:50:52 +0800 | [diff] [blame] | 5 | - reg: physical base address and length of the controller's registers |
| 6 | - #pwm-cells: should be 2. The first cell specifies the per-chip index |
| 7 | of the PWM to use and the second cell is the duty cycle in nanoseconds. |
| 8 | - fsl,pwm-number: the number of PWM devices |
| 9 | |
| 10 | Example: |
| 11 | |
| 12 | pwm: pwm@80064000 { |
Shawn Guo | 071407e | 2012-06-26 16:58:08 +0800 | [diff] [blame] | 13 | compatible = "fsl,imx28-pwm", "fsl,imx23-pwm"; |
Shawn Guo | 4dce82c | 2012-04-04 10:50:52 +0800 | [diff] [blame] | 14 | reg = <0x80064000 2000>; |
| 15 | #pwm-cells = <2>; |
| 16 | fsl,pwm-number = <8>; |
| 17 | }; |