twl6040.txt 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. - clocks: phandle to the clk32k clock provider
  19. - clock-names: Must be "clk32k"
  20. Vibra functionality
  21. Required properties:
  22. - vddvibl-supply: Regulator for the left vibra motor
  23. - vddvibr-supply: Regulator for the right vibra motor
  24. - vibra { }: Configuration section for vibra parameters containing the following
  25. properties:
  26. - ti,vibldrv-res: Resistance parameter for left driver
  27. - ti,vibrdrv-res: Resistance parameter for right driver
  28. - ti,viblmotor-res: Resistance parameter for left motor
  29. - ti,viblmotor-res: Resistance parameter for right motor
  30. Optional properties within vibra { } section:
  31. - vddvibl_uV: If the vddvibl default voltage need to be changed
  32. - vddvibr_uV: If the vddvibr default voltage need to be changed
  33. Example:
  34. &i2c1 {
  35. twl6040: twl@4b {
  36. compatible = "ti,twl6040";
  37. interrupts = <0 119 4>;
  38. interrupt-parent = <&gic>;
  39. twl6040,audpwron-gpio = <&gpio4 31 0>;
  40. vio-supply = <&v1v8>;
  41. v2v1-supply = <&v2v1>;
  42. enable-active-high;
  43. /* regulators for vibra motor */
  44. vddvibl-supply = <&vbat>;
  45. vddvibr-supply = <&vbat>;
  46. vibra {
  47. /* Vibra driver, motor resistance parameters */
  48. ti,vibldrv-res = <8>;
  49. ti,vibrdrv-res = <3>;
  50. ti,viblmotor-res = <10>;
  51. ti,vibrmotor-res = <10>;
  52. };
  53. };
  54. };
  55. /include/ "twl6040.dtsi"