Texas Instruments TAS2552 Codec

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

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

Maintainers (maintainers): "Shenghao Ding <shenghao-ding@ti.com>", "Kevin Lu <kevin-lu@ti.com>", "Baojun Xu <baojun.xu@ti.com>"

The TAS2552 can receive its reference clock via MCLK, BCLK, IVCLKIN pin or use the internal 1.8MHz. This CLKIN is used by the PLL. In addition to PLL, the PDM reference clock is also selectable: PLL, IVCLKIN, BCLK or MCLK. For system integration the dt-bindings/sound/tas2552.h header file provides defined values to select and configure the PLL and PDM reference clocks.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,tas2552"

reg — required here #

Maximum number of items (maxItems): 1

vbat-supply — required here #

true — No constraints added by this property rule.

iovdd-supply — required here #

true — No constraints added by this property rule.

avdd-supply — required here #

true — No constraints added by this property rule.

enable-gpio — not listed as required here #

Maximum number of items (maxItems): 1

gpio pin to enable/disable the device

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

Exact value (const): 0

Required in this object (required): "compatible", "reg", "vbat-supply", "iovdd-supply", "avdd-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>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    audio-codec@41 {
        compatible = "ti,tas2552";
        reg = <0x41>;
        #sound-dai-cells = <0>;
        vbat-supply = <&reg_vbat>;
        iovdd-supply = <&reg_iovdd>;
        avdd-supply = <&reg_avdd>;
        enable-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page