Commit | Line | Data |
---|---|---|
53ad9e8d PA |
1 | TI SOC EHRPWM based PWM controller |
2 | ||
3 | Required properties: | |
bdd7cf97 PA |
4 | - compatible: Must be "ti,<soc>-ehrpwm". |
5 | for am33xx - compatible = "ti,am33xx-ehrpwm"; | |
6 | for da850 - compatible = "ti,da850-ehrpwm", "ti,am33xx-ehrpwm"; | |
ebeec0af LP |
7 | - #pwm-cells: should be 3. See pwm.txt in this directory for a description of |
8 | the cells format. The only third cell flag supported by this binding is | |
9 | PWM_POLARITY_INVERTED. | |
53ad9e8d PA |
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 EHRPWM: | |
14 | "ehrpwm<x>", <x> being the 0-based instance number from the HW spec | |
15 | ||
16 | Example: | |
17 | ||
bdd7cf97 | 18 | ehrpwm0: ehrpwm@0 { /* EHRPWM on am33xx */ |
53ad9e8d PA |
19 | compatible = "ti,am33xx-ehrpwm"; |
20 | #pwm-cells = <3>; | |
21 | reg = <0x48300200 0x100>; | |
22 | ti,hwmods = "ehrpwm0"; | |
23 | }; | |
bdd7cf97 PA |
24 | |
25 | ehrpwm0: ehrpwm@0 { /* EHRPWM on da850 */ | |
26 | compatible = "ti,da850-ehrpwm", "ti,am33xx-ehrpwm"; | |
27 | #pwm-cells = <3>; | |
28 | reg = <0x300000 0x2000>; | |
29 | }; |