twl6040.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. Texas Instruments TWL6040 family
  2. The TWL6040s are 8-channel high quality low-power audio codecs providing audio,
  3. vibra and GPO 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 : "ti,twl6040" for twl6040, "ti,twl6041" for twl6041
  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. - gpio-controller:
  12. - #gpio-cells = <1>: twl6040 provides GPO lines.
  13. - twl6040,audpwron-gpio: Power on GPIO line for the twl6040
  14. - vio-supply: Regulator for the twl6040 VIO supply
  15. - v2v1-supply: Regulator for the twl6040 V2V1 supply
  16. Optional properties, nodes:
  17. - enable-active-high: To power on the twl6040 during boot.
  18. Vibra functionality
  19. Required properties:
  20. - vddvibl-supply: Regulator for the left vibra motor
  21. - vddvibr-supply: Regulator for the right vibra motor
  22. - vibra { }: Configuration section for vibra parameters containing the following
  23. properties:
  24. - ti,vibldrv-res: Resistance parameter for left driver
  25. - ti,vibrdrv-res: Resistance parameter for right driver
  26. - ti,viblmotor-res: Resistance parameter for left motor
  27. - ti,viblmotor-res: Resistance parameter for right motor
  28. Optional properties within vibra { } section:
  29. - vddvibl_uV: If the vddvibl default voltage need to be changed
  30. - vddvibr_uV: If the vddvibr default voltage need to be changed
  31. Example:
  32. &i2c1 {
  33. twl6040: twl@4b {
  34. compatible = "ti,twl6040";
  35. interrupts = <0 119 4>;
  36. interrupt-parent = <&gic>;
  37. twl6040,audpwron-gpio = <&gpio4 31 0>;
  38. vio-supply = <&v1v8>;
  39. v2v1-supply = <&v2v1>;
  40. enable-active-high;
  41. /* regulators for vibra motor */
  42. vddvibl-supply = <&vbat>;
  43. vddvibr-supply = <&vbat>;
  44. vibra {
  45. /* Vibra driver, motor resistance parameters */
  46. ti,vibldrv-res = <8>;
  47. ti,vibrdrv-res = <3>;
  48. ti,viblmotor-res = <10>;
  49. ti,vibrmotor-res = <10>;
  50. };
  51. };
  52. };
  53. /include/ "twl6040.dtsi"