Texas Instruments TLV320ADC3001/TLV320ADC3101 Stereo ADC

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,tlv320adc3xxx.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Ricard Wanderlof <ricardw@axis.com>"

Texas Instruments TLV320ADC3001 and TLV320ADC3101 Stereo ADC https://www.ti.com/product/TLV320ADC3001 https://www.ti.com/product/TLV320ADC3101

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,tlv320adc3001", "ti,tlv320adc3101"

reg — required here #

Maximum number of items (maxItems): 1

I2C address

#sound-dai-cells — not listed as required here #

Exact value (const): 0

#gpio-cells — not listed as required here #

Exact value (const): 2

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO pin used for codec reset (RESET pin)

clocks — required here #

Maximum number of items (maxItems): 1

Master clock (MCLK)

ti,dmdin-gpio1 — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7

Default value (default): 0

Configuration for DMDIN/GPIO1 pin.

When ADC3XXX_GPIO_GPO is selected, the pin may be controlled via the GPIO framework, as pin number 0 on the device.

ti,dmclk-gpio2 — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7

Default value (default): 0

Configuration for DMCLK/GPIO2 pin.

When ADC3XXX_GPIO_GPO is selected, the pin may be controlled via the GPIO framework, as pin number 1 on the device.

Note that there is currently no support for reading the GPIO pins as inputs.

ti,micbias1-gpo — not listed as required here #

Value type (type): "boolean"

When set, the MICBIAS1 pin may be controlled via the GPIO framework, as pin number 3 on the device.

In this mode, when the pin is activated, it will be set to the voltage specified by the ti,micbias1-vg property. When deactivated, the pin will float.

ti,micbias2-gpo — not listed as required here #

Value type (type): "boolean"

When set, the MICBIAS2 pin may be controlled via the GPIO framework, as pin number 4 on the device.

In this mode, when the pin is activated, it will be set to the voltage specified by the ti,micbias2-vg property. When deactivated, the pin will float.

ti,micbias1-vg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3

Default value (default): 0

Mic bias voltage output on MICBIAS1 pin

ti,micbias2-vg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3

Default value (default): 0

Mic bias voltage output on MICBIAS2 pin

Property dependencies (dependencies) #

ti,micbias1-gpo — applies when this property is present #

Also requires: "ti,micbias1-vg"

ti,micbias2-gpo — applies when this property is present #

Also requires: "ti,micbias2-vg"

Required in this object (required): "compatible", "reg", "clocks"

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/tlv320adc3xxx.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    tlv320adc3101: audio-codec@18 {
        compatible = "ti,tlv320adc3101";
        reg = <0x18>;
        reset-gpios = <&gpio_pc 3 GPIO_ACTIVE_LOW>;
        clocks = <&audio_mclk>;
        gpio-controller;
        #gpio-cells = <2>;
        ti,dmdin-gpio1 = <ADC3XXX_GPIO_GPO>;
        ti,micbias1-vg = <ADC3XXX_MICBIAS_AVDD>;
    };
};

audio_mclk: clock {
    compatible = "fixed-clock";
    #clock-cells = <0>;
    clock-frequency = <24576000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 49: ADC3XXX_GPIO_DISABLED - I/O buffers powered down and not used

Line 50: ADC3XXX_GPIO_INPUT - Various non-GPIO input functions

Line 51: ADC3XXX_GPIO_GPI - General purpose input

Line 52: ADC3XXX_GPIO_GPO - General purpose output

Line 53: ADC3XXX_GPIO_CLKOUT - Clock source set in CLKOUT_MUX reg

Line 54: ADC3XXX_GPIO_INT1 - INT1 output

Line 55: ADC3XXX_GPIO_SECONDARY_BCLK - Codec interface secondary BCLK

Line 56: ADC3XXX_GPIO_SECONDARY_WCLK - Codec interface secondary WCLK

Line 67: ADC3XXX_GPIO_DISABLED - I/O buffers powered down and not used

Line 68: ADC3XXX_GPIO_INPUT - Various non-GPIO input functions

Line 69: ADC3XXX_GPIO_GPI - General purpose input

Line 70: ADC3XXX_GPIO_GPO - General purpose output

Line 71: ADC3XXX_GPIO_CLKOUT - Clock source set in CLKOUT_MUX reg

Line 72: ADC3XXX_GPIO_INT1 - INT1 output

Line 73: ADC3XXX_GPIO_SECONDARY_BCLK - Codec interface secondary BCLK

Line 74: ADC3XXX_GPIO_SECONDARY_WCLK - Codec interface secondary WCLK

Line 108: ADC3XXX_MICBIAS_OFF - Mic bias is powered down

Line 109: ADC3XXX_MICBIAS_2_0V - Mic bias is set to 2.0V

Line 110: ADC3XXX_MICBIAS_2_5V - Mic bias is set to 2.5V

Line 111: ADC3XXX_MICBIAS_AVDD - Mic bias is same as AVDD supply

Line 119: ADC3XXX_MICBIAS_OFF - Mic bias is powered down

Line 120: ADC3XXX_MICBIAS_2_0V - Mic bias is set to 2.0V

Line 121: ADC3XXX_MICBIAS_2_5V - Mic bias is set to 2.5V

Line 122: ADC3XXX_MICBIAS_AVDD - Mic bias is same as AVDD supply

Edit this page