Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[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 - #pwm-cells: should be 3. See pwm.txt in this directory for a description of
10   the cells format. The PWM channel index ranges from 0 to 4. The only third
11   cell flag supported by this binding is PWM_POLARITY_INVERTED.
12 - reg: physical base address and size of the registers map.
13
14 Optional properties:
15 - clocks: Handle to the ECAP's functional clock.
16 - clock-names: Must be set to "fck".
17
18 Example:
19
20 ecap0: ecap@48300100 { /* ECAP on am33xx */
21         compatible = "ti,am3352-ecap", "ti,am33xx-ecap";
22         #pwm-cells = <3>;
23         reg = <0x48300100 0x80>;
24         clocks = <&l4ls_gclk>;
25         clock-names = "fck";
26 };
27
28 ecap0: ecap@48300100 { /* ECAP on am4372 */
29         compatible = "ti,am4372-ecap", "ti,am3352-ecap", "ti,am33xx-ecap";
30         #pwm-cells = <3>;
31         reg = <0x48300100 0x80>;
32         ti,hwmods = "ecap0";
33         clocks = <&l4ls_gclk>;
34         clock-names = "fck";
35 };
36
37 ecap0: ecap@1f06000 { /* ECAP on da850 */
38         compatible = "ti,da850-ecap", "ti,am3352-ecap", "ti,am33xx-ecap";
39         #pwm-cells = <3>;
40         reg = <0x1f06000 0x80>;
41 };
42
43 ecap0: ecap@4843e100 {
44         compatible = "ti,dra746-ecap", "ti,am3352-ecap";
45         #pwm-cells = <3>;
46         reg = <0x4843e100 0x80>;
47         clocks = <&l4_root_clk_div>;
48         clock-names = "fck";
49 };