Philipp Zabel | 479e2e3 | 2012-06-25 16:16:25 +0200 | [diff] [blame] | 1 | Freescale i.MX PWM controller |
| 2 | |
| 3 | Required properties: |
Matt Porter | 67d7bc4 | 2015-03-09 09:24:21 -0400 | [diff] [blame] | 4 | - compatible : should be "fsl,<soc>-pwm" and one of the following |
| 5 | compatible strings: |
| 6 | - "fsl,imx1-pwm" for PWM compatible with the one integrated on i.MX1 |
| 7 | - "fsl,imx27-pwm" for PWM compatible with the one integrated on i.MX27 |
Philipp Zabel | 479e2e3 | 2012-06-25 16:16:25 +0200 | [diff] [blame] | 8 | - reg: physical base address and length of the controller's registers |
Laurent Pinchart | ebeec0a | 2013-07-18 00:54:23 +0200 | [diff] [blame] | 9 | - #pwm-cells: should be 2. See pwm.txt in this directory for a description of |
| 10 | the cells format. |
Matt Porter | 67d7bc4 | 2015-03-09 09:24:21 -0400 | [diff] [blame] | 11 | - clocks : Clock specifiers for both ipg and per clocks. |
| 12 | - clock-names : Clock names should include both "ipg" and "per" |
| 13 | See the clock consumer binding, |
| 14 | Documentation/devicetree/bindings/clock/clock-bindings.txt |
Philipp Zabel | 479e2e3 | 2012-06-25 16:16:25 +0200 | [diff] [blame] | 15 | - interrupts: The interrupt for the pwm controller |
| 16 | |
| 17 | Example: |
| 18 | |
| 19 | pwm1: pwm@53fb4000 { |
| 20 | #pwm-cells = <2>; |
| 21 | compatible = "fsl,imx53-pwm", "fsl,imx27-pwm"; |
| 22 | reg = <0x53fb4000 0x4000>; |
Matt Porter | 67d7bc4 | 2015-03-09 09:24:21 -0400 | [diff] [blame] | 23 | clocks = <&clks IMX5_CLK_PWM1_IPG_GATE>, |
| 24 | <&clks IMX5_CLK_PWM1_HF_GATE>; |
| 25 | clock-names = "ipg", "per"; |
Philipp Zabel | 479e2e3 | 2012-06-25 16:16:25 +0200 | [diff] [blame] | 26 | interrupts = <61>; |
| 27 | }; |