Commit | Line | Data |
---|---|---|
af0ba001 PA |
1 | TI SOC based PWM Subsystem |
2 | ||
3 | Required properties: | |
96d5a545 FCJ |
4 | - compatible: Must be "ti,<soc>-pwmss". |
5 | for am33xx - compatible = "ti,am33xx-pwmss"; | |
6 | for am4372 - compatible = "ti,am4372-pwmss","ti,am33xx-pwmss"; | |
34370142 | 7 | for dra746 - compatible = "ti,dra746-pwmss", "ti,am33xx-pwmss" |
96d5a545 | 8 | |
af0ba001 PA |
9 | - reg: physical base address and size of the registers map. |
10 | - address-cells: Specify the number of u32 entries needed in child nodes. | |
11 | Should set to 1. | |
12 | - size-cells: specify number of u32 entries needed to specify child nodes size | |
13 | in reg property. Should set to 1. | |
14 | - ranges: describes the address mapping of a memory-mapped bus. Should set to | |
15 | physical address map of child's base address, physical address within | |
16 | parent's address space and length of the address map. For am33xx, | |
17 | 3 set of child register maps present, ECAP register space, EQEP | |
18 | register space, EHRPWM register space. | |
19 | ||
20 | Also child nodes should also populated under PWMSS DT node. | |
21 | ||
22 | Example: | |
96d5a545 | 23 | epwmss0: epwmss@48300000 { /* PWMSS for am33xx */ |
af0ba001 PA |
24 | compatible = "ti,am33xx-pwmss"; |
25 | reg = <0x48300000 0x10>; | |
26 | ti,hwmods = "epwmss0"; | |
27 | #address-cells = <1>; | |
28 | #size-cells = <1>; | |
29 | status = "disabled"; | |
30 | ranges = <0x48300100 0x48300100 0x80 /* ECAP */ | |
31 | 0x48300180 0x48300180 0x80 /* EQEP */ | |
32 | 0x48300200 0x48300200 0x80>; /* EHRPWM */ | |
33 | ||
34 | /* child nodes go here */ | |
35 | }; | |
96d5a545 FCJ |
36 | |
37 | epwmss0: epwmss@48300000 { /* PWMSS for am4372 */ | |
38 | compatible = "ti,am4372-pwmss","ti,am33xx-pwmss" | |
39 | reg = <0x48300000 0x10>; | |
40 | ti,hwmods = "epwmss0"; | |
41 | #address-cells = <1>; | |
42 | #size-cells = <1>; | |
43 | status = "disabled"; | |
44 | ranges = <0x48300100 0x48300100 0x80 /* ECAP */ | |
45 | 0x48300180 0x48300180 0x80 /* EQEP */ | |
46 | 0x48300200 0x48300200 0x80>; /* EHRPWM */ | |
47 | ||
48 | /* child nodes go here */ | |
49 | }; | |
34370142 V |
50 | |
51 | epwmss0: epwmss@4843e000 { /* PWMSS for DRA7xx */ | |
52 | compatible = "ti,dra746-pwmss", "ti,am33xx-pwmss"; | |
53 | reg = <0x4843e000 0x30>; | |
54 | ti,hwmods = "epwmss0"; | |
55 | #address-cells = <1>; | |
56 | #size-cells = <1>; | |
57 | ranges; | |
58 | ||
59 | /* child nodes go here */ | |
60 | }; |