2012-05-16 11:11:58 +00:00
|
|
|
Texas Instruments TWL6040 family
|
|
|
|
|
2012-08-16 12:13:14 +00:00
|
|
|
The TWL6040s are 8-channel high quality low-power audio codecs providing audio,
|
|
|
|
vibra and GPO functionality on OMAP4+ platforms.
|
2024-09-05 15:19:43 +00:00
|
|
|
They are connected to the host processor via i2c for commands, McPDM for audio
|
2012-05-16 11:11:58 +00:00
|
|
|
data and commands.
|
|
|
|
|
|
|
|
Required properties:
|
2012-07-16 09:49:44 +00:00
|
|
|
- compatible : "ti,twl6040" for twl6040, "ti,twl6041" for twl6041
|
2012-05-16 11:11:58 +00:00
|
|
|
- reg: must be 0x4b for i2c address
|
|
|
|
- interrupts: twl6040 has one interrupt line connecteded to the main SoC
|
2012-08-16 12:13:14 +00:00
|
|
|
- gpio-controller:
|
|
|
|
- #gpio-cells = <1>: twl6040 provides GPO lines.
|
2016-08-31 11:46:21 +00:00
|
|
|
- #clock-cells = <0>; twl6040 is a provider of pdmclk which is used by McPDM
|
2012-05-16 11:11:58 +00:00
|
|
|
- twl6040,audpwron-gpio: Power on GPIO line for the twl6040
|
|
|
|
|
|
|
|
- vio-supply: Regulator for the twl6040 VIO supply
|
|
|
|
- v2v1-supply: Regulator for the twl6040 V2V1 supply
|
|
|
|
|
|
|
|
Optional properties, nodes:
|
|
|
|
- enable-active-high: To power on the twl6040 during boot.
|
2016-06-20 14:07:18 +00:00
|
|
|
- clocks: phandle to the clk32k and/or to mclk clock provider
|
|
|
|
- clock-names: Must be "clk32k" for the 32K clock and "mclk" for the MCLK.
|
2012-05-16 11:11:58 +00:00
|
|
|
|
|
|
|
Vibra functionality
|
|
|
|
Required properties:
|
|
|
|
- vddvibl-supply: Regulator for the left vibra motor
|
|
|
|
- vddvibr-supply: Regulator for the right vibra motor
|
|
|
|
- vibra { }: Configuration section for vibra parameters containing the following
|
|
|
|
properties:
|
|
|
|
- ti,vibldrv-res: Resistance parameter for left driver
|
|
|
|
- ti,vibrdrv-res: Resistance parameter for right driver
|
|
|
|
- ti,viblmotor-res: Resistance parameter for left motor
|
|
|
|
- ti,viblmotor-res: Resistance parameter for right motor
|
|
|
|
|
|
|
|
Optional properties within vibra { } section:
|
|
|
|
- vddvibl_uV: If the vddvibl default voltage need to be changed
|
|
|
|
- vddvibr_uV: If the vddvibr default voltage need to be changed
|
|
|
|
|
|
|
|
Example:
|
|
|
|
&i2c1 {
|
|
|
|
twl6040: twl@4b {
|
|
|
|
compatible = "ti,twl6040";
|
|
|
|
|
|
|
|
interrupts = <0 119 4>;
|
|
|
|
interrupt-parent = <&gic>;
|
|
|
|
twl6040,audpwron-gpio = <&gpio4 31 0>;
|
|
|
|
|
|
|
|
vio-supply = <&v1v8>;
|
|
|
|
v2v1-supply = <&v2v1>;
|
|
|
|
enable-active-high;
|
|
|
|
|
|
|
|
/* regulators for vibra motor */
|
|
|
|
vddvibl-supply = <&vbat>;
|
|
|
|
vddvibr-supply = <&vbat>;
|
|
|
|
|
|
|
|
vibra {
|
|
|
|
/* Vibra driver, motor resistance parameters */
|
|
|
|
ti,vibldrv-res = <8>;
|
|
|
|
ti,vibrdrv-res = <3>;
|
|
|
|
ti,viblmotor-res = <10>;
|
|
|
|
ti,vibrmotor-res = <10>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2012-08-16 12:13:14 +00:00
|
|
|
|
|
|
|
/include/ "twl6040.dtsi"
|