twl6040.txt 1.9 KB

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