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