18c2ecf20Sopenharmony_ciTexas Instruments - tlv320aic3x Codec module
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThe tlv320aic3x serial control bus communicates through I2C protocols
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ciRequired properties:
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci- compatible - "string" - One of:
88c2ecf20Sopenharmony_ci    "ti,tlv320aic3x" - Generic TLV320AIC3x device
98c2ecf20Sopenharmony_ci    "ti,tlv320aic33" - TLV320AIC33
108c2ecf20Sopenharmony_ci    "ti,tlv320aic3007" - TLV320AIC3007
118c2ecf20Sopenharmony_ci    "ti,tlv320aic3106" - TLV320AIC3106
128c2ecf20Sopenharmony_ci    "ti,tlv320aic3104" - TLV320AIC3104
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci- reg - <int> -  I2C slave address
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciOptional properties:
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci- reset-gpios - GPIO specification for the active low RESET input.
218c2ecf20Sopenharmony_ci- ai3x-gpio-func - <array of 2 int> - AIC3X_GPIO1 & AIC3X_GPIO2 Functionality
228c2ecf20Sopenharmony_ci				    - Not supported on tlv320aic3104
238c2ecf20Sopenharmony_ci- ai3x-micbias-vg - MicBias Voltage required.
248c2ecf20Sopenharmony_ci	1 - MICBIAS output is powered to 2.0V,
258c2ecf20Sopenharmony_ci	2 - MICBIAS output is powered to 2.5V,
268c2ecf20Sopenharmony_ci	3 - MICBIAS output is connected to AVDD,
278c2ecf20Sopenharmony_ci	If this node is not mentioned or if the value is incorrect, then MicBias
288c2ecf20Sopenharmony_ci	is powered down.
298c2ecf20Sopenharmony_ci- ai3x-ocmv - Output Common-Mode Voltage selection:
308c2ecf20Sopenharmony_ci	0 - 1.35V,
318c2ecf20Sopenharmony_ci	1 - 1.5V,
328c2ecf20Sopenharmony_ci	2 - 1.65V,
338c2ecf20Sopenharmony_ci	3 - 1.8V
348c2ecf20Sopenharmony_ci- AVDD-supply, IOVDD-supply, DRVDD-supply, DVDD-supply : power supplies for the
358c2ecf20Sopenharmony_ci  device as covered in Documentation/devicetree/bindings/regulator/regulator.txt
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ciDeprecated properties:
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci- gpio-reset - gpio pin number used for codec reset
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ciCODEC output pins:
428c2ecf20Sopenharmony_ci  * LLOUT
438c2ecf20Sopenharmony_ci  * RLOUT
448c2ecf20Sopenharmony_ci  * MONO_LOUT
458c2ecf20Sopenharmony_ci  * HPLOUT
468c2ecf20Sopenharmony_ci  * HPROUT
478c2ecf20Sopenharmony_ci  * HPLCOM
488c2ecf20Sopenharmony_ci  * HPRCOM
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ciCODEC input pins for TLV320AIC3104:
518c2ecf20Sopenharmony_ci  * MIC2L
528c2ecf20Sopenharmony_ci  * MIC2R
538c2ecf20Sopenharmony_ci  * LINE1L
548c2ecf20Sopenharmony_ci  * LINE1R
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ciCODEC input pins for other compatible codecs:
578c2ecf20Sopenharmony_ci  * MIC3L
588c2ecf20Sopenharmony_ci  * MIC3R
598c2ecf20Sopenharmony_ci  * LINE1L
608c2ecf20Sopenharmony_ci  * LINE2L
618c2ecf20Sopenharmony_ci  * LINE1R
628c2ecf20Sopenharmony_ci  * LINE2R
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ciThe pins can be used in referring sound node's audio-routing property.
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ciExample:
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ci#include <dt-bindings/gpio/gpio.h>
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_citlv320aic3x: tlv320aic3x@1b {
718c2ecf20Sopenharmony_ci	compatible = "ti,tlv320aic3x";
728c2ecf20Sopenharmony_ci	reg = <0x1b>;
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ci	reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci	AVDD-supply = <&regulator>;
778c2ecf20Sopenharmony_ci	IOVDD-supply = <&regulator>;
788c2ecf20Sopenharmony_ci	DRVDD-supply = <&regulator>;
798c2ecf20Sopenharmony_ci	DVDD-supply = <&regulator>;
808c2ecf20Sopenharmony_ci};
81