Philip, Avinash | 333b08e | 2012-11-27 14:18:09 +0530 | [diff] [blame] | 1 | TI SOC ECAP based APWM controller |
| 2 | |
| 3 | Required properties: |
Philip Avinash | 5df1b8f | 2013-03-25 12:34:52 +0530 | [diff] [blame] | 4 | - compatible: Must be "ti,<soc>-ecap". |
| 5 | for am33xx - compatible = "ti,am33xx-ecap"; |
| 6 | for da850 - compatible = "ti,da850-ecap", "ti,am33xx-ecap"; |
Laurent Pinchart | ebeec0a | 2013-07-18 00:54:23 +0200 | [diff] [blame] | 7 | - #pwm-cells: should be 3. See pwm.txt in this directory for a description of |
| 8 | the cells format. The PWM channel index ranges from 0 to 4. The only third |
| 9 | cell flag supported by this binding is PWM_POLARITY_INVERTED. |
Philip, Avinash | 333b08e | 2012-11-27 14:18:09 +0530 | [diff] [blame] | 10 | - reg: physical base address and size of the registers map. |
| 11 | |
| 12 | Optional properties: |
| 13 | - ti,hwmods: Name of the hwmod associated to the ECAP: |
| 14 | "ecap<x>", <x> being the 0-based instance number from the HW spec |
| 15 | |
| 16 | Example: |
| 17 | |
Philip Avinash | 5df1b8f | 2013-03-25 12:34:52 +0530 | [diff] [blame] | 18 | ecap0: ecap@0 { /* ECAP on am33xx */ |
Philip, Avinash | 333b08e | 2012-11-27 14:18:09 +0530 | [diff] [blame] | 19 | compatible = "ti,am33xx-ecap"; |
| 20 | #pwm-cells = <3>; |
| 21 | reg = <0x48300100 0x80>; |
| 22 | ti,hwmods = "ecap0"; |
| 23 | }; |
Philip Avinash | 5df1b8f | 2013-03-25 12:34:52 +0530 | [diff] [blame] | 24 | |
| 25 | ecap0: ecap@0 { /* ECAP on da850 */ |
| 26 | compatible = "ti,da850-ecap", "ti,am33xx-ecap"; |
| 27 | #pwm-cells = <3>; |
| 28 | reg = <0x306000 0x80>; |
| 29 | }; |