1e00447faSJyri SarhaTexas Instruments - tlv320aic31xx Codec module 2e00447faSJyri Sarha 3e00447faSJyri SarhaThe tlv320aic31xx serial control bus communicates through I2C protocols 4e00447faSJyri Sarha 5e00447faSJyri SarhaRequired properties: 6e00447faSJyri Sarha 7e00447faSJyri Sarha- compatible - "string" - One of: 8e00447faSJyri Sarha "ti,tlv320aic310x" - Generic TLV320AIC31xx with mono speaker amp 9e00447faSJyri Sarha "ti,tlv320aic311x" - Generic TLV320AIC31xx with stereo speaker amp 10e00447faSJyri Sarha "ti,tlv320aic3100" - TLV320AIC3100 (mono speaker amp, no MiniDSP) 11e00447faSJyri Sarha "ti,tlv320aic3110" - TLV320AIC3110 (stereo speaker amp, no MiniDSP) 12e00447faSJyri Sarha "ti,tlv320aic3120" - TLV320AIC3120 (mono speaker amp, MiniDSP) 13e00447faSJyri Sarha "ti,tlv320aic3111" - TLV320AIC3111 (stereo speaker amp, MiniDSP) 14ef9656b6SNikita Yushchenko "ti,tlv320dac3100" - TLV320DAC3100 (no ADC, mono speaker amp, no MiniDSP) 154e2cc814SPeter Ujfalusi "ti,tlv320dac3101" - TLV320DAC3101 (no ADC, stereo speaker amp, no MiniDSP) 16e00447faSJyri Sarha 17e00447faSJyri Sarha- reg - <int> - I2C slave address 18eb4dd20cSAlexandre Belloni- HPVDD-supply, SPRVDD-supply, SPLVDD-supply, AVDD-supply, IOVDD-supply, 19eb4dd20cSAlexandre Belloni DVDD-supply : power supplies for the device as covered in 20eb4dd20cSAlexandre Belloni Documentation/devicetree/bindings/regulator/regulator.txt 21e00447faSJyri Sarha 22e00447faSJyri Sarha 23e00447faSJyri SarhaOptional properties: 24e00447faSJyri Sarha 25f00e0030SAndrew F. Davis- reset-gpios - GPIO specification for the active low RESET input. 26e00447faSJyri Sarha- ai31xx-micbias-vg - MicBias Voltage setting 27e00447faSJyri Sarha 1 or MICBIAS_2_0V - MICBIAS output is powered to 2.0V 28e00447faSJyri Sarha 2 or MICBIAS_2_5V - MICBIAS output is powered to 2.5V 29e00447faSJyri Sarha 3 or MICBIAS_AVDD - MICBIAS output is connected to AVDD 30e00447faSJyri Sarha If this node is not mentioned or if the value is unknown, then 31e00447faSJyri Sarha micbias is set to 2.0V. 32e48fdb53SLucas Stach- ai31xx-ocmv - output common-mode voltage setting 33e48fdb53SLucas Stach 0 - 1.35V, 34e48fdb53SLucas Stach 1 - 1.5V, 35e48fdb53SLucas Stach 2 - 1.65V, 36e48fdb53SLucas Stach 3 - 1.8V 37e00447faSJyri Sarha 38f00e0030SAndrew F. DavisDeprecated properties: 39f00e0030SAndrew F. Davis 40f00e0030SAndrew F. Davis- gpio-reset - gpio pin number used for codec reset 41f00e0030SAndrew F. Davis 42e00447faSJyri SarhaCODEC output pins: 43e00447faSJyri Sarha * HPL 44e00447faSJyri Sarha * HPR 45e00447faSJyri Sarha * SPL, devices with stereo speaker amp 46e00447faSJyri Sarha * SPR, devices with stereo speaker amp 47e00447faSJyri Sarha * SPK, devices with mono speaker amp 48e00447faSJyri Sarha * MICBIAS 49e00447faSJyri Sarha 50e00447faSJyri SarhaCODEC input pins: 51ef9656b6SNikita Yushchenko * MIC1LP, devices with ADC 52ef9656b6SNikita Yushchenko * MIC1RP, devices with ADC 53ef9656b6SNikita Yushchenko * MIC1LM, devices with ADC 54ef9656b6SNikita Yushchenko * AIN1, devices without ADC 55ef9656b6SNikita Yushchenko * AIN2, devices without ADC 56e00447faSJyri Sarha 57e00447faSJyri SarhaThe pins can be used in referring sound node's audio-routing property. 58e00447faSJyri Sarha 59e00447faSJyri SarhaExample: 60f00e0030SAndrew F. Davis#include <dt-bindings/gpio/gpio.h> 61*85f856f7SAriel D'Alessandro#include <dt-bindings/sound/tlv320aic31xx.h> 62e00447faSJyri Sarha 63e00447faSJyri Sarhatlv320aic31xx: tlv320aic31xx@18 { 64e00447faSJyri Sarha compatible = "ti,tlv320aic311x"; 65e00447faSJyri Sarha reg = <0x18>; 66e00447faSJyri Sarha 67e00447faSJyri Sarha ai31xx-micbias-vg = <MICBIAS_OFF>; 68e00447faSJyri Sarha 69f00e0030SAndrew F. Davis reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; 70f00e0030SAndrew F. Davis 71e00447faSJyri Sarha HPVDD-supply = <®ulator>; 72e00447faSJyri Sarha SPRVDD-supply = <®ulator>; 73e00447faSJyri Sarha SPLVDD-supply = <®ulator>; 74e00447faSJyri Sarha AVDD-supply = <®ulator>; 75e00447faSJyri Sarha IOVDD-supply = <®ulator>; 76e00447faSJyri Sarha DVDD-supply = <®ulator>; 77e00447faSJyri Sarha}; 78