Texas Instruments TLV320AIC3x Codec
Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,tlv320aic3x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
TLV320AIC3x are a series of low-power stereo audio codecs with stereo headphone amplifier, as well as multiple inputs and outputs programmable in single-ended or fully differential configurations.
The serial control bus supports SPI or I2C protocols, while the serial audio data bus is programmable for I2S, left/right-justified, DSP, or TDM modes.
The following pins can be referred in the sound node's audio routing property:
CODEC output pins:
LLOUT
RLOUT
MONO_LOUT
HPLOUT
HPROUT
HPLCOM
HPRCOM
CODEC input pins for TLV320AIC3104:
MIC2L
MIC2R
LINE1L
LINE1R
CODEC input pins for other compatible codecs:
MIC3L
MIC3R
LINE1L
LINE2L
LINE1R
LINE2R
Maintainers (maintainers): "Jai Luthra <j-luthra@ti.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,tlv320aic23", "ti,tlv320aic3x", "ti,tlv320aic33", "ti,tlv320aic3007", "ti,tlv320aic3106", "ti,tlv320aic3104"
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO specification for the active low RESET input.
gpio-reset — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
Maximum number of items (maxItems): 1
Deprecated, please use reset-gpios instead.
Deprecated (deprecated): true
ai3x-gpio-func — not listed as required here #
AIC3X_GPIO1 & AIC3X_GPIO2 Functionality
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Maximum number of items (maxItems): 2
ai3x-micbias-vg — not listed as required here #
MicBias required voltage. If node is omitted then MicBias is powered down.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):1MICBIAS output is powered to 2.0V.
Rule 2
Exact value (
const):2MICBIAS output is powered to 2.5V.
Rule 3
Exact value (
const):3MICBIAS output is connected to AVDD.
ai3x-ocmv — not listed as required here #
Output Common-Mode Voltage selection.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):01.35V
Rule 2
Exact value (
const):11.5V
Rule 3
Exact value (
const):21.65V
Rule 4
Exact value (
const):31.8V
AVDD-supply — not listed as required here #
Analog DAC voltage.
IOVDD-supply — not listed as required here #
I/O voltage.
DRVDD-supply — not listed as required here #
ADC analog and output driver voltage.
DVDD-supply — not listed as required here #
Digital core voltage.
#sound-dai-cells — not listed as required here #
Exact value (const): 0
clocks — not listed as required here #
Maximum number of items (maxItems): 1
port — not listed as required here #
Shared schema rule ($ref): audio-graph-port.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
tlv320aic3x_i2c: audio-codec@1b {
compatible = "ti,tlv320aic3x";
reg = <0x1b>;
reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
AVDD-supply = <®ulator>;
IOVDD-supply = <®ulator>;
DRVDD-supply = <®ulator>;
DVDD-supply = <®ulator>;
};
};
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
tlv320aic3x_spi: audio-codec@0 {
compatible = "ti,tlv320aic3x";
reg = <0>; /* CS number */
#sound-dai-cells = <0>;
AVDD-supply = <®ulator>;
IOVDD-supply = <®ulator>;
DRVDD-supply = <®ulator>;
DVDD-supply = <®ulator>;
ai3x-ocmv = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 2: Copyright (C) 2022 Texas Instruments Incorporated