Texas Instruments TLV320AIC32x4 Stereo Audio codec
Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,tlv320aic32x4.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexander Stein <alexander.stein@ew.tq-group.com>"
The TLV320AIC32x4 audio codec can be accessed using I2C or SPI
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,tas2505", "ti,tlv320aic32x4", "ti,tlv320aic32x6"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
Master clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"mclk"
av-supply — not listed as required here #
Analog core power supply
dv-supply — not listed as required here #
Digital core power supply
iov-supply — required here #
Digital IO power supply
ldoin-supply — not listed as required here #
LDO power supply
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
#sound-dai-cells — not listed as required here #
Exact value (const): 0
aic32x4-gpio-func — not listed as required here #
GPIO function configuration for pins MFP1-MFP5. Types are defined in include/sound/tlv320aic32x4.h
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 5
Maximum number of items (maxItems): 5
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "iov-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dai-common.yaml#
Rule 2 #
Condition (
if) #This rule must not match (
not)When the condition matches (
then) #Required in this object (
required):"av-supply","dv-supply"
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>;
audio-codec@18 {
compatible = "ti,tlv320aic32x4";
reg = <0x18>;
iov-supply = <®_3v3>;
ldoin-supply = <®_3v3>;
clocks = <&clks 201>;
clock-names = "mclk";
aic32x4-gpio-func = <
0xff /* AIC32X4_MFPX_DEFAULT_VALUE */
0xff /* AIC32X4_MFPX_DEFAULT_VALUE */
0x04 /* MFP3 AIC32X4_MFP3_GPIO_ENABLED */
0xff /* AIC32X4_MFPX_DEFAULT_VALUE */
0x08 /* MFP5 AIC32X4_MFP5_GPIO_INPUT */
>;
};
};
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) 2019 Texas Instruments Incorporated