tlv320aic31xx.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Texas Instruments - tlv320aic31xx Codec module
  2. The tlv320aic31xx serial control bus communicates through I2C protocols
  3. Required properties:
  4. - compatible - "string" - One of:
  5. "ti,tlv320aic310x" - Generic TLV320AIC31xx with mono speaker amp
  6. "ti,tlv320aic311x" - Generic TLV320AIC31xx with stereo speaker amp
  7. "ti,tlv320aic3100" - TLV320AIC3100 (mono speaker amp, no MiniDSP)
  8. "ti,tlv320aic3110" - TLV320AIC3110 (stereo speaker amp, no MiniDSP)
  9. "ti,tlv320aic3120" - TLV320AIC3120 (mono speaker amp, MiniDSP)
  10. "ti,tlv320aic3111" - TLV320AIC3111 (stereo speaker amp, MiniDSP)
  11. "ti,tlv320dac3100" - TLV320DAC3100 (no ADC, mono speaker amp, no MiniDSP)
  12. "ti,tlv320dac3101" - TLV320DAC3101 (no ADC, stereo speaker amp, no MiniDSP)
  13. - reg - <int> - I2C slave address
  14. - HPVDD-supply, SPRVDD-supply, SPLVDD-supply, AVDD-supply, IOVDD-supply,
  15. DVDD-supply : power supplies for the device as covered in
  16. Documentation/devicetree/bindings/regulator/regulator.txt
  17. Optional properties:
  18. - reset-gpios - GPIO specification for the active low RESET input.
  19. - ai31xx-micbias-vg - MicBias Voltage setting
  20. 1 or MICBIAS_2_0V - MICBIAS output is powered to 2.0V
  21. 2 or MICBIAS_2_5V - MICBIAS output is powered to 2.5V
  22. 3 or MICBIAS_AVDD - MICBIAS output is connected to AVDD
  23. If this node is not mentioned or if the value is unknown, then
  24. micbias is set to 2.0V.
  25. Deprecated properties:
  26. - gpio-reset - gpio pin number used for codec reset
  27. CODEC output pins:
  28. * HPL
  29. * HPR
  30. * SPL, devices with stereo speaker amp
  31. * SPR, devices with stereo speaker amp
  32. * SPK, devices with mono speaker amp
  33. * MICBIAS
  34. CODEC input pins:
  35. * MIC1LP, devices with ADC
  36. * MIC1RP, devices with ADC
  37. * MIC1LM, devices with ADC
  38. * AIN1, devices without ADC
  39. * AIN2, devices without ADC
  40. The pins can be used in referring sound node's audio-routing property.
  41. Example:
  42. #include <dt-bindings/gpio/gpio.h>
  43. #include <dt-bindings/sound/tlv320aic31xx-micbias.h>
  44. tlv320aic31xx: tlv320aic31xx@18 {
  45. compatible = "ti,tlv320aic311x";
  46. reg = <0x18>;
  47. ai31xx-micbias-vg = <MICBIAS_OFF>;
  48. reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
  49. HPVDD-supply = <&regulator>;
  50. SPRVDD-supply = <&regulator>;
  51. SPLVDD-supply = <&regulator>;
  52. AVDD-supply = <&regulator>;
  53. IOVDD-supply = <&regulator>;
  54. DVDD-supply = <&regulator>;
  55. };