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