Back to home page

OSCL-LXR

 
 

    


0001 Texas Instruments TWL6040 family
0002 
0003 The TWL6040s are 8-channel high quality low-power audio codecs providing audio,
0004 vibra and GPO functionality on OMAP4+ platforms.
0005 They are connected ot the host processor via i2c for commands, McPDM for audio
0006 data and commands.
0007 
0008 Required properties:
0009 - compatible : "ti,twl6040" for twl6040, "ti,twl6041" for twl6041
0010 - reg: must be 0x4b for i2c address
0011 - interrupts: twl6040 has one interrupt line connecteded to the main SoC
0012 - gpio-controller:
0013 - #gpio-cells = <1>: twl6040 provides GPO lines.
0014 - #clock-cells = <0>; twl6040 is a provider of pdmclk which is used by McPDM
0015 - twl6040,audpwron-gpio: Power on GPIO line for the twl6040
0016 
0017 - vio-supply: Regulator for the twl6040 VIO supply
0018 - v2v1-supply: Regulator for the twl6040 V2V1 supply
0019 
0020 Optional properties, nodes:
0021 - enable-active-high: To power on the twl6040 during boot.
0022 - clocks: phandle to the clk32k and/or to mclk clock provider
0023 - clock-names: Must be "clk32k" for the 32K clock and "mclk" for the MCLK.
0024 
0025 Vibra functionality
0026 Required properties:
0027 - vddvibl-supply: Regulator for the left vibra motor
0028 - vddvibr-supply: Regulator for the right vibra motor
0029 - vibra { }: Configuration section for vibra parameters containing the following
0030              properties:
0031 - ti,vibldrv-res: Resistance parameter for left driver
0032 - ti,vibrdrv-res: Resistance parameter for right driver
0033 - ti,viblmotor-res: Resistance parameter for left motor
0034 - ti,viblmotor-res: Resistance parameter for right motor
0035 
0036 Optional properties within vibra { } section:
0037 - vddvibl_uV: If the vddvibl default voltage need to be changed
0038 - vddvibr_uV: If the vddvibr default voltage need to be changed
0039 
0040 Example:
0041 &i2c1 {
0042         twl6040: twl@4b {
0043                 compatible = "ti,twl6040";
0044 
0045                 interrupts = <0 119 4>;
0046                 interrupt-parent = <&gic>;
0047                 twl6040,audpwron-gpio = <&gpio4 31 0>;
0048 
0049                 vio-supply = <&v1v8>;
0050                 v2v1-supply = <&v2v1>;
0051                 enable-active-high;
0052 
0053                 /* regulators for vibra motor */
0054                 vddvibl-supply = <&vbat>;
0055                 vddvibr-supply = <&vbat>;
0056 
0057                 vibra {
0058                         /* Vibra driver, motor resistance parameters */
0059                         ti,vibldrv-res = <8>;
0060                         ti,vibrdrv-res = <3>;
0061                         ti,viblmotor-res = <10>;
0062                         ti,vibrmotor-res = <10>;
0063                 };
0064         };
0065 };
0066 
0067 /include/ "twl6040.dtsi"