Texas Instruments - tlv320aic31xx Codec module
Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,tlv320dac3100.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shenghao Ding <shenghao-ding@ti.com>"
CODEC output pins:
* HPL
* HPR
* SPL, devices with stereo speaker amp
* SPR, devices with stereo speaker amp
* SPK, devices with mono speaker amp
* MICBIAS
CODEC input pins:
* MIC1LP, devices with ADC
* MIC1RP, devices with ADC
* MIC1LM, devices with ADC
* AIN1, devices without ADC
* AIN2, devices without ADC
The pins can be used in referring sound node's audio-routing property.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,tlv320aic310x", "ti,tlv320aic311x", "ti,tlv320aic3100", "ti,tlv320aic3110", "ti,tlv320aic3120", "ti,tlv320aic3111", "ti,tlv320dac3100", "ti,tlv320dac3101"
reg — required here #
Maximum number of items (maxItems): 1
#sound-dai-cells — not listed as required here #
Exact value (const): 0
HPVDD-supply — required here #
true — No constraints added by this property rule.
SPRVDD-supply — required here #
true — No constraints added by this property rule.
SPLVDD-supply — required here #
true — No constraints added by this property rule.
AVDD-supply — required here #
true — No constraints added by this property rule.
IOVDD-supply — required here #
true — No constraints added by this property rule.
DVDD-supply — required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
GPIO specification for the active low RESET input.
ai31xx-micbias-vg — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 1
Allowed values (enum): 1, 2, 3
MicBias Voltage setting
1 or MICBIAS_2_0V - MICBIAS output is powered to 2.0V
2 or MICBIAS_2_5V - MICBIAS output is powered to 2.5V
3 or MICBIAS_AVDD - MICBIAS output is connected to AVDD
ai31xx-ocmv — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
output common-mode voltage setting
0 - 1.35V,
1 - 1.5V,
2 - 1.65V,
3 - 1.8V
gpio-reset — not listed as required here #
gpio pin number used for codec reset
Deprecated (deprecated): true
Required in this object (required): "compatible", "reg", "HPVDD-supply", "SPRVDD-supply", "SPLVDD-supply", "AVDD-supply", "IOVDD-supply", "DVDD-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dai-common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/sound/tlv320aic31xx.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
sound@18 {
compatible = "ti,tlv320aic311x";
reg = <0x18>;
ai31xx-micbias-vg = <MICBIAS_2_0V>;
reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
HPVDD-supply = <®ulator>;
SPRVDD-supply = <®ulator>;
SPLVDD-supply = <®ulator>;
AVDD-supply = <®ulator>;
IOVDD-supply = <®ulator>;
DVDD-supply = <®ulator>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 33: - Generic TLV320AIC31xx with mono speaker amp
Line 34: - Generic TLV320AIC31xx with stereo speaker amp
Line 35: - TLV320AIC3100 (mono speaker amp, no MiniDSP)
Line 36: - TLV320AIC3110 (stereo speaker amp, no MiniDSP)
Line 37: - TLV320AIC3120 (mono speaker amp, MiniDSP)
Line 38: - TLV320AIC3111 (stereo speaker amp, MiniDSP)
Line 39: - TLV320DAC3100 (no ADC, mono speaker amp, no MiniDSP)
Line 40: - TLV320DAC3101 (no ADC, stereo speaker amp, no MiniDSP)