Commit | Line | Data |
---|---|---|
37e13cec PU |
1 | Texas Instruments TWL6040 family |
2 | ||
3 | The TWL6040s are 8-channel high quality low-power audio codecs providing audio | |
4 | and vibra functionality on OMAP4+ platforms. | |
5 | They are connected ot the host processor via i2c for commands, McPDM for audio | |
6 | data and commands. | |
7 | ||
8 | Required properties: | |
9 | - compatible : Must be "ti,twl6040"; | |
10 | - reg: must be 0x4b for i2c address | |
11 | - interrupts: twl6040 has one interrupt line connecteded to the main SoC | |
12 | - interrupt-parent: The parent interrupt controller | |
13 | - twl6040,audpwron-gpio: Power on GPIO line for the twl6040 | |
14 | ||
15 | - vio-supply: Regulator for the twl6040 VIO supply | |
16 | - v2v1-supply: Regulator for the twl6040 V2V1 supply | |
17 | ||
18 | Optional properties, nodes: | |
19 | - enable-active-high: To power on the twl6040 during boot. | |
20 | ||
21 | Vibra functionality | |
22 | Required properties: | |
23 | - vddvibl-supply: Regulator for the left vibra motor | |
24 | - vddvibr-supply: Regulator for the right vibra motor | |
25 | - vibra { }: Configuration section for vibra parameters containing the following | |
26 | properties: | |
27 | - ti,vibldrv-res: Resistance parameter for left driver | |
28 | - ti,vibrdrv-res: Resistance parameter for right driver | |
29 | - ti,viblmotor-res: Resistance parameter for left motor | |
30 | - ti,viblmotor-res: Resistance parameter for right motor | |
31 | ||
32 | Optional properties within vibra { } section: | |
33 | - vddvibl_uV: If the vddvibl default voltage need to be changed | |
34 | - vddvibr_uV: If the vddvibr default voltage need to be changed | |
35 | ||
36 | Example: | |
37 | &i2c1 { | |
38 | twl6040: twl@4b { | |
39 | compatible = "ti,twl6040"; | |
40 | reg = <0x4b>; | |
41 | ||
42 | interrupts = <0 119 4>; | |
43 | interrupt-parent = <&gic>; | |
44 | twl6040,audpwron-gpio = <&gpio4 31 0>; | |
45 | ||
46 | vio-supply = <&v1v8>; | |
47 | v2v1-supply = <&v2v1>; | |
48 | enable-active-high; | |
49 | ||
50 | /* regulators for vibra motor */ | |
51 | vddvibl-supply = <&vbat>; | |
52 | vddvibr-supply = <&vbat>; | |
53 | ||
54 | vibra { | |
55 | /* Vibra driver, motor resistance parameters */ | |
56 | ti,vibldrv-res = <8>; | |
57 | ti,vibrdrv-res = <3>; | |
58 | ti,viblmotor-res = <10>; | |
59 | ti,vibrmotor-res = <10>; | |
60 | }; | |
61 | }; | |
62 | }; |