Merge tag 'drm-fixes-5.5-2019-12-12' of git://people.freedesktop.org/~agd5f/linux...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / pwm / pwm-tiecap.txt
1 TI SOC ECAP based APWM controller
2
3 Required properties:
4 - compatible: Must be "ti,<soc>-ecap".
5   for am33xx - compatible = "ti,am3352-ecap", "ti,am33xx-ecap";
6   for am4372 - compatible = "ti,am4372-ecap", "ti,am3352-ecap", "ti,am33xx-ecap";
7   for da850  - compatible = "ti,da850-ecap", "ti,am3352-ecap", "ti,am33xx-ecap";
8   for dra746 - compatible = "ti,dra746-ecap", "ti,am3352-ecap";
9   for 66ak2g - compatible = "ti,k2g-ecap", "ti,am3352-ecap";
10   for am654  - compatible = "ti,am654-ecap", "ti,am3352-ecap";
11 - #pwm-cells: should be 3. See pwm.yaml in this directory for a description of
12   the cells format. The PWM channel index ranges from 0 to 4. The only third
13   cell flag supported by this binding is PWM_POLARITY_INVERTED.
14 - reg: physical base address and size of the registers map.
15
16 Optional properties:
17 - clocks: Handle to the ECAP's functional clock.
18 - clock-names: Must be set to "fck".
19
20 Example:
21
22 ecap0: ecap@48300100 { /* ECAP on am33xx */
23         compatible = "ti,am3352-ecap", "ti,am33xx-ecap";
24         #pwm-cells = <3>;
25         reg = <0x48300100 0x80>;
26         clocks = <&l4ls_gclk>;
27         clock-names = "fck";
28 };
29
30 ecap0: ecap@48300100 { /* ECAP on am4372 */
31         compatible = "ti,am4372-ecap", "ti,am3352-ecap", "ti,am33xx-ecap";
32         #pwm-cells = <3>;
33         reg = <0x48300100 0x80>;
34         ti,hwmods = "ecap0";
35         clocks = <&l4ls_gclk>;
36         clock-names = "fck";
37 };
38
39 ecap0: ecap@1f06000 { /* ECAP on da850 */
40         compatible = "ti,da850-ecap", "ti,am3352-ecap", "ti,am33xx-ecap";
41         #pwm-cells = <3>;
42         reg = <0x1f06000 0x80>;
43 };
44
45 ecap0: ecap@4843e100 {
46         compatible = "ti,dra746-ecap", "ti,am3352-ecap";
47         #pwm-cells = <3>;
48         reg = <0x4843e100 0x80>;
49         clocks = <&l4_root_clk_div>;
50         clock-names = "fck";
51 };