Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Audio bindings

Single-page view · as markdown

Analog Devices ADAU1372 CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Alexandre Belloni <alexandre.belloni@bootlin.com>"

Analog Devices ADAU1372 four inputs and two outputs codec. https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1372.pdf

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): "adi,adau1372"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "mclk"

powerdown-gpios — not listed as required here #

GPIO used for hardware power-down.

Maximum number of items (maxItems): 1

Required in this object (required): "#sound-dai-cells", "compatible", "reg", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    audio-codec@3c {
            compatible = "adi,adau1372";
            reg = <0x3c>;
            #sound-dai-cells = <0>;
            clock-names = "mclk";
            clocks = <&adau1372z_xtal>;
    };
};

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

Source notes #

Annotations retained from the schema source

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

Analog Devices ADAU1373 CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Nuno Sá <nuno.sa@analog.com>"

Analog Devices ADAU1373 Low power codec with speaker and headphone amplifiers. https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1373.pdf

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): "adi,adau1373"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

powerdown-gpios — not listed as required here #

GPIO used for hardware power-down.

Maximum number of items (maxItems): 1

adi,micbias1-microvolt — not listed as required here #

This property sets the microphone bias voltage for the first microphone.

Allowed values (enum): 1800000, 2200000, 2600000, 2900000

Default value (default): 2900000

adi,micbias2-microvolt — not listed as required here #

This property sets the microphone bias voltage for the second microphone.

Allowed values (enum): 1800000, 2200000, 2600000, 2900000

Default value (default): 2900000

adi,input1-differential — not listed as required here #

This property sets the first analog input as differential.

Value type (type): "boolean"

adi,input2-differential — not listed as required here #

This property sets the second analog input as differential.

Value type (type): "boolean"

adi,input3-differential — not listed as required here #

This property sets the third analog input as differential.

Value type (type): "boolean"

adi,input4-differential — not listed as required here #

This property sets the fourth analog input as differential.

Value type (type): "boolean"

adi,lineout-differential — not listed as required here #

This property sets the line output as differential.

Value type (type): "boolean"

adi,lineout-gnd-sense — not listed as required here #

This property enables the line output ground sense control.

Value type (type): "boolean"

adi,drc-settings — not listed as required here #

This setting is used to control the dynamic range of the signal. The device provides a maximum of three full band DRCs with 13 entries each.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array

Exactly one of these rules must match (oneOf) #

Rule 1

Minimum number of items (minItems): 13

Maximum number of items (maxItems): 13

Rule 2

Minimum number of items (minItems): 26

Maximum number of items (maxItems): 26

Rule 3

Minimum number of items (minItems): 39

Maximum number of items (maxItems): 39

Required in this object (required): "#sound-dai-cells", "compatible", "reg"

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@1a {
        compatible = "adi,adau1373";
        reg = <0x1a>;
        #sound-dai-cells = <0>;
        powerdown-gpios = <&gpio 100 GPIO_ACTIVE_LOW>;
        adi,input2-differential;
        adi,input1-differential;
        adi,lineout-differential;
        adi,micbias2-microvolt = <1800000>;
        adi,drc-settings = /bits/ 8 <
            0xff 0xff 0x1 0x2 0xa 0xa 0xd 0x1 0xff 0xff 0x5 0xd 0xff
        >;
    };
};

Source notes #

Annotations retained from the schema source

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

Analog Devices ADAU1361/ADAU1461/ADAU1761/ADAU1961/ADAU1381/ADAU1781 Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Lars-Peter Clausen <lars@metafoo.de>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,adau1361", "adi,adau1381", "adi,adau1461", "adi,adau1761", "adi,adau1781", "adi,adau1961"

reg — required here #

Maximum number of items (maxItems): 1

The i2c address. Value depends on the state of ADDR0 and ADDR1, as wired in hardware.

clock-names — not listed as required here #

Exact value (const): "mclk"

clocks — not listed as required here #

Array item rules (items) #

Item 1

provides the audio master clock for the device.

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) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;
  audio-codec@38 {
    compatible = "adi,adau1761";
    reg = <0x38>;
    clock-names = "mclk";
    clocks = <&audio_clock>;
  };
};

Source notes #

Annotations retained from the schema source

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

Analog Devices ADAU1977/ADAU1978/ADAU1979 Quad ADC with Diagnostics

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Lars-Peter Clausen <lars@metafoo.de>", "Bogdan Togorean <bogdan.togorean@analog.com>"

Analog Devices ADAU1977 and similar quad ADC with Diagnostics https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1977.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1978.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1979.pdf

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,adau1977", "adi,adau1978", "adi,adau1979"

reg — required here #

Maximum number of items (maxItems): 1

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

Exact value (const): 0

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

AVDD-supply — required here #

Analog power support for the device.

DVDD-supply — not listed as required here #

Supply voltage for digital core.

adi,micbias — not listed as required here #

Configures the voltage setting for the MICBIAS pin.

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

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

Default value (default): 7

Required in this object (required): "reg", "compatible", "AVDD-supply"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

spi {
    #address-cells = <1>;
    #size-cells = <0>;
    adau1977_spi: adau1977@0 {
        compatible = "adi,adau1977";
        reg = <0>;
        spi-max-frequency = <600000>;

        AVDD-supply = <&regulator>;
        DVDD-supply = <&regulator_digital>;

        reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;

        adi,micbias = <3>;
    };
};
#include <dt-bindings/gpio/gpio.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    adau1977_i2c: adau1977@11 {
        compatible = "adi,adau1977";
        reg = <0x11>;

        AVDD-supply = <&regulator>;
        DVDD-supply = <&regulator_digital>;

        reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
    };
};

Source notes #

Annotations retained from the schema source

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

Analog Devices ADAU7002 Stereo PDM-to-I2S/TDM Converter

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "adi,adau7002"

IOVDD-supply — not listed as required here #

IOVDD power supply, if skipped then it is assumed that the supply pin is hardwired to always on.

wakeup-delay-ms — not listed as required here #

Delay after power up needed for device to settle.

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

audio-codec {
    compatible = "adi,adau7002";
    IOVDD-supply = <&pp1800_l15a>;
    #sound-dai-cells = <0>;
    wakeup-delay-ms = <80>;
};

Source notes #

Annotations retained from the schema source

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

Analog Devices ADAU7118 8 Channel PDM to I2S/TDM Converter

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Nuno Sá <nuno.sa@analog.com>"

Analog Devices ADAU7118 8 Channel PDM to I2S/TDM Converter over I2C or HW standalone mode. https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU7118.pdf

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): "adi,adau7118"

reg — not listed as required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

iovdd-supply — required here #

Digital Input/Output Power Supply.

dvdd-supply — required here #

Internal Core Digital Power Supply.

adi,decimation-ratio — not listed as required here #

This property set's the decimation ratio of PDM to PCM audio data.

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

Allowed values (enum): 64, 32, 16

Default value (default): 64

adi,pdm-clk-map — not listed as required here #

The ADAU7118 has two PDM clocks for the four Inputs. Each input must be assigned to one of these two clocks. This property set's the mapping between the clocks and the inputs.

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

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

Array item rules (items) #

Maximum value (maximum): 1

Default value (default): 0, 0, 1, 1

Required in this object (required): "#sound-dai-cells", "compatible", "iovdd-supply", "dvdd-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    /* example with i2c support */
    #address-cells = <1>;
    #size-cells = <0>;
    adau7118_codec: audio-codec@14 {
            compatible = "adi,adau7118";
            reg = <0x14>;
            #sound-dai-cells = <0>;
            iovdd-supply = <&supply>;
            dvdd-supply = <&supply>;
            adi,pdm-clk-map = <1 1 0 0>;
            adi,decimation-ratio = <16>;
    };
};

/* example with hw standalone mode */
adau7118_codec_hw: adau7118-codec-hw {
        compatible = "adi,adau7118";
        #sound-dai-cells = <0>;
        iovdd-supply = <&supply>;
        dvdd-supply = <&supply>;
};

Source notes #

Annotations retained from the schema source

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

Analog Devices MAX98388 Speaker Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Ryan Lee <ryans.lee@analog.com>"

The MAX98388 is a mono Class-D speaker amplifier with I/V feedback. The device provides a PCM interface for audio data and a standard I2C interface for control data communication.

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): "adi,max98388"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

adi,vmon-slot-no — not listed as required here #

slot number of the voltage feedback monitor

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Default value (default): 0

adi,imon-slot-no — not listed as required here #

slot number of the current feedback monitor

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Default value (default): 1

adi,interleave-mode — not listed as required here #

For cases where a single combined channel for the I/V feedback data is not sufficient, the device can also be configured to share a single data output channel on alternating frames. In this configuration, the current and voltage data will be frame interleaved on a single output channel.

Value type (type): "boolean"

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

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>;
    max98388: amplifier@39 {
        compatible = "adi,max98388";
        reg = <0x39>;
        #sound-dai-cells = <0>;
        adi,vmon-slot-no = <0>;
        adi,imon-slot-no = <1>;
        adi,interleave-mode;
        reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
    };
};

Source notes #

Annotations retained from the schema source

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

Analog Devices MAX98396 Speaker Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Ryan Lee <ryans.lee@analog.com>"

The MAX98396 is a mono Class-DG speaker amplifier with I/V sense. The device provides a PCM interface for audio data and a standard I2C interface for control data communication. The MAX98397 is a variant of MAX98396 with wide input supply range.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,max98396", "adi,max98397"

reg — required here #

Maximum number of items (maxItems): 1

I2C address of the device.

avdd-supply — not listed as required here #

A 1.8V supply that powers up the AVDD pin.

dvdd-supply — not listed as required here #

A 1.2V supply that powers up the DVDD pin.

dvddio-supply — not listed as required here #

A 1.2V or 1.8V supply that powers up the VDDIO pin.

pvdd-supply — not listed as required here #

A 3.0V to 20V supply that powers up the PVDD pin.

vbat-supply — not listed as required here #

A 3.3V to 5.5V supply that powers up the VBAT pin.

adi,vmon-slot-no — not listed as required here #

slot number of the voltage sense monitor

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Default value (default): 0

adi,imon-slot-no — not listed as required here #

slot number of the current sense monitor

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Default value (default): 1

adi,spkfb-slot-no — not listed as required here #

slot number of speaker DSP monitor

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Default value (default): 2

adi,bypass-slot-no — not listed as required here #

Selects the PCM data input channel that is routed to the speaker audio processing bypass path.

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Default value (default): 0

adi,interleave-mode — not listed as required here #

For cases where a single combined channel for the I/V sense data is not sufficient, the device can also be configured to share a single data output channel on alternating frames. In this configuration, the current and voltage data will be frame interleaved on a single output channel.

Value type (type): "boolean"

adi,dmon-stuck-enable — not listed as required here #

Enables the "data monitor stuck" feature. Once the data monitor is enabled, it actively monitors the selected input data (from DIN) to the speaker amplifier. Once a data error is detected, the data monitor automatically places the device into software shutdown.

Value type (type): "boolean"

adi,dmon-stuck-threshold-bits — not listed as required here #

Sets the threshold for the "data monitor stuck" feature, in bits.

Allowed values (enum): 9, 11, 13, 15

Default value (default): 15

adi,dmon-magnitude-enable — not listed as required here #

Enables the "data monitor magnitude" feature. Once the data monitor is enabled, it actively monitors the selected input data (from DIN) to the speaker amplifier. Once a data error is detected, the data monitor automatically places the device into software shutdown.

Value type (type): "boolean"

adi,dmon-magnitude-threshold-bits — not listed as required here #

Sets the threshold for the "data monitor magnitude" feature, in bits.

Allowed values (enum): 2, 3, 4, 5

Default value (default): 5

adi,dmon-duration-ms — not listed as required here #

Sets the duration for the "data monitor" feature, in milliseconds.

Allowed values (enum): 64, 256, 1024, 4096

Default value (default): 64

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

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>;
    max98396: amplifier@39 {
        compatible = "adi,max98396";
        reg = <0x39>;
        dvdd-supply = <&regulator_1v2>;
        dvddio-supply = <&regulator_1v8>;
        avdd-supply = <&regulator_1v8>;
        pvdd-supply = <&regulator_pvdd>;
        adi,vmon-slot-no = <0>;
        adi,imon-slot-no = <1>;
        reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
    };
};

Source notes #

Annotations retained from the schema source

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

Analog Devices SSM2518 audio amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Lars-Peter Clausen <lars@metafoo.de>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "adi,ssm2518"

reg — required here #

Maximum number of items (maxItems): 1

I2C address of the device. This will either be 0x34 (ADDR pin low) or 0x35 (ADDR pin high)

gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO connected to the nSD pin. If the property is not present it is assumed that the nSD pin is hardwired to always on.

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

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>;
    codec@34 {
        compatible = "adi,ssm2518";
        reg = <0x34>;
        gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
    };
};

Source notes #

Annotations retained from the schema source

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

Allwinner A10 Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/allwinner,sun4i-a10-codec.yaml#"

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

Properties and child nodes (properties) #

#sound-dai-cells — required here #

Exact value (const): 0

compatible — required here #

Allowed values (enum): "allwinner,sun4i-a10-codec", "allwinner,sun6i-a31-codec", "allwinner,sun7i-a20-codec", "allwinner,sun8i-a23-codec", "allwinner,sun8i-h3-codec", "allwinner,sun8i-v3s-codec", "allwinner,sun50i-h616-codec", "allwinner,suniv-f1c100s-codec"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Bus Clock

Item 2

Module Clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "codec"

dmas — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

RX DMA Channel

Item 2

TX DMA Channel

Rule 2

Array item rules (items)

Item 1

TX DMA Channel

dma-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "tx"

resets — not listed as required here #

Maximum number of items (maxItems): 1

allwinner,audio-routing — not listed as required here #

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 18

Array item rules (items) #

Allowed values (enum): "HP", "HPCOM", "LINEIN", "LINEOUT", "MIC1", "MIC2", "MIC3", "MIC", "HBIAS", "MBIAS", "Headphone", "Headset Mic", "Line In", "Line Out", "Right FM In", "Left FM In", "Mic", "Speaker"

allwinner,codec-analog-controls — not listed as required here #

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

Phandle to the codec analog controls in the PRCM

allwinner,pa-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO to enable the external amplifier

hp-det-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO for headphone/line-out detection

Required in this object (required): "#sound-dai-cells", "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "allwinner,sun6i-a31-codec", "allwinner,sun8i-a23-codec", "allwinner,sun8i-h3-codec", "allwinner,sun8i-v3s-codec"

When the condition matches (then) #

Condition (if)

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "allwinner,sun6i-a31-codec"

When the condition matches (then)

Required in this object (required): "resets", "allwinner,audio-routing"

When the condition does not match (else)

Required in this object (required): "resets", "allwinner,audio-routing", "allwinner,codec-analog-controls"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "allwinner,sun6i-a31-codec"

When the condition matches (then) #

Properties and child nodes (properties)

allwinner,audio-routing — not listed as required here

Array item rules (items)

Allowed values (enum): "HP", "HPCOM", "LINEIN", "LINEOUT", "MIC1", "MIC2", "MIC3", "HBIAS", "MBIAS", "Headphone", "Headset Mic", "Line In", "Line Out", "Mic", "Speaker"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "allwinner,sun8i-a23-codec"

When the condition matches (then) #

Properties and child nodes (properties)

allwinner,audio-routing — not listed as required here

Array item rules (items)

Allowed values (enum): "HP", "HPCOM", "LINEIN", "MIC1", "MIC2", "HBIAS", "MBIAS", "Headphone", "Headset Mic", "Line In", "Line Out", "Mic", "Speaker"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "allwinner,sun8i-h3-codec"

When the condition matches (then) #

Properties and child nodes (properties)

allwinner,audio-routing — not listed as required here

Array item rules (items)

Allowed values (enum): "HP", "HPCOM", "LINEIN", "LINEOUT", "MIC1", "MIC2", "HBIAS", "MBIAS", "Headphone", "Headset Mic", "Line In", "Line Out", "Mic", "Speaker"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "allwinner,sun8i-v3s-codec"

When the condition matches (then) #

Properties and child nodes (properties)

allwinner,audio-routing — not listed as required here

Array item rules (items)

Allowed values (enum): "HP", "HPCOM", "MIC1", "HBIAS", "Headphone", "Headset Mic", "Line In", "Line Out", "Mic", "Speaker"

Rule 7 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "allwinner,sun50i-h616-codec"

When the condition matches (then) #

Properties and child nodes (properties)

allwinner,audio-routing — not listed as required here

Array item rules (items)

Allowed values (enum): "Headphone", "LINEOUT", "Line Out", "Speaker"

dmas — not listed as required here

Array item rules (items)

Item 1

TX DMA Channel

dma-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "tx"

When the condition does not match (else) #

Properties and child nodes (properties)

dmas — not listed as required here

Array item rules (items)

Item 1

RX DMA Channel

Item 2

TX DMA Channel

dma-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

Rule 8 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "allwinner,suniv-f1c100s-codec"

When the condition matches (then) #

Properties and child nodes (properties)

allwinner,audio-routing — not listed as required here

Array item rules (items)

Allowed values (enum): "HP", "HPCOM", "LINEIN", "LINEOUT", "MIC", "HBIAS", "MBIAS", "Headphone", "Headset Mic", "Line In", "Line Out", "Right FM In", "Left FM In", "Mic", "Speaker"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

codec@1c22c00 {
    #sound-dai-cells = <0>;
    compatible = "allwinner,sun7i-a20-codec";
    reg = <0x01c22c00 0x40>;
    interrupts = <0 30 4>;
    clocks = <&apb0_gates 0>, <&codec_clk>;
    clock-names = "apb", "codec";
    dmas = <&dma 0 19>, <&dma 0 19>;
    dma-names = "rx", "tx";
};
codec@1c22c00 {
    #sound-dai-cells = <0>;
    compatible = "allwinner,sun6i-a31-codec";
    reg = <0x01c22c00 0x98>;
    interrupts = <0 29 4>;
    clocks = <&ccu 61>, <&ccu 135>;
    clock-names = "apb", "codec";
    resets = <&ccu 42>;
    dmas = <&dma 15>, <&dma 15>;
    dma-names = "rx", "tx";
    allwinner,audio-routing =
        "Headphone", "HP",
        "Speaker", "LINEOUT",
        "LINEIN", "Line In",
        "MIC1", "MBIAS",
        "MIC1", "Mic",
        "MIC2", "HBIAS",
        "MIC2", "Headset Mic";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 73: Audio Pins on the SoC

Line 83: Microphone Biases from the SoC

Line 87: Board Connectors

Allwinner A10 I2S Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/allwinner,sun4i-a10-i2s.yaml#"

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

Properties and child nodes (properties) #

#sound-dai-cells — required here #

Exact value (const): 0

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "allwinner,sun4i-a10-i2s"

Rule 2

Exact value (const): "allwinner,sun6i-a31-i2s"

Rule 3

Exact value (const): "allwinner,sun8i-a83t-i2s"

Rule 4

Exact value (const): "allwinner,sun8i-h3-i2s"

Rule 5

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun8i-r40-i2s"

Item 2

Exact value (const): "allwinner,sun8i-h3-i2s"

Rule 6

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun8i-v3-i2s"

Item 2

Exact value (const): "allwinner,sun8i-h3-i2s"

Rule 7

Exact value (const): "allwinner,sun50i-a64-codec-i2s"

Rule 8

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun50i-a64-i2s"

Item 2

Exact value (const): "allwinner,sun8i-h3-i2s"

Rule 9

Exact value (const): "allwinner,sun50i-h6-i2s"

Rule 10

Exact value (const): "allwinner,sun50i-r329-i2s"

Rule 11

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun20i-d1-i2s", "allwinner,sun55i-a523-i2s"

Item 2

Exact value (const): "allwinner,sun50i-r329-i2s"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Bus Clock

Item 2

Module Clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "mod"

dmas — required here #

true — No constraints added by this property rule.

dma-names — required here #

true — No constraints added by this property rule.

resets — not listed as required here #

Maximum number of items (maxItems): 1

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "allwinner,sun6i-a31-i2s", "allwinner,sun8i-a83t-i2s", "allwinner,sun8i-h3-i2s", "allwinner,sun50i-a64-codec-i2s", "allwinner,sun50i-h6-i2s", "allwinner,sun50i-r329-i2s"

When the condition matches (then) #

Required in this object (required): "resets"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "allwinner,sun8i-a83t-i2s", "allwinner,sun8i-h3-i2s"

When the condition matches (then) #

Properties and child nodes (properties)

dmas — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

RX DMA Channel

Item 2

TX DMA Channel

Some controllers cannot receive but can only transmit data. In such a case, the RX DMA channel is to be omitted.

dma-names — not listed as required here

Exactly one of these rules must match (oneOf)

Rule 1

Array item rules (items)

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

Rule 2

Exact value (const): "tx"

Some controllers cannot receive but can only transmit data. In such a case, the RX name is to be omitted.

When the condition does not match (else) #

Properties and child nodes (properties)

dmas — not listed as required here

Array item rules (items)

Item 1

RX DMA Channel

Item 2

TX DMA Channel

dma-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

Required in this object (required): "#sound-dai-cells", "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2s0: i2s@1c22400 {
    #sound-dai-cells = <0>;
    compatible = "allwinner,sun4i-a10-i2s";
    reg = <0x01c22400 0x400>;
    interrupts = <0 16 4>;
    clocks = <&apb0_gates 3>, <&i2s0_clk>;
    clock-names = "apb", "mod";
    dmas = <&dma 0 3>, <&dma 0 3>;
    dma-names = "rx", "tx";
};

Source notes #

Annotations retained from the schema source

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

Line 57: Even though it only applies to subschemas under the conditionals,

Line 58: not listing them here will trigger a warning because of the

Line 59: additionalsProperties set to false.

Allwinner A10 S/PDIF Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/allwinner,sun4i-a10-spdif.yaml#"

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Liam Girdwood <lgirdwood@gmail.com>", "Mark Brown <broonie@kernel.org>", "Maxime Ripard <mripard@kernel.org>"

Properties and child nodes (properties) #

#sound-dai-cells — required here #

Exact value (const): 0

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "allwinner,sun4i-a10-spdif"

Rule 2

Exact value (const): "allwinner,sun6i-a31-spdif"

Rule 3

Exact value (const): "allwinner,sun8i-h3-spdif"

Rule 4

Exact value (const): "allwinner,sun50i-h6-spdif"

Rule 5

Exact value (const): "allwinner,sun50i-h616-spdif"

Rule 6

Exact value (const): "allwinner,sun55i-a523-spdif"

Rule 7

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun8i-a83t-spdif"

Item 2

Exact value (const): "allwinner,sun8i-h3-spdif"

Rule 8

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun50i-a64-spdif"

Item 2

Exact value (const): "allwinner,sun8i-h3-spdif"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

clock-names — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

dmas — required here #

true — No constraints added by this property rule.

dma-names — required here #

true — No constraints added by this property rule.

resets — not listed as required here #

Maximum number of items (maxItems): 1

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "allwinner,sun6i-a31-spdif", "allwinner,sun8i-h3-spdif", "allwinner,sun50i-h6-spdif", "allwinner,sun50i-h616-spdif", "allwinner,sun55i-a523-spdif"

When the condition matches (then) #

Required in this object (required): "resets"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "allwinner,sun8i-h3-spdif", "allwinner,sun50i-h616-spdif"

When the condition matches (then) #

Properties and child nodes (properties)

dmas — not listed as required here

TX DMA Channel

dma-names — not listed as required here

Exact value (const): "tx"

When the condition does not match (else) #

Properties and child nodes (properties)

dmas — not listed as required here

Array item rules (items)

Item 1

RX DMA Channel

Item 2

TX DMA Channel

dma-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "allwinner,sun55i-a523-spdif"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

Bus Clock

Item 2

TX Clock

Item 3

RX Clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "tx"

Item 3

Exact value (const): "rx"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

Bus Clock

Item 2

Module Clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "spdif"

Required in this object (required): "#sound-dai-cells", "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spdif: spdif@1c21000 {
    #sound-dai-cells = <0>;
    compatible = "allwinner,sun4i-a10-spdif";
    reg = <0x01c21000 0x40>;
    interrupts = <13>;
    clocks = <&apb0_gates 1>, <&spdif_clk>;
    clock-names = "apb", "spdif";
    dmas = <&dma 0 2>, <&dma 0 2>;
    dma-names = "rx", "tx";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 48: Even though it only applies to subschemas under the conditionals,

Line 49: not listing them here will trigger a warning because of the

Line 50: additionalsProperties set to false.

Allwinner A64 Analog Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/allwinner,sun50i-a64-codec-analog.yaml#"

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "allwinner,sun50i-a64-codec-analog"

reg — required here #

Maximum number of items (maxItems): 1

cpvdd-supply — required here #

Regulator for the headphone amplifier

allwinner,internal-bias-resistor — not listed as required here #

Enable the internal 2.2K bias resistor between HBIAS and MICDET pins

Value type (type): "boolean"

Required in this object (required): "compatible", "reg", "cpvdd-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

codec_analog: codec-analog@1f015c0 {
  compatible = "allwinner,sun50i-a64-codec-analog";
  reg = <0x01f015c0 0x4>;
  cpvdd-supply = <&reg_eldo1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Allwinner H6 DMIC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/allwinner,sun50i-h6-dmic.yaml#"

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

Maintainers (maintainers): "Ban Tao <fengzheng923@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun20i-d1-dmic"

Item 2

Exact value (const): "allwinner,sun50i-h6-dmic"

Rule 2

Exact value (const): "allwinner,sun50i-h6-dmic"

#sound-dai-cells — required here #

Exact value (const): 0

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Bus Clock

Item 2

Module Clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "bus"

Item 2

Exact value (const): "mod"

dmas — required here #

Array item rules (items) #

Item 1

RX DMA Channel

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

resets — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "#sound-dai-cells", "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names", "resets"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

#include <dt-bindings/clock/sun50i-h6-ccu.h>
#include <dt-bindings/reset/sun50i-h6-ccu.h>

dmic: dmic@5095000 {
  #sound-dai-cells = <0>;
  compatible = "allwinner,sun50i-h6-dmic";
  reg = <0x05095000 0x400>;
  interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&ccu CLK_BUS_DMIC>, <&ccu CLK_DMIC>;
  clock-names = "bus", "mod";
  dmas = <&dma 7>;
  dma-names = "rx";
  resets = <&ccu RST_BUS_DMIC>;
};

Source notes #

Annotations retained from the schema source

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

Allwinner A23 Analog Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/allwinner,sun8i-a23-codec-analog.yaml#"

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "allwinner,sun8i-h3-codec-analog"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun8i-v3-codec-analog"

Item 2

Exact value (const): "allwinner,sun8i-h3-codec-analog"

Rule 3

Exact value (const): "allwinner,sun8i-v3s-codec-analog"

reg — required here #

Maximum number of items (maxItems): 1

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) #

codec_analog: codec-analog@1f015c0 {
  compatible = "allwinner,sun8i-h3-codec-analog";
  reg = <0x01f015c0 0x4>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 16: FIXME: This is documented in the PRCM binding, but needs to be

Line 17: migrated here at some point

Line 18: - allwinner,sun8i-a23-codec-analog

Allwinner A33 Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/allwinner,sun8i-a33-codec.yaml#"

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

#sound-dai-cells — required here #

Minimum value (minimum): 0

Maximum value (maximum): 1

A value of 0 is deprecated. When used, it only allows access to the ADC/DAC and AIF1 (the CPU DAI), not the other two AIFs/DAIs.

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun50i-a64-codec"

Item 2

Exact value (const): "allwinner,sun8i-a33-codec"

Rule 2

Exact value (const): "allwinner,sun8i-a33-codec"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Bus Clock

Item 2

Module Clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "bus"

Item 2

Exact value (const): "mod"

Required in this object (required): "#sound-dai-cells", "compatible", "reg", "interrupts", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

audio-codec@1c22e00 {
  #sound-dai-cells = <1>;
  compatible = "allwinner,sun8i-a33-codec";
  reg = <0x01c22e00 0x400>;
  interrupts = <0 29 4>;
  clocks = <&ccu 47>, <&ccu 92>;
  clock-names = "bus", "mod";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Amlogic AIU audio output controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^audio-controller@.*"

#sound-dai-cells — required here #

Exact value (const): 2

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "amlogic,aiu-gxbb", "amlogic,aiu-gxl", "amlogic,aiu-meson8", "amlogic,aiu-meson8b"

Item 2

Exact value (const): "amlogic,aiu"

clocks — required here #

Array item rules (items) #

Item 1

AIU peripheral clock

Item 2

I2S peripheral clock

Item 3

I2S output clock

Item 4

I2S master clock

Item 5

I2S mixer clock

Item 6

SPDIF peripheral clock

Item 7

SPDIF output clock

Item 8

SPDIF master clock

Item 9

SPDIF master clock multiplexer

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "i2s_pclk"

Item 3

Exact value (const): "i2s_aoclk"

Item 4

Exact value (const): "i2s_mclk"

Item 5

Exact value (const): "i2s_mixer"

Item 6

Exact value (const): "spdif_pclk"

Item 7

Exact value (const): "spdif_aoclk"

Item 8

Exact value (const): "spdif_mclk"

Item 9

Exact value (const): "spdif_mclk_sel"

interrupts — required here #

Array item rules (items) #

Item 1

I2S interrupt line

Item 2

SPDIF interrupt line

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "i2s"

Item 2

Exact value (const): "spdif"

reg — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

sound-name-prefix — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "#sound-dai-cells", "compatible", "clocks", "clock-names", "interrupts", "interrupt-names", "reg", "resets"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/gxbb-clkc.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/amlogic,meson-gxbb-reset.h>

aiu: audio-controller@5400 {
    compatible = "amlogic,aiu-gxl", "amlogic,aiu";
    #sound-dai-cells = <2>;
    reg = <0x5400 0x2ac>;
    interrupts = <GIC_SPI 48 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 50 IRQ_TYPE_EDGE_RISING>;
    interrupt-names = "i2s", "spdif";
    clocks = <&clkc CLKID_AIU_GLUE>,
             <&clkc CLKID_I2S_OUT>,
             <&clkc CLKID_AOCLK_GATE>,
             <&clkc CLKID_CTS_AMCLK>,
             <&clkc CLKID_MIXER_IFACE>,
             <&clkc CLKID_IEC958>,
             <&clkc CLKID_IEC958_GATE>,
             <&clkc CLKID_CTS_MCLK_I958>,
             <&clkc CLKID_CTS_I958>;
    clock-names = "pclk",
                  "i2s_pclk",
                  "i2s_aoclk",
                  "i2s_mclk",
                  "i2s_mixer",
                  "spdif_pclk",
                  "spdif_aoclk",
                  "spdif_mclk",
                  "spdif_mclk_sel";
    resets = <&reset RESET_AIU>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Amlogic AXG Audio FIFO controllers

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/amlogic,axg-fifo.yaml#"

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

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "amlogic,axg-toddr", "amlogic,axg-frddr"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,g12a-toddr", "amlogic,sm1-toddr"

Item 2

Exact value (const): "amlogic,axg-toddr"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,g12a-frddr", "amlogic,sm1-frddr"

Item 2

Exact value (const): "amlogic,axg-frddr"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

clocks — required here #

Array item rules (items) #

Item 1

Peripheral clock

interrupts — required here #

Maximum number of items (maxItems): 1

resets — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

reset-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

amlogic,fifo-depth — required here #

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

Size of the controller's fifo in bytes

Required in this object (required): "compatible", "reg", "#sound-dai-cells", "clocks", "interrupts", "resets", "amlogic,fifo-depth"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "amlogic,g12a-toddr", "amlogic,sm1-toddr", "amlogic,g12a-frddr", "amlogic,sm1-frddr"

When the condition matches (then) #

Properties and child nodes (properties)

resets — not listed as required here

Minimum number of items (minItems): 2

reset-names — required here

Array item rules (items)

Item 1

Exact value (const): "arb"

Item 2

Exact value (const): "rst"

Required in this object (required): "reset-names"

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

Maximum number of items (maxItems): 1

reset-names — not listed as required here

Exact value (const): "arb"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/axg-audio-clkc.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/amlogic,meson-axg-audio-arb.h>
#include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h>

audio-controller@1c0 {
    compatible = "amlogic,g12a-frddr", "amlogic,axg-frddr";
    reg = <0x1c0 0x1c>;
    #sound-dai-cells = <0>;
    clocks = <&clkc_audio AUD_CLKID_FRDDR_A>;
    interrupts = <GIC_SPI 88 IRQ_TYPE_EDGE_RISING>;
    resets = <&arb>, <&clkc_audio AUD_RESET_FRDDR_A>;
    reset-names = "arb", "rst";
    amlogic,fifo-depth = <512>;
};

Source notes #

Annotations retained from the schema source

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

Amlogic Audio AXG PDM input

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/amlogic,axg-pdm.yaml#"

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

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,g12a-pdm", "amlogic,sm1-pdm"

Item 2

Exact value (const): "amlogic,axg-pdm"

Rule 2

Exact value (const): "amlogic,axg-pdm"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

clocks — required here #

Array item rules (items) #

Item 1

Peripheral clock

Item 2

PDM digital clock

Item 3

DSP system clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "dclk"

Item 3

Exact value (const): "sysclk"

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "#sound-dai-cells", "clocks", "clock-names"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "amlogic,g12a-pdm", "amlogic,sm1-pdm"

When the condition matches (then) #

Required in this object (required): "resets"

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/axg-audio-clkc.h>

audio-controller@ff632000 {
    compatible = "amlogic,axg-pdm";
    reg = <0xff632000 0x34>;
    #sound-dai-cells = <0>;
    clocks = <&clkc_audio AUD_CLKID_PDM>,
             <&clkc_audio AUD_CLKID_PDM_DCLK>,
             <&clkc_audio AUD_CLKID_PDM_SYSCLK>;
    clock-names = "pclk", "dclk", "sysclk";
};

Source notes #

Annotations retained from the schema source

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

Amlogic AXG sound card

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/amlogic,axg-sound-card.yaml#"

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

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — not listed as required here #

Exact value (const): "amlogic,axg-sound-card"

audio-aux-devs — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

list of auxiliary devices

audio-widgets — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list off component DAPM widget. Each entry is a pair of strings, the first being the widget type, the second being the widget name

clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

Base PLL clocks of audio susbsytem, used to configure base clock frequencies for different audio use-cases.

Properties matching a name pattern (patternProperties) #

^dai-link-[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Container for dai-link level properties and the CODEC sub-nodes. There should be at least one (and probably more) subnode of this type

Properties and child nodes (properties) #

dai-format — not listed as required here

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

Allowed values (enum): "i2s", "left-j", "dsp_a"

dai-tdm-slot-num — not listed as required here

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

Number of slots in use. If omitted, slot number is set to accommodate the largest mask provided.

Maximum value (maximum): 32

dai-tdm-slot-width — not listed as required here

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

Width in bits for each slot

Allowed values (enum): 8, 16, 20, 24, 32

Default value (default): 32

mclk-fs — not listed as required here

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

Multiplication factor between the frame rate and master clock rate

sound-dai — required here

Maximum number of items (maxItems): 1

phandle of the CPU DAI

Properties matching a name pattern (patternProperties) #

^dai-tdm-slot-(t|r)x-mask-[0-3]$ — name matches this regular expression

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

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

Transmit and receive cpu slot masks of each TDM lane When omitted, mask is assumed to have to no slots. A valid interface must have at least one slot, so at least one these mask should be provided with an enabled slot.

^codec(-[0-9]+)?$ — name matches this regular expression

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

dai-link representing backend links should have at least one subnode. One subnode for each codec of the dai-link. dai-link representing frontend links have no codec, therefore have no subnodes

Properties and child nodes (properties)

sound-dai — required here

Maximum number of items (maxItems): 1

phandle of the codec DAI

Properties matching a name pattern (patternProperties)

^dai-tdm-slot-(t|r)x-mask$ — name matches this regular expression

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

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

Transmit and receive codec slot masks

Required in this object (required): "sound-dai"

Required in this object (required): "sound-dai"

Required in this object (required): "dai-link-0"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "amlogic,axg-sound-card";
    model = "AXG-S420";
    audio-aux-devs = <&tdmin_a>, <&tdmout_c>;
    audio-widgets = "Line", "Lineout",
                    "Line", "Linein",
                    "Speaker", "Speaker1 Left",
                    "Speaker", "Speaker1 Right",
                    "Speaker", "Speaker2 Left",
                    "Speaker", "Speaker2 Right";
    audio-routing = "TDMOUT_C IN 0", "FRDDR_A OUT 2",
                    "SPDIFOUT IN 0", "FRDDR_A OUT 3",
                    "TDM_C Playback", "TDMOUT_C OUT",
                    "TDMIN_A IN 2", "TDM_C Capture",
                    "TDMIN_A IN 5", "TDM_C Loopback",
                    "TODDR_A IN 0", "TDMIN_A OUT",
                    "Lineout", "Lineout AOUTL",
                    "Lineout", "Lineout AOUTR",
                    "Speaker1 Left", "SPK1 OUT_A",
                    "Speaker2 Left", "SPK2 OUT_A",
                    "Speaker1 Right", "SPK1 OUT_B",
                    "Speaker2 Right", "SPK2 OUT_B",
                    "Linein AINL", "Linein",
                    "Linein AINR", "Linein";

    dai-link-0 {
        sound-dai = <&frddr_a>;
    };

    dai-link-1 {
        sound-dai = <&toddr_a>;
    };

    dai-link-2 {
        sound-dai = <&tdmif_c>;
        dai-format = "i2s";
        dai-tdm-slot-tx-mask-2 = <1 1>;
        dai-tdm-slot-tx-mask-3 = <1 1>;
        dai-tdm-slot-rx-mask-1 = <1 1>;
        mclk-fs = <256>;

        codec-0 {
            sound-dai = <&lineout>;
        };

        codec-1 {
            sound-dai = <&speaker_amp1>;
        };

        codec-2 {
            sound-dai = <&speaker_amp2>;
        };

        codec-3 {
            sound-dai = <&linein>;
        };
    };

    dai-link-3 {
        sound-dai = <&spdifout>;

        codec {
            sound-dai = <&spdif_dit>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Amlogic Audio AXG SPDIF Input

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/amlogic,axg-spdifin.yaml#"

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

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "amlogic,axg-spdifin"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,g12a-spdifin", "amlogic,sm1-spdifin"

Item 2

Exact value (const): "amlogic,axg-spdifin"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

clocks — required here #

Array item rules (items) #

Item 1

Peripheral clock

Item 2

SPDIF input reference clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "refclk"

interrupts — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "#sound-dai-cells", "clocks", "clock-names", "interrupts"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "amlogic,g12a-spdifin", "amlogic,sm1-spdifin"

When the condition matches (then) #

Required in this object (required): "resets"

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/axg-audio-clkc.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

audio-controller@400 {
    compatible = "amlogic,axg-spdifin";
    reg = <0x400 0x30>;
    #sound-dai-cells = <0>;
    interrupts = <GIC_SPI 87 IRQ_TYPE_EDGE_RISING>;
    clocks = <&clkc_audio AUD_CLKID_SPDIFIN>,
             <&clkc_audio AUD_CLKID_SPDIFIN_CLK>;
    clock-names = "pclk", "refclk";
};

Source notes #

Annotations retained from the schema source

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

Amlogic Audio AXG SPDIF Output

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/amlogic,axg-spdifout.yaml#"

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

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "amlogic,axg-spdifout"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,g12a-spdifout", "amlogic,sm1-spdifout"

Item 2

Exact value (const): "amlogic,axg-spdifout"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

clocks — required here #

Array item rules (items) #

Item 1

Peripheral clock

Item 2

SPDIF output master clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "mclk"

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "#sound-dai-cells", "clocks", "clock-names"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "amlogic,g12a-spdifout", "amlogic,sm1-spdifout"

When the condition matches (then) #

Required in this object (required): "resets"

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/axg-audio-clkc.h>

audio-controller@480 {
    compatible = "amlogic,axg-spdifout";
    reg = <0x480 0x50>;
    #sound-dai-cells = <0>;
    clocks = <&clkc_audio AUD_CLKID_SPDIFOUT>,
             <&clkc_audio AUD_CLKID_SPDIFOUT_CLK>;
    clock-names = "pclk", "mclk";
};

Source notes #

Annotations retained from the schema source

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

Amlogic Audio AXG TDM formatters

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/amlogic,axg-tdm-formatters.yaml#"

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

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "amlogic,g12a-tdmout", "amlogic,sm1-tdmout", "amlogic,axg-tdmout", "amlogic,g12a-tdmin", "amlogic,sm1-tdmin", "amlogic,axg-tdmin"

clocks — required here #

Array item rules (items) #

Item 1

Peripheral clock

Item 2

Bit clock

Item 3

Bit clock input multiplexer

Item 4

Sample clock

Item 5

Sample clock input multiplexer

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "sclk"

Item 3

Exact value (const): "sclk_sel"

Item 4

Exact value (const): "lrclk"

Item 5

Exact value (const): "lrclk_sel"

reg — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

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

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "amlogic,g12a-tdmin", "amlogic,sm1-tdmin", "amlogic,g12a-tdmout", "amlogic,sm1-tdmout"

When the condition matches (then) #

Required in this object (required): "resets"

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/axg-audio-clkc.h>
#include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h>

audio-controller@500 {
    compatible = "amlogic,g12a-tdmout";
    reg = <0x500 0x40>;
    resets = <&clkc_audio AUD_RESET_TDMOUT_A>;
    clocks = <&clkc_audio AUD_CLKID_TDMOUT_A>,
             <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK>,
             <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK_SEL>,
             <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>,
             <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>;
    clock-names = "pclk", "sclk", "sclk_sel",
                  "lrclk", "lrclk_sel";
};

Source notes #

Annotations retained from the schema source

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

Amlogic Audio TDM Interfaces

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/amlogic,axg-tdm-iface.yaml#"

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

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "amlogic,axg-tdm-iface"

#sound-dai-cells — required here #

Exact value (const): 0

clocks — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Bit clock

Item 2

Sample clock

Item 3

Master clock

clock-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "sclk"

Item 2

Exact value (const): "lrclk"

Item 3

Exact value (const): "mclk"

Required in this object (required): "compatible", "#sound-dai-cells", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/axg-audio-clkc.h>

audio-controller {
    compatible = "amlogic,axg-tdm-iface";
    #sound-dai-cells = <0>;
    clocks = <&clkc_audio AUD_CLKID_MST_A_SCLK>,
             <&clkc_audio AUD_CLKID_MST_A_LRCLK>,
             <&clkc_audio AUD_CLKID_MST_A_MCLK>;
    clock-names = "sclk", "lrclk", "mclk";
};

Source notes #

Annotations retained from the schema source

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

Line 27: optional

Amlogic G12a Internal DAC Control Glue

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/amlogic,g12a-toacodec.yaml#"

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

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^audio-controller@.*"

#sound-dai-cells — required here #

Exact value (const): 1

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "amlogic,g12a-toacodec"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,sm1-toacodec"

Item 2

Exact value (const): "amlogic,g12a-toacodec"

reg — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

sound-name-prefix — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "#sound-dai-cells", "compatible", "reg", "resets"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h>

toacodec: audio-controller@740 {
    compatible = "amlogic,g12a-toacodec";
    reg = <0x740 0x4>;
    #sound-dai-cells = <1>;
    resets = <&clkc_audio AUD_RESET_TOACODEC>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Amlogic G12a HDMI TX Control Glue

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/amlogic,g12a-tohdmitx.yaml#"

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

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^audio-controller@.*"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "amlogic,g12a-tohdmitx"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,sm1-tohdmitx"

Item 2

Exact value (const): "amlogic,g12a-tohdmitx"

reg — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "resets", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h>

tohdmitx: audio-controller@744 {
    compatible = "amlogic,g12a-tohdmitx";
    reg = <0x744 0x4>;
    resets = <&clkc_audio AUD_RESET_TOHDMITX>;
    #sound-dai-cells = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Amlogic GX sound card

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/amlogic,gx-sound-card.yaml#"

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

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "amlogic,gx-sound-card"

audio-aux-devs — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

list of auxiliary devices

audio-widgets — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list off component DAPM widget. Each entry is a pair of strings, the first being the widget type, the second being the widget name

clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

Base PLL clocks of audio susbsytem, used to configure base clock frequencies for different audio use-cases.

Properties matching a name pattern (patternProperties) #

^dai-link-[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

dai-link child nodes:
  Container for dai-link level properties and the CODEC sub-nodes.
  There should be at least one (and probably more) subnode of this type

Properties and child nodes (properties) #

dai-format — not listed as required here

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

Allowed values (enum): "i2s", "left-j", "dsp_a"

mclk-fs — not listed as required here

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

Multiplication factor between the frame rate and master clock rate

sound-dai — required here

Maximum number of items (maxItems): 1

phandle of the CPU DAI

Properties matching a name pattern (patternProperties) #

^codec(-[0-9]+)?$ — name matches this regular expression

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Codecs: dai-link representing backend links should have at least one subnode. One subnode for each codec of the dai-link. dai-link representing frontend links have no codec, therefore have no subnodes

Properties and child nodes (properties)

sound-dai — required here

Maximum number of items (maxItems): 1

phandle of the codec DAI

Required in this object (required): "sound-dai"

Required in this object (required): "sound-dai"

Required in this object (required): "model", "dai-link-0"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "amlogic,gx-sound-card";
    model = "GXL-ACME-S905X-FOO";
    audio-aux-devs = <&amp>;
    audio-routing = "I2S ENCODER I2S IN", "I2S FIFO Playback";

    dai-link-0 {
           sound-dai = <&i2s_fifo>;
    };

    dai-link-1 {
            sound-dai = <&i2s_encoder>;
            dai-format = "i2s";
            mclk-fs = <256>;

            codec-0 {
                    sound-dai = <&codec0>;
            };

            codec-1 {
                    sound-dai = <&codec1>;
            };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Amlogic T9015 Internal Audio DAC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^audio-controller@.*"

#sound-dai-cells — required here #

Exact value (const): 0

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "amlogic,t9015"

clocks — required here #

Array item rules (items) #

Item 1

Peripheral clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

reg — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

AVDD-supply — required here #

Analogue power supply.

sound-name-prefix — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "#sound-dai-cells", "compatible", "reg", "clocks", "clock-names", "resets", "AVDD-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/g12a-clkc.h>
#include <dt-bindings/reset/amlogic,meson-g12a-reset.h>

acodec: audio-controller@32000 {
    compatible = "amlogic,t9015";
    reg = <0x32000 0x14>;
    #sound-dai-cells = <0>;
    clocks = <&clkc CLKID_AUDIO_CODEC>;
    clock-names = "pclk";
    resets = <&reset RESET_AUDIO_CODEC>;
    AVDD-supply = <&vddao_1v8>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Apple MCA I2S transceiver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

MCA is an I2S transceiver peripheral found on M1 and other Apple chips. It is composed of a number of identical clusters which can operate independently or in an interlinked fashion. Up to 6 clusters have been seen on an MCA.

Maintainers (maintainers): "Martin Povišer <povik+lin@cutebit.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "apple,t6020-mca"

Item 2

Exact value (const): "apple,t8103-mca"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "apple,t6000-mca", "apple,t8103-mca", "apple,t8112-mca"

Item 2

Exact value (const): "apple,mca"

reg — required here #

Array item rules (items) #

Item 1

Register region of the MCA clusters proper

Item 2

Register region of the DMA glue and its FIFOs

interrupts — not listed as required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 6

One interrupt per each cluster

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

dmas — required here #

Minimum number of items (minItems): 16

Maximum number of items (maxItems): 24

DMA channels corresponding to the SERDES units in the peripheral. They are listed in groups of four per cluster, and within the group they are given as associated to the TXA, RXA, TXB, RXB units.

dma-names — required here #

Minimum number of items (minItems): 16

Array item rules (items) #

Item 1

Exact value (const): "tx0a"

Item 2

Exact value (const): "rx0a"

Item 3

Exact value (const): "tx0b"

Item 4

Exact value (const): "rx0b"

Item 5

Exact value (const): "tx1a"

Item 6

Exact value (const): "rx1a"

Item 7

Exact value (const): "tx1b"

Item 8

Exact value (const): "rx1b"

Item 9

Exact value (const): "tx2a"

Item 10

Exact value (const): "rx2a"

Item 11

Exact value (const): "tx2b"

Item 12

Exact value (const): "rx2b"

Item 13

Exact value (const): "tx3a"

Item 14

Exact value (const): "rx3a"

Item 15

Exact value (const): "tx3b"

Item 16

Exact value (const): "rx3b"

Item 17

Exact value (const): "tx4a"

Item 18

Exact value (const): "rx4a"

Item 19

Exact value (const): "tx4b"

Item 20

Exact value (const): "rx4b"

Item 21

Exact value (const): "tx5a"

Item 22

Exact value (const): "rx5a"

Item 23

Exact value (const): "tx5b"

Item 24

Exact value (const): "rx5b"

Names for the DMA channels: 'tx'/'rx', then cluster number, then 'a'/'b' based on the associated SERDES unit.

clocks — required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 6

Clusters' input reference clock.

resets — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 7

First a general power domain for register access, then the power domains of individual clusters for their operation.

#sound-dai-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "dmas", "dma-names", "clocks", "power-domains", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mca: i2s@9b600000 {
  compatible = "apple,t6000-mca", "apple,mca";
  reg = <0x9b600000 0x10000>,
        <0x9b200000 0x20000>;

  clocks = <&nco 0>, <&nco 1>, <&nco 2>, <&nco 3>;
  power-domains = <&ps_audio_p>, <&ps_mca0>, <&ps_mca1>,
                  <&ps_mca2>, <&ps_mca3>;
  dmas = <&admac 0>, <&admac 1>, <&admac 2>, <&admac 3>,
         <&admac 4>, <&admac 5>, <&admac 6>, <&admac 7>,
         <&admac 8>, <&admac 9>, <&admac 10>, <&admac 11>,
         <&admac 12>, <&admac 13>, <&admac 14>, <&admac 15>;
  dma-names = "tx0a", "rx0a", "tx0b", "rx0b",
              "tx1a", "rx1a", "tx1b", "rx1b",
              "tx2a", "rx2a", "tx2b", "rx2b",
              "tx3a", "rx3a", "tx3b", "rx3b";

  #sound-dai-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Line 28: Do not add additional SoC to this list.

Arm Ltd. PrimeCell PL041 AACI sound interface

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Andre Przywara <andre.przywara@arm.com>"

The Arm PrimeCell Advanced Audio CODEC Interface (AACI) is an AMBA compliant peripheral that provides communication with an audio CODEC using the AC-link protocol.

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Exact value (const): "arm,pl041"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "arm,pl041"

Item 2

Exact value (const): "arm,primecell"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

APB register access clock

clock-names — not listed as required here #

Exact value (const): "apb_pclk"

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

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

audio-controller@40000 {
    compatible = "arm,pl041", "arm,primecell";
    reg = <0x040000 0x1000>;
    interrupts = <11>;
    clocks = <&v2m_clk24mhz>;
    clock-names = "apb_pclk";
};

Source notes #

Annotations retained from the schema source

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

Line 17: We need a select here so we don't match all nodes with 'arm,primecell'

AK4104 S/PDIF transmitter

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/asahi-kasei,ak4104.yaml#"

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

All of these rules must match (allOf) #

Rule 1 #

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

Maintainers (maintainers): "Daniel Mack <github@zonque.org>", "Xiaxi Shen <shenxiaxi26@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "asahi-kasei,ak4104"

reg — required here #

Chip select number on the SPI bus

Maximum number of items (maxItems): 1

vdd-supply — required here #

A regulator node providing between 2.7V and 3.6V.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Optional GPIO spec for the reset pin, deasserted before communication starts.

Required in this object (required): "compatible", "reg", "vdd-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@0 {
        compatible = "asahi-kasei,ak4104";
        reg = <0>;
        vdd-supply = <&vdd_3v3_reg>;
    };
};

Source notes #

Annotations retained from the schema source

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

AK4375 DAC and headphones amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/asahi-kasei,ak4375.yaml#"

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

Maintainers (maintainers): "Vincent Knecht <vincent.knecht@mailoo.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "asahi-kasei,ak4375"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

avdd-supply — required here #

regulator phandle for the AVDD power supply.

tvdd-supply — required here #

regulator phandle for the TVDD power supply.

pdn-gpios — not listed as required here #

optional GPIO to set the PDN pin.

Required in this object (required): "compatible", "reg", "#sound-dai-cells", "avdd-supply", "tvdd-supply"

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>;

  headphones: audio-codec@10 {
    compatible = "asahi-kasei,ak4375";
    reg = <0x10>;
    avdd-supply = <&reg_headphones_avdd>;
    tvdd-supply = <&pm8916_l6>;
    pdn-gpios = <&msmgpio 114 GPIO_ACTIVE_HIGH>;
    pinctrl-names = "default";
    pinctrl-0 = <&headphones_pdn_default>;
    #sound-dai-cells = <0>;
  };
};

Source notes #

Annotations retained from the schema source

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

AK4458 audio DAC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/asahi-kasei,ak4458.yaml#"

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

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "asahi-kasei,ak4458", "asahi-kasei,ak4497"

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

Exact value (const): 0

reg — required here #

Maximum number of items (maxItems): 1

AVDD-supply — not listed as required here #

Analog power supply

DVDD-supply — not listed as required here #

Digital power supply

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

mute-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO used to mute all the outputs

dsd-path — not listed as required here #

Select DSD input pins for ak4497

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

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): 0

select #16, #17, #19 pins

Rule 2

Exact value (const): 1

select #3, #4, #5 pins

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

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "asahi-kasei,ak4458"

When the condition matches (then) #

Properties and child nodes (properties)

dsd-path — not listed as required here

false — Not permitted by this property rule.

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>;
    codec@10 {
        compatible = "asahi-kasei,ak4458";
        reg = <0x10>;
        reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
        mute-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
    };
};

Source notes #

Annotations retained from the schema source

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

AK4554 sound codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/asahi-kasei,ak4554.yaml#"

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

Maintainers (maintainers): "Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>", "Liam Girdwood <lgirdwood@gmail.com>", "Mark Brown <broonie@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "asahi-kasei,ak4554"

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

codec {
    compatible = "asahi-kasei,ak4554";
};

Source notes #

Annotations retained from the schema source

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

AK4613 I2C transmitter

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/asahi-kasei,ak4613.yaml#"

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

Maintainers (maintainers): "Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "asahi-kasei,ak4613"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

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

Exact value (const): 0

ports — not listed as required here #

Shared schema rule ($ref): audio-graph-port.yaml#/definitions/ports

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.

Properties matching a name pattern (patternProperties) #

^asahi-kasei,in[1-2]-single-end$ — name matches this regular expression #

Input Pin 1 - 2.

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

^asahi-kasei,out[1-6]-single-end$ — name matches this regular expression #

Output Pin 1 - 6.

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

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    ak4613: codec@10 {
        compatible = "asahi-kasei,ak4613";
        reg = <0x10>;
    };
};

Source notes #

Annotations retained from the schema source

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

AK4619 I2C transmitter

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/asahi-kasei,ak4619.yaml#"

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

Maintainers (maintainers): "Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>", "Khanh Le <khanh.le.xr@renesas.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "asahi-kasei,ak4619"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

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

Exact value (const): 0

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 evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@10 {
        compatible = "asahi-kasei,ak4619";
        reg = <0x10>;

        clocks = <&rcar_sound>;
        clock-names = "mclk";

        #sound-dai-cells = <0>;
        port {
             ak4619_endpoint: endpoint {
                   remote-endpoint = <&rsnd_endpoint>;
              };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

AK4642 I2C transmitter

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/asahi-kasei,ak4642.yaml#"

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

Maintainers (maintainers): "Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>"

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): "asahi-kasei,ak4642", "asahi-kasei,ak4643", "asahi-kasei,ak4648"

reg — required here #

Maximum number of items (maxItems): 1

#clock-cells — not listed as required here #

Exact value (const): 0

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

Exact value (const): 0

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

common clock binding; frequency of MCKO

clock-output-names — not listed as required here #

common clock name

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    ak4643: codec@12 {
        compatible = "asahi-kasei,ak4643";
        #sound-dai-cells = <0>;
        reg = <0x12>;
        #clock-cells = <0>;
        clocks = <&audio_clock>;
        clock-frequency = <12288000>;
        clock-output-names = "ak4643_mcko";
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

AK5558 8 channel differential 32-bit delta-sigma ADC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/asahi-kasei,ak5558.yaml#"

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

Maintainers (maintainers): "Junichi Wakasugi <wakasugi.jb@om.asahi-kasei.co.jp>", "Mihai Serban <mihai.serban@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "asahi-kasei,ak5552", "asahi-kasei,ak5558"

reg — required here #

Maximum number of items (maxItems): 1

AVDD-supply — not listed as required here #

A 1.8V supply that powers up the AVDD pin.

DVDD-supply — not listed as required here #

A 1.2V supply that powers up the DVDD pin.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

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

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>;
    ak5558: codec@10 {
        compatible = "asahi-kasei,ak5558";
        reg = <0x10>;
        reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
    };
};

Source notes #

Annotations retained from the schema source

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

Atmel wm8904 audio codec complex

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/atmel,asoc-wm8904.yaml#"

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

Maintainers (maintainers): "Dharma Balasubiramani <dharma.b@microchip.com>"

The ASoC audio complex configuration for Atmel with WM8904 audio codec.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "atmel,asoc-wm8904"

atmel,model — required here #

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

The user-visible name of this sound complex.

atmel,ssc-controller — required here #

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

The phandle of the SSC controller.

atmel,audio-codec — required here #

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

The phandle of the WM8731 audio codec.

atmel,audio-routing — required here #

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

Array item rules (items) #

Allowed values (enum): "Headphone Jack", "Line In Jack", "Mic", "IN1L", "IN1R", "IN2L", "IN2R", "IN3L", "IN3R", "HPOUTL", "HPOUTR", "LINEOUTL", "LINEOUTR", "MICBIAS"

Required in this object (required): "compatible", "atmel,model", "atmel,audio-routing", "atmel,ssc-controller", "atmel,audio-codec"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "atmel,asoc-wm8904";
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_pck0_as_mck>;

    atmel,model = "wm8904 @ AT91SAM9N12EK";

    atmel,audio-routing =
            "Headphone Jack", "HPOUTL",
            "Headphone Jack", "HPOUTR",
            "IN2L", "Line In Jack",
            "IN2R", "Line In Jack",
            "Mic", "MICBIAS",
            "IN1L", "Mic";

    atmel,ssc-controller = <&ssc0>;
    atmel,audio-codec = <&wm8904>;
};

Source notes #

Annotations retained from the schema source

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

Line 39: Board Connectors

Line 43: WM8904 CODEC Pins

Atmel Serial Synchronous Serial (SSC)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/atmel,at91-ssc.yaml#"

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

Maintainers (maintainers): "Andrei Simion <andrei.simion@microchip.com>"

The Atmel Synchronous Serial Controller (SSC) provides a versatile synchronous communication link for audio and telecom applications, supporting protocols like I2S, Short Frame Sync, and Long Frame Sync.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "atmel,at91rm9200-ssc", "atmel,at91sam9g45-ssc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "microchip,sam9x7-ssc"

Item 2

Exact value (const): "atmel,at91sam9g45-ssc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

dmas — not listed as required here #

Array item rules (items) #

Item 1

TX DMA Channel

Item 2

RX DMA Channel

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

atmel,clk-from-rk-pin — not listed as required here #

Specify the clock source for the SSC (Synchronous Serial Controller) when operating in slave mode. By default, the clock is sourced from the TK pin.

Value type (type): "boolean"

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

Exact value (const): 0

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "atmel,at91sam9g45-ssc"

When the condition matches (then) #

Required in this object (required): "dmas", "dma-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/at91.h>
#include <dt-bindings/dma/at91.h>
#include <dt-bindings/interrupt-controller/irq.h>

ssc@100000 {
   compatible = "atmel,at91sam9g45-ssc";
   reg = <0x100000 0x4000>;
   interrupts = <28 IRQ_TYPE_LEVEL_HIGH 5>;
   dmas = <&dma0 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
                 AT91_XDMAC_DT_PERID(38))>,
          <&dma0 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
                 AT91_XDMAC_DT_PERID(39))>;
   dma-names = "tx", "rx";
   clocks = <&pmc PMC_TYPE_PERIPHERAL 28>;
   clock-names = "pclk";
   #sound-dai-cells = <0>;
};

ssc@c00000 {
  compatible = "atmel,at91rm9200-ssc";
  reg = <0xc00000 0x4000>;
  interrupts = <14 IRQ_TYPE_LEVEL_HIGH 5>;
  clocks = <&pmc PMC_TYPE_PERIPHERAL 14>;
  clock-names = "pclk";
};

Source notes #

Annotations retained from the schema source

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

Atmel at91sam9g20ek wm8731 audio complex

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/atmel,at91sam9g20ek-wm8731.yaml#"

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

Maintainers (maintainers): "Balakrishnan Sambath <balakrishnan.s@microchip.com>"

The audio complex configuration for Atmel at91sam9g20ek with WM8731 audio codec.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "atmel,at91sam9g20ek-wm8731-audio"

atmel,model — required here #

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

The user-visible name of this sound complex.

atmel,audio-routing — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components.

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 4

Array item rules (items) #

Allowed values (enum): "Ext Spk", "Int Mic", "LOUT", "ROUT", "LHPOUT", "RHPOUT", "LLINEIN", "RLINEIN", "MICIN"

atmel,ssc-controller — required here #

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

The phandle of the SSC controller.

atmel,audio-codec — required here #

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

The phandle of WM8731 audio codec.

Required in this object (required): "compatible", "atmel,model", "atmel,audio-routing", "atmel,ssc-controller", "atmel,audio-codec"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "atmel,at91sam9g20ek-wm8731-audio";
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_pck0_as_mck>;
    atmel,model = "wm8731 @ AT91SAMG20EK";
    atmel,audio-routing =
        "Ext Spk", "LHPOUT",
        "Int Mic", "MICIN";
    atmel,ssc-controller = <&ssc0>;
    atmel,audio-codec = <&wm8731>;
};

Source notes #

Annotations retained from the schema source

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

Line 30: Board Connectors

Line 34: CODEC Pins

Atmel at91sam9x5ek wm8731 audio complex

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/atmel,sam9x5-wm8731-audio.yaml#"

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

Maintainers (maintainers): "Dharma Balasubiramani <dharma.b@microchip.com>"

The audio complex configuration for Atmel at91sam9x5ek with WM8731 audio codec.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "atmel,sam9x5-wm8731-audio"

atmel,model — required here #

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

The user-visible name of this sound complex.

atmel,ssc-controller — required here #

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

The phandle of the SSC controller.

atmel,audio-codec — required here #

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

The phandle of the WM8731 audio codec.

atmel,audio-routing — required here #

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

Array item rules (items) #

Allowed values (enum): "Headphone Jack", "Line In Jack", "LOUT", "ROUT", "LHPOUT", "RHPOUT", "LLINEIN", "RLINEIN", "MICIN"

Required in this object (required): "compatible", "atmel,model", "atmel,ssc-controller", "atmel,audio-codec", "atmel,audio-routing"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "atmel,sam9x5-wm8731-audio";

    atmel,model = "wm8731 @ AT91SAM9X5EK";

    atmel,audio-routing =
            "Headphone Jack", "RHPOUT",
            "Headphone Jack", "LHPOUT",
            "LLINEIN", "Line In Jack",
            "RLINEIN", "Line In Jack";

    atmel,ssc-controller = <&ssc0>;
    atmel,audio-codec = <&wm8731>;
};

Source notes #

Annotations retained from the schema source

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

Line 39: Board Connectors

Line 43: CODEC Pins

Atmel ClassD Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/atmel,sama5d2-classd.yaml#"

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

Maintainers (maintainers): "Nicolas Ferre <nicolas.ferre@microchip.com>", "Alexandre Belloni <alexandre.belloni@bootlin.com>", "Claudiu Beznea <claudiu.beznea@microchip.com>"

The Audio Class D Amplifier (CLASSD) is a digital input, Pulse Width Modulated (PWM) output stereo Class D amplifier.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "atmel,sama5d2-classd"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "microchip,sam9x7-classd"

Item 2

Exact value (const): "atmel,sama5d2-classd"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

dmas — required here #

Maximum number of items (maxItems): 1

dma-names — required here #

Exact value (const): "tx"

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "gclk"

atmel,model — not listed as required here #

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

Default value (default): "CLASSD"

The user-visible name of this sound complex.

atmel,pwm-type — not listed as required here #

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

Allowed values (enum): "single", "diff"

Default value (default): "single"

PWM modulation type.

atmel,non-overlap-time — not listed as required here #

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

Allowed values (enum): 5, 10, 15, 20

Default value (default): 10

Set non-overlapping time, the unit is nanosecond(ns). Non-overlapping will be disabled if not specified.

Required in this object (required): "compatible", "reg", "interrupts", "dmas", "dma-names", "clock-names", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/dma/at91.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

classd: sound@fc048000 {
    compatible = "atmel,sama5d2-classd";
    reg = <0xfc048000 0x100>;
    interrupts = <59 IRQ_TYPE_LEVEL_HIGH 7>;
    dmas = <&dma0
        (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
        | AT91_XDMAC_DT_PERID(47))>;
    dma-names = "tx";
    clocks = <&classd_clk>, <&classd_gclk>;
    clock-names = "pclk", "gclk";
    assigned-clocks = <&classd_gclk>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_classd_default>;
    atmel,model = "classd @ SAMA5D2-Xplained";
    atmel,pwm-type = "diff";
    atmel,non-overlap-time = <10>;
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries

Atmel I2S controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/atmel,sama5d2-i2s.yaml#"

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

Maintainers (maintainers): "Nicolas Ferre <nicolas.ferre@microchip.com>", "Alexandre Belloni <alexandre.belloni@bootlin.com>", "Claudiu Beznea <claudiu.beznea@microchip.com>"

Atmel I2S (Inter-IC Sound Controller) bus is the standard interface for connecting audio devices, such as audio codecs.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "atmel,sama5d2-i2s"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Peripheral clock

Item 2

Generated clock (Optional)

Item 3

I2S mux clock (Optional). Set with gclk when Master Mode is required.

Minimum number of items (minItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "gclk"

Item 3

Exact value (const): "muxclk"

Minimum number of items (minItems): 1

dmas — required here #

Array item rules (items) #

Item 1

TX DMA Channel

Item 2

RX DMA Channel

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

Required in this object (required): "compatible", "reg", "interrupts", "dmas", "dma-names", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/dma/at91.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

i2s@f8050000 {
    compatible = "atmel,sama5d2-i2s";
    reg = <0xf8050000 0x300>;
    interrupts = <54 IRQ_TYPE_LEVEL_HIGH 7>;
    dmas = <&dma0
            (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
            AT91_XDMAC_DT_PERID(31))>,
           <&dma0
            (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
            AT91_XDMAC_DT_PERID(32))>;
    dma-names = "tx", "rx";
    clocks = <&i2s0_clk>, <&i2s0_gclk>, <&i2s0muxck>;
    clock-names = "pclk", "gclk", "muxclk";
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_i2s0_default>;
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries

Atmel PDMIC decoder

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/atmel,sama5d2-pdmic.yaml#"

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

Maintainers (maintainers): "Claudiu Beznea <claudiu.beznea@microchip.com>"

Atmel Pulse Density Modulation Interface Controller (PDMIC) peripheral is a mono PDM decoder module that decodes an incoming PDM sample stream.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "atmel,sama5d2-pdmic"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

peripheral clock

Item 2

generated clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "gclk"

dmas — required here #

Maximum number of items (maxItems): 1

dma-names — required here #

Exact value (const): "rx"

atmel,mic-min-freq — required here #

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

The minimal frequency that the microphone supports.

atmel,mic-max-freq — required here #

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

The maximal frequency that the microphone supports.

atmel,model — not listed as required here #

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

Default value (default): "PDMIC"

The user-visible name of this sound card.

atmel,mic-offset — not listed as required here #

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

Default value (default): 0

The offset that should be added.

Required in this object (required): "compatible", "reg", "interrupts", "dmas", "dma-names", "clock-names", "clocks", "atmel,mic-min-freq", "atmel,mic-max-freq"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/dma/at91.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

pdmic: sound@f8018000 {
    compatible = "atmel,sama5d2-pdmic";
    reg = <0xf8018000 0x124>;
    interrupts = <48 IRQ_TYPE_LEVEL_HIGH 7>;
    dmas = <&dma0
            (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
            | AT91_XDMAC_DT_PERID(50))>;
    dma-names = "rx";
    clocks = <&pdmic_clk>, <&pdmic_gclk>;
    clock-names = "pclk", "gclk";
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_pdmic_default>;
    atmel,model = "PDMIC@sama5d2_xplained";
    atmel,mic-min-freq = <1000000>;
    atmel,mic-max-freq = <3246000>;
    atmel,mic-offset = <0x0>;
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries

Audio Graph Card

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/audio-graph-card.yaml#"

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

Maintainers (maintainers): "Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/sound/audio-graph.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "audio-graph-card", "audio-graph-scu-card"

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "audio-graph-card";

    dais = <&cpu_port_a>;
};

cpu {
    /*
     * dai-controller own settings
     */

    port {
        cpu_endpoint: endpoint {
            remote-endpoint = <&codec_endpoint>;
            dai-format = "left_j";
        };
    };
};

codec {
    /*
     * codec own settings
     */

    port {
        codec_endpoint: endpoint {
            remote-endpoint = <&cpu_endpoint>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Audio Graph Card2

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/audio-graph-card2.yaml#"

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

Maintainers (maintainers): "Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "audio-graph-card2"

links — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

label — not listed as required here #

Maximum number of items (maxItems): 1

routing — not listed as required here #

Shared schema rule ($ref): audio-graph.yaml#/properties/routing

aux-devs — not listed as required here #

List of phandles pointing to auxiliary devices, such as amplifiers, to be added to the sound card.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

multi — not listed as required here #

Value type (type): "object"

Multi-CPU/Codec node

dpcm — not listed as required here #

Value type (type): "object"

DPCM node

codec2codec — not listed as required here #

Value type (type): "object"

Codec to Codec node

hp-det-gpios — not listed as required here #

Shared schema rule ($ref): audio-graph.yaml#/properties/hp-det-gpios

mic-det-gpios — not listed as required here #

Shared schema rule ($ref): audio-graph.yaml#/properties/mic-det-gpios

widgets — not listed as required here #

Shared schema rule ($ref): audio-graph.yaml#/properties/widgets

Required in this object (required): "compatible", "links"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Audio Graph Card 'port'

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/audio-graph-port.yaml#"

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

Maintainers (maintainers): "Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>"

Automatic schema selection (select) #

false

Not selected automatically by this rule.

Reusable definitions (definitions) #

port-base #

All of these rules must match (allOf) #

Rule 1

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base

Rule 2

Shared schema rule ($ref): /schemas/sound/dai-params.yaml#

Properties and child nodes (properties) #

mclk-fs — not listed as required here

Shared schema rule ($ref): simple-card.yaml#/definitions/mclk-fs

playback-only — not listed as required here

port connection used only for playback

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

capture-only — not listed as required here

port connection used only for capture

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

link-trigger-order — not listed as required here

trigger order for both start/stop

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

link-trigger-order-start — not listed as required here

trigger order for start

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

link-trigger-order-stop — not listed as required here

trigger order for stop

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

endpoint-base #

All of these rules must match (allOf) #

Rule 1

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/endpoint-base

Rule 2

Shared schema rule ($ref): /schemas/sound/dai-params.yaml#

Properties and child nodes (properties) #

mclk-fs — not listed as required here

Shared schema rule ($ref): simple-card.yaml#/definitions/mclk-fs

frame-inversion — not listed as required here

dai-link uses frame clock inversion

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

bitclock-inversion — not listed as required here

dai-link uses bit clock inversion

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

frame-master — not listed as required here

Indicates dai-link frame master.

Exactly one of these rules must match (oneOf)

Rule 1

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

Rule 2

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

bitclock-master — not listed as required here

Indicates dai-link bit clock master

Exactly one of these rules must match (oneOf)

Rule 1

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

Rule 2

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

clocks — not listed as required here

Indicates system clock

Maximum number of items (maxItems): 1

system-clock-frequency — not listed as required here

Shared schema rule ($ref): simple-card.yaml#/definitions/system-clock-frequency

system-clock-direction-out — not listed as required here

Shared schema rule ($ref): simple-card.yaml#/definitions/system-clock-direction-out

system-clock-fixed — not listed as required here

Shared schema rule ($ref): simple-card.yaml#/definitions/system-clock-fixed

dai-format — not listed as required here

audio format.

Array item rules (items)

Allowed values (enum): "i2s", "right_j", "left_j", "dsp_a", "dsp_b", "ac97", "pdm", "msb", "lsb"

dai-tdm-slot-num — not listed as required here

Number of slots in use.

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

dai-tdm-slot-width — not listed as required here

Width in bits for each slot.

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

dai-tdm-slot-width-map — not listed as required here

Mapping of sample widths to slot widths. For hardware that cannot support a fixed slot width or a slot width always equal to sample width. A matrix of one or more 3-tuples.

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

Array item rules (items)

Array item rules (items)

Item 1

Sample width in bits

Minimum value (minimum): 8

Maximum value (maximum): 64

Item 2

Slot width in bits

Minimum value (minimum): 8

Maximum value (maximum): 256

Item 3

Slot count

Minimum value (minimum): 1

Maximum value (maximum): 64

ports #

Shared schema rule ($ref): #/definitions/port-base

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

^port(@[0-9a-f]+)?$ — name matches this regular expression

Shared schema rule ($ref): #/definitions/port-base

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties)

^endpoint(@[0-9a-f]+)? — name matches this regular expression

Shared schema rule ($ref): #/definitions/endpoint-base

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): #/definitions/port-base

Properties matching a name pattern (patternProperties) #

^endpoint(@[0-9a-f]+)? — name matches this regular expression #

Shared schema rule ($ref): #/definitions/endpoint-base

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Audio Graph

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/audio-graph.yaml#"

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

Maintainers (maintainers): "Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/sound/dai-params.yaml#

Properties and child nodes (properties) #

dais — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

label — not listed as required here #

Maximum number of items (maxItems): 1

prefix — not listed as required here #

device name prefix

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

routing — not listed as required here #

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

widgets — not listed as required here #

User specified audio sound widgets. Each entry is a pair of strings, the first being the type of widget ("Microphone", "Line", "Headphone", "Speaker"), the second being the machine specific name for the widget.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

pa-gpios — not listed as required here #

Maximum number of items (maxItems): 1

hp-det-gpio — not listed as required here #

Deprecated (deprecated): true

Maximum number of items (maxItems): 1

hp-det-gpios — not listed as required here #

Maximum number of items (maxItems): 1

mic-det-gpio — not listed as required here #

Deprecated (deprecated): true

Maximum number of items (maxItems): 1

mic-det-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "dais"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Audio IIO auxiliary

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/audio-iio-aux.yaml#"

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

Maintainers (maintainers): "Herve Codina <herve.codina@bootlin.com>"

Auxiliary device based on Industrial I/O device channels

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "audio-iio-aux"

io-channels — required here #

Industrial I/O device channels used

io-channel-names — required here #

Industrial I/O channel names related to io-channels. These names are used to provides sound controls, widgets and routes names.

snd-control-invert-range — not listed as required here #

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

A list of 0/1 flags defining whether or not the related channel is inverted

Array item rules (items) #

Allowed values (enum): 0, 1

Default value (default): 0

Invert the sound control value compared to the IIO channel raw value.
  - 1: The related sound control value is inverted meaning that the
       minimum sound control value correspond to the maximum IIO channel
       raw value and the maximum sound control value correspond to the
       minimum IIO channel raw value.
  - 0: The related sound control value is not inverted meaning that the
       minimum (resp maximum) sound control value correspond to the
       minimum (resp maximum) IIO channel raw value.

Required in this object (required): "compatible", "io-channels", "io-channel-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

iio-aux {
    compatible = "audio-iio-aux";
    io-channels = <&iio 0>, <&iio 1>, <&iio 2>, <&iio 3>;
    io-channel-names = "CH0", "CH1", "CH2", "CH3";
    /* Invert CH1 and CH2 */
    snd-control-invert-range = <0 1 1 0>;
};

Source notes #

Annotations retained from the schema source

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

Awinic AW8738 Audio Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Stephan Gerhold <stephan@gerhold.net>"

The Awinic AW8738 is a simple audio amplifier with different operation modes (set using one-wire pulse control). The mode configures the speaker-guard function (primarily the power limit for the amplifier).

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "awinic,aw8738"

mode-gpios — required here #

GPIO used for one-wire pulse control. The pin is typically called SHDN (active-low), but this is misleading since it is actually more than just a simple shutdown/enable control.

Maximum number of items (maxItems): 1

awinic,mode — required here #

Operation mode (number of pulses for one-wire pulse control)

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

Minimum value (minimum): 1

Maximum value (maximum): 7

sound-name-prefix — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "mode-gpios", "awinic,mode"

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>
audio-amplifier {
    compatible = "awinic,aw8738";
    mode-gpios = <&msmgpio 114 GPIO_ACTIVE_HIGH>;
    awinic,mode = <5>;
    sound-name-prefix = "Speaker Amp";
};

Source notes #

Annotations retained from the schema source

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

Awinic Aw87390 Audio Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Weidong Wang <wangweidong.a@awinic.com>"

The awinic aw87390 is specifically designed to improve the musical output dynamic range, enhance the overall sound quallity, which is a new high efficiency, low noise, constant large volume, 6th Smart K audio amplifier.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "awinic,aw87390"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "anbernic,rgds-amp"

Item 2

Exact value (const): "awinic,aw87391"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

awinic,audio-channel — not listed as required here #

It is used to distinguish multiple PA devices, so that different configurations can be loaded to different PA devices

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

Minimum value (minimum): 0

Maximum value (maximum): 7

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "awinic,aw87390"

When the condition matches (then) #

Required in this object (required): "awinic,audio-channel"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "anbernic,rgds-amp"

When the condition matches (then) #

Properties and child nodes (properties)

vdd-supply — not listed as required here

true — No constraints added by this property rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    audio-codec@58 {
        compatible = "awinic,aw87390";
        reg = <0x58>;
        #sound-dai-cells = <0>;
        awinic,audio-channel = <0>;
    };
};

Source notes #

Annotations retained from the schema source

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

Awinic AW88395 Smart Audio Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Weidong Wang <wangweidong.a@awinic.com>"

The Awinic AW88395 is an I2S/TDM input, high efficiency digital Smart K audio amplifier with an integrated 10.25V smart boost convert.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "awinic,aw88081", "awinic,aw88083", "awinic,aw88166", "awinic,aw88261", "awinic,aw88395", "awinic,aw88399"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

dvdd-supply — not listed as required here #

true — No constraints added by this property rule.

awinic,audio-channel — required here #

It is used to distinguish multiple PA devices, so that different configurations can be loaded to different PA devices

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

Minimum value (minimum): 0

Maximum value (maximum): 7

awinic,sync-flag — not listed as required here #

Flag bit used to keep the phase synchronized in the case of multiple PA

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

Required in this object (required): "compatible", "reg", "#sound-dai-cells", "awinic,audio-channel"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "awinic,aw88081", "awinic,aw88083", "awinic,aw88261"

When the condition matches (then) #

Properties and child nodes (properties)

reset-gpios — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "awinic,aw88261"

When the condition matches (then) #

Required in this object (required): "dvdd-supply"

When the condition does not match (else) #

Properties and child nodes (properties)

dvdd-supply — not listed as required here

false — Not permitted by this property rule.

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@34 {
        compatible = "awinic,aw88395";
        reg = <0x34>;
        #sound-dai-cells = <0>;
        reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
        awinic,audio-channel = <0>;
        awinic,sync-flag;
    };
};

Source notes #

Annotations retained from the schema source

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

Broadcom BCM2835 SoC I2S/PCM module

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/brcm,bcm2835-i2s.yaml#"

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

Maintainers (maintainers): "Florian Fainelli <florian.fainelli@broadcom.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "brcm,bcm2835-i2s"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

dmas — required here #

Array item rules (items) #

Item 1

Transmission DMA controller phandle and request line.

Item 2

Reception DMA controller phandle and request line.

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

Required in this object (required): "compatible", "reg", "clocks", "dmas", "dma-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/bcm2835.h>

i2s@7e203000 {
    compatible = "brcm,bcm2835-i2s";
    reg = <0x7e203000 0x24>;
    clocks = <&clocks BCM2835_CLOCK_PCM>;
    dmas = <&dma 2>, <&dma 3>;
    dma-names = "tx", "rx";
};

Source notes #

Annotations retained from the schema source

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

Cirrus Logic CS35L41 Speaker Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "david.rhodes@cirrus.com"

CS35L41 is a boosted mono Class D amplifier with DSP speaker protection and equalization

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "cirrus,cs35l40", "cirrus,cs35l41"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

The first cell indicating the audio interface.

Exact value (const): 1

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

VA-supply — not listed as required here #

voltage regulator phandle for the VA supply

VP-supply — not listed as required here #

voltage regulator phandle for the VP supply

cirrus,boost-peak-milliamp — not listed as required here #

Boost-converter peak current limit in mA. Configures the peak current by monitoring the current through the boost FET. Range starts at 1600 mA and goes to a maximum of 4500 mA with increments of 50 mA. See section 4.3.6 of the datasheet for details.

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

Minimum value (minimum): 1600

Maximum value (maximum): 4500

Default value (default): 4500

cirrus,boost-ind-nanohenry — not listed as required here #

Boost inductor value, expressed in nH. Valid values include 1000, 1200, 1500 and 2200.

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

Minimum value (minimum): 1000

Maximum value (maximum): 2200

cirrus,boost-cap-microfarad — not listed as required here #

Total equivalent boost capacitance on the VBST and VAMP pins, derated at 11 volts DC. The value must be rounded to the nearest integer and expressed in uF.

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

cirrus,asp-sdout-hiz — not listed as required here #

Audio serial port SDOUT Hi-Z control. Sets the Hi-Z configuration for SDOUT pin of amplifier. 0 = Logic 0 during unused slots, and while all transmit channels disabled 1 = Hi-Z during unused slots but logic 0 while all transmit channels disabled 2 = (Default) Logic 0 during unused slots, but Hi-Z while all transmit channels disabled 3 = Hi-Z during unused slots and while all transmit channels disabled

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

Minimum value (minimum): 0

Maximum value (maximum): 3

Default value (default): 2

cirrus,boost-type — not listed as required here #

Configures the type of Boost being used. Internal boost requires boost-peak-milliamp, boost-ind-nanohenry and boost-cap-microfarad. External Boost must have GPIO1 as GPIO output. GPIO1 will be set high to enable boost voltage. Shared boost allows two amplifiers to share a single boost circuit by communicating on the MDSYNC bus. The active amplifier controls the boost circuit using combined data from both amplifiers. GPIO1 should be configured for Sync when shared boost is used. Shared boost is not compatible with External boost. Active amplifier requires boost-peak-milliamp, boost-ind-nanohenry and boost-cap-microfarad. 0 = Internal Boost 1 = External Boost 2 = Shared Boost Active 3 = Shared Boost Passive

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

Minimum value (minimum): 0

Maximum value (maximum): 3

cirrus,gpio1-polarity-invert — not listed as required here #

Boolean which specifies whether the GPIO1 level is inverted. If this property is not present the level is not inverted.

Value type (type): "boolean"

cirrus,gpio1-output-enable — not listed as required here #

Boolean which specifies whether the GPIO1 pin is configured as an output. If this property is not present the pin will be configured as an input.

Value type (type): "boolean"

cirrus,gpio1-src-select — not listed as required here #

Configures the function of the GPIO1 pin. Note that the options are different from the GPIO2 pin 0 = High Impedance (Default) 1 = GPIO 2 = Sync 3 = MCLK input

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

Minimum value (minimum): 0

Maximum value (maximum): 3

cirrus,gpio2-polarity-invert — not listed as required here #

Boolean which specifies whether the GPIO2 level is inverted. If this property is not present the level is not inverted.

Value type (type): "boolean"

cirrus,gpio2-output-enable — not listed as required here #

Boolean which specifies whether the GPIO2 pin is configured as an output. If this property is not present the pin will be configured as an input.

Value type (type): "boolean"

cirrus,gpio2-src-select — not listed as required here #

Configures the function of the GPIO2 pin. Note that the options are different from the GPIO1 pin. 0 = High Impedance (Default) 1 = GPIO 2 = Open Drain INTB 3 = MCLK input 4 = Push-pull INTB (active low) 5 = Push-pull INT (active high)

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

Minimum value (minimum): 0

Maximum value (maximum): 5

cirrus,subsystem-id — not listed as required here #

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

Subsystem ID. If this property is present, it sets the system name, used to identify the firmware and tuning to load.

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

cirrus,boost-type — not listed as required here

Exact value (const): 0

When the condition matches (then) #

Required in this object (required): "cirrus,boost-peak-milliamp", "cirrus,boost-ind-nanohenry", "cirrus,boost-cap-microfarad"

When the condition does not match (else) #

Condition (if)

Properties and child nodes (properties)

cirrus,boost-type — not listed as required here

Exact value (const): 1

When the condition matches (then)

Required in this object (required): "cirrus,gpio1-output-enable", "cirrus,gpio1-src-select"

Properties and child nodes (properties)

cirrus,boost-peak-milliamp — not listed as required here

false — Not permitted by this property rule.

cirrus,boost-ind-nanohenry — not listed as required here

false — Not permitted by this property rule.

cirrus,boost-cap-microfarad — not listed as required here

false — Not permitted by this property rule.

cirrus,gpio1-src-select — required here

Allowed values (enum): 1

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

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

    cs35l41: speaker-amp@2 {
        #sound-dai-cells = <1>;
        compatible = "cirrus,cs35l41";
        reg = <2>;
        VA-supply = <&dummy_vreg>;
        VP-supply = <&dummy_vreg>;
        reset-gpios = <&gpio 110 GPIO_ACTIVE_HIGH>;

        cirrus,boost-type = <0>;
        cirrus,boost-peak-milliamp = <4500>;
        cirrus,boost-ind-nanohenry = <1000>;
        cirrus,boost-cap-microfarad = <15>;
    };
};

Source notes #

Annotations retained from the schema source

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

Cirrus Logic CS35L45 Speaker Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>", "Richard Fitzgerald <rf@opensource.cirrus.com>"

CS35L45 is a Boosted Mono Class D Amplifier with DSP Speaker Protection and Adaptive Battery Management.

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): "cirrus,cs35l45"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 1

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

vdd-a-supply — not listed as required here #

voltage regulator phandle for the VDD_A supply

vdd-batt-supply — not listed as required here #

voltage regulator phandle for the VDD_BATT supply

spi-max-frequency — not listed as required here #

Maximum value (maximum): 5000000

cirrus,asp-sdout-hiz-ctrl — not listed as required here #

Audio serial port SDOUT Hi-Z control. Sets the Hi-Z configuration for SDOUT pin of amplifier. Logical OR of CS35L45_ASP_TX_HIZ_xxx values.

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

Minimum value (minimum): 0

Maximum value (maximum): 3

Default value (default): 2

Properties matching a name pattern (patternProperties) #

^cirrus,gpio-ctrl[1-3]$ — name matches this regular expression #

GPIO pins configuration.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

gpio-dir — not listed as required here

GPIO pin direction. Valid only when 'gpio-ctrl' is 1 0 = Output 1 = Input

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

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 1

gpio-lvl — not listed as required here

GPIO level. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0 0 = Low 1 = High

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

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

gpio-op-cfg — not listed as required here

GPIO level. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0 0 = CMOS 1 = Open Drain

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

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

gpio-pol — not listed as required here

GPIO output polarity select. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0 0 = Non-inverted, Active High 1 = Inverted, Active Low

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

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

gpio-ctrl — not listed as required here

Defines the function of the GPIO pin. GPIO1 0 = High impedance input 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir' 2 = Pin acts as MDSYNC, direction controlled by MDSYNC 3-7 = Reserved GPIO2 0 = High impedance input 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir' 2 = Pin acts as open drain INT 3 = Reserved 4 = Pin acts as push-pull output INT. Active low. 5 = Pin acts as push-pull output INT. Active high. 6,7 = Reserved GPIO3 0 = High impedance input 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir' 2-7 = Reserved

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

Minimum value (minimum): 0

Maximum value (maximum): 7

Default value (default): 0

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/sound/cs35l45.h>
spi {
    #address-cells = <1>;
    #size-cells = <0>;

    cs35l45: cs35l45@2 {
      #sound-dai-cells = <1>;
      compatible = "cirrus,cs35l45";
      reg = <2>;
      spi-max-frequency = <5000000>;
      vdd-a-supply = <&dummy_vreg>;
      vdd-batt-supply = <&dummy_vreg>;
      reset-gpios = <&gpio 110 0>;
      cirrus,asp-sdout-hiz-ctrl = <(CS35L45_ASP_TX_HIZ_UNUSED |
                                    CS35L45_ASP_TX_HIZ_DISABLED)>;
      cirrus,gpio-ctrl1 {
         gpio-ctrl = <0x2>;
      };
      cirrus,gpio-ctrl2 {
         gpio-ctrl = <0x2>;
      };
      cirrus,gpio-ctrl3 {
         gpio-ctrl = <0x1>;
         gpio-dir = <0x1>;
      };
    };
};

Source notes #

Annotations retained from the schema source

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

Cirrus Logic cs4234 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "patches@opensource.cirrus.com"

The CS4234 is a highly versatile CODEC that combines 4 channels of high performance analog to digital conversion, 4 channels of high performance digital to analog conversion for audio, and 1 channel of digital to analog conversion to provide a nondelayed audio reference signal to an external Class H tracking power supply. If not used to drive a tracking power supply, the 5th DAC can instead be used as a standard audio grade DAC, with performance specifications identical to that of the 4 DACs in the audio path. Additionally, the CS4234 includes tunable group delay for each of the 4 audio DAC paths to provide lead time for the external switch-mode power supply, and a nondelayed path into the DAC outputs for input signals requiring a low-latency path to the outputs.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "cirrus,cs4234"

reg — required here #

The 7-bit I2C address depends on the state of the ADx pins, in binary given by [0 0 1 0 AD2 AD1 AD0 0].

Array item rules (items) #

Minimum value (minimum): 16

Maximum value (maximum): 23

VA-supply — required here #

Analogue power supply.

VL-supply — required here #

Interface power supply.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "VA-supply", "VL-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c@e0004000 {
    #address-cells = <1>;
    #size-cells = <0>;
    reg = <0xe0004000 0x1000>;

    cs4234: codec@11 {
        compatible = "cirrus,cs4234";
        reg = <0x11>;

        VA-supply = <&vdd3v3>;
        VL-supply = <&vdd3v3>;

        reset-gpios = <&gpio 0>;
    };
};

Source notes #

Annotations retained from the schema source

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

Cirrus Logic CS4270 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "patches@opensource.cirrus.com"

The CS4270 is a stereo audio codec. The driver for this device currently only supports I2C.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cirrus,cs4270"

reg — required here #

Maximum number of items (maxItems): 1

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

Exact value (const): 0

reset-gpios — not listed as required here #

This pin will be deasserted before communication to the codec starts.

Maximum number of items (maxItems): 1

va-supply — not listed as required here #

Analog power supply.

vd-supply — not listed as required here #

Digital power supply.

vlc-supply — not listed as required here #

Serial Control Port power supply.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

  codec@48 {
      compatible = "cirrus,cs4270";
      reg = <0x48>;
  };
};

Source notes #

Annotations retained from the schema source

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

Cirrus Logic CS4271 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Alexander Sverdlin <alexander.sverdlin@gmail.com>", "Nikita Shubin <nikita.shubin@maquefel.me>"

The CS4271 is a stereo audio codec. This device supports both the I2C and the SPI bus.

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cirrus,cs4271"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

Master clock connected to the MCLK pin if MCLK is an input (i.e. no crystal used).

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

spi-cpha — not listed as required here #

true — No constraints added by this property rule.

spi-cpol — not listed as required here #

true — No constraints added by this property rule.

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

Exact value (const): 0

reset-gpios — not listed as required here #

This pin will be deasserted before communication to the codec starts.

Maximum number of items (maxItems): 1

va-supply — not listed as required here #

Analog power supply.

vd-supply — not listed as required here #

Digital power supply.

vl-supply — not listed as required here #

Serial Control Port power supply.

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.

cirrus,amuteb-eq-bmutec — not listed as required here #

When given, the Codec's AMUTEB=BMUTEC flag is enabled.

Value type (type): "boolean"

cirrus,enable-soft-reset — not listed as required here #

The CS4271 requires its LRCLK and MCLK to be stable before its RESET line is de-asserted. That also means that clocks cannot be changed without putting the chip back into hardware reset, which also requires a complete re-initialization of all registers.

One (undocumented) workaround is to assert and de-assert the PDN bit in the MODE2 register. This workaround can be enabled with this DT property.

Note that this is not needed in case the clocks are stable throughout the entire runtime of the codec.

Value type (type): "boolean"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
spi {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@0 {
        compatible = "cirrus,cs4271";
        reg = <0>;
        #sound-dai-cells = <0>;
        spi-max-frequency = <6000000>;
        spi-cpol;
        spi-cpha;
        reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
        port {
            endpoint {
                remote-endpoint = <&i2s_ep>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Cirrus Logic CS42L42 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "patches@opensource.cirrus.com"

The CS42L42 is a low-power audio codec designed for portable applications. It provides a high-dynamic range, stereo DAC for audio playback and a mono high-dynamic-range ADC for audio capture. There is an integrated headset detection block.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "cirrus,cs42l42", "cirrus,cs42l83"

reg — required here #

The I2C address of the CS42L42.

Maximum number of items (maxItems): 1

VP-supply — required here #

VP power supply.

VCP-supply — required here #

Charge pump power supply.

VD_FILT-supply — required here #

FILT+ power supply.

VL-supply — required here #

Logic power supply.

VA-supply — required here #

Analog power supply.

reset-gpios — not listed as required here #

This pin will be asserted and then deasserted to reset the CS42L42 before communication starts.

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Interrupt for CS42L42 IRQ line.

Maximum number of items (maxItems): 1

cirrus,ts-inv — not listed as required here #

Sets the behaviour of the jack plug detect switch.

0 - (Default) Shorted to tip when unplugged, open when plugged. This is "inverted tip sense (ITS)" in the datasheet.

1 - Open when unplugged, shorted to tip when plugged. This is "normal tip sense (TS)" in the datasheet.

The CS42L42_TS_INV_* defines are available for this.

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

Minimum value (minimum): 0

Maximum value (maximum): 1

cirrus,ts-dbnc-rise — not listed as required here #

Debounce the rising edge of TIP_SENSE_PLUG. With no debounce, the tip sense pin might be noisy on a plug event.

0 - 0ms 1 - 125ms 2 - 250ms 3 - 500ms 4 - 750ms 5 - 1s (Default) 6 - 1.25s 7 - 1.5s

The CS42L42_TS_DBNCE_* defines are available for this.

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

Minimum value (minimum): 0

Maximum value (maximum): 7

cirrus,ts-dbnc-fall — not listed as required here #

Debounce the falling edge of TIP_SENSE_UNPLUG. With no debounce, the tip sense pin might be noisy on an unplug event.

0 - 0ms 1 - 125ms 2 - 250ms 3 - 500ms 4 - 750ms 5 - 1s (Default) 6 - 1.25s 7 - 1.5s

The CS42L42_TS_DBNCE_* defines are available for this.

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

Minimum value (minimum): 0

Maximum value (maximum): 7

cirrus,btn-det-init-dbnce — not listed as required here #

This sets how long to wait after enabling button detection interrupts before servicing button interrupts, to allow the HS bias time to settle. Value is in milliseconds. There may be erroneous button interrupts if this debounce time is too short.

0ms - 200ms, Default = 100ms

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

Minimum value (minimum): 0

Maximum value (maximum): 200

cirrus,btn-det-event-dbnce — not listed as required here #

This sets how long to wait after receiving a button press interrupt before processing it. Allows time for the button press to make a clean connection with the bias resistors. Value is in milliseconds.

0ms - 20ms, Default = 10ms

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

Minimum value (minimum): 0

Maximum value (maximum): 20

cirrus,bias-lvls — not listed as required here #

For a level-detect headset button scheme, each button will bias the mic pin to a certain voltage. To determine which button was pressed, the voltage is compared to sequential, decreasing voltages, until the compared voltage < bias voltage. For different hardware setups, a designer might want to tweak this. This is an array of descending values for the comparator voltage, given as percent of the HSBIAS voltage.

Array of 4 values, each 0-63 < x1 x2 x3 x4 > Default = < 15 8 4 1 >

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

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 63

cirrus,hs-bias-ramp-rate — not listed as required here #

If present this sets the rate that the HS bias should rise and fall. The actual rise and fall times depend on external hardware (the datasheet gives several rise and fall time examples).

0 - Fast rise time; slow, load-dependent fall time 1 - Fast 2 - Slow (default) 3 - Slowest

The CS42L42_HSBIAS_RAMP_* defines are available for this.

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

Minimum value (minimum): 0

Maximum value (maximum): 3

cirrus,hs-bias-sense-disable — not listed as required here #

If present the HSBIAS sense is disabled. Configures HSBIAS output current sense through the external 2.21-k resistor. HSBIAS_SENSE is a hardware feature to reduce the potential pop noise when the headset plug is removed slowly. But on some platforms ESD voltage will affect it causing plug detection to fail, especially with CTIA headset type. For different hardware setups, a designer might want to tweak default behavior.

Value type (type): "boolean"

Required in this object (required): "compatible", "reg", "VP-supply", "VCP-supply", "VD_FILT-supply", "VL-supply", "VA-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/sound/cs42l42.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  cs42l42: cs42l42@48 {
      compatible = "cirrus,cs42l42";
      reg = <0x48>;
      VA-supply = <&dummy_vreg>;
      VP-supply = <&dummy_vreg>;
      VCP-supply = <&dummy_vreg>;
      VD_FILT-supply = <&dummy_vreg>;
      VL-supply = <&dummy_vreg>;

      reset-gpios = <&axi_gpio_0 1 0>;
      interrupt-parent = <&gpio0>;
      interrupts = <55 8>;

      cirrus,ts-inv = <CS42L42_TS_INV_DIS>;
      cirrus,ts-dbnc-rise = <CS42L42_TS_DBNCE_1000>;
      cirrus,ts-dbnc-fall = <CS42L42_TS_DBNCE_0>;
      cirrus,btn-det-init-dbnce = <100>;
      cirrus,btn-det-event-dbnce = <10>;
      cirrus,bias-lvls = <0x0F 0x08 0x04 0x01>;
      cirrus,hs-bias-ramp-rate = <CS42L42_HSBIAS_RAMP_SLOW>;
  };
};

Source notes #

Annotations retained from the schema source

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

Cirrus Logic CS42L43 Audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "patches@opensource.cirrus.com"

The CS42L43 is an audio CODEC with integrated MIPI SoundWire interface (Version 1.2.1 compliant), I2C, SPI, and I2S/TDM interfaces designed for portable applications. It provides a high dynamic range, stereo DAC for headphone output, two integrated Class D amplifiers for loudspeakers, and two ADCs for wired headset microphone input or stereo line input. PDM inputs are provided for digital microphones.

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): "cirrus,cs42l43"

reg — required here #

Maximum number of items (maxItems): 1

vdd-p-supply — required here #

Power supply for the high voltage interface.

vdd-a-supply — required here #

Power supply for internal analog circuits.

vdd-d-supply — not listed as required here #

Power supply for internal digital circuits. Can be internally supplied.

vdd-io-supply — required here #

Power supply for external interface and internal digital logic.

vdd-cp-supply — required here #

Power supply for the amplifier 3 and 4 charge pump.

vdd-amp-supply — not listed as required here #

Power supply for amplifier 1 and 2.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

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

Exact value (const): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

Synchronous audio clock provided on mclk_in.

clock-names — not listed as required here #

Exact value (const): "mclk"

cirrus,bias-low — not listed as required here #

Value type (type): "boolean"

Select a 1.8V headset micbias rather than 2.8V.

cirrus,bias-sense-microamp — not listed as required here #

Current at which the headset micbias sense clamp will engage, 0 to disable.

Allowed values (enum): 0, 14, 24, 43, 52, 61, 71, 90, 99

Default value (default): 14

cirrus,bias-ramp-ms — not listed as required here #

Time in milliseconds the hardware allows for the headset micbias to ramp up.

Allowed values (enum): 10, 40, 90, 170

Default value (default): 170

cirrus,detect-us — not listed as required here #

Time in microseconds the type detection will run for. Long values will cause more audible effects, but give more accurate detection.

Allowed values (enum): 20, 100, 1000, 10000, 50000, 75000, 100000, 200000

Default value (default): 1000

cirrus,button-automute — not listed as required here #

Value type (type): "boolean"

Enable the hardware automuting of decimator 1 when a headset button is pressed.

cirrus,buttons-ohms — not listed as required here #

Impedance in Ohms for each headset button, these should be listed in ascending order.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 6

cirrus,tip-debounce-ms — not listed as required here #

Software debounce on tip sense triggering in milliseconds.

Default value (default): 0

cirrus,tip-invert — not listed as required here #

Value type (type): "boolean"

Indicates tip detect polarity, inverted implies open-circuit whilst the jack is inserted.

cirrus,tip-disable-pullup — not listed as required here #

Value type (type): "boolean"

Indicates if the internal pullup on the tip detect should be disabled.

cirrus,tip-fall-db-ms — not listed as required here #

Time in milliseconds a falling edge on the tip detect should be hardware debounced for. Note the falling edge is considered after the invert.

Allowed values (enum): 0, 125, 250, 500, 750, 1000, 1250, 1500

Default value (default): 500

cirrus,tip-rise-db-ms — not listed as required here #

Time in milliseconds a rising edge on the tip detect should be hardware debounced for. Note the rising edge is considered after the invert.

Allowed values (enum): 0, 125, 250, 500, 750, 1000, 1250, 1500

Default value (default): 500

cirrus,use-ring-sense — not listed as required here #

Value type (type): "boolean"

Indicates if the ring sense should be used.

cirrus,ring-invert — not listed as required here #

Value type (type): "boolean"

Indicates ring detect polarity, inverted implies open-circuit whilst the jack is inserted.

cirrus,ring-disable-pullup — not listed as required here #

Value type (type): "boolean"

Indicates if the internal pullup on the ring detect should be disabled.

cirrus,ring-fall-db-ms — not listed as required here #

Time in milliseconds a falling edge on the ring detect should be hardware debounced for. Note the falling edge is considered after the invert.

Allowed values (enum): 0, 125, 250, 500, 750, 1000, 1250, 1500

Default value (default): 500

cirrus,ring-rise-db-ms — not listed as required here #

Time in milliseconds a rising edge on the ring detect should be hardware debounced for. Note the rising edge is considered after the invert.

Allowed values (enum): 0, 125, 250, 500, 750, 1000, 1250, 1500

Default value (default): 500

pinctrl — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/pinctrl/pinctrl.yaml#

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

gpio-controller — not listed as required here

true — No constraints added by this property rule.

#gpio-cells — not listed as required here

Exact value (const): 2

gpio-ranges — not listed as required here

Array item rules (items)

Item 1

Array item rules (items)

Item 1

A phandle to the CODEC pinctrl node

Minimum value (minimum): 0

Item 2

Exact value (const): 0

Item 3

Exact value (const): 0

Item 4

Exact value (const): 3

Properties matching a name pattern (patternProperties) #

-state$ — name matches this regular expression

Exactly one of these rules must match (oneOf)

Rule 1

Shared schema rule ($ref): #/$defs/cirrus-cs42l43-state

Rule 2

Properties matching a name pattern (patternProperties)

-pins$ — name matches this regular expression

Shared schema rule ($ref): #/$defs/cirrus-cs42l43-state

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

spi — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/spi/spi-controller.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Reusable definitions ($defs) #

cirrus-cs42l43-state #

Value type (type): "object"

All of these rules must match (allOf) #

Rule 1

Shared schema rule ($ref): /schemas/pinctrl/pincfg-node.yaml#

Rule 2

Shared schema rule ($ref): /schemas/pinctrl/pinmux-node.yaml#

Exactly one of these rules must match (oneOf) #

Rule 1

Required in this object (required): "groups"

Rule 2

Required in this object (required): "pins"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

groups — not listed as required here

Allowed values (enum): "gpio1", "gpio2", "gpio3", "asp", "pdmout2", "pdmout1", "i2c", "spi"

pins — not listed as required here

Allowed values (enum): "gpio1", "gpio2", "gpio3", "asp_dout", "asp_fsync", "asp_bclk", "pdmout2_clk", "pdmout2_data", "pdmout1_clk", "pdmout1_data", "i2c_sda", "i2c_scl", "spi_miso", "spi_sck", "spi_ssb"

function — not listed as required here

Allowed values (enum): "gpio", "spdif", "irq", "mic-shutter", "spk-shutter"

drive-strength — not listed as required here

Set drive strength in mA

Allowed values (enum): 1, 2, 4, 8, 9, 10, 12, 16

input-debounce — not listed as required here

Set input debounce in uS

Allowed values (enum): 0, 85

Required in this object (required): "compatible", "reg", "vdd-p-supply", "vdd-a-supply", "vdd-io-supply", "vdd-cp-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

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

    cs42l43: codec@1a {
        compatible = "cirrus,cs42l43";
        reg = <0x1a>;

        vdd-p-supply = <&vdd5v0>;
        vdd-a-supply = <&vdd1v8>;
        vdd-io-supply = <&vdd1v8>;
        vdd-cp-supply = <&vdd1v8>;
        vdd-amp-supply = <&vdd5v0>;

        reset-gpios = <&gpio 0>;

        interrupt-controller;
        #interrupt-cells = <2>;
        interrupt-parent = <&gpio>;
        interrupts = <56 IRQ_TYPE_LEVEL_LOW>;

        #sound-dai-cells = <1>;

        clocks = <&clks 0>;
        clock-names = "mclk";

        cs42l43_pins: pinctrl {
            gpio-controller;
            #gpio-cells = <2>;
            gpio-ranges = <&cs42l43_pins 0 0 3>;

            pinctrl-names = "default";
            pinctrl-0 = <&pinsettings>;

            pinsettings: default-state {
                shutter-pins {
                    groups = "gpio3";
                    function = "mic-shutter";
                };
            };
        };

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

            cs-gpios = <&cs42l43_pins 1 0>;

            sensor@0 {
                compatible = "bosch,bme680";
                reg = <0>;
                spi-max-frequency = <1400000>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

CS42L51 audio codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Olivier Moysan <olivier.moysan@foss.st.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cirrus,cs42l51"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "MCLK"

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

VL-supply — not listed as required here #

phandle to voltage regulator of digital interface section

VD-supply — not listed as required here #

phandle to voltage regulator of digital internal section

VA-supply — not listed as required here #

phandle to voltage regulator of analog internal section

VAHP-supply — not listed as required here #

phandle to voltage regulator of headphone

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", "#sound-dai-cells"

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>;

  cs42l51@4a {
    compatible = "cirrus,cs42l51";
    reg = <0x4a>;
    #sound-dai-cells = <0>;
    clocks = <&mclk_prov>;
    clock-names = "MCLK";
    VL-supply = <&reg_audio>;
    VD-supply = <&reg_audio>;
    VA-supply = <&reg_audio>;
    VAHP-supply = <&reg_audio>;
    reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>;

    /* assume audio-graph */
    port {
      cpu_endpoint: endpoint {
        remote-endpoint = <&cpu_endpoint>;
      };
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Cirrus Logic CS42L84 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Martin Povišer <povik+lin@cutebit.org>"

The CS42L84 is a headphone jack codec made by Cirrus Logic and embedded in personal computers sold by Apple. It was first seen in 2021 Macbook Pro models. It has stereo DAC for playback, mono ADC for capture, and is somewhat similar to CS42L42 but with a different regmap.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "cirrus,cs42l84"

reg — required here #

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

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

Exact value (const): 0

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>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  jack_codec: codec@4b {
      compatible = "cirrus,cs42l84";
      reg = <0x4b>;
      reset-gpios = <&pinctrl_nub 4 GPIO_ACTIVE_LOW>;
      interrupts-extended = <&pinctrl_ap 180 IRQ_TYPE_LEVEL_LOW>;
      #sound-dai-cells = <0>;
  };
};

Source notes #

Annotations retained from the schema source

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

Cirrus Logic CS42448/CS42888 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "patches@opensource.cirrus.com"

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): "cirrus,cs42448", "cirrus,cs42888"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — required here #

Exact value (const): "mclk"

VA-supply — not listed as required here #

Analog power supply.

VD-supply — not listed as required here #

Digital power supply.

VLC-supply — not listed as required here #

Control port power supply

VLS-supply — not listed as required here #

Serial port interface power supply.

reset-gpios — not listed as required here #

This pin is connected to the chip's RESET pin.

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", "clocks", "clock-names"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Exact value (const): "cirrus,cs42888"

When the condition matches (then) #

Required in this object (required): "VA-supply", "VD-supply", "VLC-supply", "VLS-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

  codec@48 {
      compatible = "cirrus,cs42888";
      reg = <0x48>;
      clocks = <&codec_mclk 0>;
      clock-names = "mclk";
      VA-supply = <&reg_audio>;
      VD-supply = <&reg_audio>;
      VLS-supply = <&reg_audio>;
      VLC-supply = <&reg_audio>;
      reset-gpios = <&gpio 1>;
  };
};

Source notes #

Annotations retained from the schema source

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

Cirrus Logic CS48L32 audio DSP.

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "patches@opensource.cirrus.com"

The CS48L32 is a high-performance low-power audio DSP for smartphones and other portable audio devices. The CS48L32 combines a programmable Halo Core DSP with a variety of power-efficient fixed-function audio processors.

See also the binding headers:

  include/dt-bindings/sound/cs48l32.yaml

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Rule 2 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "cirrus,cs48l32"

reg — required here #

SPI chip-select number.

Maximum number of items (maxItems): 1

spi-max-frequency — not listed as required here #

Maximum value (maximum): 25000000

vdd-a-supply — required here #

Regulator supplying VDD_A

vdd-d-supply — required here #

Regulator supplying VDD_D

vdd-io-supply — required here #

Regulator supplying VDD_IO

vdd-cp-supply — required here #

Regulator supplying VDD_CP

reset-gpios — not listed as required here #

One entry specifying the GPIO controlling /RESET. Although optional, it is strongly recommended to use a hardware reset.

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

The clock supplied on MCLK1

clock-names — not listed as required here #

Exact value (const): "mclk1"

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

Exact value (const): 1

cirrus,in-type — not listed as required here #

A list of input type settings for each ADC input.
Inputs are one of these types:
  CS48L32_IN_TYPE_DIFF : analog differential (default)
  CS48L32_IN_TYPE_SE :   analog single-ended

The type of the left (L) and right (R) channel on each input is independently configured, as are the two groups of pins muxable to the input (referred to in the datasheet as "1" and "2").

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

Array item rules (items) #

Item 1

IN1L_1 analog input type. One of the CS48L32_IN_TYPE_xxx.

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

Item 2

IN1R_1 analog input type. One of the CS48L32_IN_TYPE_xxx.

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

Item 3

IN1L_2 analog input type. One of the CS48L32_IN_TYPE_xxx.

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

Item 4

IN1R_2 analog input type. One of the CS48L32_IN_TYPE_xxx.

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

cirrus,pdm-sup — not listed as required here #

Indicate which MICBIAS output supplies bias to the microphone. There is one cell per input (IN1, IN2, ...).

One of the CS48L32_MICBIAS_xxx values.
  CS48L32_PDM_SUP_VOUT_MIC : mic biased from VOUT_MIC
  CS48L32_PDM_SUP_MICBIAS1 : mic biased from MICBIAS1

Also see the INn_PDM_SUP field in the datasheet.

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

Array item rules (items) #

Item 1

IN1 PDM supply source

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

Item 2

IN2 PDM supply source

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

Required in this object (required): "compatible", "reg", "vdd-a-supply", "vdd-d-supply", "vdd-io-supply", "vdd-cp-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/sound/cs48l32.h>

spi@e0006000 {
    #address-cells = <1>;
    #size-cells = <0>;
    reg = <0xe0006000 0x1000>;

    codec@1 {
        compatible = "cirrus,cs48l32";

        reg = <0x1>;
        spi-max-frequency = <2500000>;

        vdd-a-supply = <&regulator_1v8>;
        vdd-d-supply = <&regulator_1v2>;
        vdd-io-supply = <&regulator_1v8>;
        vdd-cp-supply = <&regulator_1v8>;

        reset-gpios = <&gpio 0 0>;

        clocks = <&clks 0>;
        clock-names = "mclk1";

        interrupt-parent = <&gpio0>;
        interrupts = <56 8>;

        #sound-dai-cells = <1>;

        cirrus,in-type = <
            CS48L32_IN_TYPE_DIFF CS48L32_IN_TYPE_DIFF
            CS48L32_IN_TYPE_SE   CS48L32_IN_TYPE_SE
        >;

        cirrus,pdm-sup = <
          CS48L32_PDM_SUP_MICBIAS1 CS48L32_PDM_SUP_MICBIAS1
        >;
    };
};
#include <dt-bindings/sound/cs48l32.h>

spi@e0006000 {
    #address-cells = <1>;
    #size-cells = <0>;
    reg = <0xe0006000 0x1000>;

    codec@1 {
        compatible = "cirrus,cs48l32";

        reg = <0x1>;

        vdd-a-supply = <&regulator_1v8>;
        vdd-d-supply = <&regulator_1v2>;
        vdd-io-supply = <&regulator_1v8>;
        vdd-cp-supply = <&regulator_1v8>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 174:

Line 175: Minimal config

Line 176:

Cirrus Logic cs530x family of audio ADCs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Paul Handrigan <paulha@opensource.cirrus.com>", "patches@opensource.cirrus.com"

The CS530X devices are a family of high performance audio ADCs.

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "cirrus,cs4282", "cirrus,cs4302", "cirrus,cs4304", "cirrus,cs4308", "cirrus,cs5302", "cirrus,cs5304", "cirrus,cs5308"

reg — required here #

Maximum number of items (maxItems): 1

spi-max-frequency — not listed as required here #

Maximum value (maximum): 24000000

#sound-dai-cells — required here #

Exact value (const): 1

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

vdd-a-supply — not listed as required here #

Analog power supply

vdd-io-supply — not listed as required here #

Digital IO power supply

cirrus,in-hiz-pin12 — not listed as required here #

Sets input channels one and two to high impedance.

Value type (type): "boolean"

cirrus,in-hiz-pin34 — not listed as required here #

Sets input channels three and four to high impedance.

Value type (type): "boolean"

cirrus,in-hiz-pin56 — not listed as required here #

Sets input channels five and six to high impedance.

Value type (type): "boolean"

cirrus,in-hiz-pin78 — not listed as required here #

Sets input channels seven and eight to high impedance.

Value type (type): "boolean"

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

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>;

    cs5304: adc@48 {
        compatible = "cirrus,cs5304";
        reg = <0x48>;
        #sound-dai-cells = <1>;
        reset-gpios = <&gpio 110 GPIO_ACTIVE_LOW>;
        vdd-a-supply = <&vreg>;
        vdd-io-supply = <&vreg>;
        cirrus,in-hiz-pin34;
    };
};

Source notes #

Annotations retained from the schema source

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

Cirrus EP93xx I2S Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/cirrus,ep9301-i2s.yaml#"

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

The I2S controller is used to stream serial audio data between the external I2S CODECs’, ADCs/DACs, and the ARM Core. The controller supports I2S, Left- and Right-Justified DSP formats.

Maintainers (maintainers): "Alexander Sverdlin <alexander.sverdlin@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cirrus,ep9301-i2s"

#sound-dai-cells — required here #

Exact value (const): 0

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "sclk"

Item 3

Exact value (const): "lrclk"

dmas — not listed as required here #

Array item rules (items) #

Item 1

out DMA channel

Item 2

in DMA channel

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

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", "#sound-dai-cells", "reg", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2s: i2s@80820000 {
    compatible = "cirrus,ep9301-i2s";
    #sound-dai-cells = <0>;
    reg = <0x80820000 0x100>;
    interrupt-parent = <&vic1>;
    interrupts = <28>;
    clocks = <&syscon 29>,
             <&syscon 30>,
             <&syscon 31>;
    clock-names = "mclk", "sclk", "lrclk";
    dmas = <&dma0 0 1>, <&dma0 0 2>;
    dma-names = "tx", "rx";
};

Source notes #

Annotations retained from the schema source

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

Cirrus Logic Lochnagar Audio Development Board

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "patches@opensource.cirrus.com"

Lochnagar is an evaluation and development board for Cirrus Logic Smart CODEC and Amp devices. It allows the connection of most Cirrus Logic devices on mini-cards, as well as allowing connection of various application processor systems to provide a full evaluation platform. Audio system topology, clocking and power can all be controlled through the Lochnagar, allowing the device under test to be used in a variety of possible use cases.

This binding document describes the binding for the audio portion of the driver.

This binding must be part of the Lochnagar MFD binding:
  [1] ../mfd/cirrus,lochnagar.yaml

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): "cirrus,lochnagar2-soundcard"

#sound-dai-cells — required here #

The first cell indicating the audio interface.

Exact value (const): 1

clocks — required here #

Master clock source for the sound card, should normally be set to LOCHNAGAR_SOUNDCARD_MCLK provided by the Lochnagar clock driver.

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "mclk"

Required in this object (required): "compatible", "#sound-dai-cells", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Cirrus Logic Madera class audio CODECs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "patches@opensource.cirrus.com"

This describes audio configuration bindings for these codecs.

See also the core bindings for the parent MFD driver:

  Documentation/devicetree/bindings/mfd/cirrus,madera.yaml

and defines for values used in these bindings:

  include/dt-bindings/sound/madera.h

The properties are all contained in the parent MFD node.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

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

The first cell indicating the audio interface.

Exact value (const): 1

cirrus,inmode — not listed as required here #

A list of input mode settings for each input. A maximum of 24 cells, with four cells per input in the order INnAL, INnAR INnBL INnBR. For non-muxed inputs the first two cells for that input set the mode for the left and right channel and the second two cells must be 0. For muxed inputs the first two cells for that input set the mode of the left and right A inputs and the second two cells set the mode of the left and right B inputs. Valid mode values are one of the MADERA_INMODE_xxx. If the array is shorter than the number of inputs the unspecified inputs default to MADERA_INMODE_DIFF.

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

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 24

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

cirrus,out-mono — not listed as required here #

Mono bit for each output, maximum of six cells if the array is shorter outputs will be set to stereo.

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

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 6

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

cirrus,dmic-ref — not listed as required here #

Indicates how the MICBIAS pins have been externally connected to DMICs on each input, one cell per input.

  <IN1 IN2 IN3 ...>

A value of 0 indicates MICVDD and is the default, other values depend on the codec: For CS47L35 one of the CS47L35_DMIC_REF_xxx values For all other codecs one of the MADERA_DMIC_REF_xxx values Also see the datasheet for a description of the INn_DMIC_SUP field.

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

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 6

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 3

Default value (default): 0

cirrus,max-channels-clocked — not listed as required here #

Maximum number of channels that I2S clocks will be generated for. Useful when clock master for systems where the I2S bus has multiple data lines. One cell for each AIF, use a value of zero for AIFs that should be handled normally.

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

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Array item rules (items) #

Default value (default): 0

cirrus,pdm-fmt — not listed as required here #

PDM speaker data format, must contain 2 cells (OUT5 and OUT6). See the PDM_SPKn_FMT field in the datasheet for a description of this value. The second cell is ignored for codecs that do not have OUT6.

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

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

cirrus,pdm-mute — not listed as required here #

PDM mute format, must contain 2 cells (OUT5 and OUT6). See the PDM_SPKn_CTRL_1 register in the datasheet for a description of this value. The second cell is ignored for codecs that do not have OUT6.

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

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

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

CIX IPBLOQ HDA controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/cix,sky1-ipbloq-hda.yaml#"

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

CIX IPBLOQ High Definition Audio (HDA) Controller

Maintainers (maintainers): "Joakim Zhang <joakim.zhang@cixtech.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cix,sky1-ipbloq-hda"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ipg"

Item 2

Exact value (const): "per"

resets — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "resets"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include<dt-bindings/interrupt-controller/arm-gic.h>

hda@70c0000 {
    compatible = "cix,sky1-ipbloq-hda";
    reg = <0x70c0000 0x10000>;
    interrupts = <GIC_SPI 234 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&audss_clk 7>,
             <&audss_clk 8>;
    clock-names = "ipg", "per";
    resets = <&audss_rst 14>;
    model = "CIX SKY1 EVB HDA";
};

Source notes #

Annotations retained from the schema source

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

Audio Component Common Properties

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/component-common.yaml#"

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

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

Properties and child nodes (properties) #

sound-name-prefix — not listed as required here #

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

Card implementing the routing property define the connection between audio components as list of string pair. Component using the same sink/source names may use this property to prepend the name of their sinks/sources with the provided string.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Digital Audio Interface Common Properties

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/dai-common.yaml#"

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

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

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

true — No constraints added by this property rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Digital Audio Interface (DAI) Stream Parameters

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/dai-params.yaml#"

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

Maintainers (maintainers): "Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>"

Automatic schema selection (select) #

false

Not selected automatically by this rule.

Properties and child nodes (properties) #

convert-channels — not listed as required here #

Number of audio channels used by DAI

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

Minimum value (minimum): 1

Maximum value (maximum): 32

convert-sample-format — not listed as required here #

Audio sample format used by DAI

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

Allowed values (enum): "s8", "s16_le", "s24_le", "s24_3le", "s32_le"

convert-rate — not listed as required here #

Audio sample rate used by DAI

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

Minimum value (minimum): 8000

Maximum value (maximum): 192000

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

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

McASP Controller for TI SoCs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/davinci-mcasp-audio.yaml#"

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

Maintainers (maintainers): "Jayesh Choudhary <j-choudhary@ti.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,dm646x-mcasp-audio", "ti,da830-mcasp-audio", "ti,am33xx-mcasp-audio", "ti,dra7-mcasp-audio", "ti,omap4-mcasp-audio"

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

CFG registers

Item 2

data registers

reg-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "mpu"

Item 2

Exact value (const): "dat"

op-mode — not listed as required here #

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

0 - I2S or 1 - DIT operation mode

Allowed values (enum): 0, 1

tdm-slots — not listed as required here #

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

Number of channels over one serializer. This property specifies the TX playback TDM slot count, along with default RX slot count if tdm-slots-rx is not specified. The property is ignored in DIT mode.

Minimum value (minimum): 2

Maximum value (maximum): 32

tdm-slots-rx — not listed as required here #

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

Number of RX capture channels over one serializer. If specified, allows independent RX TDM slot count separate from TX. Requires ti,async-mode to be enabled for independent TX/RX clock rates. The property is ignored in DIT mode.

Minimum value (minimum): 2

Maximum value (maximum): 32

ti,async-mode — not listed as required here #

Specify to allow independent TX & RX clocking, to enable audio playback & record with different sampling rate, and different number of bits per frame. if property is omitted, TX and RX will share same bit clock and frame clock signals, thus RX need to use same bits per frame and sampling rate as TX in synchronous mode. the property is ignored in DIT mode (as DIT is TX-only)

Value type (type): "boolean"

serial-dir — not listed as required here #

A list of serializer configuration Entry is indication for serializer pin direction 0 - Inactive, 1 - TX, 2 - RX All AXR pins should be present in the array even if inactive

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

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 25

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 2

dmas — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

transmission DMA channel

Item 2

reception DMA channel

dma-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

ti,hwmods — not listed as required here #

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

Name of hwmod associated with McASP

Maximum number of items (maxItems): 1

Deprecated (deprecated): true

tx-num-evt — not listed as required here #

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

configures WFIFO threshold 0 disables the FIFO use if property is missing, then also FIFO use is disabled

rx-num-evt — not listed as required here #

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

configures RFIFO threshold 0 disables the FIFO use if property is missing, then also FIFO use is disabled

dismod — not listed as required here #

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

specify the drive on TX pin during inactive time slots 0 - 3-state, 2 - logic low, 3 - logic high

Allowed values (enum): 0, 2, 3

Default value (default): 2

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupt-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

TX interrupt

Exact value (const): "tx"

Rule 2

RX interrupt

Exact value (const): "rx"

Rule 3

TX and RX interrupts

Array item rules (items)

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

Rule 4

Common/combined interrupt

Exact value (const): "common"

fck_parent — not listed as required here #

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

parent clock name for McASP fck

Maximum number of items (maxItems): 1

auxclk-fs-ratio — not listed as required here #

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

Ratio of AUCLK and FS rate if applicable. This property specifies the TX ratio, along with default RX ratio if auxclk-fs-ratio-rx is not specified. When not specified, the inputted system clock frequency via set_sysclk callback by the machine driver is used for divider calculation.

auxclk-fs-ratio-rx — not listed as required here #

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

Ratio of AUCLK and FS rate for RX. If specified, allows for a different RX ratio. Requires ti,async-mode to be enabled when the ratio differs from auxclk-fs-ratio. When not specified, it defaults to the value of auxclk-fs-ratio. The property is ignored in DIT mode.

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

#gpio-cells — not listed as required here #

Exact value (const): 2

clocks — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

functional clock

Item 2

module specific optional ahclkx clock

Item 3

module specific optional ahclkr clock

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "fck"

Item 2

Exact value (const): "ahclkx"

Item 3

Exact value (const): "ahclkr"

power-domains — not listed as required here #

phandle to the corresponding power-domain

Maximum number of items (maxItems): 1

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

Exact value (const): 0

port — not listed as required here #

connection for when McASP is used via graph card

Value type (type): "object"

Required in this object (required): "compatible", "reg", "reg-names", "dmas", "dma-names", "interrupts", "interrupt-names"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

op-mode — not listed as required here

Allowed values (enum): 0

When the condition matches (then) #

Required in this object (required): "tdm-slots"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

op-mode — not listed as required here

Exact value (const): 1

When the condition matches (then) #

Properties and child nodes (properties)

tdm-slots — not listed as required here

false — Not permitted by this property rule.

tdm-slots-rx — not listed as required here

false — Not permitted by this property rule.

ti,async-mode — not listed as required here

false — Not permitted by this property rule.

auxclk-fs-ratio-rx — not listed as required here

false — Not permitted by this property rule.

Rule 4 #

Condition (if) #

Required in this object (required): "tdm-slots-rx"

When the condition matches (then) #

Required in this object (required): "ti,async-mode"

Rule 5 #

Condition (if) #

Required in this object (required): "auxclk-fs-ratio-rx"

When the condition matches (then) #

Required in this object (required): "ti,async-mode"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mcasp0: mcasp0@1d00000 {
  compatible = "ti,da830-mcasp-audio";
  reg = <0x100000 0x3000>;
  reg-names = "mpu";
  interrupts = <82>, <83>;
  interrupt-names = "tx", "rx";
  op-mode = <0>;		/* MCASP_IIS_MODE */
  tdm-slots = <2>;
  ti,async-mode;
  dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>;
  dma-names = "tx", "rx";
  serial-dir = <
      0 0 0 0	/* 0: INACTIVE, 1: TX, 2: RX */
      0 0 0 0
      0 0 0 1
      2 0 0 0 >;
  tx-num-evt = <1>;
  rx-num-evt = <1>;
};

Source notes #

Annotations retained from the schema source

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

McBSP Controller for TI SoCs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/davinci-mcbsp.yaml#"

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

Maintainers (maintainers): "Bastien Curutchet <bastien.curutchet@bootlin.com>"

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,da850-mcbsp"

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

CFG registers

Item 2

data registers

reg-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "mpu"

Item 2

Exact value (const): "dat"

dmas — required here #

Array item rules (items) #

Item 1

transmission DMA channel

Item 2

reception DMA channel

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

interrupts — not listed as required here #

Array item rules (items) #

Item 1

RX interrupt

Item 2

TX interrupt

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

functional clock

Item 2

external input clock for sample rate generator.

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "fck"

Item 2

Exact value (const): "clks"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

ti,T1-framing-tx — not listed as required here #

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

If the property is present, tx data delay is set to 2 bit clock periods. McBSP will insert a blank period (high-impedance period) before the first data bit. This can be used to interface to T1-framing devices.

ti,T1-framing-rx — not listed as required here #

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

If the property is present, rx data delay is set to 2 bit clock periods. McBSP will discard the bit preceding the data stream (called framing bit). This can be used to interface to T1-framing devices.

Required in this object (required): "#sound-dai-cells", "compatible", "reg", "reg-names", "dmas", "dma-names", "clocks"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mcbsp0@1d10000 {
  #sound-dai-cells = <0>;
  compatible = "ti,da850-mcbsp";
  pinctrl-names = "default";
  pinctrl-0 = <&mcbsp0_pins>;

  reg = <0x111000 0x1000>,
        <0x311000 0x1000>;
  reg-names = "mpu", "dat";
  interrupts = <97>, <98>;
  interrupt-names = "rx", "tx";
  dmas = <&edma0 3 1>,
         <&edma0 2 1>;
  dma-names = "tx", "rx";

  clocks = <&psc1 14>;
};

Source notes #

Annotations retained from the schema source

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

Dialog Semiconductor DA7219 Audio Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "David Rau <David.Rau.opensource@dm.renesas.com>"

The DA7219 is an ultra low-power audio codec with in-built advanced accessory detection (AAD) for mobile computing and accessory applications, which supports sample rates up to 96 kHz at 24-bit resolution.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "dlg,da7219"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

VDD-supply — required here #

VDD power supply for the device.

VDDMIC-supply — required here #

VDDMIC power supply for the device.

VDDIO-supply — required here #

VDDIO power supply for the device.

interrupt-names — not listed as required here #

Should be "wakeup" if interrupt is to be used to wake system, otherwise "irq" should be used.

Allowed values (enum): "wakeup", "irq"

wakeup-source — not listed as required here #

Value type (type): "boolean"

Flag to indicate this device can wake system (suspend/resume).

#clock-cells — not listed as required here #

Exact value (const): 1

clock-output-names — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Name given for DAI WCLK and BCLK outputs.

clocks — not listed as required here #

Maximum number of items (maxItems): 1

phandle and clock specifier for codec MCLK.

clock-names — not listed as required here #

Exact value (const): "mclk"

dlg,micbias-lvl — not listed as required here #

Allowed values (enum): 1600, 1800, 2000, 2200, 2400, 2600

Voltage (mV) for Mic Bias.

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

dlg,mic-amp-in-sel — not listed as required here #

Allowed values (enum): "diff", "se_p", "se_n"

Mic input source type. diff - Differential. se_p - MIC_P. Positive differential analog microphone input. se_n - MIC_N. Negative differential analog microphone input.

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

da7219_aad — not listed as required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Configuration of advanced accessory detection.

Properties and child nodes (properties) #

dlg,micbias-pulse-lvl — not listed as required here

Allowed values (enum): 2800, 2900

Mic bias higher voltage pulse level (mV).

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

dlg,micbias-pulse-time — not listed as required here

Mic bias higher voltage pulse duration (ms).

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

Minimum value (minimum): 0

dlg,btn-cfg — not listed as required here

Allowed values (enum): 2, 5, 10, 50, 100, 200, 500

Periodic button press measurements for 4-pole jack (ms).

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

dlg,mic-det-thr — not listed as required here

Allowed values (enum): 200, 500, 750, 1000

Impedance threshold for mic detection measurement (Ohms).

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

dlg,jack-ins-deb — not listed as required here

Allowed values (enum): 5, 10, 20, 50, 100, 200, 500, 1000

Debounce time for jack insertion (ms).

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

dlg,jack-ins-det-pty — not listed as required here

Allowed values (enum): "low", "high"

Polarity for jack insertion detection.

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

dlg,jack-det-rate — not listed as required here

Allowed values (enum): "32_64", "64_128", "128_256", "256_512"

Jack type (3/4 pole) detection latency (ms).

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

dlg,jack-rem-deb — not listed as required here

Allowed values (enum): 1, 5, 10, 20

Debounce time for jack removal (ms).

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

dlg,a-d-btn-thr — not listed as required here

Impedance threshold between buttons A and D.

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

Minimum value (minimum): 0

Maximum value (maximum): 255

dlg,d-b-btn-thr — not listed as required here

Impedance threshold between buttons D and B.

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

Minimum value (minimum): 0

Maximum value (maximum): 255

dlg,b-c-btn-thr — not listed as required here

Impedance threshold between buttons B and C.

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

Minimum value (minimum): 0

Maximum value (maximum): 255

dlg,c-mic-btn-thr — not listed as required here

Impedance threshold between button C and Mic.

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

Minimum value (minimum): 0

Maximum value (maximum): 255

dlg,btn-avg — not listed as required here

Allowed values (enum): 1, 2, 4, 8

Number of 8-bit readings for averaged button measurement.

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

dlg,adc-1bit-rpt — not listed as required here

Allowed values (enum): 1, 2, 4, 8

Repeat count for 1-bit button measurement.

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

Required in this object (required): "compatible", "reg", "interrupts", "VDD-supply", "VDDMIC-supply", "VDDIO-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  codec: da7219@1a {
      compatible = "dlg,da7219";
      reg = <0x1a>;

      interrupt-parent = <&gpio6>;
      interrupts = <11 IRQ_TYPE_LEVEL_LOW>;

      VDD-supply = <&vdd_reg>;
      VDDMIC-supply = <&vddmic_reg>;
      VDDIO-supply = <&vddio_reg>;

      #clock-cells = <1>;
      clock-output-names = "da7219-dai-wclk", "da7219-dai-bclk";

      clocks = <&clks 201>;
      clock-names = "mclk";

      dlg,micbias-lvl = <2600>;
      dlg,mic-amp-in-sel = "diff";

      da7219_aad {
          dlg,btn-cfg = <50>;
          dlg,mic-det-thr = <500>;
          dlg,jack-ins-deb = <20>;
          dlg,jack-ins-det-pty = "low";
          dlg,jack-det-rate = "32_64";
          dlg,jack-rem-deb = <1>;

          dlg,a-d-btn-thr = <0xa>;
          dlg,d-b-btn-thr = <0x16>;
          dlg,b-c-btn-thr = <0x21>;
          dlg,c-mic-btn-thr = <0x3E>;

          dlg,btn-avg = <4>;
          dlg,adc-1bit-rpt = <1>;
      };
  };
};

Source notes #

Annotations retained from the schema source

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

Dialog Semiconductor DA7212/DA7213 Audio Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Support Opensource <support.opensource@diasemi.com>"

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): "dlg,da7212", "dlg,da7213"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "mclk"

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

Exact value (const): 0

dlg,micbias1-lvl — not listed as required here #

Voltage (mV) for Mic Bias 1

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

Allowed values (enum): 1600, 2200, 2500, 3000

dlg,micbias2-lvl — not listed as required here #

Voltage (mV) for Mic Bias 2

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

Allowed values (enum): 1600, 2200, 2500, 3000

dlg,dmic-data-sel — not listed as required here #

DMIC channel select based on clock edge

Allowed values (enum): "lrise_rfall", "lfall_rrise"

dlg,dmic-samplephase — not listed as required here #

When to sample audio from DMIC

Allowed values (enum): "on_clkedge", "between_clkedge"

dlg,dmic-clkrate — not listed as required here #

DMIC clock frequency (Hz)

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

Allowed values (enum): 1500000, 3000000

VDDA-supply — not listed as required here #

Analogue power supply

VDDIO-supply — not listed as required here #

I/O power supply

VDDMIC-supply — not listed as required here #

Mic Bias

VDDSP-supply — not listed as required here #

Speaker supply

ports — not listed as required here #

Shared schema rule ($ref): audio-graph-port.yaml#/definitions/ports

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 evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

    codec@1a {
        compatible = "dlg,da7213";
        reg = <0x1a>;

        clocks = <&clks 201>;
        clock-names = "mclk";

        #sound-dai-cells = <0>;

        dlg,micbias1-lvl = <2500>;
        dlg,micbias2-lvl = <2500>;

        dlg,dmic-data-sel = "lrise_rfall";
        dlg,dmic-samplephase = "between_clkedge";
        dlg,dmic-clkrate = <3000000>;
    };
};

Source notes #

Annotations retained from the schema source

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

Generic PDM Digital microphone (DMIC) codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/dmic-codec.yaml#"

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

Maintainers (maintainers): "Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "dmic-codec"

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

Exact value (const): 0

vref-supply — not listed as required here #

Phandle to the digital microphone reference supply

dmicen-gpios — not listed as required here #

GPIO specifier for DMIC to control start and stop

Maximum number of items (maxItems): 1

num-channels — not listed as required here #

Number of microphones on this DAI

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

Minimum value (minimum): 1

Maximum value (maximum): 8

Default value (default): 8

modeswitch-delay-ms — not listed as required here #

Delay (in ms) to complete DMIC mode switch

wakeup-delay-ms — not listed as required here #

Delay (in ms) after enabling the DMIC

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

dmic {
    compatible = "dmic-codec";
    dmicen-gpios = <&gpio4 3 GPIO_ACTIVE_HIGH>;
    num-channels = <1>;
    wakeup-delay-ms = <50>;
    modeswitch-delay-ms = <35>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Everest ES7134/7144/7154 2 channels I2S analog to digital converter

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "everest,es7134", "everest,es7144", "everest,es7154"

VDD-supply — required here #

true — No constraints added by this property rule.

PVDD-supply — not listed as required here #

true — No constraints added by this property rule.

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

Exact value (const): 0

Required in this object (required): "compatible", "VDD-supply"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "everest,es7134", "everest,es7144"

When the condition matches (then) #

Properties and child nodes (properties)

PVDD-supply — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "everest,es7154"

When the condition matches (then) #

Required in this object (required): "PVDD-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

codec {
    compatible = "everest,es7134";
    #sound-dai-cells = <0>;
    VDD-supply = <&vdd_supply>;
};

Source notes #

Annotations retained from the schema source

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

Everest ES7241 2 channels I2S analog to digital converter

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "everest,es7241"

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO connected to the reset pin

m0-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO connected to the m0 pin

m1-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO connected to the m0 pin

everest,sdout-pull-down — not listed as required here #

Value type (type): "boolean"

Format used by the serial interface is controlled by pulling the sdout. If the sdout is pulled down, leftj format is used. If this property is not provided, sdout is assumed to pulled up and i2s format is used

VDDP-supply — required here #

true — No constraints added by this property rule.

VDDA-supply — required here #

true — No constraints added by this property rule.

VDDD-supply — required here #

true — No constraints added by this property rule.

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

Exact value (const): 0

Required in this object (required): "compatible", "VDDP-supply", "VDDA-supply", "VDDD-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>

codec {
    compatible = "everest,es7241";
    #sound-dai-cells = <0>;
    reset-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
    VDDP-supply = <&vddp_supply>;
    VDDA-supply = <&vdda_supply>;
    VDDD-supply = <&vddd_supply>;
};

Source notes #

Annotations retained from the schema source

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

Everest ES8311, ES8316 and ES8323 audio CODECs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Daniel Drake <drake@endlessm.com>", "Katsuhiro Suzuki <katsuhiro@katsuster.net>", "Matteo Martelli <matteomartelli3@gmail.com>", "Binbin Zhou <zhoubinbin@loongson.cn>"

Everest ES8311, ES8316 and ES8323 audio CODECs

Pins on the device (for linking into audio routes):

  Outputs:
    * LOUT:     Left Analog Output
    * ROUT:     Right Analog Output
    * MICBIAS:  Microphone Bias
  Inputs:
    * MIC1P:    Microphone 1 Positive Analog Input
    * MIC1N:    Microphone 1 Negative Analog Input
    * MIC2P:    Microphone 2 Positive Analog Input
    * MIC2N:    Microphone 2 Negative Analog Input

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): "everest,es8311", "everest,es8316", "everest,es8323"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

clock for master clock (MCLK)

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Headphone detect interrupt

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.

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;
  es8316: codec@11 {
    compatible = "everest,es8316";
    reg = <0x11>;
    clocks = <&clks 10>;
    clock-names = "mclk";
    #sound-dai-cells = <0>;
  };
};

Source notes #

Annotations retained from the schema source

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

Everest ES8326 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "David Yang <yangxiaohua@everest-semi.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "everest,es8326"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

clock for master clock (MCLK)

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

interrupt output for headset detection

#sound-dai-cells — required here #

Exact value (const): 0

everest,jack-pol — not listed as required here #

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

just the value of reg 57. Bit(3) decides whether the jack polarity is inverted. Bit(2) decides whether the button on the headset is inverted. Bit(1)/(0) decides the mic property to be OMTP/CTIA or auto.

Minimum value (minimum): 0

Maximum value (maximum): 15

Default value (default): 15

everest,mic1-src — not listed as required here #

Deprecated (deprecated): true

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

the value of reg 2A when headset plugged.

Minimum value (minimum): 0

Maximum value (maximum): 119

Default value (default): 34

everest,mic2-src — not listed as required here #

Deprecated (deprecated): true

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

the value of reg 2A when headset unplugged.

Minimum value (minimum): 0

Maximum value (maximum): 119

Default value (default): 68

everest,jack-detect-inverted — not listed as required here #

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

Defined to invert the jack detection.

everest,interrupt-src — not listed as required here #

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

value of reg 0x58, Defines the interrupt source. Bit(2) 1 means button press triggers irq, 0 means not. Bit(3) 1 means PIN9 is the irq source for jack detection. When set to 0, bias change on PIN9 do not triggers irq. Bit(4) 1 means PIN27 is the irq source for jack detection. Bit(5) 1 means PIN9 is the irq source after MIC detect. Bit(6) 1 means PIN27 is the irq source after MIC detect.

Minimum value (minimum): 0

Maximum value (maximum): 60

Default value (default): 8

everest,interrupt-clk — not listed as required here #

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

value of reg 0x59, Defines the interrupt output behavior.
Bit(0-3) 0 means irq pulse equals 512*internal clock
  1 means irq pulse equals 1024*internal clock
  2 means ...
  7 means irq pulse equals 65536*internal clock
  8 means irq mutes PA
  9 means irq mutes PA and DAC output
Bit(4) 1 means we invert the interrupt output.
Bit(6) 1 means the chip do not detect jack type after button released.
  0 means the chip detect jack type again after button released.

Minimum value (minimum): 0

Maximum value (maximum): 127

Default value (default): 0

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;
  es8326: codec@19 {
    compatible = "everest,es8326";
    reg = <0x19>;
    clocks = <&clks 10>;
    clock-names = "mclk";
    #sound-dai-cells = <0>;
    everest,jack-pol = [0e];
    everest,interrupt-src = [08];
    everest,interrupt-clk = [00];
  };
};

Source notes #

Annotations retained from the schema source

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

Everest ES8328 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Everest Audio Codec, which can be connected via I2C or SPI. Pins on the device (for linking into audio routes) are * LOUT1 * LOUT2 * ROUT1 * ROUT2 * LINPUT1 * RINPUT1 * LINPUT2 * RINPUT2 * Mic Bias

Maintainers (maintainers): "David Yang <yangxiaohua@everest-semi.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "everest,es8328"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "everest,es8388"

Item 2

Exact value (const): "everest,es8328"

reg — required here #

Maximum number of items (maxItems): 1

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

Exact value (const): 0

clocks — required here #

Array item rules (items) #

Item 1

A 22.5792 or 11.2896 MHz clock

DVDD-supply — required here #

Regulator providing digital core supply voltage 1.8 - 3.6V

AVDD-supply — required here #

Regulator providing analog supply voltage 3.3V

PVDD-supply — required here #

Regulator providing digital IO supply voltage 1.8 - 3.6V

HPVDD-supply — required here #

Regulator providing analog output voltage 3.3V

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", "clocks", "DVDD-supply", "AVDD-supply", "PVDD-supply", "HPVDD-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;
  es8328: codec@11 {
    compatible = "everest,es8328";
    reg = <0x11>;
    AVDD-supply = <&reg_3p3v>;
    DVDD-supply = <&reg_3p3v>;
    HPVDD-supply = <&reg_3p3v>;
    PVDD-supply = <&reg_3p3v>;
    clocks = <&clks 169>;
  };
};

Source notes #

Annotations retained from the schema source

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

Everest ES8375 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Michael Zhang <zhangyi@everest-semi.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "everest,es8375"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

clock for master clock (MCLK)

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

vdda-supply — required here #

Analogue power supply.

vddd-supply — required here #

Interface power supply.

everest,mclk-src — not listed as required here #

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

Represents the MCLK/SCLK pair pins used as the internal clock. 0 represents selecting MCLK. 1 represents selecting SCLK.

Allowed values (enum): 0, 1

Default value (default): 0

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "#sound-dai-cells", "vdda-supply", "vddd-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;
  es8375: codec@18 {
    compatible = "everest,es8375";
    reg = <0x18>;
    vdda-supply = <&vdd3v3>;
    vddd-supply = <&vdd3v3>;
    #sound-dai-cells = <0>;
  };
};

Source notes #

Annotations retained from the schema source

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

Everest ES8389 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Michael Zhang <zhangyi@everest-semi.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "everest,es8389"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

clock for master clock (MCLK)

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

#sound-dai-cells — required here #

Exact value (const): 0

vdda-supply — required here #

Analogue power supply.

vddd-supply — required here #

Interface power supply.

Required in this object (required): "compatible", "reg", "#sound-dai-cells", "vddd-supply", "vdda-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;
  es8389: codec@10 {
    compatible = "everest,es8389";
    reg = <0x10>;
    #sound-dai-cells = <0>;
    vddd-supply = <&vdd3v3>;
    vdda-supply = <&vdd3v3>;
  };
};

Source notes #

Annotations retained from the schema source

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

FourSemi FS2104/5S Digital Audio Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Nick Li <nick.li@foursemi.com>"

The FS2104 is a 15W Inductor-Less, Stereo, Closed-Loop, Digital Input Class-D Power Amplifier with Enhanced Signal Processing. The FS2105S is a 30W Inductor-Less, Stereo, Closed-Loop, Digital Input Class-D Power Amplifier with Enhanced Signal Processing.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "foursemi,fs2104"

Item 2

Exact value (const): "foursemi,fs2105s"

Rule 2

Allowed values (enum): "foursemi,fs2105s"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

The clock of I2S BCLK

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "bclk"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

pvdd-supply — required here #

Regulator for power supply(PVDD in datasheet).

dvdd-supply — required here #

Regulator for digital supply(DVDD in datasheet).

reset-gpios — required here #

Maximum number of items (maxItems): 1

It's the SDZ pin in datasheet, the pin is active low, it will power down and reset the chip to shut down state.

firmware-name — required here #

Maximum number of items (maxItems): 1

The firmware(*.bin) contains: a. Register initialization settings b. DSP effect parameters c. Multi-scene sound effect configurations(optional) It's gernerated by FourSemi's tuning tool.

Required in this object (required): "compatible", "reg", "#sound-dai-cells", "pvdd-supply", "dvdd-supply", "reset-gpios", "firmware-name"

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@68 {
        compatible = "foursemi,fs2105s";
        reg = <0x68>;
        clocks = <&clocks 18>;
        clock-names = "bclk";
        #sound-dai-cells = <0>;
        pvdd-supply = <&pvdd_supply>;
        dvdd-supply = <&dvdd_supply>;
        reset-gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
        firmware-name = "fs2105s-btl-2p0-0s.bin";
        pinctrl-names = "default";
        pinctrl-0 = <&fs210x_pins_default>;
    };
};

Source notes #

Annotations retained from the schema source

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

NXP Audio Subsystem to HDMI RTX Subsystem Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "fsl,imx8mp-aud2htx"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Peripheral clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "bus"

dmas — required here #

Array item rules (items) #

Item 1

DMA controller phandle and request line for TX

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/imx8mp-clock.h>

aud2htx: aud2htx@30cb0000 {
    compatible = "fsl,imx8mp-aud2htx";
    reg = <0x30cb0000 0x10000>;
    interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&audiomix_clk IMX8MP_CLK_AUDIOMIX_AUD2HTX_IPG>;
    clock-names = "bus";
    dmas = <&sdma2 26 2 0>;
    dma-names = "tx";
    power-domains = <&audiomix_pd>;
};

Source notes #

Annotations retained from the schema source

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

NXP Audio Mixer (AUDMIX).

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>", "Frank Li <Frank.Li@nxp.com>"

The Audio Mixer is a on-chip functional module that allows mixing of two audio streams into a single audio stream. Audio Mixer has two input serial audio interfaces. These are driven by two Synchronous Audio interface modules (SAI). Each input serial interface carries 8 audio channels in its frame in TDM manner. Mixer mixes audio samples of corresponding channels from two interfaces into a single sample. Before mixing, audio samples of two inputs can be attenuated based on configuration. The output of the Audio Mixer is also a serial audio interface. Like input interfaces it has the same TDM frame format. This output is used to drive the serial DAC TDM interface of audio codec and also sent to the external pins along with the receive path of normal audio SAI module for readback by the CPU.

The output of Audio Mixer can be selected from any of the three streams
  - serial audio input 1
  - serial audio input 2
  - mixed audio

Mixing operation is independent of audio sample rate but the two audio input streams must have same audio sample rate with same number of channels in TDM frame to be eligible for mixing.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx8qm-audmix", "fsl,imx952-audmix"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ipg"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

dais — not listed as required here #

contain a list of phandles to AUDMIX connected DAIs.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

the AUDMIX output

Maximum number of items (maxItems): 1

Item 2

serial audio input 1

Maximum number of items (maxItems): 1

Item 3

serial audio input 2

Maximum number of items (maxItems): 1

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties matching a name pattern (patternProperties) #

^port@[0-1] — name matches this regular expression

Shared schema rule ($ref): audio-graph-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Input port from SAI TX

Properties and child nodes (properties) #

port@2 — 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.

Output port to SAI RX

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

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8qm-audmix"

When the condition matches (then) #

Required in this object (required): "power-domains"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

audmix@59840000 {
  compatible = "fsl,imx8qm-audmix";
  reg = <0x59840000 0x10000>;
  clocks = <&amix_lpcg 0>;
  clock-names = "ipg";
  power-domains = <&pd_audmix>;
  dais = <&sai4>, <&sai5>;

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

    port@0 {
      reg = <0>;
      playback-only;

      amix_endpoint0: endpoint {
        dai-tdm-slot-num = <8>;
        dai-tdm-slot-width = <32>;
        dai-tdm-slot-width-map = <32 8 32>;
        dai-format = "dsp_a";
        remote-endpoint = <&be00_ep>;
      };
    };

    port@1 {
      reg = <1>;
      playback-only;

      amix_endpoint1: endpoint {
        dai-tdm-slot-num = <8>;
        dai-tdm-slot-width = <32>;
        dai-tdm-slot-width-map = <32 8 32>;
        dai-format = "dsp_a";
        remote-endpoint = <&be01_ep>;
      };
    };

    port@2 {
      reg = <2>;
      capture-only;

      amix_endpoint2: endpoint {
        dai-tdm-slot-num = <8>;
        dai-tdm-slot-width = <32>;
        dai-tdm-slot-width-map = <32 8 32>;
        dai-format = "dsp_a";
        bitclock-master;
        frame-master;
        remote-endpoint = <&be02_ep>;
      };
    };
  };
};

Source notes #

Annotations retained from the schema source

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

NXP Asynchronous Sample Rate Converter (ASRC) Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^easrc@.*"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,imx8mn-easrc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx8mp-easrc"

Item 2

Exact value (const): "fsl,imx8mn-easrc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Peripheral clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mem"

dmas — required here #

Maximum number of items (maxItems): 8

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ctx0_rx"

Item 2

Exact value (const): "ctx0_tx"

Item 3

Exact value (const): "ctx1_rx"

Item 4

Exact value (const): "ctx1_tx"

Item 5

Exact value (const): "ctx2_rx"

Item 6

Exact value (const): "ctx2_tx"

Item 7

Exact value (const): "ctx3_rx"

Item 8

Exact value (const): "ctx3_tx"

firmware-name — required here #

Array item rules (items) #

Item 1

Exact value (const): "imx/easrc/easrc-imx8mn.bin"

The coefficient table for the filters

fsl,asrc-rate — required here #

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

Minimum value (minimum): 8000

Maximum value (maximum): 192000

Defines a mutual sample rate used by DPCM Back Ends

fsl,asrc-format — required here #

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

Allowed values (enum): 2, 6, 10, 32, 36

Default value (default): 2

Defines a mutual sample format used by DPCM Back Ends

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names", "firmware-name", "fsl,asrc-rate", "fsl,asrc-format"

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/clock/imx8mn-clock.h>

easrc: easrc@300c0000 {
    compatible = "fsl,imx8mn-easrc";
    reg = <0x300c0000 0x10000>;
    interrupts = <0x0 122 0x4>;
    clocks = <&clk IMX8MN_CLK_ASRC_ROOT>;
    clock-names = "mem";
    dmas = <&sdma2 16 23 0> , <&sdma2 17 23 0>,
           <&sdma2 18 23 0> , <&sdma2 19 23 0>,
           <&sdma2 20 23 0> , <&sdma2 21 23 0>,
           <&sdma2 22 23 0> , <&sdma2 23 23 0>;
    dma-names = "ctx0_rx", "ctx0_tx",
                "ctx1_rx", "ctx1_tx",
                "ctx2_rx", "ctx2_tx",
                "ctx3_rx", "ctx3_tx";
    firmware-name = "imx/easrc/easrc-imx8mn.bin";
    fsl,asrc-rate = <8000>;
    fsl,asrc-format = <2>;
};

Source notes #

Annotations retained from the schema source

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

Freescale Enhanced Serial Audio Interface (ESAI) Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>", "Frank Li <Frank.Li@nxp.com>"

The Enhanced Serial Audio Interface (ESAI) provides a full-duplex serial port for serial communication with a variety of serial devices, including industry standard codecs, Sony/Phillips Digital Interface (S/PDIF) transceivers, and other DSPs. It has up to six transmitters and four receivers.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,imx35-esai", "fsl,imx6ull-esai", "fsl,vf610-esai"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx8qm-esai"

Item 2

Exact value (const): "fsl,imx6ull-esai"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

The core clock used to access registers.

Item 2

The esai baud clock for esai controller used to derive HCK, SCK and FS.

Item 3

The system clock derived from ahb clock used to derive HCK, SCK and FS.

Item 4

The spba clock is required when ESAI is placed as a bus slave of the Shared Peripheral Bus and when two or more bus masters (CPU, DMA or DSP) try to access it. This property is optional depending on the SoC design.

clock-names — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "extal"

Item 3

Exact value (const): "fsys"

Item 4

Exact value (const): "spba"

dmas — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

fsl,fifo-depth — not listed as required here #

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

Default value (default): 64

The number of elements in the transmit and receive FIFOs. This number is the maximum allowed value for TFCR[TFWM] or RFCR[RFWM].

fsl,esai-synchronous — not listed as required here #

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

This is a boolean property. If present, indicating that ESAI would work in the synchronous mode, which means all the settings for Receiving would be duplicated from Transmission related registers.

big-endian — not listed as required here #

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

If this property is absent, the native endian mode will be in use as default, or the big endian mode will be in use for all the device registers.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "fsl,imx8qm-esai"

When the condition matches (then) #

Required in this object (required): "power-domains"

When the condition does not match (else) #

Properties and child nodes (properties)

power-domains — not listed as required here

false — Not permitted by this property rule.

Examples (examples) #

esai@2024000 {
  compatible = "fsl,imx35-esai";
  reg = <0x02024000 0x4000>;
  interrupts = <0 51 0x04>;
  clocks = <&clks 208>, <&clks 118>, <&clks 208>;
  clock-names = "core", "extal", "fsys";
  dmas = <&sdma 23 21 0>, <&sdma 24 21 0>;
  dma-names = "rx", "tx";
  fsl,fifo-depth = <128>;
  fsl,esai-synchronous;
  big-endian;
};

Source notes #

Annotations retained from the schema source

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

Freescale Asynchronous Sample Rate Converter (ASRC) Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/fsl,imx-asrc.yaml#"

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

The Asynchronous Sample Rate Converter (ASRC) converts the sampling rate of a signal associated with an input clock into a signal associated with a different output clock. The driver currently works as a Front End of DPCM with other Back Ends Audio controller such as ESAI, SSI and SAI. It has three pairs to support three substreams within totally 10 channels.

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,imx35-asrc", "fsl,imx53-asrc", "fsl,imx8qm-asrc", "fsl,imx8qxp-asrc", "fsl,imx952-asrc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx6sx-asrc", "fsl,imx6ul-asrc"

Item 2

Exact value (const): "fsl,imx53-asrc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

dmas — required here #

Maximum number of items (maxItems): 6

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rxa"

Item 2

Exact value (const): "rxb"

Item 3

Exact value (const): "rxc"

Item 4

Exact value (const): "txa"

Item 5

Exact value (const): "txb"

Item 6

Exact value (const): "txc"

clocks — required here #

Maximum number of items (maxItems): 19

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mem"

Item 2

Exact value (const): "ipg"

Item 3

Exact value (const): "asrck_0"

Item 4

Exact value (const): "asrck_1"

Item 5

Exact value (const): "asrck_2"

Item 6

Exact value (const): "asrck_3"

Item 7

Exact value (const): "asrck_4"

Item 8

Exact value (const): "asrck_5"

Item 9

Exact value (const): "asrck_6"

Item 10

Exact value (const): "asrck_7"

Item 11

Exact value (const): "asrck_8"

Item 12

Exact value (const): "asrck_9"

Item 13

Exact value (const): "asrck_a"

Item 14

Exact value (const): "asrck_b"

Item 15

Exact value (const): "asrck_c"

Item 16

Exact value (const): "asrck_d"

Item 17

Exact value (const): "asrck_e"

Item 18

Exact value (const): "asrck_f"

Item 19

Exact value (const): "spba"

power-domains — 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.

fsl,asrc-rate — required here #

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

The mutual sample rate used by DPCM Back Ends

fsl,asrc-width — required here #

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

The mutual sample width used by DPCM Back Ends

Allowed values (enum): 16, 24

fsl,asrc-clk-map — not listed as required here #

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

Defines clock map used in driver <0> - select the map for asrc0 in imx8qm/imx8qxp <1> - select the map for asrc1 in imx8qm/imx8qxp

Allowed values (enum): 0, 1

big-endian — not listed as required here #

Value type (type): "boolean"

If this property is absent, the little endian mode will be in use as default. Otherwise, the big endian mode will be in use for all the device registers.

fsl,asrc-format — not listed as required here #

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

Defines a mutual sample format used by DPCM Back Ends, which can replace the fsl,asrc-width. The value is 2 (S16_LE), or 6 (S24_LE).

Allowed values (enum): 2, 6

Required in this object (required): "compatible", "reg", "interrupts", "dmas", "dma-names", "clocks", "clock-names", "fsl,asrc-rate", "fsl,asrc-width"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8qm-asrc", "fsl,imx8qxp-asrc"

When the condition matches (then) #

Required in this object (required): "fsl,asrc-clk-map"

When the condition does not match (else) #

Properties and child nodes (properties)

fsl,asrc-clk-map — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8qm-asrc", "fsl,imx8qxp-asrc"

When the condition matches (then) #

Required in this object (required): "power-domains"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/imx6qdl-clock.h>
asrc: asrc@2034000 {
    compatible = "fsl,imx53-asrc";
    reg = <0x02034000 0x4000>;
    interrupts = <0 50 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clks IMX6QDL_CLK_ASRC_IPG>,
             <&clks IMX6QDL_CLK_ASRC_MEM>, <&clks 0>,
             <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>,
             <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>,
             <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>,
             <&clks IMX6QDL_CLK_ASRC>, <&clks 0>, <&clks 0>,
             <&clks IMX6QDL_CLK_SPBA>;
    clock-names = "mem", "ipg", "asrck_0",
            "asrck_1", "asrck_2", "asrck_3", "asrck_4",
            "asrck_5", "asrck_6", "asrck_7", "asrck_8",
            "asrck_9", "asrck_a", "asrck_b", "asrck_c",
            "asrck_d", "asrck_e", "asrck_f", "spba";
    dmas = <&sdma 17 23 1>, <&sdma 18 23 1>, <&sdma 19 23 1>,
           <&sdma 20 23 1>, <&sdma 21 23 1>, <&sdma 22 23 1>;
    dma-names = "rxa", "rxb", "rxc",
                "txa", "txb", "txc";
    fsl,asrc-rate = <48000>;
    fsl,asrc-width = <16>;

    port {
        playback-only;

        asrc_endpoint: endpoint {
            remote-endpoint = <&fe00_ep>;
        };
   };
};

Source notes #

Annotations retained from the schema source

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

Freescale i.MX audio complex with ES8328 codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/fsl,imx-audio-es8328.yaml#"

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

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "fsl,imx-audio-es8328"

model — required here #

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

The user-visible name of this sound complex

ssi-controller — required here #

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

The phandle of the i.MX SSI controller

jack-gpio — required here #

Optional GPIO for headphone jack

Maximum number of items (maxItems): 1

audio-amp-supply — required here #

Power regulator for speaker amps

audio-codec — required here #

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

The phandle to the ES8328 audio codec

audio-routing — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names could be power supplies, ES8328 pins, and the jacks on the board:

Power supplies:
  * audio-amp
ES8328 pins:
  * LOUT1
  * LOUT2
  * ROUT1
  * ROUT2
  * LINPUT1
  * LINPUT2
  * RINPUT1
  * RINPUT2
  * Mic PGA
Board connectors:
  * Headphone
  * Speaker
  * Mic Jack

mux-int-port — required here #

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

The internal port of the i.MX audio muxer (AUDMUX)

Allowed values (enum): 1, 2, 7

Default value (default): 1

mux-ext-port — required here #

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

The external port of the i.MX audio muxer (AUDMIX)

Allowed values (enum): 3, 4, 5, 6

Default value (default): 3

Required in this object (required): "compatible", "model", "ssi-controller", "jack-gpio", "audio-amp-supply", "audio-codec", "audio-routing", "mux-int-port", "mux-ext-port"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "fsl,imx-audio-es8328";
    model = "imx-audio-es8328";
    ssi-controller = <&ssi1>;
    audio-codec = <&codec>;
    jack-gpio = <&gpio5 15 0>;
    audio-amp-supply = <&reg_audio_amp>;
    audio-routing =
        "Speaker", "LOUT2",
        "Speaker", "ROUT2",
        "Speaker", "audio-amp",
        "Headphone", "ROUT1",
        "Headphone", "LOUT1",
        "LINPUT1", "Mic Jack",
        "RINPUT1", "Mic Jack",
        "Mic Jack", "Mic Bias";
    mux-int-port = <1>;
    mux-ext-port = <3>;
};

Source notes #

Annotations retained from the schema source

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

NXP imx95 CM7 core

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/fsl,imx95-cm7-sof.yaml#"

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

Maintainers (maintainers): "Daniel Baluta <daniel.baluta@nxp.com>"

NXP imx95 CM7 core used for audio processing

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "fsl,imx95-cm7-sof"

reg — required here #

Maximum number of items (maxItems): 1

reg-names — required here #

Exact value (const): "sram"

memory-region — required here #

Maximum number of items (maxItems): 1

memory-region-names — required here #

Exact value (const): "dma"

port — required here #

SAI3 port

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", "reg-names", "memory-region", "memory-region-names", "port"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): fsl,sof-cpu.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

cm7-cpu@80000000 {
    compatible = "fsl,imx95-cm7-sof";
    reg = <0x80000000 0x6100000>;
    reg-names = "sram";
    mboxes = <&mu7 2 0>, <&mu7 2 1>, <&mu7 3 0>, <&mu7 3 1>;
    mbox-names = "txdb0", "txdb1", "rxdb0", "rxdb1";
    memory-region = <&adma_res>;
    memory-region-names = "dma";
    port {
        /* SAI3-WM8962 link */
        endpoint {
            remote-endpoint = <&wm8962_ep>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

NXP MICFIL Digital Audio Interface (MICFIL)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>"

The MICFIL digital interface provides a 16-bit or 24-bit audio signal from a PDM microphone bitstream in a configurable output sampling rate.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx95-micfil"

Item 2

Exact value (const): "fsl,imx93-micfil"

Rule 2

Allowed values (enum): "fsl,imx8mm-micfil", "fsl,imx8mp-micfil", "fsl,imx93-micfil", "fsl,imx943-micfil"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

Digital Microphone interface interrupt

Item 2

Digital Microphone interface error interrupt

Item 3

voice activity detector event interrupt

Item 4

voice activity detector error interrupt

dmas — required here #

Array item rules (items) #

Item 1

DMA controller phandle and request line for RX

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

clocks — required here #

Array item rules (items) #

Item 1

The ipg clock for register access

Item 2

internal micfil clock

Item 3

PLL clock source for 8kHz series

Item 4

PLL clock source for 11kHz series

Item 5

External clock 3

Minimum number of items (minItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ipg_clk"

Item 2

Exact value (const): "ipg_clk_app"

Item 3

Exact value (const): "pll8k"

Item 4

Exact value (const): "pll11k"

Item 5

Exact value (const): "clkext3"

Minimum number of items (minItems): 2

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

Exact value (const): 0

Required in this object (required): "compatible", "reg", "interrupts", "dmas", "dma-names", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/imx8mm-clock.h>
micfil: audio-controller@30080000 {
    compatible = "fsl,imx8mm-micfil";
    reg = <0x30080000 0x10000>;
    interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clk IMX8MM_CLK_PDM_IPG>,
             <&clk IMX8MM_CLK_PDM_ROOT>;
    clock-names = "ipg_clk", "ipg_clk_app";
    dmas = <&sdma2 24 25 0>;
    dma-names = "rx";
};

Source notes #

Annotations retained from the schema source

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

NXP Medium Quality Sound (MQS)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>", "Chancel Liu <chancel.liu@nxp.com>"

Medium quality sound (MQS) is used to generate medium quality audio via a standard GPIO in the pinmux, allowing the user to connect stereo speakers or headphones to a power amplifier without an additional DAC chip.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx6sx-mqs", "fsl,imx8qm-mqs", "fsl,imx8qxp-mqs", "fsl,imx93-mqs", "fsl,imx943-aonmix-mqs", "fsl,imx943-wakeupmix-mqs", "fsl,imx95-aonmix-mqs", "fsl,imx95-netcmix-mqs"

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

Exact value (const): 0

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

gpr — not listed as required here #

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

The phandle to the General Purpose Register (GPR) node

reg — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — 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", "clocks", "clock-names"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx6sx-mqs", "fsl,imx93-mqs"

When the condition matches (then) #

Required in this object (required): "gpr"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8qm-mqs", "fsl,imx8qxp-mqs"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

Master clock

Item 2

Clock for register access

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "core"

Required in this object (required): "reg", "power-domains"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

Master clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx6sx-clock.h>
mqs0: mqs {
    compatible = "fsl,imx6sx-mqs";
    gpr = <&gpr>;
    clocks = <&clks IMX6SX_CLK_SAI1>;
    clock-names = "mclk";
};
#include <dt-bindings/firmware/imx/rsrc.h>
mqs1: mqs@59850000 {
    compatible = "fsl,imx8qm-mqs";
    reg = <0x59850000 0x10000>;
    clocks = <&mqs0_lpcg 0>, <&mqs0_lpcg 1>;
    clock-names = "mclk", "core";
    power-domains = <&pd IMX_SC_R_MQS_0>;
};

Source notes #

Annotations retained from the schema source

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

Freescale MXS audio complex with SGTL5000 codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/fsl,mxs-audio-sgtl5000.yaml#"

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

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "bluegiga,apx4devkit-sgtl5000", "denx,m28evk-sgtl5000", "fsl,imx28-evk-sgtl5000", "fsl,imx28-mbmx28lc-sgtl5000", "fsl,imx28-tx28-sgtl5000"

Item 2

Exact value (const): "fsl,mxs-audio-sgtl5000"

model — not listed as required here #

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

The user-visible name of this sound complex

saif-controllers — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

The phandle list of the MXS SAIF controller

audio-codec — required here #

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

The phandle of the SGTL5000 audio codec

audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names could be power supplies, SGTL5000 pins, and the jacks on the board:

Power supplies:
  * Mic Bias
SGTL5000 pins:
  * MIC_IN
  * LINE_IN
  * HP_OUT
  * LINE_OUT
Board connectors:
  * Mic Jack
  * Line In Jack
  * Headphone Jack
  * Line Out Jack
  * Ext Spk

Required in this object (required): "compatible", "saif-controllers", "audio-codec"

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) #

sound {
    compatible = "fsl,imx28-evk-sgtl5000", "fsl,mxs-audio-sgtl5000";
    model = "imx28-evk-sgtl5000";
    saif-controllers = <&saif0 &saif1>;
    audio-codec = <&sgtl5000>;
    audio-routing =
        "MIC_IN", "Mic Jack",
        "Mic Jack", "Mic Bias",
        "Headphone Jack", "HP_OUT";
};

Source notes #

Annotations retained from the schema source

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

QMC audio

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/fsl,qmc-audio.yaml#"

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

Maintainers (maintainers): "Herve Codina <herve.codina@bootlin.com>"

The QMC audio is an ASoC component which uses QMC (QUICC Multichannel Controller) channels to transfer the audio data. It provides several DAIs. For each DAI, the DAI is working in interleaved mode if only one QMC channel is used by the DAI or it is working in non-interleaved mode if several QMC channels are used by the DAI.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "fsl,qmc-audio"

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

#sound-dai-cells — required here #

Exact value (const): 1

Properties matching a name pattern (patternProperties) #

^dai@([0-9]|[1-5][0-9]|6[0-3])$ — name matches this regular expression #

A DAI managed by this controller

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — required here

Minimum value (minimum): 0

Maximum value (maximum): 63

The DAI number

fsl,qmc-chan — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items)

Array item rules (items)

Item 1

phandle to QMC node

Item 2

Channel number

Minimum number of items (minItems): 1

Should be a phandle/number pair list. The list of phandle to QMC node and the QMC channel pair to use for this DAI. If only one phandle/number pair is provided, this DAI works in interleaved mode, i.e. audio channels for this DAI are interleaved in the QMC channel. If more than one pair is provided, this DAI works in non-interleave mode. In that case the first audio channel uses the the first QMC channel, the second audio channel uses the second QMC channel, etc...

Required in this object (required): "reg", "fsl,qmc-chan"

Required in this object (required): "compatible", "#address-cells", "#size-cells", "#sound-dai-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

audio_controller: audio-controller {
    compatible = "fsl,qmc-audio";
    #address-cells = <1>;
    #size-cells = <0>;
    #sound-dai-cells = <1>;
    dai@16 {
        reg = <16>;
        fsl,qmc-chan = <&qmc 16>;
    };
    dai@17 {
        reg = <17>;
        fsl,qmc-chan = <&qmc 17>;
    };
    dai@18 {
        reg = <18>;
        /* Non-interleaved mode */
        fsl,qmc-chan = <&qmc 18>, <&qmc 19>;
    };
};

sound {
    compatible = "simple-audio-card";
    #address-cells = <1>;
    #size-cells = <0>;
    simple-audio-card,dai-link@0 {
        reg = <0>;
        format = "dsp_b";
        cpu {
            sound-dai = <&audio_controller 16>;
        };
        codec {
            sound-dai = <&codec1>;
            dai-tdm-slot-num = <4>;
            dai-tdm-slot-width = <8>;
            /* TS 3, 5, 7, 9 */
            dai-tdm-slot-tx-mask = <0 0 0 1 0 1 0 1 0 1>;
            dai-tdm-slot-rx-mask = <0 0 0 1 0 1 0 1 0 1>;
        };
    };
    simple-audio-card,dai-link@1 {
        reg = <1>;
        format = "dsp_b";
        cpu {
            sound-dai = <&audio_controller 17>;
        };
        codec {
            sound-dai = <&codec2>;
            dai-tdm-slot-num = <4>;
            dai-tdm-slot-width = <8>;
            /* TS 2, 4, 6, 8 */
            dai-tdm-slot-tx-mask = <0 0 1 0 1 0 1 0 1>;
            dai-tdm-slot-rx-mask = <0 0 1 0 1 0 1 0 1>;
        };
    };
    simple-audio-card,dai-link@2 {
        reg = <2>;
        format = "dsp_b";
        cpu {
            sound-dai = <&audio_controller 18>;
        };
        codec {
            sound-dai = <&codec3>;
            dai-tdm-slot-num = <2>;
            dai-tdm-slot-width = <8>;
            /* TS 9, 10 */
            dai-tdm-slot-tx-mask = <0 0 0 0 0 0 0 0 0 1 1>;
            dai-tdm-slot-rx-mask = <0 0 0 0 0 0 0 0 0 1 1>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

NXP Audio RPMSG CPU DAI Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>"

fsl_rpmsg is a virtual audio device. Mapping to real hardware devices are SAI, MICFIL, DMA controlled by Cortex M core. What we see from Linux side is a device which provides audio service by rpmsg channel. We can create different sound cards which access different hardwares such as SAI, MICFIL, .etc through building rpmsg channels between Cortex-A and Cortex-M.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,imx7ulp-rpmsg-audio", "fsl,imx8mn-rpmsg-audio", "fsl,imx8mm-rpmsg-audio", "fsl,imx8mp-rpmsg-audio", "fsl,imx8ulp-rpmsg-audio", "fsl,imx93-rpmsg-audio", "fsl,imx95-rpmsg-audio"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx94-rpmsg-audio", "fsl,imx952-rpmsg-audio"

Item 2

Exact value (const): "fsl,imx95-rpmsg-audio"

clocks — not listed as required here #

Array item rules (items) #

Item 1

Peripheral clock for register access

Item 2

Master clock

Item 3

DMA clock for DMA register access

Item 4

Parent clock for multiple of 8kHz sample rates

Item 5

Parent clock for multiple of 11kHz sample rates

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "ipg"

Item 2

Exact value (const): "mclk"

Item 3

Exact value (const): "dma"

Item 4

Exact value (const): "pll8k"

Item 5

Exact value (const): "pll11k"

power-domains — not listed as required here #

List of phandle and PM domain specifier as documented in Documentation/devicetree/bindings/power/power_domain.txt

Maximum number of items (maxItems): 1

memory-region — not listed as required here #

Maximum number of items (maxItems): 1

phandle to a node describing reserved memory (System RAM memory) The M core can't access all the DDR memory space on some platform, So reserved a specific memory for dma buffer which M core can access. (see bindings/reserved-memory/reserved-memory.txt)

audio-codec — not listed as required here #

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

The phandle to a node of audio codec

fsl,enable-lpa — not listed as required here #

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

enable low power audio path.

fsl,rpmsg-out — not listed as required here #

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

This is a boolean property. If present, the transmitting function will be enabled.

fsl,rpmsg-in — not listed as required here #

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

This is a boolean property. If present, the receiving function will be enabled.

fsl,rpmsg-channel-name — not listed as required here #

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

A string property to assign rpmsg channel this sound card sits on. This property can be omitted if there is only one sound card and it sits on "rpmsg-audio-channel".

Allowed values (enum): "rpmsg-audio-channel", "rpmsg-micfil-channel"

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx8mn-clock.h>

rpmsg_audio: rpmsg_audio {
    compatible = "fsl,imx8mn-rpmsg-audio";
    model = "wm8524-audio";
    fsl,enable-lpa;
    fsl,rpmsg-out;
    clocks = <&clk IMX8MN_CLK_SAI3_IPG>,
             <&clk IMX8MN_CLK_SAI3_ROOT>,
             <&clk IMX8MN_CLK_SDMA3_ROOT>,
             <&clk IMX8MN_AUDIO_PLL1_OUT>,
             <&clk IMX8MN_AUDIO_PLL2_OUT>;
    clock-names = "ipg", "mclk", "dma", "pll8k", "pll11k";
};
#include <dt-bindings/clock/imx8mm-clock.h>

rpmsg_micfil: audio-controller {
    compatible = "fsl,imx8mm-rpmsg-audio";
    model = "micfil-audio";
    fsl,rpmsg-channel-name = "rpmsg-micfil-channel";
    fsl,enable-lpa;
    fsl,rpmsg-in;
    clocks = <&clk IMX8MM_CLK_PDM_IPG>,
             <&clk IMX8MM_CLK_PDM_ROOT>,
             <&clk IMX8MM_CLK_SDMA3_ROOT>,
             <&clk IMX8MM_AUDIO_PLL1_OUT>,
             <&clk IMX8MM_AUDIO_PLL2_OUT>;
    clock-names = "ipg", "mclk", "dma", "pll8k", "pll11k";
};

Source notes #

Annotations retained from the schema source

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

Freescale Synchronous Audio Interface (SAI).

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>"

The SAI is based on I2S module that used communicating with audio codecs, which provides a synchronous audio interface that supports fullduplex serial interfaces with frame synchronization such as I2S, AC97, TDM, and codec/DSP interfaces.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx6ul-sai", "fsl,imx7d-sai"

Item 2

Exact value (const): "fsl,imx6sx-sai"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx8mm-sai", "fsl,imx8mn-sai", "fsl,imx8mp-sai"

Item 2

Exact value (const): "fsl,imx8mq-sai"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx6sx-sai", "fsl,imx7ulp-sai", "fsl,imx8mq-sai", "fsl,imx8qm-sai", "fsl,imx8ulp-sai", "fsl,imx93-sai", "fsl,imx95-sai", "fsl,vf610-sai"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx94-sai", "fsl,imx952-sai"

Item 2

Exact value (const): "fsl,imx95-sai"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

The ipg clock for register access

Item 2

master clock source 0 (obsoleted)

Item 3

master clock source 1

Item 4

master clock source 2

Item 5

master clock source 3

Item 6

PLL clock source for 8kHz series

Item 7

PLL clock source for 11kHz series

Minimum number of items (minItems): 4

clock-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "bus"

Item 2

Exact value (const): "mclk0"

Item 3

Exact value (const): "mclk1"

Item 4

Exact value (const): "mclk2"

Item 5

Exact value (const): "mclk3"

Item 6

Exact value (const): "pll8k"

Item 7

Exact value (const): "pll11k"

Minimum number of items (minItems): 5

Rule 2

Array item rules (items)

Item 1

Exact value (const): "bus"

Item 2

Exact value (const): "mclk1"

Item 3

Exact value (const): "mclk2"

Item 4

Exact value (const): "mclk3"

Item 5

Exact value (const): "pll8k"

Item 6

Exact value (const): "pll11k"

Minimum number of items (minItems): 4

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

dmas — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

dma-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Allowed values (enum): "rx", "tx"

Item 2

Exact value (const): "tx"

interrupts — required here #

Array item rules (items) #

Item 1

receive and transmit interrupt

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties and child nodes (properties) #

port@0 — 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.

port for TX and RX

port@1 — 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.

port for TX only

port@2 — 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.

port for RX only

big-endian — not listed as required here #

required if all the SAI registers are big-endian rather than little-endian.

Value type (type): "boolean"

fsl,dataline — not listed as required here #

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

Configure the dataline. It has 3 value for each configuration

Maximum number of items (maxItems): 16

Array item rules (items) #

Array item rules (items)

Item 1

format Default(0), I2S(1) or PDM(2)

Allowed values (enum): 0, 1, 2

Item 2

dataline mask for 'rx'

Item 3

dataline mask for 'tx'

fsl,sai-amix-mode — not listed as required here #

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

The audmix module is bypassed from hardware or not.

Allowed values (enum): "none", "bypass", "audmix"

Default value (default): "none"

fsl,sai-mclk-direction-output — not listed as required here #

SAI will output the SAI MCLK clock.

Value type (type): "boolean"

fsl,sai-synchronous-rx — not listed as required here #

SAI will work in the synchronous mode (sync Tx with Rx) which means both the transmitter and the receiver will send and receive data by following receiver's bit clocks and frame sync clocks.

Value type (type): "boolean"

fsl,sai-asynchronous — not listed as required here #

SAI will work in the asynchronous mode, which means both transmitter and receiver will send and receive data by following their own bit clocks and frame sync clocks separately. If both fsl,sai-asynchronous and fsl,sai-synchronous-rx are absent, the default synchronous mode (sync Rx with Tx) will be used, which means both transmitter and receiver will send and receive data by following clocks of transmitter.

Value type (type): "boolean"

fsl,shared-interrupt — not listed as required here #

Interrupt is shared with other modules.

Value type (type): "boolean"

lsb-first — not listed as required here #

Configures whether the LSB or the MSB is transmitted first for the fifo data. If this property is absent, the MSB is transmitted first as default, or the LSB is transmitted first.

Value type (type): "boolean"

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

Exact value (const): 0

optional, some dts node didn't add it.

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Required in this object (required): "fsl,sai-asynchronous"

When the condition matches (then) #

Properties and child nodes (properties)

fsl,sai-synchronous-rx — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Required in this object (required): "fsl,sai-amix-mode"

When the condition matches (then) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "fsl,imx952-sai"

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "dmas", "dma-names", "interrupts"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/vf610-clock.h>
sai2: sai@40031000 {
    compatible = "fsl,vf610-sai";
    reg = <0x40031000 0x1000>;
    interrupts = <86 IRQ_TYPE_LEVEL_HIGH>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_sai2_1>;
    clocks = <&clks VF610_CLK_PLATFORM_BUS>,
             <&clks VF610_CLK_SAI2>,
             <&clks 0>, <&clks 0>;
    clock-names = "bus", "mclk1", "mclk2", "mclk3";
    dma-names = "rx", "tx";
    dmas = <&edma0 0 20>, <&edma0 0 21>;
    big-endian;
    lsb-first;
};
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/imx8mm-clock.h>
sai1: sai@30010000 {
    compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
    reg = <0x30010000 0x10000>;
    interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clk IMX8MM_CLK_SAI1_IPG>,
             <&clk IMX8MM_CLK_DUMMY>,
             <&clk IMX8MM_CLK_SAI1_ROOT>,
             <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
    clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3";
    dmas = <&sdma2 0 2 0>, <&sdma2 1 2 0>;
    dma-names = "rx", "tx";
    fsl,dataline = <1 0xff 0xff 2 0xff 0x11>;
    #sound-dai-cells = <0>;

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

        port@1 {
            reg = <1>;
            playback-only;

            sai1_endpoint0: endpoint {
               dai-tdm-slot-num = <8>;
               dai-tdm-slot-width = <32>;
               dai-tdm-slot-width-map = <32 8 32>;
               dai-format = "dsp_a";
               bitclock-master;
               frame-master;
               remote-endpoint = <&mcodec01_ep>;
            };
        };

        port@2 {
            reg = <2>;
            capture-only;

            sai1_endpoint1: endpoint {
                dai-tdm-slot-num = <8>;
                dai-tdm-slot-width = <32>;
                dai-tdm-slot-width-map = <32 8 32>;
                dai-format = "dsp_a";
                remote-endpoint = <&fe02_ep>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Freescale MXS Serial Audio Interface (SAIF)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Lukasz Majewski <lukma@denx.de>"

All of these rules must match (allOf) #

Rule 1 #

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

The SAIF is based on I2S module that is used to communicate with audio codecs, but only with half-duplex manner (i.e. it can either transmit or receive PCM audio).

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "fsl,imx28-saif"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

interrupts — required here #

Maximum number of items (maxItems): 1

dmas — required here #

Maximum number of items (maxItems): 1

dma-names — required here #

Exact value (const): "rx-tx"

#clock-cells — not listed as required here #

Configure the I2S device as MCLK clock provider.

Exact value (const): 0

clocks — required here #

Maximum number of items (maxItems): 1

fsl,saif-master — not listed as required here #

Indicate that saif is a slave and its phandle points to master

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

Required in this object (required): "compatible", "reg", "#sound-dai-cells", "interrupts", "dmas", "dma-names", "clocks"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

saif0: saif@80042000 {
    compatible = "fsl,imx28-saif";
    reg = <0x80042000 2000>;
    #sound-dai-cells = <0>;
    interrupts = <59>;
    dmas = <&dma_apbx 4>;
    dma-names = "rx-tx";
    #clock-cells = <0>;
    clocks = <&clks 53>;
};
saif1: saif@80046000 {
    compatible = "fsl,imx28-saif";
    reg = <0x80046000 2000>;
    #sound-dai-cells = <0>;
    interrupts = <58>;
    dmas = <&dma_apbx 5>;
    dma-names = "rx-tx";
    clocks = <&clks 53>;
    fsl,saif-master = <&saif0>;
};

Source notes #

Annotations retained from the schema source

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

Freescale SGTL5000 Stereo Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Fabio Estevam <festevam@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "fsl,sgtl5000"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

assigned-clock-parents — not listed as required here #

true — No constraints added by this property rule.

assigned-clock-rates — not listed as required here #

true — No constraints added by this property rule.

assigned-clocks — not listed as required here #

true — No constraints added by this property rule.

clocks — required here #

Array item rules (items) #

Item 1

the clock provider of SYS_MCLK

VDDA-supply — required here #

the regulator provider of VDDA

VDDIO-supply — required here #

the regulator provider of VDDIO

VDDD-supply — not listed as required here #

the regulator provider of VDDD

micbias-resistor-k-ohms — not listed as required here #

The bias resistor to be used in kOhms. The resistor can take values of 2k, 4k or 8k. If set to 0 it will be off. If this node is not mentioned or if the value is unknown, then micbias resistor is set to 4k.

Allowed values (enum): 0, 2, 4, 8

micbias-voltage-m-volts — not listed as required here #

The bias voltage to be used in mVolts. The voltage can take values from 1.25V to 3V by 250mV steps. If this node is not mentioned or the value is unknown, then the value is set to 1.25V.

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

Allowed values (enum): 1250, 1500, 1750, 2000, 2250, 2500, 2750, 3000

lrclk-strength — not listed as required here #

The LRCLK pad strength. Possible values are: 0, 1, 2 and 3 as per the table below:

  VDDIO		1.8V		2.5V		3.3V
  0 =		Disable
  1 =		1.66 mA		2.87 mA		4.02  mA
  2 =		3.33 mA		5.74 mA		8.03  mA
  3 =		4.99 mA		8.61 mA		12.05 mA

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

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

sclk-strength — not listed as required here #

The SCLK pad strength. Possible values are: 0, 1, 2 and 3 as per the table below:

  VDDIO		1.8V		2.5V		3.3V
  0 =		Disable
  1 =		1.66 mA		2.87 mA		4.02  mA
  2 =		3.33 mA		5.74 mA		8.03  mA
  3 =		4.99 mA		8.61 mA		12.05 mA

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

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

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", "#sound-dai-cells", "clocks", "VDDA-supply", "VDDIO-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

    codec@a {
        compatible = "fsl,sgtl5000";
        reg = <0x0a>;
        #sound-dai-cells = <0>;
        clocks = <&clks 150>;
        micbias-resistor-k-ohms = <2>;
        micbias-voltage-m-volts = <2250>;
        VDDA-supply = <&reg_3p3v>;
        VDDIO-supply = <&reg_3p3v>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only

NXP audio processor common properties

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/fsl,sof-cpu.yaml#"

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

Maintainers (maintainers): "Daniel Baluta <daniel.baluta@nxp.com>"

Properties and child nodes (properties) #

mboxes — required here #

Maximum number of items (maxItems): 4

mbox-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "txdb0"

Item 2

Exact value (const): "txdb1"

Item 3

Exact value (const): "rxdb0"

Item 4

Exact value (const): "rxdb1"

Required in this object (required): "mboxes", "mbox-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Freescale Sony/Philips Digital Interface Format (S/PDIF) Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>"

The Freescale S/PDIF audio block is a stereo transceiver that allows the processor to receive and transmit digital audio via an coaxial cable or a fibre cable.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx35-spdif", "fsl,imx6sx-spdif", "fsl,imx8mm-spdif", "fsl,imx8mn-spdif", "fsl,imx8mq-spdif", "fsl,imx8qm-spdif", "fsl,imx8qxp-spdif", "fsl,imx8ulp-spdif", "fsl,vf610-spdif"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx6sl-spdif", "fsl,imx6sx-spdif"

Item 2

Exact value (const): "fsl,imx35-spdif"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Combined or receive interrupt

Item 2

Transmit interrupt

dmas — required here #

Array item rules (items) #

Item 1

DMA controller phandle and request line for RX

Item 2

DMA controller phandle and request line for TX

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

clocks — required here #

Array item rules (items) #

Item 1

The core clock of spdif controller.

Item 2

Clock for tx0 and rx0.

Item 3

Clock for tx1 and rx1.

Item 4

Clock for tx2 and rx2.

Item 5

Clock for tx3 and rx3.

Item 6

Clock for tx4 and rx4.

Item 7

Clock for tx5 and rx5.

Item 8

Clock for tx6 and rx6.

Item 9

Clock for tx7 and rx7.

Item 10

The spba clock is required when SPDIF is placed as a bus slave of the Shared Peripheral Bus and when two or more bus masters (CPU, DMA or DSP) try to access it. This property is optional depending on the SoC design.

Item 11

PLL clock source for 8kHz series rate, optional.

Item 12

PLL clock source for 11khz series rate, optional.

Minimum number of items (minItems): 9

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "rxtx0"

Item 3

Exact value (const): "rxtx1"

Item 4

Exact value (const): "rxtx2"

Item 5

Exact value (const): "rxtx3"

Item 6

Exact value (const): "rxtx4"

Item 7

Exact value (const): "rxtx5"

Item 8

Exact value (const): "rxtx6"

Item 9

Exact value (const): "rxtx7"

Item 10

Exact value (const): "spba"

Item 11

Exact value (const): "pll8k"

Item 12

Exact value (const): "pll11k"

Minimum number of items (minItems): 9

big-endian — not listed as required here #

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

If this property is absent, the native endian mode will be in use as default, or the big endian mode will be in use for all the device registers. Set this flag for HCDs with big endian descriptors and big endian registers.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "dmas", "dma-names", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "fsl,imx8qm-spdif", "fsl,imx8qxp-spdif"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 2

When the condition does not match (else) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 1

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8qm-spdif", "fsl,imx8qxp-spdif"

When the condition matches (then) #

Required in this object (required): "power-domains"

Examples (examples) #

spdif@2004000 {
    compatible = "fsl,imx35-spdif";
    reg = <0x02004000 0x4000>;
    interrupts = <0 52 0x04>;
    dmas = <&sdma 14 18 0>,
           <&sdma 15 18 0>;
    dma-names = "rx", "tx";
    clocks = <&clks 197>, <&clks 3>,
             <&clks 197>, <&clks 107>,
             <&clks 0>, <&clks 118>,
             <&clks 62>, <&clks 139>,
             <&clks 0>;
    clock-names = "core", "rxtx0",
                  "rxtx1", "rxtx2",
                  "rxtx3", "rxtx4",
                  "rxtx5", "rxtx6",
                  "rxtx7";
    big-endian;
};

Source notes #

Annotations retained from the schema source

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

Freescale Synchronous Serial Interface

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>"

Notes on fsl,playback-dma and fsl,capture-dma On SOCs that have an SSI, specific DMA channels are hard-wired for playback and capture. On the MPC8610, for example, SSI1 must use DMA channel 0 for playback and DMA channel 1 for capture. SSI2 must use DMA channel 2 for playback and DMA channel 3 for capture. The developer can choose which DMA controller to use, but the channels themselves are hard-wired. The purpose of these two properties is to represent this hardware design. The device tree nodes for the DMA channels that are referenced by "fsl,playback-dma" and "fsl,capture-dma" must be marked as compatible with "fsl,ssi-dma-channel". The SOC-specific compatible string (e.g. "fsl,mpc8610-dma-channel") can remain. If these nodes are left as "fsl,elo-dma-channel" or "fsl,eloplus-dma-channel", then the generic Elo DMA drivers (fsldma) will attempt to use them, and it will conflict with the sound drivers.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx50-ssi", "fsl,imx53-ssi"

Item 2

Exact value (const): "fsl,imx51-ssi"

Item 3

Exact value (const): "fsl,imx21-ssi"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx25-ssi", "fsl,imx27-ssi", "fsl,imx35-ssi", "fsl,imx51-ssi"

Item 2

Exact value (const): "fsl,imx21-ssi"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx6q-ssi", "fsl,imx6sl-ssi", "fsl,imx6sx-ssi"

Item 2

Exact value (const): "fsl,imx51-ssi"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "fsl,imx21-ssi"

Rule 5

Array item rules (items)

Item 1

Exact value (const): "fsl,mpc8610-ssi"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

The ipg clock for register access

Item 2

clock for SSI master mode

Minimum number of items (minItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "ipg"

Item 2

Exact value (const): "baud"

Minimum number of items (minItems): 1

dmas — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

DMA controller phandle and request line for RX

Item 2

DMA controller phandle and request line for TX

Rule 2

Array item rules (items)

Item 1

DMA controller phandle and request line for RX0

Item 2

DMA controller phandle and request line for TX0

Item 3

DMA controller phandle and request line for RX1

Item 4

DMA controller phandle and request line for TX1

dma-names — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "rx0"

Item 2

Exact value (const): "tx0"

Item 3

Exact value (const): "rx1"

Item 4

Exact value (const): "tx1"

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

Exact value (const): 0

optional, some dts node didn't add it.

cell-index — not listed as required here #

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

Allowed values (enum): 0, 1, 2

The SSI index

ac97-gpios — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Please refer to soc-ac97link.txt

codec-handle — not listed as required here #

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

Phandle to a 'codec' node that defines an audio codec connected to this SSI. This node is typically a child of an I2C or other control node.

fsl,fifo-depth — required here #

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

The number of elements in the transmit and receive FIFOs. This number is the maximum allowed value for SFCSR[TFWM0].

Allowed values (enum): 8, 15

fsl,fiq-stream-filter — not listed as required here #

Value type (type): "boolean"

Disabled DMA and use FIQ instead to filter the codec stream. This is necessary for some boards where an incompatible codec is connected to this SSI, e.g. on pca100 and pcm043.

fsl,mode — not listed as required here #

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

Allowed values (enum): "ac97-slave", "ac97-master", "i2s-slave", "i2s-master", "lj-slave", "lj-master", "rj-slave", "rj-master"

"ac97-slave" - AC97 mode, SSI is clock slave "ac97-master" - AC97 mode, SSI is clock master "i2s-slave" - I2S mode, SSI is clock slave "i2s-master" - I2S mode, SSI is clock master "lj-slave" - Left justified mode, SSI is clock slave "lj-master" - Left justified mode, SSI is clock master "rj-slave" - Right justified mode, SSI is clock slave "rj-master" - Right justified mode, SSI is clock master

fsl,ssi-asynchronous — not listed as required here #

Value type (type): "boolean"

If specified, the SSI is to be programmed in asynchronous mode. In this mode, pins SRCK, STCK, SRFS, and STFS must all be connected to valid signals. In synchronous mode, SRCK and SRFS are ignored. Asynchronous mode allows playback and capture to use different sample sizes and sample rates. Some drivers may require that SRCK and STCK be connected together, and SRFS and STFS be connected together. This would still allow different sample sizes, but not different sample rates.

fsl,playback-dma — not listed as required here #

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

Phandle to a node for the DMA channel to use for playback of audio. This is typically dictated by SOC design. Only used on Power Architecture.

fsl,capture-dma — not listed as required here #

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

Phandle to a node for the DMA channel to use for capture (recording) of audio. This is typically dictated by SOC design. Only used on Power Architecture.

Required in this object (required): "compatible", "reg", "interrupts", "fsl,fifo-depth"

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/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/imx6qdl-clock.h>
ssi@2028000 {
    compatible = "fsl,imx6q-ssi", "fsl,imx51-ssi";
    reg = <0x02028000 0x4000>;
    interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clks IMX6QDL_CLK_SSI1_IPG>,
             <&clks IMX6QDL_CLK_SSI1>;
    clock-names = "ipg", "baud";
    dmas = <&sdma 37 1 0>, <&sdma 38 1 0>;
    dma-names = "rx", "tx";
    #sound-dai-cells = <0>;
    fsl,fifo-depth = <15>;
};

Source notes #

Annotations retained from the schema source

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

NXP Audio Transceiver (XCVR) Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Viorel Suman <viorel.suman@nxp.com>"

NXP XCVR (Audio Transceiver) is a on-chip functional module that allows CPU to receive and transmit digital audio via HDMI2.1 eARC, HDMI1.4 ARC and SPDIF.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^xcvr@.*"

compatible — required here #

Allowed values (enum): "fsl,imx8mp-xcvr", "fsl,imx93-xcvr", "fsl,imx95-xcvr"

reg — required here #

Array item rules (items) #

Item 1

20K RAM for code and data

Item 2

registers space

Item 3

RX FIFO address

Item 4

TX FIFO address

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ram"

Item 2

Exact value (const): "regs"

Item 3

Exact value (const): "rxfifo"

Item 4

Exact value (const): "txfifo"

interrupts — required here #

Array item rules (items) #

Item 1

WAKEUPMIX Audio XCVR Interrupt 1

Item 2

WAKEUPMIX Audio XCVR Interrupt 2

Item 3

SPDIF wakeup interrupt from PHY

Minimum number of items (minItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Peripheral clock

Item 2

PHY clock

Item 3

SPBA clock

Item 4

PLL clock

Item 5

PLL clock source for 8kHz series

Item 6

PLL clock source for 11kHz series

Minimum number of items (minItems): 4

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ipg"

Item 2

Exact value (const): "phy"

Item 3

Exact value (const): "spba"

Item 4

Exact value (const): "pll_ipg"

Item 5

Exact value (const): "pll8k"

Item 6

Exact value (const): "pll11k"

Minimum number of items (minItems): 4

dmas — required here #

Array item rules (items) #

Item 1

DMA controller phandle and request line for RX

Item 2

DMA controller phandle and request line for TX

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "clocks", "clock-names", "dmas", "dma-names"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "fsl,imx8mp-xcvr"

When the condition matches (then) #

Required in this object (required): "resets"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx93-xcvr", "fsl,imx95-xcvr"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

When the condition does not match (else) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8mp-xcvr", "fsl,imx93-xcvr"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Maximum number of items (maxItems): 4

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/imx8mp-clock.h>
#include <dt-bindings/reset/imx8mp-reset.h>

xcvr: xcvr@30cc0000 {
    compatible = "fsl,imx8mp-xcvr";
    reg = <0x30cc0000 0x800>,
          <0x30cc0800 0x400>,
          <0x30cc0c00 0x080>,
          <0x30cc0e00 0x080>;
    reg-names = "ram", "regs", "rxfifo", "txfifo";
    interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&audiomix_clk IMX8MP_CLK_AUDIOMIX_EARC_IPG>,
             <&audiomix_clk IMX8MP_CLK_AUDIOMIX_EARC_PHY>,
             <&audiomix_clk IMX8MP_CLK_AUDIOMIX_SPBA2_ROOT>,
             <&audiomix_clk IMX8MP_CLK_AUDIOMIX_AUDPLL_ROOT>;
    clock-names = "ipg", "phy", "spba", "pll_ipg";
    dmas = <&sdma2 30 2 0>, <&sdma2 31 2 0>;
    dma-names = "rx", "tx";
    resets = <&audiomix_reset 0>;
};

Source notes #

Annotations retained from the schema source

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

Freescale Generic ASoC Sound Card with ASRC support

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/fsl-asoc-card.yaml#"

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

The Freescale Generic ASoC Sound Card can be used, ideally, for all Freescale SoCs connecting with external CODECs. The idea of this generic sound card is a bit like ASoC Simple Card. However, for Freescale SoCs (especially those released in recent years), most of them have ASRC inside. And this is a specific feature that might be painstakingly controlled and merged into the Simple Card. So having this generic sound card allows all Freescale SoC users to benefit from the simplification of a new card support and the capability of the wide sample rates support through ASRC. Note, The card is initially designed for those sound cards who use AC'97, I2S and PCM DAI formats. However, it'll be also possible to support those non AC'97/I2S/PCM type sound cards, such as S/PDIF audio and HDMI audio, as long as the driver has been properly upgraded.

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx-sgtl5000", "fsl,imx25-pdk-sgtl5000", "fsl,imx53-cpuvo-sgtl5000", "fsl,imx51-babbage-sgtl5000", "fsl,imx53-m53evk-sgtl5000", "fsl,imx53-qsb-sgtl5000", "fsl,imx53-voipac-sgtl5000", "fsl,imx6-armadeus-sgtl5000", "fsl,imx6-rex-sgtl5000", "fsl,imx6-sabreauto-cs42888", "fsl,imx6-wandboard-sgtl5000", "fsl,imx6dl-nit6xlite-sgtl5000", "fsl,imx6q-ba16-sgtl5000", "fsl,imx6q-nitrogen6_max-sgtl5000", "fsl,imx6q-nitrogen6_som2-sgtl5000", "fsl,imx6q-nitrogen6x-sgtl5000", "fsl,imx6q-sabrelite-sgtl5000", "fsl,imx6q-sabresd-wm8962", "fsl,imx6q-udoo-ac97", "fsl,imx6q-ventana-sgtl5000", "fsl,imx6sl-evk-wm8962", "fsl,imx6sx-sdb-mqs", "fsl,imx6sx-sdb-wm8962", "fsl,imx7d-evk-wm8960", "karo,tx53-audio-sgtl5000", "tq,imx53-mba53-sgtl5000"

Item 2

Allowed values (enum): "fsl,imx-audio-ac97", "fsl,imx-audio-cs42888", "fsl,imx-audio-mqs", "fsl,imx-audio-sgtl5000", "fsl,imx-audio-wm8960", "fsl,imx-audio-wm8962"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx-sabreauto-spdif", "fsl,imx6sx-sdb-spdif"

Item 2

Exact value (const): "fsl,imx-audio-spdif"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx-audio-ac97", "fsl,imx-audio-cs42888", "fsl,imx-audio-cs427x", "fsl,imx-audio-mqs", "fsl,imx-audio-nau8822", "fsl,imx-audio-sgtl5000", "fsl,imx-audio-si476x", "fsl,imx-audio-tlv320", "fsl,imx-audio-tlv320aic31xx", "fsl,imx-audio-tlv320aic32x4", "fsl,imx-audio-wm8524", "fsl,imx-audio-wm8904", "fsl,imx-audio-wm8960", "fsl,imx-audio-wm8962", "fsl,imx-audio-wm8958", "fsl,imx-audio-spdif"

model — required here #

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

The user-visible name of this sound complex

audio-asrc — not listed as required here #

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

The phandle of ASRC. It can be absent if there's no need to add ASRC support via DPCM.

audio-codec — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

The phandle of an audio codec. With "fsl,imx-audio-spdif", either SPDIF audio codec spdif_transmitter, spdif_receiver or both.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Array item rules (items) #

Maximum number of items (maxItems): 1

audio-cpu — not listed as required here #

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

The phandle of an CPU DAI controller

audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. There're a few pre-designed board connectors. "AMIC" stands for Analog Microphone Jack. "DMIC" stands for Digital Microphone Jack. The "Mic Jack" and "AMIC" are redundant while coexisting in order to support the old bindings of wm8962 and sgtl5000.

hp-det-gpio — not listed as required here #

Deprecated (deprecated): true

Maximum number of items (maxItems): 1

The GPIO that detect headphones are plugged in

hp-det-gpios — not listed as required here #

Maximum number of items (maxItems): 1

The GPIO that detect headphones are plugged in

mic-det-gpio — not listed as required here #

Deprecated (deprecated): true

Maximum number of items (maxItems): 1

The GPIO that detect microphones are plugged in

mic-det-gpios — not listed as required here #

Maximum number of items (maxItems): 1

The GPIO that detect microphones are plugged in

bitclock-master — not listed as required here #

Shared schema rule ($ref): simple-card.yaml#/definitions/bitclock-master

Indicates dai-link bit clock master.

frame-master — not listed as required here #

Shared schema rule ($ref): simple-card.yaml#/definitions/frame-master

Indicates dai-link frame master.

format — not listed as required here #

Shared schema rule ($ref): simple-card.yaml#/definitions/format

audio format.

frame-inversion — not listed as required here #

Shared schema rule ($ref): simple-card.yaml#/definitions/frame-inversion

dai-link uses frame clock inversion.

bitclock-inversion — not listed as required here #

Shared schema rule ($ref): simple-card.yaml#/definitions/bitclock-inversion

dai-link uses bit clock inversion.

mclk-id — not listed as required here #

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

Main clock id for each codec, specific for each card configuration.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

mux-int-port — not listed as required here #

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

Allowed values (enum): 1, 2, 7

The internal port of the i.MX audio muxer (AUDMUX)

mux-ext-port — not listed as required here #

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

Allowed values (enum): 3, 4, 5, 6

The external port of the i.MX audio muxer

ssi-controller — not listed as required here #

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

The phandle of an CPU DAI controller

spdif-controller — not listed as required here #

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

Deprecated (deprecated): true

The phandle of an S/PDIF CPU DAI controller.

spdif-out — not listed as required here #

Value type (type): "boolean"

Deprecated (deprecated): true

If present, the transmitting function of S/PDIF will be enabled, indicating there's a physical S/PDIF out connector or jack on the board or it's connecting to some other IP block, such as an HDMI encoder or display-controller.

spdif-in — not listed as required here #

Value type (type): "boolean"

Deprecated (deprecated): true

If present, the receiving function of S/PDIF will be enabled, indicating there is a physical S/PDIF in connector/jack on the board.

Required in this object (required): "compatible", "model"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound-cs42888 {
    compatible = "fsl,imx-audio-cs42888";
    model = "cs42888-audio";
    audio-cpu = <&esai>;
    audio-asrc = <&asrc>;
    audio-codec = <&cs42888>;
    audio-routing =
         "Line Out Jack", "AOUT1L",
         "Line Out Jack", "AOUT1R",
         "Line Out Jack", "AOUT2L",
         "Line Out Jack", "AOUT2R",
         "Line Out Jack", "AOUT3L",
         "Line Out Jack", "AOUT3R",
         "Line Out Jack", "AOUT4L",
         "Line Out Jack", "AOUT4R",
         "AIN1L", "Line In Jack",
         "AIN1R", "Line In Jack",
         "AIN2L", "Line In Jack",
         "AIN2R", "Line In Jack";
};
sound-spdif-asrc {
    compatible = "fsl,imx-audio-spdif";
    model = "spdif-asrc-audio";
    audio-cpu = <&spdif>;
    audio-asrc = <&easrc>;
    audio-codec = <&spdifdit>, <&spdifdir>;
};

Source notes #

Annotations retained from the schema source

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

Google Chameleon v3 audio codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/google,chv3-codec.yaml#"

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

Maintainers (maintainers): "Paweł Anikiel <pan@semihalf.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "google,chv3-codec"

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

Exact value (const): 0

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

audio-codec {
    compatible = "google,chv3-codec";
};

Source notes #

Annotations retained from the schema source

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

Google Chameleon v3 I2S device

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/google,chv3-i2s.yaml#"

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

Maintainers (maintainers): "Paweł Anikiel <pan@semihalf.com>"

I2S device for the Google Chameleon v3. The device handles both RX and TX using a producer/consumer ring buffer design.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "google,chv3-i2s"

reg — required here #

Array item rules (items) #

Item 1

core registers

Item 2

irq registers

interrupts — required here #

Maximum number of items (maxItems): 1

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

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

i2s@c0060300 {
    compatible = "google,chv3-i2s";
    reg = <0xc0060300 0x100>,
          <0xc0060f00 0x10>;
    interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

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

Audio codec controlled by ChromeOS EC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/google,cros-ec-codec.yaml#"

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

Maintainers (maintainers): "Cheng-Yi Chiang <cychiang@chromium.org>", "Tzung-Bi Shih <tzungbi@kernel.org>"

Google's ChromeOS EC codec is a digital mic codec provided by the Embedded Controller (EC) and is controlled via a host-command interface. An EC codec node should only be found inside the "codecs" subnode of a cros-ec node. (see Documentation/devicetree/bindings/embedded-controller/google,cros-ec.yaml).

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "google,cros-ec-codec"

#sound-dai-cells — required here #

Exact value (const): 1

reg — not listed as required here #

Array item rules (items) #

Item 1

Physical base address and length of shared memory region from EC. It contains 3 unsigned 32-bit integer. The first 2 integers combine to become an unsigned 64-bit physical address. The last one integer is the length of the shared memory.

memory-region — not listed as required here #

Maximum number of items (maxItems): 1

Shared memory region to EC. A "shared-dma-pool". See ../reserved-memory/reserved-memory.txt for details.

Required in this object (required): "compatible", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

reserved_mem: reserved-mem@52800000 {
    compatible = "shared-dma-pool";
    reg = <0x52800000 0x100000>;
    no-map;
};
spi {
    #address-cells = <1>;
    #size-cells = <0>;
    cros-ec@0 {
        compatible = "google,cros-ec-spi";
        reg = <0>;
        interrupts = <93 0>;

        codecs {
            #address-cells = <2>;
            #size-cells = <1>;

            cros_ec_codec: ec-codec@10500000 {
                compatible = "google,cros-ec-codec";
                #sound-dai-cells = <1>;
                reg = <0x0 0x10500000 0x80000>;
                memory-region = <&reserved_mem>;
            };

        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only

Android Goldfish Audio

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/google,goldfish-audio.yaml#"

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

Maintainers (maintainers): "Kuan-Wei Chiu <visitorckw@gmail.com>"

Android goldfish audio device generated by Android emulator.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "google,goldfish-audio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

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

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound@9030000 {
    compatible = "google,goldfish-audio";
    reg = <0x9030000 0x100>;
    interrupts = <4>;
};

Source notes #

Annotations retained from the schema source

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

Google SC7180-Trogdor ASoC sound card driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/google,sc7180-trogdor.yaml#"

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

Maintainers (maintainers): "Rohit kumar <quic_rohkumar@quicinc.com>", "Cheng-Yi Chiang <cychiang@chromium.org>"

This binding describes the SC7180 sound card which uses LPASS for audio.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "google,sc7180-trogdor", "google,sc7180-coachz"

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

dmic-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO for switching between DMICs

Properties matching a name pattern (patternProperties) #

^dai-link(@[0-9])?$ — name matches this regular expression #

Each subnode represents a dai link. Subnodes of each dai links would be cpu/codec dais.

Value type (type): "object"

Properties and child nodes (properties) #

link-name — required here

Indicates dai-link name and PCM stream name.

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

Maximum number of items (maxItems): 1

reg — not listed as required here

Maximum number of items (maxItems): 1

dai link address.

cpu — required here

Holds subnode which indicates cpu dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

sound-dai — not listed as required here

Maximum number of items (maxItems): 1

codec — required here

Holds subnode which indicates codec dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

sound-dai — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Required in this object (required): "link-name", "cpu", "codec"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "#address-cells", "#size-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "google,sc7180-trogdor";
    model = "sc7180-rt5682-max98357a-2mic";

    audio-routing =
                "Headphone Jack", "HPOL",
                "Headphone Jack", "HPOR";

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

    dmic-gpios = <&tlmm 86 0>;

    dai-link@0 {
        link-name = "MultiMedia0";
        reg = <0>;
        cpu {
            sound-dai = <&lpass_cpu 0>;
        };

        codec {
            sound-dai = <&alc5682 0>;
        };
    };

    dai-link@1 {
        link-name = "MultiMedia1";
        reg = <1>;
        cpu {
            sound-dai = <&lpass_cpu 1>;
        };

        codec {
            sound-dai = <&max98357a>;
        };
    };

    dai-link@2 {
        link-name = "MultiMedia2";
        reg = <2>;
        cpu {
            sound-dai = <&lpass_hdmi 0>;
        };

        codec {
            sound-dai = <&msm_dp>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Google SC7280-Herobrine ASoC sound card driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/google,sc7280-herobrine.yaml#"

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

Maintainers (maintainers): "Judy Hsiao <judyhsiao@chromium.org>"

This binding describes the SC7280 sound card which uses LPASS for audio.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "google,sc7280-herobrine"

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^dai-link@[0-9a-f]$ — name matches this regular expression #

Each subnode represents a dai link. Subnodes of each dai links would be cpu/codec dais.

Value type (type): "object"

Properties and child nodes (properties) #

link-name — required here

Indicates dai-link name and PCM stream name.

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

Maximum number of items (maxItems): 1

reg — required here

Maximum number of items (maxItems): 1

dai link address.

cpu — required here

Holds subnode which indicates cpu dai.

Value type (type): "object"

Properties and child nodes (properties)

sound-dai — required here

true — No constraints added by this property rule.

Required in this object (required): "sound-dai"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

codec — required here

Holds subnode which indicates codec dai.

Value type (type): "object"

Properties and child nodes (properties)

sound-dai — required here

true — No constraints added by this property rule.

Required in this object (required): "sound-dai"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

platform — not listed as required here

Holds subnode which includes the phandle of q6apm platform device.

Value type (type): "object"

Properties and child nodes (properties)

sound-dai — required here

Maximum number of items (maxItems): 1

Required in this object (required): "sound-dai"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Required in this object (required): "link-name", "cpu", "codec", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "#address-cells", "#size-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/sound/qcom,lpass.h>
sound {
    compatible = "google,sc7280-herobrine";
    model = "sc7280-wcd938x-max98360a-4dmic";

    audio-routing =
        "IN1_HPHL", "HPHL_OUT",
        "IN2_HPHR", "HPHR_OUT",
        "AMIC1", "MIC BIAS1",
        "AMIC2", "MIC BIAS2",
        "VA DMIC0", "MIC BIAS3",
        "VA DMIC1", "MIC BIAS3",
        "VA DMIC2", "MIC BIAS4",
        "VA DMIC3", "MIC BIAS4",
        "TX SWR_ADC0", "ADC1_OUTPUT",
        "TX SWR_ADC1", "ADC2_OUTPUT",
        "TX SWR_ADC2", "ADC3_OUTPUT",
        "TX SWR_DMIC0", "DMIC1_OUTPUT",
        "TX SWR_DMIC1", "DMIC2_OUTPUT",
        "TX SWR_DMIC2", "DMIC3_OUTPUT",
        "TX SWR_DMIC3", "DMIC4_OUTPUT";

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

    dai-link@0 {
        link-name = "WCD Playback";
        reg = <LPASS_CDC_DMA_RX0>;
        cpu {
            sound-dai = <&lpass_cpu LPASS_CDC_DMA_RX0>;
        };

        codec {
            sound-dai = <&wcd938x 0>, <&swr0 0>, <&rxmacro 0>;
        };
    };
    dai-link@1 {
        link-name = "WCD Capture";
        reg = <LPASS_CDC_DMA_TX3>;
        cpu {
            sound-dai = <&lpass_cpu LPASS_CDC_DMA_TX3>;
        };

        codec {
            sound-dai = <&wcd938x 1>, <&swr1 0>, <&txmacro 0>;
        };
    };

    dai-link@2 {
        link-name = "MI2S Playback";
        reg = <MI2S_SECONDARY>;
        cpu {
            sound-dai = <&lpass_cpu MI2S_SECONDARY>;
        };

        codec {
            sound-dai = <&max98360a>;
        };
    };

    dai-link@3 {
        link-name = "DMIC Capture";
        reg = <LPASS_CDC_DMA_VA_TX0>;
        cpu {
            sound-dai = <&lpass_cpu LPASS_CDC_DMA_VA_TX0>;
        };

        codec {
            sound-dai = <&vamacro 0>;
        };
    };

    dai-link@5 {
        link-name = "DP Playback";
        reg = <LPASS_DP_RX>;
        cpu {
            sound-dai = <&lpass_cpu LPASS_DP_RX>;
        };

        codec {
            sound-dai = <&mdss_dp>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

NXP i.MX audio sound card.

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/imx-audio-card.yaml#"

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

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx-audio-card"

Properties matching a name pattern (patternProperties) #

.*-dai-link$ — name matches this regular expression #

Each subnode represents a dai link. Subnodes of each dai links would be cpu/codec dais.

Value type (type): "object"

Properties and child nodes (properties) #

link-name — required here

Indicates dai-link name and PCM stream name.

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

Maximum number of items (maxItems): 1

format — not listed as required here

audio format.

Array item rules (items)

Allowed values (enum): "i2s", "dsp_b"

dai-tdm-slot-num — not listed as required here

see tdm-slot.txt.

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

dai-tdm-slot-width — not listed as required here

see tdm-slot.txt.

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

playback-only — not listed as required here

link is used only for playback

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

capture-only — not listed as required here

link is used only for capture

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

cpu — required here

Holds subnode which indicates cpu dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

sound-dai — not listed as required here

Maximum number of items (maxItems): 1

codec — not listed as required here

Holds subnode which indicates codec dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

sound-dai — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

fsl,mclk-equal-bclk — not listed as required here

Indicates mclk can be equal to bclk, especially for sai interface

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

Required in this object (required): "link-name", "cpu"

All of these rules must match (allOf) #

Rule 1

This rule must not match (not)

Required in this object (required): "playback-only", "capture-only"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound-ak4458 {
    compatible = "fsl,imx-audio-card";
    model = "ak4458-audio";
    pri-dai-link {
        link-name = "akcodec";
        format = "i2s";
        fsl,mclk-equal-bclk;
        cpu {
             sound-dai = <&sai1>;
        };
        codec {
             sound-dai = <&ak4458_1>, <&ak4458_2>;
        };
    };
    fe-dai-link {
        link-name = "HiFi-ASRC-FE";
        format = "i2s";
        cpu {
            sound-dai = <&easrc>;
        };
    };
    be-dai-link {
        link-name = "HiFi-ASRC-BE";
        format = "dsp_b";
        dai-tdm-slot-num = <8>;
        dai-tdm-slot-width = <32>;
        fsl,mclk-equal-bclk;
        cpu {
            sound-dai = <&sai1>;
        };
        codec {
            sound-dai = <&ak4458_1>, <&ak4458_2>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

NXP i.MX audio complex with HDMI

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/imx-audio-hdmi.yaml#"

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

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx-audio-hdmi", "fsl,imx-audio-sii902x"

model — required here #

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

User specified audio sound card name

audio-cpu — required here #

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

The phandle of an CPU DAI controller

hdmi-out — not listed as required here #

Value type (type): "boolean"

This is a boolean property. If present, the transmitting function of HDMI will be enabled, indicating there's a physical HDMI out connector or jack on the board or it's connecting to some other IP block, such as an HDMI encoder or display-controller.

hdmi-in — not listed as required here #

Value type (type): "boolean"

This is a boolean property. If present, the receiving function of HDMI will be enabled, indicating there is a physical HDMI in connector/jack on the board.

Required in this object (required): "compatible", "model", "audio-cpu"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound-hdmi {
    compatible = "fsl,imx-audio-hdmi";
    model = "audio-hdmi";
    audio-cpu = <&aud2htx>;
    hdmi-out;
};

Source notes #

Annotations retained from the schema source

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

Freescale Digital Audio Mux device

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/imx-audmux.yaml#"

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

Maintainers (maintainers): "Oleksij Rempel <o.rempel@pengutronix.de>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx27-audmux"

Item 2

Exact value (const): "fsl,imx21-audmux"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx25-audmux", "fsl,imx35-audmux", "fsl,imx50-audmux", "fsl,imx51-audmux", "fsl,imx53-audmux", "fsl,imx6q-audmux", "fsl,imx6sl-audmux", "fsl,imx6sll-audmux", "fsl,imx6sx-audmux"

Item 2

Exact value (const): "fsl,imx31-audmux"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "audmux"

Properties matching a name pattern (patternProperties) #

^mux-[0-9a-z]*$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

fsl,audmux-port — required here

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

Integer of the audmux port that is configured by this child node

fsl,port-config — required here

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

List of configuration options for the specific port. For imx31-audmux and above, it is a list of tuples ptcr pdcr. For imx21-audmux it is a list of pcr values.

Required in this object (required): "fsl,audmux-port", "fsl,port-config"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

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) #

audmux@21d8000 {
    compatible = "fsl,imx6q-audmux", "fsl,imx31-audmux";
    reg = <0x021d8000 0x4000>;
};
audmux@10016000 {
    compatible = "fsl,imx27-audmux", "fsl,imx21-audmux";
    reg = <0x10016000 0x1000>;
    clocks = <&clks 1>;
    clock-names = "audmux";

    mux-ssi0 {
        fsl,audmux-port = <0>;
        fsl,port-config = <0xcb205000>;
    };

    mux-pins4 {
        fsl,audmux-port = <2>;
        fsl,port-config = <0x00001000>;
    };
};
#include <dt-bindings/sound/fsl-imx-audmux.h>
audmux@21d8000 {
    compatible = "fsl,imx6q-audmux", "fsl,imx31-audmux";
    reg = <0x021d8000 0x4000>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_audmux>;

    mux-ssi1 {
        fsl,audmux-port = <0>;
        fsl,port-config = <
            IMX_AUDMUX_V2_PTCR_SYN		0
            IMX_AUDMUX_V2_PTCR_TFSEL(2)	0
            IMX_AUDMUX_V2_PTCR_TCSEL(2)	0
            IMX_AUDMUX_V2_PTCR_TFSDIR	0
            IMX_AUDMUX_V2_PTCR_TCLKDIR      IMX_AUDMUX_V2_PDCR_RXDSEL(2)
          >;
    };

    mux-pins3 {
        fsl,audmux-port = <2>;
        fsl,port-config = <
            IMX_AUDMUX_V2_PTCR_SYN          IMX_AUDMUX_V2_PDCR_RXDSEL(0)
            0                               IMX_AUDMUX_V2_PDCR_TXRXEN
          >;
    };
};

Source notes #

Annotations retained from the schema source

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

Infineon PEB2466 codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Herve Codina <herve.codina@bootlin.com>"

The Infineon PEB2466 codec is a programmable DSP-based four channels codec with filters capabilities.

The time-slots used by the codec must be set and so, the properties 'dai-tdm-slot-num', 'dai-tdm-slot-width', 'dai-tdm-slot-tx-mask' and 'dai-tdm-slot-rx-mask' must be present in the sound card node for sub-nodes that involve the codec. The codec uses one 8bit time-slot per channel. 'dai-tdm-tdm-slot-with' must be set to 8.

The PEB2466 codec also supports 28 gpios (signaling pins).

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml

Rule 2 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "infineon,peb2466"

reg — required here #

SPI device address.

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

Master clock

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

spi-max-frequency — not listed as required here #

Maximum value (maximum): 8192000

reset-gpios — not listed as required here #

GPIO used to reset the device.

Maximum number of items (maxItems): 1

firmware-name — not listed as required here #

Maximum number of items (maxItems): 1

Filters coefficients file to load. If this property is omitted, internal filters are disabled.

#sound-dai-cells — required here #

Exact value (const): 0

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "#sound-dai-cells", "gpio-controller", "#gpio-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
spi {
    #address-cells = <1>;
    #size-cells = <0>;
    audio-codec@0 {
        compatible = "infineon,peb2466";
        reg = <0>;
        spi-max-frequency = <8192000>;
        reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
        #sound-dai-cells = <0>;
        gpio-controller;
        #gpio-cells = <2>;
    };
};

Source notes #

Annotations retained from the schema source

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

Ingenic SoCs AC97 / I2S Controller (AIC)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Paul Cercueil <paul@crapouillou.net>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^audio-controller@"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "ingenic,jz4740-i2s", "ingenic,jz4760-i2s", "ingenic,jz4770-i2s", "ingenic,jz4780-i2s", "ingenic,x1000-i2s"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "ingenic,jz4725b-i2s"

Item 2

Exact value (const): "ingenic,jz4740-i2s"

#sound-dai-cells — required here #

Exact value (const): 0

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

AIC clock

Item 2

I2S clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "aic"

Item 2

Exact value (const): "i2s"

dmas — required here #

Array item rules (items) #

Item 1

DMA controller phandle and request line for I2S RX

Item 2

DMA controller phandle and request line for I2S TX

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names", "#sound-dai-cells"

Examples (examples) #

#include <dt-bindings/clock/ingenic,jz4740-cgu.h>
aic: audio-controller@10020000 {
  compatible = "ingenic,jz4740-i2s";
  reg = <0x10020000 0x38>;

  #sound-dai-cells = <0>;

  interrupt-parent = <&intc>;
  interrupts = <18>;

  clocks = <&cgu JZ4740_CLK_AIC>,
           <&cgu JZ4740_CLK_I2S>;
  clock-names = "aic", "i2s";

  dmas = <&dmac 25 0xffffffff>, <&dmac 24 0xffffffff>;
  dma-names = "rx", "tx";
};

Source notes #

Annotations retained from the schema source

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

Ingenic JZ47xx internal codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Paul Cercueil <paul@crapouillou.net>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^audio-codec@.*"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "ingenic,jz4770-codec", "ingenic,jz4760-codec", "ingenic,jz4725b-codec", "ingenic,jz4740-codec"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "ingenic,jz4760b-codec"

Item 2

Exact value (const): "ingenic,jz4760-codec"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "aic"

#sound-dai-cells — required here #

Exact value (const): 0

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "#sound-dai-cells"

Examples (examples) #

#include <dt-bindings/clock/ingenic,jz4740-cgu.h>
codec: audio-codec@10020080 {
  compatible = "ingenic,jz4740-codec";
  reg = <0x10020080 0x8>;
  #sound-dai-cells = <0>;
  clocks = <&cgu JZ4740_CLK_AIC>;
  clock-names = "aic";
};

Source notes #

Annotations retained from the schema source

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

Intel KeemBay I2S

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/intel,keembay-i2s.yaml#"

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

Maintainers (maintainers): "Daniele Alessandrelli <daniele.alessandrelli@intel.com>", "Paul J. Murphy <paul.j.murphy@intel.com>"

Intel KeemBay I2S

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): "intel,keembay-i2s", "intel,keembay-tdm", "intel,keembay-hdmi-i2s"

#sound-dai-cells — required here #

Exact value (const): 0

reg — required here #

Array item rules (items) #

Item 1

I2S registers

Item 2

I2S gen configuration

reg-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "i2s-regs"

Item 2

Exact value (const): "i2s_gen_cfg"

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Bus Clock

Item 2

Module Clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "osc"

Item 2

Exact value (const): "apb_clk"

dmas — not listed as required here #

Array item rules (items) #

Item 1

DMA TX channel

Item 2

DMA RX channel

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

Required in this object (required): "compatible", "#sound-dai-cells", "reg", "clocks", "clock-names", "interrupts"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#define KEEM_BAY_PSS_AUX_I2S3
#define KEEM_BAY_PSS_I2S3
i2s@20140000 {
    compatible = "intel,keembay-i2s";
    #sound-dai-cells = <0>;
    reg = <0x20140000 0x200>, /* I2S registers */
          <0x202a00a4 0x4>; /* I2S gen configuration */
    reg-names = "i2s-regs", "i2s_gen_cfg";
    interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
    clock-names = "osc", "apb_clk";
    clocks = <&scmi_clk KEEM_BAY_PSS_AUX_I2S3>, <&scmi_clk KEEM_BAY_PSS_I2S3>;
    dmas = <&axi_dma0 29>, <&axi_dma0 33>;
    dma-names = "tx", "rx";
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright 2020 Intel Corporation

Invensense ICS-43432-compatible MEMS Microphone with I2S Output

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Oleksij Rempel <o.rempel@pengutronix.de>"

The ICS-43432 and compatible MEMS microphones output audio over an I2S interface and require no software configuration. The only host connection is the I2S bus. The microphone requires an I2S clock frequency between 460 kHz and 3.379 MHz and 64 clock cycles per stereo frame. Each frame contains 32-bit slots per channel, with 24 bits carrying audio data. A hardware pin determines whether the microphone outputs audio on the left or right channel of the I2S frame.

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): "invensense,ics43432", "cui,cmm-4030d-261"

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"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

ics43432: ics43432 {
    compatible = "invensense,ics43432";

    port {
      endpoint {
        remote-endpoint = <&i2s1_endpoint>;
        dai-format = "i2s";
      };
    };

};

Source notes #

Annotations retained from the schema source

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

Iron Device SMA1303 Audio Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Kiseok Jo <kiseok.jo@irondevice.com>"

SMA1303 digital class-D audio amplifier with an integrated boost converter.

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): "irondevice,sma1303"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

    amplifier@1e {
        compatible = "irondevice,sma1303";
        reg = <0x1e>;
        #sound-dai-cells = <1>;
    };
};

Source notes #

Annotations retained from the schema source

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

Iron Device SMA1307 Audio Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Kiseok Jo <kiseok.jo@irondevice.com>"

SMA1307 boosted digital speaker amplifier with feedback-loop.

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): "irondevice,sma1307a", "irondevice,sma1307aq"

If a 'q' is added, it indicated the product is AEC-Q100 qualified for automotive applications. SMA1307A supports both WLCSP and QFN packages. However, SMA1307AQ only supports the QFN package.

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

    amplifier@1e {
        compatible = "irondevice,sma1307a";
        reg = <0x1e>;
        #sound-dai-cells = <1>;
    };
};

Source notes #

Annotations retained from the schema source

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

Bluetooth SCO Audio Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/linux,bt-sco.yaml#"

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

Maintainers (maintainers): "Mark Brown <broonie@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

#sound-dai-cells — required here #

Allowed values (enum): 0, 1

compatible — required here #

Allowed values (enum): "delta,dfbmcs320", "linux,bt-sco"

Required in this object (required): "#sound-dai-cells", "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

codec {
    #sound-dai-cells = <0>;
    compatible = "linux,bt-sco";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 20: For Wideband PCM

Dummy SPDIF Transmitter/Receiver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Mark Brown <broonie@kernel.org>"

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): "linux,spdif-dit", "linux,spdif-dir"

#sound-dai-cells — required here #

Exact value (const): 0

sound-name-prefix — not listed as required here #

true — No constraints added by this property rule.

port — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

Required in this object (required): "#sound-dai-cells", "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

spdif-out {
    #sound-dai-cells = <0>;
    compatible = "linux,spdif-dit";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Loongson 7axxx/2kxxx ASoC audio sound card driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/loongson,ls-audio-card.yaml#"

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

Maintainers (maintainers): "Yingkun Meng <mengyingkun@loongson.cn>"

The binding describes the sound card present in loongson 7axxx/2kxxx platform. The sound card is an ASoC component which uses Loongson I2S controller to transfer the audio data.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "loongson,ls-audio-card"

model — required here #

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

User specified audio sound card name

mclk-fs — required here #

Shared schema rule ($ref): simple-card.yaml#/definitions/mclk-fs

cpu — required here #

Holds subnode which indicates cpu dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

sound-dai — required here

Maximum number of items (maxItems): 1

Required in this object (required): "sound-dai"

codec — required here #

Holds subnode which indicates codec dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

sound-dai — required here

Maximum number of items (maxItems): 1

Required in this object (required): "sound-dai"

Required in this object (required): "compatible", "model", "mclk-fs", "cpu", "codec"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "loongson,ls-audio-card";
    model = "loongson-audio";
    mclk-fs = <512>;

    cpu {
        sound-dai = <&i2s>;
    };
    codec {
         sound-dai = <&es8323>;
    };
};

Source notes #

Annotations retained from the schema source

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

Loongson-1 AC97 Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/loongson,ls1b-ac97.yaml#"

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

Maintainers (maintainers): "Keguang Zhang <keguang.zhang@gmail.com>"

The Loongson-1 AC97 controller supports 2-channel stereo output and input. It is paired with the DMA engine to handle playback and capture functions.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "loongson,ls1b-ac97"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "loongson,ls1a-ac97", "loongson,ls1c-ac97"

Item 2

Exact value (const): "loongson,ls1b-ac97"

reg — required here #

Maximum number of items (maxItems): 3

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ac97"

Item 2

Exact value (const): "audio-tx"

Item 3

Exact value (const): "audio-rx"

dmas — required here #

Maximum number of items (maxItems): 2

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "reg-names", "dmas", "dma-names", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

audio-controller@1fe74000 {
    compatible = "loongson,ls1b-ac97";
    reg = <0x1fe74000 0x60>, <0x1fe72420 0x4>, <0x1fe74c4c 0x4>;
    reg-names = "ac97", "audio-tx", "audio-rx";
    dmas = <&dma 1>, <&dma 2>;
    dma-names = "tx", "rx";
    #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

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

Loongson-2K1000 I2S controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/loongson,ls2k1000-i2s.yaml#"

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

Maintainers (maintainers): "Binbin Zhou <zhoubinbin@loongson.cn>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "loongson,ls2k1000-i2s"

reg — required here #

Array item rules (items) #

Item 1

Loongson I2S controller Registers.

Item 2

APB DMA config register for Loongson I2S controller.

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

dmas — required here #

Maximum number of items (maxItems): 2

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "dmas", "dma-names", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/loongson,ls2k-clk.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2s@1fe2d000 {
    compatible = "loongson,ls2k1000-i2s";
    reg = <0x1fe2d000 0x14>,
          <0x1fe00438 0x8>;
    interrupt-parent = <&liointc0>;
    interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clk LOONGSON2_APB_CLK>;
    dmas = <&apbdma2 0>, <&apbdma3 0>;
    dma-names = "tx", "rx";
    #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

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

Marvel SSPA Digital Audio Interface

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/marvell,mmp-sspa.yaml#"

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

Maintainers (maintainers): "Lubomir Rintel <lkundrak@v3.sk>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^audio-controller(@.*)?$"

compatible — required here #

Exact value (const): "marvell,mmp-sspa"

reg — required here #

Array item rules (items) #

Item 1

RX block

Item 2

TX block

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Clock for the Audio block

Item 2

I2S bit clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "audio"

Item 2

Exact value (const): "bitclk"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

dmas — required here #

Array item rules (items) #

Item 1

TX DMA Channel

Item 2

RX DMA Channel

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

port — required here #

Shared schema rule ($ref): audio-graph-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

endpoint — not listed as required here

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

true

Allowed by this rule.

Properties and child nodes (properties)

dai-format — not listed as required here

Exact value (const): "i2s"

Required in this object (required): "#sound-dai-cells", "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names", "port"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/marvell,mmp2.h>

audio-controller@d42a0c00 {
  compatible = "marvell,mmp-sspa";
  reg = <0xd42a0c00 0x30>,
        <0xd42a0c80 0x30>;
  interrupts = <2>;
  clock-names = "audio", "bitclk";
  clocks = <&soc_clocks 127>,
           <&audio_clk 1>;
  #sound-dai-cells = <0>;
  dmas = <&adma0 0>, <&adma0 1>;
  dma-names = "tx", "rx";
  port {
    endpoint {
      remote-endpoint = <&rt5631_0>;
      dai-format = "i2s";
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Maxim MAX9759 Speaker Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Otabek Nazrullaev <otabeknazrullaev1998@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,max9759"

shutdown-gpios — required here #

Maximum number of items (maxItems): 1

the gpio connected to the shutdown pin

mute-gpios — required here #

Maximum number of items (maxItems): 1

the gpio connected to the mute pin

gain-gpios — required here #

Maximum number of items (maxItems): 2

the 2 gpios connected to the g1 and g2 pins

Required in this object (required): "compatible", "shutdown-gpios", "mute-gpios", "gain-gpios"

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>
amplifier {
  compatible = "maxim,max9759";
  shutdown-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
  mute-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
  gain-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>,
         <&gpio3 25 GPIO_ACTIVE_LOW>;
};

Source notes #

Annotations retained from the schema source

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

MAX98088 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Abdulrasaq Lawani <abdulrasaqolawani@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "maxim,max98088", "maxim,max98089"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

master clock

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

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) #

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

    audio-codec@10 {
        compatible = "maxim,max98089";
        reg = <0x10>;
        clocks = <&clks 0>;
        clock-names = "mclk";
    };
};

Source notes #

Annotations retained from the schema source

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

Maxim Integrated MAX98090/MAX98091 audio codecs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

Pins on the device (for linking into audio routes): MIC1, MIC2, DMICL, DMICR, IN1, IN2, IN3, IN4, IN5, IN6, IN12, IN34, IN56, HPL, HPR, SPKL, SPKR, RCVL, RCVR, MICBIAS

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): "maxim,max98090", "maxim,max98091"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

master clock

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

interrupts — required here #

Maximum number of items (maxItems): 1

maxim,dmic-freq — not listed as required here #

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

Default value (default): 2500000

DMIC clock frequency

maxim,micbias — not listed as required here #

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

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

Default value (default): 3

Micbias voltage applied to the analog mic, valid voltages value are:
  0 - 2.2v
  1 - 2.55v
  2 - 2.4v
  3 - 2.8v

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

Exact value (const): 0

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

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

    audio-codec@10 {
        compatible = "maxim,max98090";
        reg = <0x10>;
        interrupt-parent = <&gpx3>;
        interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
        clocks = <&i2s0 0>;
        clock-names = "mclk";
        #sound-dai-cells = <0>;
    };
};

Source notes #

Annotations retained from the schema source

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

Maxim Integrated MAX98095 audio codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

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): "maxim,max98095"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

master clock

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

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

Exact value (const): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

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

    audio-codec@11 {
        compatible = "maxim,max98095";
        reg = <0x11>;
        clocks = <&i2s0 0>;
        clock-names = "mclk";
    };
};

Source notes #

Annotations retained from the schema source

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

Maxim Integrated MAX98357A/MAX98360A amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Tzung-Bi Shih <tzungbi@kernel.org>"

Maxim Integrated MAX98357A/MAX98360A is a digital pulse-code modulation (PCM) input Class D amplifier.

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): "maxim,max98357a", "maxim,max98360a"

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

Exact value (const): 0

sdmode-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Chip's SD_MODE pin. If missing the chip is always on.

sdmode-delay — not listed as required here #

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

Delay time for SD_MODE pin changes intended to make I2S clocks ready before SD_MODE is unmuted in order to avoid the speaker pop noise.

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

amplifier {
    compatible = "maxim,max98360a";
    #sound-dai-cells = <0>;
    sdmode-gpios = <&qcom_pinmux 25 GPIO_ACTIVE_HIGH>;
};

Source notes #

Annotations retained from the schema source

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

Maxim MAX98371 audio codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "anish kumar <yesanishhere@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,max98371"

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

Exact value (const): 0

reg — required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

    codec@31 {
        compatible = "maxim,max98371";
        reg = <0x31>;
        #sound-dai-cells = <0>;
    };
};

Source notes #

Annotations retained from the schema source

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

Maxim Integrated MAX98390 Speaker Amplifier with Integrated Dynamic Speaker Management

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Steve Lee <steves.lee@maximintegrated.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,max98390"

reg — required here #

Maximum number of items (maxItems): 1

I2C address of the device.

maxim,temperature_calib — not listed as required here #

The calculated temperature data was measured while doing the calibration.

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

Minimum value (minimum): 0

Maximum value (maximum): 65535

maxim,r0_calib — not listed as required here #

This is r0 calibration data which was measured in factory mode.

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

Minimum value (minimum): 1

Maximum value (maximum): 8388607

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

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

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>;
  max98390: amplifier@38 {
    compatible = "maxim,max98390";
    reg = <0x38>;
    maxim,temperature_calib = <1024>;
    maxim,r0_calib = <100232>;
    reset-gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
  };
};

Source notes #

Annotations retained from the schema source

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

Maxim Integrated MAX98504 class D mono speaker amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

Maxim Integrated MAX98504 speaker amplifier supports I2C control interface with an IRQ output signal, PCM and PDM digital audio interface (DAI) and a differential analog input.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,max98504"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

DIOVDD-supply — not listed as required here #

true — No constraints added by this property rule.

DVDD-supply — not listed as required here #

true — No constraints added by this property rule.

PVDD-supply — not listed as required here #

true — No constraints added by this property rule.

maxim,brownout-threshold — not listed as required here #

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

Maximum value (maximum): 21

Default value (default): 0

PVDD brownout threshold, where values correspond to 2.6V, 2.65V...3.65V voltage range. Property also enables the PVDD brownout protection.

maxim,brownout-attenuation — not listed as required here #

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

Maximum value (maximum): 6

Default value (default): 0

Brownout attenuation to the speaker gain applied during the "attack hold" and "timed hold" phase, the value must be from 0...6 (dB) range.

maxim,brownout-attack-hold-ms — not listed as required here #

Maximum value (maximum): 255

Default value (default): 0

Brownout attack hold phase time in ms, VBATBROWN_ATTK_HOLD, register 0x0018.

maxim,brownout-timed-hold-ms — not listed as required here #

Maximum value (maximum): 255

Default value (default): 0

Brownout timed hold phase time in ms, VBATBROWN_TIME_HOLD, register 0x0019.

maxim,brownout-release-rate-ms — not listed as required here #

Maximum value (maximum): 255

Default value (default): 0

Brownout release phase step time in ms, VBATBROWN_RELEASE, register 0x001A.

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>;

    amplifier@31 {
        compatible = "maxim,max98504";
        reg = <0x31>;

        DIOVDD-supply = <&ldo3_reg>;
        DVDD-supply = <&ldo3_reg>;
    };
};

Source notes #

Annotations retained from the schema source

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

Maxim Integrated MAX98520 Speaker Amplifier Driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "George Song <george.song@maximintegrated.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,max98520"

reg — required here #

Maximum number of items (maxItems): 1

I2C address of the device.

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) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;
  max98520: amplifier@38 {
    compatible = "maxim,max98520";
    reg = <0x38>;
  };
};

Source notes #

Annotations retained from the schema source

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

Maxim Integrated MAX9867 CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

This device supports I2C only.
Pins on the device (for linking into audio routes):
    * LOUT
    * ROUT
    * LINL
    * LINR
    * MICL
    * MICR
    * DMICL
    * DMICR

Maintainers (maintainers): "Ladislav Michl <ladis@linux-mips.org>"

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): "maxim,max9867"

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

Exact value (const): 0

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

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

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@18 {
        compatible = "maxim,max9867";
        #sound-dai-cells = <0>;
        reg = <0x18>;
        clocks = <&codec_clk>;
    };
};

Source notes #

Annotations retained from the schema source

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

Maxim Integrated MAX98925/MAX98926/MAX98927 speaker amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Ryan Lee <ryans.lee@maximintegrated.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "maxim,max98925", "maxim,max98926", "maxim,max98927"

reg — required here #

Maximum number of items (maxItems): 1

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

vmon-slot-no — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 30

Default value (default): 0

Slot number used to send voltage information or in inteleave mode this will be used as interleave slot.

imon-slot-no — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 30

Default value (default): 0

Slot number used to send current information.

maxim,interleave-mode — not listed as required here #

Value type (type): "boolean"

When using two MAX9892X in a system it is possible to create ADC data that will overflow the frame size. When enabled, the Digital Audio Interleave mode provides a means to output VMON and IMON data from two devices on a single DOUT line when running smaller frames sizes such as 32 BCLKS per LRCLK or 48 BCLKS per LRCLK.

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

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "maxim,max98927"

When the condition matches (then) #

Properties and child nodes (properties)

vmon-slot-no — not listed as required here

Minimum value (minimum): 0

Maximum value (maximum): 15

imon-slot-no — not listed as required here

Minimum value (minimum): 0

Maximum value (maximum): 15

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@3a {
        compatible = "maxim,max98927";
        reg = <0x3a>;
        #sound-dai-cells = <0>;

        pinctrl-0 = <&speaker_default>;
        pinctrl-names = "default";

        reset-gpios = <&tlmm 69 GPIO_ACTIVE_LOW>;

        vmon-slot-no = <1>;
        imon-slot-no = <0>;
    };
};

Source notes #

Annotations retained from the schema source

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

MediaTek Audio Front End (AFE) PCM controller for mt2701

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mediatek,mt2701-audio.yaml#"

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

The AFE PCM node must be a subnode of the MediaTek audsys device tree node.

Maintainers (maintainers): "Eugen Hristev <eugen.hristev@collabora.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "mediatek,mt2701-audio", "mediatek,mt7622-audio"

interrupts — required here #

Array item rules (items) #

Item 1

AFE interrupt

Item 2

ASYS interrupt

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "afe"

Item 2

Exact value (const): "asys"

power-domains — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

audio infra sys clock

Item 2

top audio mux 1

Item 3

top audio mux 2

Item 4

top audio sys a1 clock

Item 5

top audio sys a2 clock

Item 6

i2s0 source selection

Item 7

i2s1 source selection

Item 8

i2s2 source selection

Item 9

i2s3 source selection

Item 10

i2s0 source divider

Item 11

i2s1 source divider

Item 12

i2s2 source divider

Item 13

i2s3 source divider

Item 14

i2s0 master clock

Item 15

i2s1 master clock

Item 16

i2s2 master clock

Item 17

i2s3 master clock

Item 18

i2so0 hopping clock

Item 19

i2so1 hopping clock

Item 20

i2so2 hopping clock

Item 21

i2so3 hopping clock

Item 22

i2si0 hopping clock

Item 23

i2si1 hopping clock

Item 24

i2si2 hopping clock

Item 25

i2si3 hopping clock

Item 26

asrc0 output clock

Item 27

asrc1 output clock

Item 28

asrc2 output clock

Item 29

asrc3 output clock

Item 30

audio front end pd clock

Item 31

audio front end conn pd clock

Item 32

top audio a1 sys pd

Item 33

top audio a2 sys pd

Item 34

audio merge interface pd

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "infra_sys_audio_clk"

Item 2

Exact value (const): "top_audio_mux1_sel"

Item 3

Exact value (const): "top_audio_mux2_sel"

Item 4

Exact value (const): "top_audio_a1sys_hp"

Item 5

Exact value (const): "top_audio_a2sys_hp"

Item 6

Exact value (const): "i2s0_src_sel"

Item 7

Exact value (const): "i2s1_src_sel"

Item 8

Exact value (const): "i2s2_src_sel"

Item 9

Exact value (const): "i2s3_src_sel"

Item 10

Exact value (const): "i2s0_src_div"

Item 11

Exact value (const): "i2s1_src_div"

Item 12

Exact value (const): "i2s2_src_div"

Item 13

Exact value (const): "i2s3_src_div"

Item 14

Exact value (const): "i2s0_mclk_en"

Item 15

Exact value (const): "i2s1_mclk_en"

Item 16

Exact value (const): "i2s2_mclk_en"

Item 17

Exact value (const): "i2s3_mclk_en"

Item 18

Exact value (const): "i2so0_hop_ck"

Item 19

Exact value (const): "i2so1_hop_ck"

Item 20

Exact value (const): "i2so2_hop_ck"

Item 21

Exact value (const): "i2so3_hop_ck"

Item 22

Exact value (const): "i2si0_hop_ck"

Item 23

Exact value (const): "i2si1_hop_ck"

Item 24

Exact value (const): "i2si2_hop_ck"

Item 25

Exact value (const): "i2si3_hop_ck"

Item 26

Exact value (const): "asrc0_out_ck"

Item 27

Exact value (const): "asrc1_out_ck"

Item 28

Exact value (const): "asrc2_out_ck"

Item 29

Exact value (const): "asrc3_out_ck"

Item 30

Exact value (const): "audio_afe_pd"

Item 31

Exact value (const): "audio_afe_conn_pd"

Item 32

Exact value (const): "audio_a1sys_pd"

Item 33

Exact value (const): "audio_a2sys_pd"

Item 34

Exact value (const): "audio_mrgif_pd"

Required in this object (required): "compatible", "interrupts", "interrupt-names", "power-domains", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

MediaTek MT2701 with WM8960 CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mediatek,mt2701-wm8960.yaml#"

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

Maintainers (maintainers): "Kartik Agarwala <agarwala.kartik@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt2701-wm8960-machine"

mediatek,platform — required here #

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

The phandle of MT2701 ASoC platform.

audio-routing — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source.

mediatek,audio-codec — required here #

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

The phandle of the WM8960 audio codec.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "mediatek,platform", "audio-routing", "mediatek,audio-codec", "pinctrl-names", "pinctrl-0"

Examples (examples) #

sound {
    compatible = "mediatek,mt2701-wm8960-machine";
    mediatek,platform = <&afe>;
    audio-routing =
        "Headphone", "HP_L",
        "Headphone", "HP_R",
        "LINPUT1", "AMIC",
        "RINPUT1", "AMIC";
    mediatek,audio-codec = <&wm8960>;
    pinctrl-names = "default";
    pinctrl-0 = <&aud_pins_default>;
};

Source notes #

Annotations retained from the schema source

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

MediaTek AFE PCM controller for MT7986

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mediatek,mt7986-afe.yaml#"

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

Maintainers (maintainers): "Maso Huang <maso.huang@mediatek.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "mediatek,mt7986-afe"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt7981-afe", "mediatek,mt7988-afe"

Item 2

Exact value (const): "mediatek,mt7986-afe"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 5

Array item rules (items) #

Item 1

audio bus clock

Item 2

audio 26M clock

Item 3

audio intbus clock

Item 4

audio hopping clock

Item 5

audio pll clock

Item 6

mux for pcm_mck

Item 7

audio i2s/pcm mck

clock-names — required here #

Minimum number of items (minItems): 5

Array item rules (items) #

Item 1

Exact value (const): "bus_ck"

Item 2

Exact value (const): "26m_ck"

Item 3

Exact value (const): "l_ck"

Item 4

Exact value (const): "aud_ck"

Item 5

Exact value (const): "eg2_ck"

Item 6

Exact value (const): "sel"

Item 7

Exact value (const): "i2s_m"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "mediatek,mt7986-afe"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

audio bus clock

Item 2

audio 26M clock

Item 3

audio intbus clock

Item 4

audio hopping clock

Item 5

audio pll clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "bus_ck"

Item 2

Exact value (const): "26m_ck"

Item 3

Exact value (const): "l_ck"

Item 4

Exact value (const): "aud_ck"

Item 5

Exact value (const): "eg2_ck"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "mediatek,mt7981-afe"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

audio bus clock

Item 2

audio 26M clock

Item 3

audio intbus clock

Item 4

audio hopping clock

Item 5

audio pll clock

Item 6

mux for pcm_mck

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "bus_ck"

Item 2

Exact value (const): "26m_ck"

Item 3

Exact value (const): "l_ck"

Item 4

Exact value (const): "aud_ck"

Item 5

Exact value (const): "eg2_ck"

Item 6

Exact value (const): "sel"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "mediatek,mt7988-afe"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

audio bus clock

Item 2

audio 26M clock

Item 3

audio intbus clock

Item 4

audio hopping clock

Item 5

audio pll clock

Item 6

mux for pcm_mck

Item 7

audio i2s/pcm mck

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "bus_ck"

Item 2

Exact value (const): "26m_ck"

Item 3

Exact value (const): "l_ck"

Item 4

Exact value (const): "aud_ck"

Item 5

Exact value (const): "eg2_ck"

Item 6

Exact value (const): "sel"

Item 7

Exact value (const): "i2s_m"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/mt7986-clk.h>

afe@11210000 {
    compatible = "mediatek,mt7986-afe";
    reg = <0x11210000 0x9000>;
    interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&infracfg_ao CLK_INFRA_AUD_BUS_CK>,
             <&infracfg_ao CLK_INFRA_AUD_26M_CK>,
             <&infracfg_ao CLK_INFRA_AUD_L_CK>,
             <&infracfg_ao CLK_INFRA_AUD_AUD_CK>,
             <&infracfg_ao CLK_INFRA_AUD_EG2_CK>;
    clock-names = "bus_ck",
                  "26m_ck",
                  "l_ck",
                  "aud_ck",
                  "eg2_ck";
    assigned-clocks = <&topckgen CLK_TOP_A1SYS_SEL>,
                      <&topckgen CLK_TOP_AUD_L_SEL>,
                      <&topckgen CLK_TOP_A_TUNER_SEL>;
    assigned-clock-parents = <&topckgen CLK_TOP_APLL2_D4>,
                             <&apmixedsys CLK_APMIXED_APLL2>,
                             <&topckgen CLK_TOP_APLL2_D4>;
};

Source notes #

Annotations retained from the schema source

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

MediaTek MT7986 sound card with WM8960 codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mediatek,mt7986-wm8960.yaml#"

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

Maintainers (maintainers): "Maso Huang <maso.huang@mediatek.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt7986-wm8960-sound"

platform — required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

sound-dai — required here

The phandle of MT7986 platform.

Maximum number of items (maxItems): 1

Required in this object (required): "sound-dai"

codec — required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

sound-dai — required here

The phandle of wm8960 codec.

Maximum number of items (maxItems): 1

Required in this object (required): "sound-dai"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "audio-routing", "platform", "codec"

Examples (examples) #

sound {
    compatible = "mediatek,mt7986-wm8960-sound";
    model = "mt7986-wm8960";
    audio-routing =
        "Headphone", "HP_L",
        "Headphone", "HP_R",
        "LINPUT1", "AMIC",
        "RINPUT1", "AMIC";

    platform {
        sound-dai = <&afe>;
    };

    codec {
        sound-dai = <&wm8960>;
    };
};

Source notes #

Annotations retained from the schema source

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

Mediatek AFE PCM controller for MT8173

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mediatek,mt8173-afe-pcm.yaml#"

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

Maintainers (maintainers): "Trevor Wu <trevor.wu@mediatek.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt8173-afe-pcm"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

audio infra sys clock

Item 2

audio top mux

Item 3

audio intbus mux

Item 4

apll1 clock

Item 5

apll2 clock

Item 6

i2s0 mclk mux

Item 7

i2s1 mclk mux

Item 8

i2s2 mclk mux

Item 9

i2s3 mclk mux

Item 10

i2s3 bclk mux

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "infra_sys_audio_clk"

Item 2

Exact value (const): "top_pdn_audio"

Item 3

Exact value (const): "top_pdn_aud_intbus"

Item 4

Exact value (const): "bck0"

Item 5

Exact value (const): "bck1"

Item 6

Exact value (const): "i2s0_m"

Item 7

Exact value (const): "i2s1_m"

Item 8

Exact value (const): "i2s2_m"

Item 9

Exact value (const): "i2s3_m"

Item 10

Exact value (const): "i2s3_b"

power-domains — required here #

Maximum number of items (maxItems): 1

memory-region — not listed as required here #

memory region for audio DMA buffers

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "power-domains"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mt8173-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/power/mt8173-power.h>

mt8173-afe-pcm@11220000 {
    compatible = "mediatek,mt8173-afe-pcm";
    reg = <0x11220000 0x1000>;
    interrupts = <GIC_SPI 134 IRQ_TYPE_EDGE_FALLING>;
    power-domains = <&spm MT8173_POWER_DOMAIN_AUDIO>;
    clocks = <&infracfg CLK_INFRA_AUDIO>,
             <&topckgen CLK_TOP_AUDIO_SEL>,
             <&topckgen CLK_TOP_AUD_INTBUS_SEL>,
             <&topckgen CLK_TOP_APLL1_DIV0>,
             <&topckgen CLK_TOP_APLL2_DIV0>,
             <&topckgen CLK_TOP_I2S0_M_SEL>,
             <&topckgen CLK_TOP_I2S1_M_SEL>,
             <&topckgen CLK_TOP_I2S2_M_SEL>,
             <&topckgen CLK_TOP_I2S3_M_SEL>,
             <&topckgen CLK_TOP_I2S3_B_SEL>;
     clock-names = "infra_sys_audio_clk",
                   "top_pdn_audio",
                   "top_pdn_aud_intbus",
                   "bck0",
                   "bck1",
                   "i2s0_m",
                   "i2s1_m",
                   "i2s2_m",
                   "i2s3_m",
                   "i2s3_b";
      memory-region = <&afe_dma_mem>;
};

Source notes #

Annotations retained from the schema source

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

Mediatek AFE PCM controller for mt8183

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mediatek,mt8183-audio.yaml#"

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

Maintainers (maintainers): "Julien Massot <jmassot@collabora.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt8183-audio"

interrupts — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Exact value (const): "audiosys"

power-domains — required here #

Maximum number of items (maxItems): 1

memory-region — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

AFE clock

Item 2

ADDA DAC clock

Item 3

ADDA DAC pre-distortion clock

Item 4

ADDA ADC clock

Item 5

ADDA6 ADC clock

Item 6

Audio low-jitter 22.5792m clock

Item 7

Audio low-jitter 24.576m clock

Item 8

Audio PLL1 tuner clock

Item 9

Audio PLL2 tuner clock

Item 10

I2S1 bit clock

Item 11

I2S2 bit clock

Item 12

I2S3 bit clock

Item 13

I2S4 bit clock

Item 14

Audio Time-Division Multiplexing interface clock

Item 15

Powerdown Audio test model clock

Item 16

Audio infra sys clock

Item 17

Audio infra 26M clock

Item 18

Mux for audio clock

Item 19

Mux for audio internal bus clock

Item 20

Mux main divider by 4

Item 21

Primary audio mux

Item 22

Primary audio PLL

Item 23

Secondary audio mux

Item 24

Secondary audio PLL

Item 25

Primary audio en-generator clock

Item 26

Primary PLL divider by 4 for IEC

Item 27

Secondary audio en-generator clock

Item 28

Secondary PLL divider by 8 for IEC

Item 29

Mux selector for I2S port 0

Item 30

Mux selector for I2S port 1

Item 31

Mux selector for I2S port 2

Item 32

Mux selector for I2S port 3

Item 33

Mux selector for I2S port 4

Item 34

Mux selector for I2S port 5

Item 35

APLL1 and APLL2 divider for I2S port 0

Item 36

APLL1 and APLL2 divider for I2S port 1

Item 37

APLL1 and APLL2 divider for I2S port 2

Item 38

APLL1 and APLL2 divider for I2S port 3

Item 39

APLL1 and APLL2 divider for I2S port 4

Item 40

APLL1 and APLL2 divider for IEC

Item 41

26MHz clock for audio subsystem

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "aud_afe_clk"

Item 2

Exact value (const): "aud_dac_clk"

Item 3

Exact value (const): "aud_dac_predis_clk"

Item 4

Exact value (const): "aud_adc_clk"

Item 5

Exact value (const): "aud_adc_adda6_clk"

Item 6

Exact value (const): "aud_apll22m_clk"

Item 7

Exact value (const): "aud_apll24m_clk"

Item 8

Exact value (const): "aud_apll1_tuner_clk"

Item 9

Exact value (const): "aud_apll2_tuner_clk"

Item 10

Exact value (const): "aud_i2s1_bclk_sw"

Item 11

Exact value (const): "aud_i2s2_bclk_sw"

Item 12

Exact value (const): "aud_i2s3_bclk_sw"

Item 13

Exact value (const): "aud_i2s4_bclk_sw"

Item 14

Exact value (const): "aud_tdm_clk"

Item 15

Exact value (const): "aud_tml_clk"

Item 16

Exact value (const): "aud_infra_clk"

Item 17

Exact value (const): "mtkaif_26m_clk"

Item 18

Exact value (const): "top_mux_audio"

Item 19

Exact value (const): "top_mux_aud_intbus"

Item 20

Exact value (const): "top_syspll_d2_d4"

Item 21

Exact value (const): "top_mux_aud_1"

Item 22

Exact value (const): "top_apll1_ck"

Item 23

Exact value (const): "top_mux_aud_2"

Item 24

Exact value (const): "top_apll2_ck"

Item 25

Exact value (const): "top_mux_aud_eng1"

Item 26

Exact value (const): "top_apll1_d8"

Item 27

Exact value (const): "top_mux_aud_eng2"

Item 28

Exact value (const): "top_apll2_d8"

Item 29

Exact value (const): "top_i2s0_m_sel"

Item 30

Exact value (const): "top_i2s1_m_sel"

Item 31

Exact value (const): "top_i2s2_m_sel"

Item 32

Exact value (const): "top_i2s3_m_sel"

Item 33

Exact value (const): "top_i2s4_m_sel"

Item 34

Exact value (const): "top_i2s5_m_sel"

Item 35

Exact value (const): "top_apll12_div0"

Item 36

Exact value (const): "top_apll12_div1"

Item 37

Exact value (const): "top_apll12_div2"

Item 38

Exact value (const): "top_apll12_div3"

Item 39

Exact value (const): "top_apll12_div4"

Item 40

Exact value (const): "top_apll12_divb"

Item 41

Exact value (const): "top_clk26m_clk"

Required in this object (required): "compatible", "interrupts", "resets", "reset-names", "power-domains", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mt8183-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/power/mt8183-power.h>
#include <dt-bindings/reset/mt8183-resets.h>

audio-controller {
    compatible = "mediatek,mt8183-audio";
    interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_LOW>;
    resets = <&watchdog MT8183_TOPRGU_AUDIO_SW_RST>;
    reset-names = "audiosys";
    power-domains = <&spm MT8183_POWER_DOMAIN_AUDIO>;
    clocks = <&audiosys CLK_AUDIO_AFE>,
             <&audiosys CLK_AUDIO_DAC>,
             <&audiosys CLK_AUDIO_DAC_PREDIS>,
             <&audiosys CLK_AUDIO_ADC>,
             <&audiosys CLK_AUDIO_PDN_ADDA6_ADC>,
             <&audiosys CLK_AUDIO_22M>,
             <&audiosys CLK_AUDIO_24M>,
             <&audiosys CLK_AUDIO_APLL_TUNER>,
             <&audiosys CLK_AUDIO_APLL2_TUNER>,
             <&audiosys CLK_AUDIO_I2S1>,
             <&audiosys CLK_AUDIO_I2S2>,
             <&audiosys CLK_AUDIO_I2S3>,
             <&audiosys CLK_AUDIO_I2S4>,
             <&audiosys CLK_AUDIO_TDM>,
             <&audiosys CLK_AUDIO_TML>,
             <&infracfg CLK_INFRA_AUDIO>,
             <&infracfg CLK_INFRA_AUDIO_26M_BCLK>,
             <&topckgen CLK_TOP_MUX_AUDIO>,
             <&topckgen CLK_TOP_MUX_AUD_INTBUS>,
             <&topckgen CLK_TOP_SYSPLL_D2_D4>,
             <&topckgen CLK_TOP_MUX_AUD_1>,
             <&topckgen CLK_TOP_APLL1_CK>,
             <&topckgen CLK_TOP_MUX_AUD_2>,
             <&topckgen CLK_TOP_APLL2_CK>,
             <&topckgen CLK_TOP_MUX_AUD_ENG1>,
             <&topckgen CLK_TOP_APLL1_D8>,
             <&topckgen CLK_TOP_MUX_AUD_ENG2>,
             <&topckgen CLK_TOP_APLL2_D8>,
             <&topckgen CLK_TOP_MUX_APLL_I2S0>,
             <&topckgen CLK_TOP_MUX_APLL_I2S1>,
             <&topckgen CLK_TOP_MUX_APLL_I2S2>,
             <&topckgen CLK_TOP_MUX_APLL_I2S3>,
             <&topckgen CLK_TOP_MUX_APLL_I2S4>,
             <&topckgen CLK_TOP_MUX_APLL_I2S5>,
             <&topckgen CLK_TOP_APLL12_DIV0>,
             <&topckgen CLK_TOP_APLL12_DIV1>,
             <&topckgen CLK_TOP_APLL12_DIV2>,
             <&topckgen CLK_TOP_APLL12_DIV3>,
             <&topckgen CLK_TOP_APLL12_DIV4>,
             <&topckgen CLK_TOP_APLL12_DIVB>,
             <&clk26m>;
  clock-names = "aud_afe_clk",
                "aud_dac_clk",
                "aud_dac_predis_clk",
                "aud_adc_clk",
                "aud_adc_adda6_clk",
                "aud_apll22m_clk",
                "aud_apll24m_clk",
                "aud_apll1_tuner_clk",
                "aud_apll2_tuner_clk",
                "aud_i2s1_bclk_sw",
                "aud_i2s2_bclk_sw",
                "aud_i2s3_bclk_sw",
                "aud_i2s4_bclk_sw",
                "aud_tdm_clk",
                "aud_tml_clk",
                "aud_infra_clk",
                "mtkaif_26m_clk",
                "top_mux_audio",
                "top_mux_aud_intbus",
                "top_syspll_d2_d4",
                "top_mux_aud_1",
                "top_apll1_ck",
                "top_mux_aud_2",
                "top_apll2_ck",
                "top_mux_aud_eng1",
                "top_apll1_d8",
                "top_mux_aud_eng2",
                "top_apll2_d8",
                "top_i2s0_m_sel",
                "top_i2s1_m_sel",
                "top_i2s2_m_sel",
                "top_i2s3_m_sel",
                "top_i2s4_m_sel",
                "top_i2s5_m_sel",
                "top_apll12_div0",
                "top_apll12_div1",
                "top_apll12_div2",
                "top_apll12_div3",
                "top_apll12_div4",
                "top_apll12_divb",
                "top_clk26m_clk";
};

Source notes #

Annotations retained from the schema source

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

MediaTek MT8183 sound card with external codecs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Julien Massot <jmassot@collabora.com>"

MediaTek MT8183 SoC-based sound cards with DA7219 as headset codec, and MAX98357A, RT1015 or RT1015P as speaker amplifiers. Optionally includes HDMI codec.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "mediatek,mt8183_da7219_max98357", "mediatek,mt8183_da7219_rt1015", "mediatek,mt8183_da7219_rt1015p"

mediatek,headset-codec — required here #

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

Phandle to the DA7219 headset codec.

mediatek,platform — required here #

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

Phandle to the MT8183 ASoC platform (e.g., AFE node).

mediatek,hdmi-codec — not listed as required here #

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

Optional phandle to the HDMI codec (e.g., IT6505).

Required in this object (required): "compatible", "mediatek,headset-codec", "mediatek,platform"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "mediatek,mt8183_da7219_max98357";
    mediatek,headset-codec = <&da7219>;
    mediatek,hdmi-codec = <&it6505dptx>;
    mediatek,platform = <&afe>;
};

Source notes #

Annotations retained from the schema source

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

MediaTek MT8183 sound card with MT6358, TS3A227, and MAX98357/RT1015 codecs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Julien Massot <julien.massot@collabora.com>"

MediaTek MT8183 SoC-based sound cards using the MT6358 codec, with optional TS3A227 headset codec, EC codec (via Chrome EC), and HDMI audio. Speaker amplifier can be one of MAX98357A/B, RT1015, or RT1015P.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "mediatek,mt8183_mt6358_ts3a227_max98357", "mediatek,mt8183_mt6358_ts3a227_max98357b", "mediatek,mt8183_mt6358_ts3a227_rt1015", "mediatek,mt8183_mt6358_ts3a227_rt1015p"

mediatek,platform — required here #

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

Phandle to the MT8183 ASoC platform node (e.g., AFE).

mediatek,headset-codec — not listed as required here #

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

Phandle to the TS3A227 headset codec.

mediatek,ec-codec — not listed as required here #

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

Optional phandle to a ChromeOS EC codec node. See bindings in google,cros-ec-codec.yaml.

mediatek,hdmi-codec — not listed as required here #

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

Optional phandle to an HDMI audio codec node.

Required in this object (required): "compatible", "mediatek,platform"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "mediatek,mt8183_mt6358_ts3a227_max98357";
    mediatek,headset-codec = <&ts3a227>;
    mediatek,ec-codec = <&ec_codec>;
    mediatek,hdmi-codec = <&it6505dptx>;
    mediatek,platform = <&afe>;
};

Source notes #

Annotations retained from the schema source

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

MediaTek AFE PCM controller for mt8188

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mediatek,mt8188-afe.yaml#"

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

Maintainers (maintainers): "Trevor Wu <trevor.wu@mediatek.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt8188-afe"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Exact value (const): "audiosys"

memory-region — not listed as required here #

Maximum number of items (maxItems): 1

Shared memory region for AFE memif. A "shared-dma-pool". See dtschema reserved-memory/shared-dma-pool.yaml for details.

mediatek,topckgen — required here #

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

The phandle of the mediatek topckgen controller

mediatek,infracfg — required here #

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

The phandle of the mediatek infracfg controller

power-domains — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

26M clock

Item 2

audio pll1 clock

Item 3

audio pll2 clock

Item 4

clock divider for i2si1_mck

Item 5

clock divider for i2si2_mck

Item 6

clock divider for i2so1_mck

Item 7

clock divider for i2so2_mck

Item 8

clock divider for dptx_mck

Item 9

a1sys hoping clock

Item 10

audio intbus clock

Item 11

audio hires clock

Item 12

audio local bus clock

Item 13

mux for dptx_mck

Item 14

mux for i2so1_mck

Item 15

mux for i2so2_mck

Item 16

mux for i2si1_mck

Item 17

mux for i2si2_mck

Item 18

audio 26m clock

Item 19

audio pll1 divide 4

Item 20

audio pll2 divide 4

Item 21

clock divider for iec

Item 22

mux for a2sys clock

Item 23

mux for aud_iec

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "clk26m"

Item 2

Exact value (const): "apll1"

Item 3

Exact value (const): "apll2"

Item 4

Exact value (const): "apll12_div0"

Item 5

Exact value (const): "apll12_div1"

Item 6

Exact value (const): "apll12_div2"

Item 7

Exact value (const): "apll12_div3"

Item 8

Exact value (const): "apll12_div9"

Item 9

Exact value (const): "top_a1sys_hp"

Item 10

Exact value (const): "top_aud_intbus"

Item 11

Exact value (const): "top_audio_h"

Item 12

Exact value (const): "top_audio_local_bus"

Item 13

Exact value (const): "top_dptx"

Item 14

Exact value (const): "top_i2so1"

Item 15

Exact value (const): "top_i2so2"

Item 16

Exact value (const): "top_i2si1"

Item 17

Exact value (const): "top_i2si2"

Item 18

Exact value (const): "adsp_audio_26m"

Item 19

Exact value (const): "apll1_d4"

Item 20

Exact value (const): "apll2_d4"

Item 21

Exact value (const): "apll12_div4"

Item 22

Exact value (const): "top_a2sys"

Item 23

Exact value (const): "top_aud_iec"

mediatek,etdm-in1-cowork-source — not listed as required here #

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

etdm modules can share the same external clock pin. Specify which etdm clock source is required by this etdm in module.

Allowed values (enum): 1, 2, 3

mediatek,etdm-in2-cowork-source — not listed as required here #

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

etdm modules can share the same external clock pin. Specify which etdm clock source is required by this etdm in module.

Allowed values (enum): 0, 2, 3

mediatek,etdm-out1-cowork-source — not listed as required here #

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

etdm modules can share the same external clock pin. Specify which etdm clock source is required by this etdm out module.

Allowed values (enum): 0, 1, 3

mediatek,etdm-out2-cowork-source — not listed as required here #

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

etdm modules can share the same external clock pin. Specify which etdm clock source is required by this etdm out module.

Allowed values (enum): 0, 1, 2

Properties matching a name pattern (patternProperties) #

^mediatek,etdm-in[1-2]-chn-disabled$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 16

This is a list of channel IDs which should be disabled. By default, all data received from ETDM pins will be outputted to memory. etdm in supports disable_out in direct mode(w/o interconn), so user can disable the specified channels by the property.

Items must be unique (uniqueItems): true

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 15

^mediatek,etdm-in[1-2]-multi-pin-mode$ — name matches this regular expression #

Value type (type): "boolean"

if present, the etdm data mode is I2S.

^mediatek,etdm-out[1-3]-multi-pin-mode$ — name matches this regular expression #

Value type (type): "boolean"

if present, the etdm data mode is I2S.

Required in this object (required): "compatible", "reg", "interrupts", "resets", "reset-names", "mediatek,topckgen", "mediatek,infracfg", "power-domains", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

afe@10b10000 {
    compatible = "mediatek,mt8188-afe";
    reg = <0x10b10000 0x10000>;
    interrupts = <GIC_SPI 822 IRQ_TYPE_LEVEL_HIGH 0>;
    resets = <&watchdog 14>;
    reset-names = "audiosys";
    memory-region = <&snd_dma_mem_reserved>;
    mediatek,topckgen = <&topckgen>;
    mediatek,infracfg = <&infracfg_ao>;
    power-domains = <&spm 13>; //MT8188_POWER_DOMAIN_AUDIO
    mediatek,etdm-in2-cowork-source = <2>;
    mediatek,etdm-out2-cowork-source = <0>;
    mediatek,etdm-in1-multi-pin-mode;
    mediatek,etdm-in1-chn-disabled = /bits/ 8 <0x0 0x2>;
    clocks = <&clk26m>,
             <&apmixedsys 9>, //CLK_APMIXED_APLL1
             <&apmixedsys 10>, //CLK_APMIXED_APLL2
             <&topckgen 186>, //CLK_TOP_APLL12_CK_DIV0
             <&topckgen 187>, //CLK_TOP_APLL12_CK_DIV1
             <&topckgen 188>, //CLK_TOP_APLL12_CK_DIV2
             <&topckgen 189>, //CLK_TOP_APLL12_CK_DIV3
             <&topckgen 191>, //CLK_TOP_APLL12_CK_DIV9
             <&topckgen 83>, //CLK_TOP_A1SYS_HP
             <&topckgen 31>, //CLK_TOP_AUD_INTBUS
             <&topckgen 32>, //CLK_TOP_AUDIO_H
             <&topckgen 69>, //CLK_TOP_AUDIO_LOCAL_BUS
             <&topckgen 81>, //CLK_TOP_DPTX
             <&topckgen 77>, //CLK_TOP_I2SO1
             <&topckgen 78>, //CLK_TOP_I2SO2
             <&topckgen 79>, //CLK_TOP_I2SI1
             <&topckgen 80>, //CLK_TOP_I2SI2
             <&adsp_audio26m 0>, //CLK_AUDIODSP_AUDIO26M
             <&topckgen 132>, //CLK_TOP_APLL1_D4
             <&topckgen 133>, //CLK_TOP_APLL2_D4
             <&topckgen 183>, //CLK_TOP_APLL12_CK_DIV4
             <&topckgen 84>, //CLK_TOP_A2SYS
             <&topckgen 82>; //CLK_TOP_AUD_IEC>;
    clock-names = "clk26m",
                  "apll1",
                  "apll2",
                  "apll12_div0",
                  "apll12_div1",
                  "apll12_div2",
                  "apll12_div3",
                  "apll12_div9",
                  "top_a1sys_hp",
                  "top_aud_intbus",
                  "top_audio_h",
                  "top_audio_local_bus",
                  "top_dptx",
                  "top_i2so1",
                  "top_i2so2",
                  "top_i2si1",
                  "top_i2si2",
                  "adsp_audio_26m",
                  "apll1_d4",
                  "apll2_d4",
                  "apll12_div4",
                  "top_a2sys",
                  "top_aud_iec";
};

Source notes #

Annotations retained from the schema source

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

Line 103: etdm2_in

Line 104: etdm1_out

Line 105: etdm2_out

Line 113: etdm1_in

Line 114: etdm1_out

Line 115: etdm2_out

Line 123: etdm1_in

Line 124: etdm2_in

Line 125: etdm2_out

Line 133: etdm1_in

Line 134: etdm2_in

Line 135: etdm1_out

MediaTek MT8188 ASoC sound card

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mediatek,mt8188-mt6359.yaml#"

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

Maintainers (maintainers): "Trevor Wu <trevor.wu@mediatek.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "mediatek,mt8188-es8326", "mediatek,mt8188-mt6359-evb", "mediatek,mt8188-nau8825", "mediatek,mt8188-rt5682s"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "mediatek,mt8390-mt6359-evk"

Item 2

Exact value (const): "mediatek,mt8188-mt6359-evb"

audio-routing — not listed as required here #

Valid names could be the input or output widgets of audio components, power supplies, MicBias of codec and the software switch.

mediatek,platform — required here #

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

The phandle of MT8188 ASoC platform.

mediatek,adsp — not listed as required here #

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

The phandle of the MT8188 ADSP platform, which is the optional Audio DSP hardware that provides additional audio functionalities if present. The AFE will link to ADSP when the phandle is provided.

mediatek,accdet — not listed as required here #

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

The phandle to the MT6359 accessory detection block, which detects audio jack insertion and removal. This property should only be present if the accdet block is actually wired to the audio jack pins and to be used for jack detection.

Properties matching a name pattern (patternProperties) #

^dai-link-[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Container for dai-link level properties and CODEC sub-nodes.

Properties and child nodes (properties) #

link-name — required here

This property corresponds to the name of the BE dai-link to which we are going to update parameters in this node.

Array item rules (items)

Allowed values (enum): "DPTX_BE", "ETDM1_IN_BE", "ETDM2_IN_BE", "ETDM1_OUT_BE", "ETDM2_OUT_BE", "ETDM3_OUT_BE", "PCM1_BE", "DL_SRC_BE", "UL_SRC_BE", "DMIC_BE"

codec — not listed as required here

Holds subnode which indicates codec dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

sound-dai — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Required in this object (required): "sound-dai"

dai-format — not listed as required here

audio format.

Array item rules (items)

Allowed values (enum): "i2s", "right_j", "left_j", "dsp_a", "dsp_b"

mediatek,clk-provider — not listed as required here

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

Indicates dai-link clock master.

Allowed values (enum): "cpu", "codec"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "link-name"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "mediatek,platform"

Examples (examples) #

sound {
    compatible = "mediatek,mt8188-mt6359-evb";
    model = "MT6359-EVB";
    mediatek,platform = <&afe>;
    pinctrl-names = "default";
    pinctrl-0 = <&aud_pins_default>;
    audio-routing =
        "Headphone", "Headphone L",
        "Headphone", "Headphone R",
        "AIN1", "Headset Mic";
    dai-link-0 {
        link-name = "ETDM3_OUT_BE";
        dai-format = "i2s";
        mediatek,clk-provider = "cpu";
        codec {
            sound-dai = <&hdmi0>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

MediaTek Audio Front End PCM controller for MT8189

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mediatek,mt8189-afe-pcm.yaml#"

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

Maintainers (maintainers): "Darren Ye <darren.ye@mediatek.com>", "Cyril Chao <cyril.chao@mediatek.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt8189-afe-pcm"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

memory-region — required here #

Maximum number of items (maxItems): 1

mediatek,apmixedsys — not listed as required here #

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

To set up the apll12 tuner

power-domains — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

mux for audio intbus

Item 2

mux for audio engen1

Item 3

mux for audio engen2

Item 4

mux for audio h

Item 5

audio apll1 clock

Item 6

audio apll2 clock

Item 7

audio apll1 divide4

Item 8

audio apll2 divide4

Item 9

audio apll12 divide for i2sin0

Item 10

audio apll12 divide for i2sin1

Item 11

audio apll12 divide for i2sout0

Item 12

audio apll12 divide for i2sout1

Item 13

audio apll12 divide for fmi2s

Item 14

audio apll12 divide for tdmout mck

Item 15

audio apll12 divide for tdmout bck

Item 16

mux for audio apll1

Item 17

mux for audio apll2

Item 18

mux for i2sin0 mck

Item 19

mux for i2sin1 mck

Item 20

mux for i2sout0 mck

Item 21

mux for i2sout1 mck

Item 22

mux for fmi2s mck

Item 23

mux for tdmout mck

Item 24

26m clock

Item 25

audio slv clock

Item 26

audio mst clock

Item 27

audio intbus clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "top_aud_intbus"

Item 2

Exact value (const): "top_aud_eng1"

Item 3

Exact value (const): "top_aud_eng2"

Item 4

Exact value (const): "top_aud_h"

Item 5

Exact value (const): "apll1"

Item 6

Exact value (const): "apll2"

Item 7

Exact value (const): "apll1_d4"

Item 8

Exact value (const): "apll2_d4"

Item 9

Exact value (const): "apll12_div_i2sin0"

Item 10

Exact value (const): "apll12_div_i2sin1"

Item 11

Exact value (const): "apll12_div_i2sout0"

Item 12

Exact value (const): "apll12_div_i2sout1"

Item 13

Exact value (const): "apll12_div_fmi2s"

Item 14

Exact value (const): "apll12_div_tdmout_m"

Item 15

Exact value (const): "apll12_div_tdmout_b"

Item 16

Exact value (const): "top_apll1"

Item 17

Exact value (const): "top_apll2"

Item 18

Exact value (const): "top_i2sin0"

Item 19

Exact value (const): "top_i2sin1"

Item 20

Exact value (const): "top_i2sout0"

Item 21

Exact value (const): "top_i2sout1"

Item 22

Exact value (const): "top_fmi2s"

Item 23

Exact value (const): "top_dptx"

Item 24

Exact value (const): "clk26m"

Item 25

Exact value (const): "aud_slv_ck_peri"

Item 26

Exact value (const): "aud_mst_ck_peri"

Item 27

Exact value (const): "aud_intbus_ck_peri"

Required in this object (required): "compatible", "reg", "interrupts", "memory-region", "power-domains", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    afe@11050000 {
        compatible = "mediatek,mt8189-afe-pcm";
        reg = <0 0x11050000 0 0x10000>;
        interrupts = <GIC_SPI 392 IRQ_TYPE_LEVEL_HIGH 0>;
        memory-region = <&afe_dma_mem_reserved>;
        pinctrl-names = "default";
        pinctrl-0 = <&aud_pins_default>;
        power-domains = <&scpsys 1>; //MT8189_POWER_DOMAIN_AUDIO
        clocks = <&topckgen_clk 23>, //CLK_TOP_AUD_INTBUS_SEL
                 <&topckgen_clk 39>, //CLK_TOP_AUD_ENGEN1_SEL
                 <&topckgen_clk 40>, //CLK_TOP_AUD_ENGEN2_SEL
                 <&topckgen_clk 49>, //CLK_TOP_AUDIO_H_SEL
                 <&topckgen_clk 146>, //CLK_TOP_APLL1
                 <&topckgen_clk 151>, //CLK_TOP_APLL2
                 <&topckgen_clk 148>, //CLK_TOP_APLL1_D4
                 <&topckgen_clk 153>, //CLK_TOP_APLL2_D4
                 <&topckgen_clk 93>, //CLK_TOP_APLL12_CK_DIV_I2SIN0
                 <&topckgen_clk 94>, //CLK_TOP_APLL12_CK_DIV_I2SIN1
                 <&topckgen_clk 95>, //CLK_TOP_APLL12_CK_DIV_I2SOUT0
                 <&topckgen_clk 96>, //CLK_TOP_APLL12_CK_DIV_I2SOUT1
                 <&topckgen_clk 97>, //CLK_TOP_APLL12_CK_DIV_FMI2S
                 <&topckgen_clk 98>, //CLK_TOP_APLL12_CK_DIV_TDMOUT_M
                 <&topckgen_clk 99>, //CLK_TOP_APLL12_CK_DIV_TDMOUT_B
                 <&topckgen_clk 44>, //CLK_TOP_AUD_1_SEL
                 <&topckgen_clk 45>, //CLK_TOP_AUD_2_SEL
                 <&topckgen_clk 78>, //CLK_TOP_APLL_I2SIN0_MCK_SEL
                 <&topckgen_clk 79>, //CLK_TOP_APLL_I2SIN1_MCK_SEL
                 <&topckgen_clk 84>, //CLK_TOP_APLL_I2SOUT0_MCK_SEL
                 <&topckgen_clk 85>, //CLK_TOP_APLL_I2SOUT1_MCK_SEL
                 <&topckgen_clk 90>, //CLK_TOP_APLL_FMI2S_MCK_SEL
                 <&topckgen_clk 91>, //CLK_TOP_APLL_TDMOUT_MCK_SEL
                 <&topckgen_clk 191>, //CLK_TOP_TCK_26M_MX9
                 <&pericfg_ao_clk 77>, //CLK_PERAO_AUDIO0
                 <&pericfg_ao_clk 78>, //CLK_PERAO_AUDIO1
                 <&pericfg_ao_clk 79>; //CLK_PERAO_AUDIO2
        clock-names = "top_aud_intbus",
                      "top_aud_eng1",
                      "top_aud_eng2",
                      "top_aud_h",
                      "apll1",
                      "apll2",
                      "apll1_d4",
                      "apll2_d4",
                      "apll12_div_i2sin0",
                      "apll12_div_i2sin1",
                      "apll12_div_i2sout0",
                      "apll12_div_i2sout1",
                      "apll12_div_fmi2s",
                      "apll12_div_tdmout_m",
                      "apll12_div_tdmout_b",
                      "top_apll1",
                      "top_apll2",
                      "top_i2sin0",
                      "top_i2sin1",
                      "top_i2sout0",
                      "top_i2sout1",
                      "top_fmi2s",
                      "top_dptx",
                      "clk26m",
                      "aud_slv_ck_peri",
                      "aud_mst_ck_peri",
                      "aud_intbus_ck_peri";
    };
};

Source notes #

Annotations retained from the schema source

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

MediaTek MT8189 ASoC sound card

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mediatek,mt8189-nau8825.yaml#"

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

Maintainers (maintainers): "Darren Ye <darren.ye@mediatek.com>", "Cyril Chao <cyril.chao@mediatek.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "mediatek,mt8189-nau8825", "mediatek,mt8189-rt5650", "mediatek,mt8189-rt5682s", "mediatek,mt8189-rt5682i", "mediatek,mt8189-es8326"

mediatek,platform — required here #

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

The phandle of MT8189 ASoC platform.

Properties matching a name pattern (patternProperties) #

^dai-link-[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Container for dai-link level properties and CODEC sub-nodes.

Properties and child nodes (properties) #

link-name — required here

This property corresponds to the name of the BE dai-link to which we are going to update parameters in this node.

Allowed values (enum): "TDM_DPTX_BE", "I2SOUT0_BE", "I2SIN0_BE", "I2SOUT1_BE"

codec — not listed as required here

Holds subnode which indicates codec dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

sound-dai — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Required in this object (required): "sound-dai"

dai-format — not listed as required here

audio format.

Allowed values (enum): "i2s", "right_j", "left_j", "dsp_a", "dsp_b"

mediatek,clk-provider — not listed as required here

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

Indicates dai-link clock master.

Allowed values (enum): "cpu", "codec"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "link-name"

Required in this object (required): "compatible", "mediatek,platform"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "mediatek,mt8189-nau8825";
    model = "mt8189_rt9123_8825";
    mediatek,platform = <&afe>;
    dai-link-0 {
        link-name = "I2SOUT1_BE";
        dai-format = "i2s";
        mediatek,clk-provider = "cpu";
        codec {
            sound-dai = <&nau8825>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

MediaTek Audio Front End PCM controller for MT8365

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mediatek,mt8365-afe.yaml#"

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

Maintainers (maintainers): "Alexandre Mergnat <amergnat@baylibre.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt8365-afe-pcm"

reg — required here #

Maximum number of items (maxItems): 1

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

Exact value (const): 0

clocks — required here #

Array item rules (items) #

Item 1

26M clock

Item 2

mux for audio clock

Item 3

audio i2s0 mck

Item 4

audio i2s1 mck

Item 5

audio i2s2 mck

Item 6

audio i2s3 mck

Item 7

engen 1 clock

Item 8

engen 2 clock

Item 9

audio 1 clock

Item 10

audio 2 clock

Item 11

mux for i2s0

Item 12

mux for i2s1

Item 13

mux for i2s2

Item 14

mux for i2s3

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "top_clk26m_clk"

Item 2

Exact value (const): "top_audio_sel"

Item 3

Exact value (const): "audio_i2s0_m"

Item 4

Exact value (const): "audio_i2s1_m"

Item 5

Exact value (const): "audio_i2s2_m"

Item 6

Exact value (const): "audio_i2s3_m"

Item 7

Exact value (const): "engen1"

Item 8

Exact value (const): "engen2"

Item 9

Exact value (const): "aud1"

Item 10

Exact value (const): "aud2"

Item 11

Exact value (const): "i2s0_m_sel"

Item 12

Exact value (const): "i2s1_m_sel"

Item 13

Exact value (const): "i2s2_m_sel"

Item 14

Exact value (const): "i2s3_m_sel"

interrupts — required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Maximum number of items (maxItems): 1

mediatek,dmic-mode — not listed as required here #

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

Indicates how many data pins are used to transmit two channels of PDM signal. 1 means two wires, 0 means one wire. Default value is 0.

Allowed values (enum): 0, 1

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "power-domains"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mediatek,mt8365-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/power/mediatek,mt8365-power.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    audio-controller@11220000 {
        compatible = "mediatek,mt8365-afe-pcm";
        reg = <0 0x11220000 0 0x1000>;
        #sound-dai-cells = <0>;
        clocks = <&clk26m>,
                 <&topckgen CLK_TOP_AUDIO_SEL>,
                 <&topckgen CLK_TOP_AUD_I2S0_M>,
                 <&topckgen CLK_TOP_AUD_I2S1_M>,
                 <&topckgen CLK_TOP_AUD_I2S2_M>,
                 <&topckgen CLK_TOP_AUD_I2S3_M>,
                 <&topckgen CLK_TOP_AUD_ENGEN1_SEL>,
                 <&topckgen CLK_TOP_AUD_ENGEN2_SEL>,
                 <&topckgen CLK_TOP_AUD_1_SEL>,
                 <&topckgen CLK_TOP_AUD_2_SEL>,
                 <&topckgen CLK_TOP_APLL_I2S0_SEL>,
                 <&topckgen CLK_TOP_APLL_I2S1_SEL>,
                 <&topckgen CLK_TOP_APLL_I2S2_SEL>,
                 <&topckgen CLK_TOP_APLL_I2S3_SEL>;
        clock-names = "top_clk26m_clk",
                      "top_audio_sel",
                      "audio_i2s0_m",
                      "audio_i2s1_m",
                      "audio_i2s2_m",
                      "audio_i2s3_m",
                      "engen1",
                      "engen2",
                      "aud1",
                      "aud2",
                      "i2s0_m_sel",
                      "i2s1_m_sel",
                      "i2s2_m_sel",
                      "i2s3_m_sel";
        interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_LOW>;
        power-domains = <&spm MT8365_POWER_DOMAIN_AUDIO>;
        mediatek,dmic-mode = <1>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 68: one wire

Line 69: two wires

MediaTek MT8365 ASoC sound card

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mediatek,mt8365-mt6357.yaml#"

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

Maintainers (maintainers): "Alexandre Mergnat <amergnat@baylibre.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt8365-mt6357"

pinctrl-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "dmic"

Item 3

Exact value (const): "miso_off"

Item 4

Exact value (const): "miso_on"

Item 5

Exact value (const): "mosi_off"

Item 6

Exact value (const): "mosi_on"

mediatek,platform — required here #

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

The phandle of MT8365 ASoC platform.

Properties matching a name pattern (patternProperties) #

^dai-link-[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Container for dai-link level properties and CODEC sub-nodes.

Properties and child nodes (properties) #

codec — not listed as required here

Value type (type): "object"

Holds subnode which indicates codec dai.

Properties and child nodes (properties)

sound-dai — not listed as required here

Maximum number of items (maxItems): 1

phandle of the codec DAI

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

link-name — required here

Indicates dai-link name and PCM stream name

Allowed values (enum): "I2S_IN_BE", "I2S_OUT_BE", "PCM1_BE", "PDM1_BE", "PDM2_BE", "PDM3_BE", "PDM4_BE", "SPDIF_IN_BE", "SPDIF_OUT_BE", "TDM_IN_BE", "TDM_OUT_BE"

sound-dai — required here

Maximum number of items (maxItems): 1

phandle of the CPU DAI

Required in this object (required): "link-name", "sound-dai"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "pinctrl-names", "mediatek,platform"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "mediatek,mt8365-mt6357";
    pinctrl-names = "default",
                    "dmic",
                    "miso_off",
                    "miso_on",
                    "mosi_off",
                    "mosi_on";
    pinctrl-0 = <&aud_default_pins>;
    pinctrl-1 = <&aud_dmic_pins>;
    pinctrl-2 = <&aud_miso_off_pins>;
    pinctrl-3 = <&aud_miso_on_pins>;
    pinctrl-4 = <&aud_mosi_off_pins>;
    pinctrl-5 = <&aud_mosi_on_pins>;
    mediatek,platform = <&afe>;

    /* hdmi interface */
    dai-link-0 {
        link-name = "I2S_OUT_BE";
        sound-dai = <&afe>;

        codec {
            sound-dai = <&it66121hdmitx>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Microchip I2S Multi-Channel Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/microchip,sama7g5-i2smcc.yaml#"

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

Maintainers (maintainers): "Codrin Ciubotariu <codrin.ciubotariu@microchip.com>"

The I2SMCC complies with the Inter-IC Sound (I2S) bus specification and supports a Time Division Multiplexed (TDM) interface with external multi-channel audio codecs. It consists of a receiver, a transmitter and a common clock generator that can be enabled separately to provide Adapter, Client or Controller modes with receiver and/or transmitter active. On later I2SMCC versions (starting with Microchip's SAMA7G5) I2S multi-channel is supported by using multiple data pins, output and input, without TDM.

Properties and child nodes (properties) #

#sound-dai-cells — required here #

Exact value (const): 0

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "microchip,sam9x60-i2smcc", "microchip,sama7g5-i2smcc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "microchip,sam9x7-i2smcc"

Item 2

Exact value (const): "microchip,sam9x60-i2smcc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Peripheral Bus Clock

Item 2

Generic Clock (Optional). Should be set mostly when Master Mode is required.

Minimum number of items (minItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "gclk"

Minimum number of items (minItems): 1

dmas — required here #

Array item rules (items) #

Item 1

TX DMA Channel

Item 2

RX DMA Channel

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

microchip,tdm-data-pair — not listed as required here #

Represents the DIN/DOUT pair pins that are used to receive/send TDM data. It is optional and it is only needed if the controller uses the TDM mode.

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

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

Default value (default): 0

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "microchip,sam9x60-i2smcc"

When the condition matches (then) #

Properties and child nodes (properties)

microchip,tdm-data-pair — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "#sound-dai-cells", "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/dma/at91.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

i2s@f001c000 {
    #sound-dai-cells = <0>;
    compatible = "microchip,sam9x60-i2smcc";
    reg = <0xf001c000 0x100>;
    interrupts = <34 IRQ_TYPE_LEVEL_HIGH 7>;
    dmas = <&dma0 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
                   AT91_XDMAC_DT_PERID(36))>,
           <&dma0 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
                   AT91_XDMAC_DT_PERID(37))>;
    dma-names = "tx", "rx";
    clocks = <&i2s_clk>, <&i2s_gclk>;
    clock-names = "pclk", "gclk";
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_i2s_default>;
};

Source notes #

Annotations retained from the schema source

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

Microchip Pulse Density Microphone Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/microchip,sama7g5-pdmc.yaml#"

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

Maintainers (maintainers): "Codrin Ciubotariu <codrin.ciubotariu@microchip.com>"

The Microchip Pulse Density Microphone Controller (PDMC) interfaces up to 4 digital microphones having Pulse Density Modulated (PDM) outputs.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "microchip,sama7g5-pdmc"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Peripheral Bus Clock

Item 2

Generic Clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "gclk"

dmas — required here #

RX DMA Channel

Maximum number of items (maxItems): 1

dma-names — required here #

Exact value (const): "rx"

microchip,mic-pos — required here #

Position of PDM microphones on the DS line and the sampling edge (rising or falling) of the CLK line. A microphone is represented as a pair of DS line and the sampling edge. The first microphone is mapped to channel 0, the second to channel 1, etc.

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

Array item rules (items) #

Array item rules (items)

Item 1

value for DS line

Allowed values (enum): 0, 1

Item 2

value for sampling edge

Allowed values (enum): 0, 1

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Items must be unique (uniqueItems): true

microchip,startup-delay-us — not listed as required here #

Specifies the delay in microseconds that needs to be applied after enabling the PDMC microphones to avoid unwanted noise due to microphones not being ready.

Required in this object (required): "compatible", "reg", "#sound-dai-cells", "interrupts", "clocks", "clock-names", "dmas", "dma-names", "microchip,mic-pos"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/at91.h>
#include <dt-bindings/dma/at91.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/sound/microchip,pdmc.h>

pdmc: sound@e1608000 {
    compatible = "microchip,sama7g5-pdmc";
    reg = <0xe1608000 0x4000>;
    #sound-dai-cells = <0>;
    interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
    dmas = <&dma0 AT91_XDMAC_DT_PERID(37)>;
    dma-names = "rx";
    clocks = <&pmc PMC_TYPE_PERIPHERAL 68>, <&pmc PMC_TYPE_GCK 68>;
    clock-names = "pclk", "gclk";
    microchip,mic-pos = <MCHP_PDMC_DS0 MCHP_PDMC_CLK_POSITIVE>,
                        <MCHP_PDMC_DS0 MCHP_PDMC_CLK_NEGATIVE>,
                        <MCHP_PDMC_DS1 MCHP_PDMC_CLK_POSITIVE>,
                        <MCHP_PDMC_DS1 MCHP_PDMC_CLK_NEGATIVE>;
};

Source notes #

Annotations retained from the schema source

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

Microchip S/PDIF Rx Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/microchip,sama7g5-spdifrx.yaml#"

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

Maintainers (maintainers): "Codrin Ciubotariu <codrin.ciubotariu@microchip.com>"

The Microchip Sony/Philips Digital Interface Receiver is a serial port compliant with the IEC-60958 standard.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

#sound-dai-cells — required here #

Exact value (const): 0

compatible — required here #

Exact value (const): "microchip,sama7g5-spdifrx"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Peripheral Bus Clock

Item 2

Generic Clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "gclk"

dmas — required here #

RX DMA Channel

Maximum number of items (maxItems): 1

dma-names — required here #

Exact value (const): "rx"

Required in this object (required): "#sound-dai-cells", "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/at91.h>
#include <dt-bindings/dma/at91.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

spdifrx: spdifrx@e1614000 {
    #sound-dai-cells = <0>;
    compatible = "microchip,sama7g5-spdifrx";
    reg = <0xe1614000 0x4000>;
    interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
    dmas = <&dma0 AT91_XDMAC_DT_PERID(49)>;
    dma-names = "rx";
    clocks = <&pmc PMC_TYPE_PERIPHERAL 84>, <&pmc PMC_TYPE_GCK 84>;
    clock-names = "pclk", "gclk";
};

Source notes #

Annotations retained from the schema source

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

Microchip S/PDIF Tx Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/microchip,sama7g5-spdiftx.yaml#"

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

Maintainers (maintainers): "Codrin Ciubotariu <codrin.ciubotariu@microchip.com>"

The Microchip Sony/Philips Digital Interface Transmitter is a serial port compliant with the IEC-60958 standard.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

#sound-dai-cells — required here #

Exact value (const): 0

compatible — required here #

Exact value (const): "microchip,sama7g5-spdiftx"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Peripheral Bus Clock

Item 2

Generic Clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "gclk"

dmas — required here #

TX DMA Channel

Maximum number of items (maxItems): 1

dma-names — required here #

Exact value (const): "tx"

Required in this object (required): "#sound-dai-cells", "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/at91.h>
#include <dt-bindings/dma/at91.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

spdiftx@e1618000 {
    #sound-dai-cells = <0>;
    compatible = "microchip,sama7g5-spdiftx";
    reg = <0xe1618000 0x4000>;
    interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
    dmas = <&dma0 AT91_XDMAC_DT_PERID(50)>;
    dma-names = "tx";
    clocks = <&pmc PMC_TYPE_PERIPHERAL 85>, <&pmc PMC_TYPE_GCK 85>;
    clock-names = "pclk", "gclk";
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_spdiftx_default>;
};

Source notes #

Annotations retained from the schema source

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

ZL38060 Connected Home Audio Processor from Microsemi.

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

The ZL38060 is a "Connected Home Audio Processor" from Microsemi, which consists of a Digital Signal Processor (DSP), several Digital Audio Interfaces (DAIs), analog outputs, and a block of 14 GPIOs.

Maintainers (maintainers): "Jaroslav Kysela <perex@perex.cz>", "Takashi Iwai <tiwai@suse.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mscc,zl38060"

reg — required here #

SPI device address.

Maximum number of items (maxItems): 1

spi-max-frequency — not listed as required here #

Maximum value (maximum): 24000000

reset-gpios — not listed as required here #

A GPIO line handling reset of the chip. As the line is active low, it should be marked GPIO_ACTIVE_LOW (see ../gpio/gpio.txt)

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "#gpio-cells", "gpio-controller", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
spi {
    #address-cells = <1>;
    #size-cells = <0>;

    codec: zl38060@0 {
        gpio-controller;
        #gpio-cells = <2>;
        #sound-dai-cells = <0>;
        compatible = "mscc,zl38060";
        reg = <0>;
        spi-max-frequency = <12000000>;
        reset-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
    };
};

Source notes #

Annotations retained from the schema source

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

Mediatek MT6359 Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Eason Yen <eason.yen@mediatek.com>", "Jiaxin Yu <jiaxin.yu@mediatek.com>", "Shane Chien <shane.chien@mediatek.com>"

The communication between MT6359 and SoC is through Mediatek PMIC wrapper. For more detail, please visit Mediatek PMIC wrapper documentation. Must be a child node of PMIC wrapper.

Properties and child nodes (properties) #

mediatek,dmic-mode — not listed as required here #

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

Indicates how many data pins are used to transmit two channels of PDM signal. 0 means two wires, 1 means one wire. Default value is 0.

Allowed values (enum): 0, 1

mediatek,mic-type-0 — not listed as required here #

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

Specifies the type of mic type connected to adc0

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

mediatek,mic-type-1 — not listed as required here #

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

Specifies the type of mic type connected to adc1

mediatek,mic-type-2 — not listed as required here #

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

Specifies the type of mic type connected to adc2

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

mt6359codec: audio-codec {
    mediatek,dmic-mode = <0>;
    mediatek,mic-type-0 = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 26: two wires

Line 27: one wire

Line 35: IDLE - mic in turn-off status

Line 36: ACC - analog mic with alternating coupling

Line 37: DMIC - digital mic

Line 38: DCC - analog mic with direct couping

Line 39: DCC_ECM_DIFF - analog electret condenser mic with differential mode

Line 40: DCC_ECM_SINGLE - analog electret condenser mic with single mode

Mediatek AFE PCM controller for mt8186

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mt8186-afe-pcm.yaml#"

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

Maintainers (maintainers): "Jiaxin Yu <jiaxin.yu@mediatek.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt8186-sound"

reg — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Exact value (const): "audiosys"

memory-region — not listed as required here #

memory region for audio DMA buffers

Maximum number of items (maxItems): 1

mediatek,apmixedsys — required here #

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

The phandle of the mediatek apmixedsys controller

mediatek,infracfg — required here #

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

The phandle of the mediatek infracfg controller

mediatek,topckgen — required here #

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

The phandle of the mediatek topckgen controller

clocks — required here #

Array item rules (items) #

Item 1

audio infra sys clock

Item 2

audio infra 26M clock

Item 3

audio top mux

Item 4

audio intbus mux

Item 5

mainpll 136.5M clock

Item 6

faud1 mux

Item 7

apll1 clock

Item 8

faud2 mux

Item 9

apll2 clock

Item 10

audio engen1 mux

Item 11

apll1_d8 22.5792M clock

Item 12

audio engen2 mux

Item 13

apll2_d8 24.576M clock

Item 14

i2s0 mclk mux

Item 15

i2s1 mclk mux

Item 16

i2s2 mclk mux

Item 17

i2s4 mclk mux

Item 18

tdm mclk mux

Item 19

i2s0_mck divider

Item 20

i2s1_mck divider

Item 21

i2s2_mck divider

Item 22

i2s4_mck divider

Item 23

tdm_mck divider

Item 24

audio hires mux

Item 25

26M clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "aud_infra_clk"

Item 2

Exact value (const): "mtkaif_26m_clk"

Item 3

Exact value (const): "top_mux_audio"

Item 4

Exact value (const): "top_mux_audio_int"

Item 5

Exact value (const): "top_mainpll_d2_d4"

Item 6

Exact value (const): "top_mux_aud_1"

Item 7

Exact value (const): "top_apll1_ck"

Item 8

Exact value (const): "top_mux_aud_2"

Item 9

Exact value (const): "top_apll2_ck"

Item 10

Exact value (const): "top_mux_aud_eng1"

Item 11

Exact value (const): "top_apll1_d8"

Item 12

Exact value (const): "top_mux_aud_eng2"

Item 13

Exact value (const): "top_apll2_d8"

Item 14

Exact value (const): "top_i2s0_m_sel"

Item 15

Exact value (const): "top_i2s1_m_sel"

Item 16

Exact value (const): "top_i2s2_m_sel"

Item 17

Exact value (const): "top_i2s4_m_sel"

Item 18

Exact value (const): "top_tdm_m_sel"

Item 19

Exact value (const): "top_apll12_div0"

Item 20

Exact value (const): "top_apll12_div1"

Item 21

Exact value (const): "top_apll12_div2"

Item 22

Exact value (const): "top_apll12_div4"

Item 23

Exact value (const): "top_apll12_div_tdm"

Item 24

Exact value (const): "top_mux_audio_h"

Item 25

Exact value (const): "top_clk26m_clk"

Required in this object (required): "compatible", "interrupts", "resets", "reset-names", "mediatek,apmixedsys", "mediatek,infracfg", "mediatek,topckgen", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

afe: mt8186-afe-pcm@11210000 {
    compatible = "mediatek,mt8186-sound";
    reg = <0x11210000 0x2000>;
    interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>;
    resets = <&watchdog 17>; //MT8186_TOPRGU_AUDIO_SW_RST
    reset-names = "audiosys";
    mediatek,apmixedsys = <&apmixedsys>;
    mediatek,infracfg = <&infracfg>;
    mediatek,topckgen = <&topckgen>;
    clocks = <&infracfg_ao 44>, //CLK_INFRA_AO_AUDIO
             <&infracfg_ao 54>, //CLK_INFRA_AO_AUDIO_26M_BCLK
             <&topckgen 15>, //CLK_TOP_AUDIO
             <&topckgen 16>, //CLK_TOP_AUD_INTBUS
             <&topckgen 70>, //CLK_TOP_MAINPLL_D2_D4
             <&topckgen 17>, //CLK_TOP_AUD_1
             <&apmixedsys 12>, //CLK_APMIXED_APLL1
             <&topckgen 18>, //CLK_TOP_AUD_2
             <&apmixedsys 13>, //CLK_APMIXED_APLL2
             <&topckgen 19>, //CLK_TOP_AUD_ENGEN1
             <&topckgen 101>, //CLK_TOP_APLL1_D8
             <&topckgen 20>, //CLK_TOP_AUD_ENGEN2
             <&topckgen 104>, //CLK_TOP_APLL2_D8
             <&topckgen 63>, //CLK_TOP_APLL_I2S0_MCK_SEL
             <&topckgen 64>, //CLK_TOP_APLL_I2S1_MCK_SEL
             <&topckgen 65>, //CLK_TOP_APLL_I2S2_MCK_SEL
             <&topckgen 66>, //CLK_TOP_APLL_I2S4_MCK_SEL
             <&topckgen 67>, //CLK_TOP_APLL_TDMOUT_MCK_SEL
             <&topckgen 131>, //CLK_TOP_APLL12_CK_DIV0
             <&topckgen 132>, //CLK_TOP_APLL12_CK_DIV1
             <&topckgen 133>, //CLK_TOP_APLL12_CK_DIV2
             <&topckgen 134>, //CLK_TOP_APLL12_CK_DIV4
             <&topckgen 135>, //CLK_TOP_APLL12_CK_DIV_TDMOUT_M
             <&topckgen 44>, //CLK_TOP_AUDIO_H
             <&clk26m>;
    clock-names = "aud_infra_clk",
                  "mtkaif_26m_clk",
                  "top_mux_audio",
                  "top_mux_audio_int",
                  "top_mainpll_d2_d4",
                  "top_mux_aud_1",
                  "top_apll1_ck",
                  "top_mux_aud_2",
                  "top_apll2_ck",
                  "top_mux_aud_eng1",
                  "top_apll1_d8",
                  "top_mux_aud_eng2",
                  "top_apll2_d8",
                  "top_i2s0_m_sel",
                  "top_i2s1_m_sel",
                  "top_i2s2_m_sel",
                  "top_i2s4_m_sel",
                  "top_tdm_m_sel",
                  "top_apll12_div0",
                  "top_apll12_div1",
                  "top_apll12_div2",
                  "top_apll12_div4",
                  "top_apll12_div_tdm",
                  "top_mux_audio_h",
                  "top_clk26m_clk";
    memory-region = <&afe_dma_mem>;
};

Source notes #

Annotations retained from the schema source

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

Mediatek MT8186 with MT6366, DA7219 and MAX98357 ASoC sound card driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mt8186-mt6366-da7219-max98357.yaml#"

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

Maintainers (maintainers): "Jiaxin Yu <jiaxin.yu@mediatek.com>"

This binding describes the MT8186 sound card.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "mediatek,mt8186-mt6366-da7219-max98357-sound"

audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names could be the input or output widgets of audio components, power supplies, MicBias of codec and the software switch.

Minimum number of items (minItems): 2

Array item rules (items) #

Allowed values (enum): "HDMI1", "Headphones", "Line Out", "MIC", "Speakers", "Headset Mic", "HPL", "HPR", "Speaker", "TX"

mediatek,platform — required here #

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

The phandle of MT8186 ASoC platform.

headset-codec — not listed as required here #

Value type (type): "object"

Deprecated (deprecated): true

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

sound-dai — required here

Maximum number of items (maxItems): 1

Required in this object (required): "sound-dai"

playback-codecs — not listed as required here #

Value type (type): "object"

Deprecated (deprecated): true

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

sound-dai — required here

Array item rules (items)

Item 1

phandle of dp codec

Item 2

phandle of l channel speaker codec

Item 3

phandle of r channel speaker codec

Minimum number of items (minItems): 2

Required in this object (required): "sound-dai"

mediatek,adsp — not listed as required here #

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

The phandle of MT8186 ADSP platform.

mediatek,dai-link — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array

A list of the desired dai-links in the sound card. Each entry is a name defined in the machine driver.

Properties matching a name pattern (patternProperties) #

.*-dai-link$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Container for dai-link level properties and CODEC sub-nodes.

Properties and child nodes (properties) #

link-name — required here

Indicates dai-link name and PCM stream name

Array item rules (items)

Allowed values (enum): "I2S0", "I2S1", "I2S2", "I2S3"

codec — not listed as required here

Holds subnode which indicates codec dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

sound-dai — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Required in this object (required): "sound-dai"

dai-format — not listed as required here

audio format

Array item rules (items)

Allowed values (enum): "i2s", "right_j", "left_j", "dsp_a", "dsp_b"

mediatek,clk-provider — not listed as required here

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

Indicates dai-link clock master.

Allowed values (enum): "cpu", "codec"

Required in this object (required): "link-name"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "mediatek,platform"

Condition (if) #

This rule must not match (not) #

Properties matching a name pattern (patternProperties) #

.*-dai-link$ — name matches this regular expression

false — Not permitted by this property rule.

When the condition matches (then) #

Properties and child nodes (properties) #

headset-codec — not listed as required here #

false — Not permitted by this property rule.

speaker-codecs — not listed as required here #

false — Not permitted by this property rule.

Examples (examples) #


sound: mt8186-sound {
    compatible = "mediatek,mt8186-mt6366-da7219-max98357-sound";
    model = "mt8186_da7219_m98357";
    pinctrl-names = "aud_clk_mosi_off",
                    "aud_clk_mosi_on";
    pinctrl-0 = <&aud_clk_mosi_off>;
    pinctrl-1 = <&aud_clk_mosi_on>;
    mediatek,platform = <&afe>;

    audio-routing =
            "Headphones", "HPL",
            "Headphones", "HPR",
            "MIC", "Headset Mic",
            "Speakers", "Speaker",
            "HDMI1", "TX";

    hs-playback-dai-link {
            link-name = "I2S0";
            dai-format = "i2s";
            mediatek,clk-provider = "cpu";
            codec {
                    sound-dai = <&da7219>;
            };
    };

    hs-capture-dai-link {
            link-name = "I2S1";
            dai-format = "i2s";
            mediatek,clk-provider = "cpu";
            codec {
                    sound-dai = <&da7219>;
            };
    };

    spk-dp-playback-dai-link {
            link-name = "I2S3";
            dai-format = "i2s";
            mediatek,clk-provider = "cpu";
            codec {
                    sound-dai = <&anx_bridge_dp>, <&max98357a>;
            };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 34: Sinks

Line 41: Sources

Line 140: Disallow legacy properties if xxx-dai-link nodes are specified

Mediatek MT8186 with MT6366, RT1019 and RT5682S ASoC sound card driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mt8186-mt6366-rt1019-rt5682s.yaml#"

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

Maintainers (maintainers): "Jiaxin Yu <jiaxin.yu@mediatek.com>"

This binding describes the MT8186 sound card.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "mediatek,mt8186-mt6366-rt1019-rt5682s-sound", "mediatek,mt8186-mt6366-rt5682s-max98360-sound", "mediatek,mt8186-mt6366-rt5650-sound"

audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names could be the input or output widgets of audio components, power supplies, MicBias of codec and the software switch.

Minimum number of items (minItems): 2

Array item rules (items) #

Allowed values (enum): "HDMI1", "Headphone", "IN1P", "IN1N", "Line Out", "Speakers", "Headset Mic", "HPOL", "HPOR", "Speaker", "SPOL", "SPOR", "TX"

mediatek,platform — required here #

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

The phandle of MT8186 ASoC platform.

dmic-gpios — not listed as required here #

Maximum number of items (maxItems): 1

dmic-gpios optional prop for switching between two DMICs. Ex, the GPIO can control a MUX HW component to select dmic clk and data form a Front or Rear dmic.

headset-codec — not listed as required here #

Value type (type): "object"

Deprecated (deprecated): true

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

sound-dai — required here

Maximum number of items (maxItems): 1

Required in this object (required): "sound-dai"

playback-codecs — not listed as required here #

Value type (type): "object"

Deprecated (deprecated): true

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

sound-dai — required here

Array item rules (items)

Item 1

phandle of dp codec

Item 2

phandle of l channel speaker codec

Item 3

phandle of r channel speaker codec

Minimum number of items (minItems): 2

Required in this object (required): "sound-dai"

mediatek,adsp — not listed as required here #

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

The phandle of MT8186 ADSP platform.

mediatek,dai-link — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array

A list of the desired dai-links in the sound card. Each entry is a name defined in the machine driver.

Properties matching a name pattern (patternProperties) #

.*-dai-link$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Container for dai-link level properties and CODEC sub-nodes.

Properties and child nodes (properties) #

link-name — required here

Indicates dai-link name and PCM stream name

Allowed values (enum): "I2S0", "I2S1", "I2S2", "I2S3"

codec — not listed as required here

Holds subnode which indicates codec dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

sound-dai — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Required in this object (required): "sound-dai"

dai-format — not listed as required here

audio format

Allowed values (enum): "i2s", "right_j", "left_j", "dsp_a", "dsp_b"

mediatek,clk-provider — not listed as required here

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

Indicates dai-link clock master.

Allowed values (enum): "cpu", "codec"

Required in this object (required): "link-name"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "mediatek,platform"

Condition (if) #

This rule must not match (not) #

Properties matching a name pattern (patternProperties) #

.*-dai-link$ — name matches this regular expression

false — Not permitted by this property rule.

When the condition matches (then) #

Properties and child nodes (properties) #

headset-codec — not listed as required here #

false — Not permitted by this property rule.

speaker-codecs — not listed as required here #

false — Not permitted by this property rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

sound: mt8186-sound {
    compatible = "mediatek,mt8186-mt6366-rt1019-rt5682s-sound";
    model = "mt8186_rt1019_rt5682s";
    pinctrl-names = "aud_clk_mosi_off",
                    "aud_clk_mosi_on",
                    "aud_gpio_dmic_sec";
    pinctrl-0 = <&aud_clk_mosi_off>;
    pinctrl-1 = <&aud_clk_mosi_on>;
    pinctrl-2 = <&aud_gpio_dmic_sec>;
    mediatek,platform = <&afe>;

    dmic-gpios = <&pio 23 GPIO_ACTIVE_HIGH>;

    audio-routing =
            "Headphone", "HPOL",
            "Headphone", "HPOR",
            "IN1P", "Headset Mic",
            "Speakers", "Speaker",
            "HDMI1", "TX";

    hs-playback-dai-link {
            link-name = "I2S0";
            dai-format = "i2s";
            mediatek,clk-provider = "cpu";
            codec {
                    sound-dai = <&rt5682s 0>;
            };
    };

    hs-capture-dai-link {
            link-name = "I2S1";
            dai-format = "i2s";
            mediatek,clk-provider = "cpu";
            codec {
                    sound-dai = <&rt5682s 0>;
            };
    };

    spk-hdmi-playback-dai-link {
            link-name = "I2S3";
            dai-format = "i2s";
            mediatek,clk-provider = "cpu";
            codec {
                    sound-dai = <&it6505dptx>, <&rt1019p>;
            };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 36: Sinks

Line 44: Sources

Line 139: Disallow legacy properties if xxx-dai-link nodes are specified

Mediatek AFE PCM controller for mt8192

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mt8192-afe-pcm.yaml#"

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

Maintainers (maintainers): "Jiaxin Yu <jiaxin.yu@mediatek.com>", "Shane Chien <shane.chien@mediatek.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt8192-audio"

interrupts — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Exact value (const): "audiosys"

memory-region — not listed as required here #

memory region for audio DMA buffers

Maximum number of items (maxItems): 1

mediatek,apmixedsys — required here #

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

The phandle of the mediatek apmixedsys controller

mediatek,infracfg — required here #

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

The phandle of the mediatek infracfg controller

mediatek,topckgen — required here #

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

The phandle of the mediatek topckgen controller

power-domains — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

AFE clock

Item 2

ADDA DAC clock

Item 3

ADDA DAC pre-distortion clock

Item 4

ADDA ADC clock

Item 5

ADDA6 ADC clock

Item 6

Audio low-jitter 22.5792m clock

Item 7

Audio low-jitter 24.576m clock

Item 8

Audio PLL1 tuner clock

Item 9

Audio PLL2 tuner clock

Item 10

Audio Time-Division Multiplexing interface clock

Item 11

ADDA ADC Sine Generator clock

Item 12

audio Non-LE clock

Item 13

Audio DAC High-Resolution clock

Item 14

Audio High-Resolution ADC clock

Item 15

Audio High-Resolution ADC SineGen clock

Item 16

Audio ADDA6 High-Resolution ADC clock

Item 17

Tertiary ADDA DAC clock

Item 18

Tertiary ADDA DAC pre-distortion clock

Item 19

Tertiary ADDA DAC Sine Generator clock

Item 20

Tertiary ADDA DAC High-Resolution clock

Item 21

Audio infra sys clock

Item 22

Audio infra 26M clock

Item 23

Mux for audio clock

Item 24

Mux for audio internal bus clock

Item 25

Mux main divider by 4

Item 26

Primary audio mux

Item 27

Primary audio PLL

Item 28

Secondary audio mux

Item 29

Secondary audio PLL

Item 30

Primary audio en-generator clock

Item 31

Primary PLL divider by 4 for IEC

Item 32

Secondary audio en-generator clock

Item 33

Secondary PLL divider by 4 for IEC

Item 34

Mux selector for I2S port 0

Item 35

Mux selector for I2S port 1

Item 36

Mux selector for I2S port 2

Item 37

Mux selector for I2S port 3

Item 38

Mux selector for I2S port 4

Item 39

Mux selector for I2S port 5

Item 40

Mux selector for I2S port 6

Item 41

Mux selector for I2S port 7

Item 42

Mux selector for I2S port 8

Item 43

Mux selector for I2S port 9

Item 44

APLL1 and APLL2 divider for I2S port 0

Item 45

APLL1 and APLL2 divider for I2S port 1

Item 46

APLL1 and APLL2 divider for I2S port 2

Item 47

APLL1 and APLL2 divider for I2S port 3

Item 48

APLL1 and APLL2 divider for I2S port 4

Item 49

APLL1 and APLL2 divider for IEC

Item 50

APLL1 and APLL2 divider for I2S port 5

Item 51

APLL1 and APLL2 divider for I2S port 6

Item 52

APLL1 and APLL2 divider for I2S port 7

Item 53

APLL1 and APLL2 divider for I2S port 8

Item 54

APLL1 and APLL2 divider for I2S port 9

Item 55

Top mux for audio subsystem

Item 56

26MHz clock for audio subsystem

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "aud_afe_clk"

Item 2

Exact value (const): "aud_dac_clk"

Item 3

Exact value (const): "aud_dac_predis_clk"

Item 4

Exact value (const): "aud_adc_clk"

Item 5

Exact value (const): "aud_adda6_adc_clk"

Item 6

Exact value (const): "aud_apll22m_clk"

Item 7

Exact value (const): "aud_apll24m_clk"

Item 8

Exact value (const): "aud_apll1_tuner_clk"

Item 9

Exact value (const): "aud_apll2_tuner_clk"

Item 10

Exact value (const): "aud_tdm_clk"

Item 11

Exact value (const): "aud_tml_clk"

Item 12

Exact value (const): "aud_nle"

Item 13

Exact value (const): "aud_dac_hires_clk"

Item 14

Exact value (const): "aud_adc_hires_clk"

Item 15

Exact value (const): "aud_adc_hires_tml"

Item 16

Exact value (const): "aud_adda6_adc_hires_clk"

Item 17

Exact value (const): "aud_3rd_dac_clk"

Item 18

Exact value (const): "aud_3rd_dac_predis_clk"

Item 19

Exact value (const): "aud_3rd_dac_tml"

Item 20

Exact value (const): "aud_3rd_dac_hires_clk"

Item 21

Exact value (const): "aud_infra_clk"

Item 22

Exact value (const): "aud_infra_26m_clk"

Item 23

Exact value (const): "top_mux_audio"

Item 24

Exact value (const): "top_mux_audio_int"

Item 25

Exact value (const): "top_mainpll_d4_d4"

Item 26

Exact value (const): "top_mux_aud_1"

Item 27

Exact value (const): "top_apll1_ck"

Item 28

Exact value (const): "top_mux_aud_2"

Item 29

Exact value (const): "top_apll2_ck"

Item 30

Exact value (const): "top_mux_aud_eng1"

Item 31

Exact value (const): "top_apll1_d4"

Item 32

Exact value (const): "top_mux_aud_eng2"

Item 33

Exact value (const): "top_apll2_d4"

Item 34

Exact value (const): "top_i2s0_m_sel"

Item 35

Exact value (const): "top_i2s1_m_sel"

Item 36

Exact value (const): "top_i2s2_m_sel"

Item 37

Exact value (const): "top_i2s3_m_sel"

Item 38

Exact value (const): "top_i2s4_m_sel"

Item 39

Exact value (const): "top_i2s5_m_sel"

Item 40

Exact value (const): "top_i2s6_m_sel"

Item 41

Exact value (const): "top_i2s7_m_sel"

Item 42

Exact value (const): "top_i2s8_m_sel"

Item 43

Exact value (const): "top_i2s9_m_sel"

Item 44

Exact value (const): "top_apll12_div0"

Item 45

Exact value (const): "top_apll12_div1"

Item 46

Exact value (const): "top_apll12_div2"

Item 47

Exact value (const): "top_apll12_div3"

Item 48

Exact value (const): "top_apll12_div4"

Item 49

Exact value (const): "top_apll12_divb"

Item 50

Exact value (const): "top_apll12_div5"

Item 51

Exact value (const): "top_apll12_div6"

Item 52

Exact value (const): "top_apll12_div7"

Item 53

Exact value (const): "top_apll12_div8"

Item 54

Exact value (const): "top_apll12_div9"

Item 55

Exact value (const): "top_mux_audio_h"

Item 56

Exact value (const): "top_clk26m_clk"

Required in this object (required): "compatible", "interrupts", "resets", "reset-names", "mediatek,apmixedsys", "mediatek,infracfg", "mediatek,topckgen", "power-domains", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mt8192-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/power/mt8192-power.h>
#include <dt-bindings/reset/mt8192-resets.h>

afe: mt8192-afe-pcm {
    compatible = "mediatek,mt8192-audio";
    interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&audsys CLK_AUD_AFE>, <&audsys CLK_AUD_DAC>,
             <&audsys CLK_AUD_DAC_PREDIS>, <&audsys CLK_AUD_ADC>,
             <&audsys CLK_AUD_ADDA6_ADC>, <&audsys CLK_AUD_22M>,
             <&audsys CLK_AUD_24M>, <&audsys CLK_AUD_APLL_TUNER>,
             <&audsys CLK_AUD_APLL2_TUNER>, <&audsys CLK_AUD_TDM>,
             <&audsys CLK_AUD_TML>, <&audsys CLK_AUD_NLE>,
             <&audsys CLK_AUD_DAC_HIRES>, <&audsys CLK_AUD_ADC_HIRES>,
             <&audsys CLK_AUD_ADC_HIRES_TML>, <&audsys CLK_AUD_ADDA6_ADC_HIRES>,
             <&audsys CLK_AUD_3RD_DAC>, <&audsys CLK_AUD_3RD_DAC_PREDIS>,
             <&audsys CLK_AUD_3RD_DAC_TML>, <&audsys CLK_AUD_3RD_DAC_HIRES>,
             <&infracfg CLK_INFRA_AUDIO>, <&infracfg CLK_INFRA_AUDIO_26M_B>,
             <&topckgen CLK_TOP_AUDIO_SEL>, <&topckgen CLK_TOP_AUD_INTBUS_SEL>,
             <&topckgen CLK_TOP_MAINPLL_D4_D4>, <&topckgen CLK_TOP_AUD_1_SEL>,
             <&topckgen CLK_TOP_APLL1>, <&topckgen CLK_TOP_AUD_2_SEL>,
             <&topckgen CLK_TOP_APLL2>, <&topckgen CLK_TOP_AUD_ENGEN1_SEL>,
             <&topckgen CLK_TOP_APLL1_D4>, <&topckgen CLK_TOP_AUD_ENGEN2_SEL>,
             <&topckgen CLK_TOP_APLL2_D4>, <&topckgen CLK_TOP_APLL_I2S0_M_SEL>,
             <&topckgen CLK_TOP_APLL_I2S1_M_SEL>, <&topckgen CLK_TOP_APLL_I2S2_M_SEL>,
             <&topckgen CLK_TOP_APLL_I2S3_M_SEL>, <&topckgen CLK_TOP_APLL_I2S4_M_SEL>,
             <&topckgen CLK_TOP_APLL_I2S5_M_SEL>, <&topckgen CLK_TOP_APLL_I2S6_M_SEL>,
             <&topckgen CLK_TOP_APLL_I2S7_M_SEL>, <&topckgen CLK_TOP_APLL_I2S8_M_SEL>,
             <&topckgen CLK_TOP_APLL_I2S9_M_SEL>, <&topckgen CLK_TOP_APLL12_DIV0>,
             <&topckgen CLK_TOP_APLL12_DIV1>, <&topckgen CLK_TOP_APLL12_DIV2>,
             <&topckgen CLK_TOP_APLL12_DIV3>, <&topckgen CLK_TOP_APLL12_DIV4>,
             <&topckgen CLK_TOP_APLL12_DIVB>, <&topckgen CLK_TOP_APLL12_DIV5>,
             <&topckgen CLK_TOP_APLL12_DIV6>, <&topckgen CLK_TOP_APLL12_DIV7>,
             <&topckgen CLK_TOP_APLL12_DIV8>, <&topckgen CLK_TOP_APLL12_DIV9>,
             <&topckgen CLK_TOP_AUDIO_H_SEL>, <&clk26m>;
    clock-names = "aud_afe_clk", "aud_dac_clk",
                  "aud_dac_predis_clk", "aud_adc_clk",
                  "aud_adda6_adc_clk", "aud_apll22m_clk",
                  "aud_apll24m_clk", "aud_apll1_tuner_clk",
                  "aud_apll2_tuner_clk", "aud_tdm_clk",
                  "aud_tml_clk", "aud_nle",
                  "aud_dac_hires_clk", "aud_adc_hires_clk",
                  "aud_adc_hires_tml", "aud_adda6_adc_hires_clk",
                  "aud_3rd_dac_clk", "aud_3rd_dac_predis_clk",
                  "aud_3rd_dac_tml", "aud_3rd_dac_hires_clk",
                  "aud_infra_clk", "aud_infra_26m_clk",
                  "top_mux_audio", "top_mux_audio_int",
                  "top_mainpll_d4_d4", "top_mux_aud_1",
                  "top_apll1_ck", "top_mux_aud_2",
                  "top_apll2_ck", "top_mux_aud_eng1",
                  "top_apll1_d4", "top_mux_aud_eng2",
                  "top_apll2_d4", "top_i2s0_m_sel",
                  "top_i2s1_m_sel", "top_i2s2_m_sel",
                  "top_i2s3_m_sel", "top_i2s4_m_sel",
                  "top_i2s5_m_sel", "top_i2s6_m_sel",
                  "top_i2s7_m_sel", "top_i2s8_m_sel",
                  "top_i2s9_m_sel", "top_apll12_div0",
                  "top_apll12_div1", "top_apll12_div2",
                  "top_apll12_div3", "top_apll12_div4",
                  "top_apll12_divb", "top_apll12_div5",
                  "top_apll12_div6", "top_apll12_div7",
                  "top_apll12_div8", "top_apll12_div9",
                  "top_mux_audio_h", "top_clk26m_clk";
    memory-region = <&afe_dma_mem>;
    power-domains = <&scpsys MT8192_POWER_DOMAIN_AUDIO>;
    resets = <&watchdog MT8192_TOPRGU_AUDIO_SW_RST>;
    reset-names = "audiosys";
    mediatek,apmixedsys = <&apmixedsys>;
    mediatek,infracfg = <&infracfg>;
    mediatek,topckgen = <&topckgen>;
};

Source notes #

Annotations retained from the schema source

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

Mediatek MT8192 with MT6359, RT1015 and RT5682 ASoC sound card driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mt8192-mt6359-rt1015-rt5682.yaml#"

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

Maintainers (maintainers): "Jiaxin Yu <jiaxin.yu@mediatek.com>", "Shane Chien <shane.chien@mediatek.com>"

This binding describes the MT8192 sound card.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "mediatek,mt8192_mt6359_rt1015_rt5682", "mediatek,mt8192_mt6359_rt1015p_rt5682", "mediatek,mt8192_mt6359_rt1015p_rt5682s"

audio-routing — not listed as required here #

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names could be the input or output widgets of audio components, power supplies, MicBias of codec and the software switch.

Minimum number of items (minItems): 2

Array item rules (items) #

Allowed values (enum): "Speakers", "Headphone Jack", "IN1P", "Left Spk", "Right Spk", "Headset Mic", "HPOL", "HPOR", "Left SPO", "Right SPO", "Speaker"

mediatek,platform — required here #

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

The phandle of MT8192 ASoC platform.

mediatek,hdmi-codec — not listed as required here #

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

The phandle of HDMI codec.

Deprecated (deprecated): true

headset-codec — not listed as required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Deprecated (deprecated): true

Properties and child nodes (properties) #

sound-dai — required here

Maximum number of items (maxItems): 1

Required in this object (required): "sound-dai"

speaker-codecs — not listed as required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Deprecated (deprecated): true

Properties and child nodes (properties) #

sound-dai — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Array item rules (items)

Maximum number of items (maxItems): 1

Required in this object (required): "sound-dai"

Properties matching a name pattern (patternProperties) #

.*-dai-link$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Container for dai-link level properties and CODEC sub-nodes.

Properties and child nodes (properties) #

link-name — required here

Indicates dai-link name and PCM stream name

Allowed values (enum): "I2S0", "I2S1", "I2S2", "I2S3", "I2S4", "I2S5", "I2S6", "I2S7", "I2S8", "I2S9", "TDM"

codec — not listed as required here

Holds subnode which indicates codec dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

sound-dai — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Required in this object (required): "sound-dai"

dai-format — not listed as required here

audio format

Allowed values (enum): "i2s", "right_j", "left_j", "dsp_a", "dsp_b"

mediatek,clk-provider — not listed as required here

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

Indicates dai-link clock master.

Allowed values (enum): "cpu", "codec"

Required in this object (required): "link-name"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "mediatek,platform"

Condition (if) #

This rule must not match (not) #

Properties matching a name pattern (patternProperties) #

.*-dai-link$ — name matches this regular expression

false — Not permitted by this property rule.

When the condition matches (then) #

Properties and child nodes (properties) #

headset-codec — not listed as required here #

false — Not permitted by this property rule.

speaker-codecs — not listed as required here #

false — Not permitted by this property rule.

mediatek,hdmi-codec — not listed as required here #

false — Not permitted by this property rule.

Examples (examples) #


sound: mt8192-sound {
    compatible = "mediatek,mt8192_mt6359_rt1015_rt5682";
    model = "mt8192_mt6359_rt1015_rt5682";
    pinctrl-names = "aud_clk_mosi_off",
                    "aud_clk_mosi_on";
    pinctrl-0 = <&aud_clk_mosi_off>;
    pinctrl-1 = <&aud_clk_mosi_on>;
    mediatek,platform = <&afe>;

    audio-routing =
            "Headphone Jack", "HPOL",
            "Headphone Jack", "HPOR",
            "IN1P", "Headset Mic",
            "Speakers", "Speaker";

    spk-playback-dai-link {
            link-name = "I2S3";
            dai-format = "i2s";
            mediatek,clk-provider = "cpu";
            codec {
                    sound-dai = <&rt1015p>;
            };
    };

    hs-playback-dai-link {
            link-name = "I2S8";
            dai-format = "i2s";
            mediatek,clk-provider = "cpu";
            codec {
                    sound-dai = <&rt5682 0>;
            };
    };

    hs-capture-dai-link {
            link-name = "I2S9";
            dai-format = "i2s";
            mediatek,clk-provider = "cpu";
            codec {
                    sound-dai = <&rt5682 0>;
            };
    };

    displayport-dai-link {
            link-name = "TDM";
            dai-format = "dsp_a";
            codec {
                    sound-dai = <&anx_bridge_dp>;
            };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 36: Sinks

Line 43: Sources

Line 138: Disallow legacy properties if xxx-dai-link nodes are specified

Mediatek AFE PCM controller for mt8195

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mt8195-afe-pcm.yaml#"

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

Maintainers (maintainers): "Trevor Wu <trevor.wu@mediatek.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt8195-audio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Exact value (const): "audiosys"

memory-region — required here #

Maximum number of items (maxItems): 1

Shared memory region for AFE memif. A "shared-dma-pool". See ../reserved-memory/reserved-memory.txt for details.

mediatek,topckgen — required here #

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

The phandle of the mediatek topckgen controller

power-domains — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

26M clock

Item 2

audio pll1 clock

Item 3

audio pll2 clock

Item 4

clock divider for i2si1_mck

Item 5

clock divider for i2si2_mck

Item 6

clock divider for i2so1_mck

Item 7

clock divider for i2so2_mck

Item 8

clock divider for dptx_mck

Item 9

a1sys hoping clock

Item 10

audio intbus clock

Item 11

audio hires clock

Item 12

audio local bus clock

Item 13

mux for dptx_mck

Item 14

mux for i2so1_mck

Item 15

mux for i2so2_mck

Item 16

mux for i2si1_mck

Item 17

mux for i2si2_mck

Item 18

audio infra 26M clock

Item 19

infra bus clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "clk26m"

Item 2

Exact value (const): "apll1_ck"

Item 3

Exact value (const): "apll2_ck"

Item 4

Exact value (const): "apll12_div0"

Item 5

Exact value (const): "apll12_div1"

Item 6

Exact value (const): "apll12_div2"

Item 7

Exact value (const): "apll12_div3"

Item 8

Exact value (const): "apll12_div9"

Item 9

Exact value (const): "a1sys_hp_sel"

Item 10

Exact value (const): "aud_intbus_sel"

Item 11

Exact value (const): "audio_h_sel"

Item 12

Exact value (const): "audio_local_bus_sel"

Item 13

Exact value (const): "dptx_m_sel"

Item 14

Exact value (const): "i2so1_m_sel"

Item 15

Exact value (const): "i2so2_m_sel"

Item 16

Exact value (const): "i2si1_m_sel"

Item 17

Exact value (const): "i2si2_m_sel"

Item 18

Exact value (const): "infra_ao_audio_26m_b"

Item 19

Exact value (const): "scp_adsp_audiodsp"

mediatek,etdm-in1-chn-disabled — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array

Maximum number of items (maxItems): 24

Specify which input channel should be disabled.

mediatek,etdm-in2-chn-disabled — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array

Maximum number of items (maxItems): 16

Specify which input channel should be disabled.

Properties matching a name pattern (patternProperties) #

^mediatek,etdm-in[1-2]-mclk-always-on-rate-hz$ — name matches this regular expression #

Specify etdm in mclk output rate for always on case.

^mediatek,etdm-out[1-3]-mclk-always-on-rate-hz$ — name matches this regular expression #

Specify etdm out mclk output rate for always on case.

^mediatek,etdm-in[1-2]-multi-pin-mode$ — name matches this regular expression #

Value type (type): "boolean"

if present, the etdm data mode is I2S.

^mediatek,etdm-out[1-3]-multi-pin-mode$ — name matches this regular expression #

Value type (type): "boolean"

if present, the etdm data mode is I2S.

^mediatek,etdm-in[1-2]-cowork-source$ — name matches this regular expression #

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

etdm modules can share the same external clock pin. Specify which etdm clock source is required by this etdm in module.

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

^mediatek,etdm-out[1-2]-cowork-source$ — name matches this regular expression #

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

etdm modules can share the same external clock pin. Specify which etdm clock source is required by this etdm out module.

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

Required in this object (required): "compatible", "reg", "interrupts", "resets", "reset-names", "mediatek,topckgen", "power-domains", "clocks", "clock-names", "memory-region"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

afe: mt8195-afe-pcm@10890000 {
    compatible = "mediatek,mt8195-audio";
    reg = <0x10890000 0x10000>;
    interrupts = <GIC_SPI 822 IRQ_TYPE_LEVEL_HIGH 0>;
    resets = <&watchdog 14>;
    reset-names = "audiosys";
    mediatek,topckgen = <&topckgen>;
    power-domains = <&spm 7>; //MT8195_POWER_DOMAIN_AUDIO
    memory-region = <&snd_dma_mem_reserved>;
    clocks = <&clk26m>,
             <&topckgen 163>, //CLK_TOP_APLL1
             <&topckgen 166>, //CLK_TOP_APLL2
             <&topckgen 233>, //CLK_TOP_APLL12_DIV0
             <&topckgen 234>, //CLK_TOP_APLL12_DIV1
             <&topckgen 235>, //CLK_TOP_APLL12_DIV2
             <&topckgen 236>, //CLK_TOP_APLL12_DIV3
             <&topckgen 238>, //CLK_TOP_APLL12_DIV9
             <&topckgen 100>, //CLK_TOP_A1SYS_HP_SEL
             <&topckgen 33>, //CLK_TOP_AUD_INTBUS_SEL
             <&topckgen 34>, //CLK_TOP_AUDIO_H_SEL
             <&topckgen 107>, //CLK_TOP_AUDIO_LOCAL_BUS_SEL
             <&topckgen 98>, //CLK_TOP_DPTX_M_SEL
             <&topckgen 94>, //CLK_TOP_I2SO1_M_SEL
             <&topckgen 95>, //CLK_TOP_I2SO2_M_SEL
             <&topckgen 96>, //CLK_TOP_I2SI1_M_SEL
             <&topckgen 97>, //CLK_TOP_I2SI2_M_SEL
             <&infracfg_ao 50>, //CLK_INFRA_AO_AUDIO_26M_B
             <&scp_adsp 0>; //CLK_SCP_ADSP_AUDIODSP
    clock-names = "clk26m",
                  "apll1_ck",
                  "apll2_ck",
                  "apll12_div0",
                  "apll12_div1",
                  "apll12_div2",
                  "apll12_div3",
                  "apll12_div9",
                  "a1sys_hp_sel",
                  "aud_intbus_sel",
                  "audio_h_sel",
                  "audio_local_bus_sel",
                  "dptx_m_sel",
                  "i2so1_m_sel",
                  "i2so2_m_sel",
                  "i2si1_m_sel",
                  "i2si2_m_sel",
                  "infra_ao_audio_26m_b",
                  "scp_adsp_audiodsp";
};

Source notes #

Annotations retained from the schema source

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

Line 116: etdm1_in

Line 117: etdm2_in

Line 118: etdm1_out

Line 119: etdm2_out

Line 127: etdm1_in

Line 128: etdm2_in

Line 129: etdm1_out

Line 130: etdm2_out

MediaTek MT8195 ASoC sound card driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/mt8195-mt6359.yaml#"

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

Maintainers (maintainers): "Trevor Wu <trevor.wu@mediatek.com>"

This binding describes the MT8195 sound card.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "mediatek,mt8195_mt6359_rt1019_rt5682", "mediatek,mt8195_mt6359_rt1011_rt5682", "mediatek,mt8195_mt6359_max98390_rt5682", "mediatek,mt8195_mt6359"

model — not listed as required here #

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

User specified audio sound card name

audio-routing — not listed as required here #

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names could be the input or output widgets of audio components, power supplies, MicBias of codec and the software switch.

Minimum number of items (minItems): 2

Array item rules (items) #

Allowed values (enum): "Ext Spk", "Headphone", "IN1P", "Left Spk", "Right Spk", "Headphone L", "Headphone R", "Headset Mic", "HPOL", "HPOR", "Left BE_OUT", "Left SPO", "Right BE_OUT", "Right SPO", "Speaker"

mediatek,platform — required here #

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

The phandle of MT8195 ASoC platform.

mediatek,dptx-codec — not listed as required here #

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

The phandle of MT8195 Display Port Tx codec node.

Deprecated (deprecated): true

mediatek,hdmi-codec — not listed as required here #

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

The phandle of MT8195 HDMI codec node.

Deprecated (deprecated): true

mediatek,adsp — not listed as required here #

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

The phandle of MT8195 ADSP platform.

mediatek,dai-link — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array

A list of the desired dai-links in the sound card. Each entry is a name defined in the machine driver.

Properties matching a name pattern (patternProperties) #

.*-dai-link$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Container for dai-link level properties and CODEC sub-nodes.

Properties and child nodes (properties) #

link-name — required here

Indicates dai-link name and PCM stream name

Allowed values (enum): "DL_SRC_BE", "DPTX_BE", "ETDM1_IN_BE", "ETDM2_IN_BE", "ETDM1_OUT_BE", "ETDM2_OUT_BE", "ETDM3_OUT_BE", "PCM1_BE"

codec — not listed as required here

Holds subnode which indicates codec dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

sound-dai — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Required in this object (required): "sound-dai"

dai-format — not listed as required here

audio format

Allowed values (enum): "i2s", "right_j", "left_j", "dsp_a", "dsp_b"

mediatek,clk-provider — not listed as required here

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

Indicates dai-link clock master.

Allowed values (enum): "cpu", "codec"

Required in this object (required): "link-name"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "mediatek,platform"

Condition (if) #

This rule must not match (not) #

Properties matching a name pattern (patternProperties) #

.*-dai-link$ — name matches this regular expression

false — Not permitted by this property rule.

When the condition matches (then) #

Properties and child nodes (properties) #

mediatek,dptx-codec — not listed as required here #

false — Not permitted by this property rule.

mediatek,hdmi-codec — not listed as required here #

false — Not permitted by this property rule.

Examples (examples) #


sound: mt8195-sound {
    compatible = "mediatek,mt8195_mt6359_rt1019_rt5682";
    model = "mt8195_r1019_5682";
    mediatek,platform = <&afe>;
    pinctrl-names = "default";
    pinctrl-0 = <&aud_pins_default>;

    audio-routing =
            "Headphone", "HPOL",
            "Headphone", "HPOR",
            "IN1P", "Headset Mic",
            "Ext Spk", "Speaker";

    mm-dai-link {
            link-name = "ETDM1_IN_BE";
            mediatek,clk-provider = "cpu";
    };

    hs-playback-dai-link {
            link-name = "ETDM1_OUT_BE";
            mediatek,clk-provider = "cpu";
            codec {
                    sound-dai = <&headset_codec>;
            };
    };

    hs-capture-dai-link {
            link-name = "ETDM2_IN_BE";
            mediatek,clk-provider = "cpu";
            codec {
                    sound-dai = <&headset_codec>;
            };
    };

    spk-playback-dai-link {
            link-name = "ETDM2_OUT_BE";
            mediatek,clk-provider = "cpu";
            codec {
                    sound-dai = <&spk_amplifier>;
            };
    };

    hdmi-dai-link {
            link-name = "ETDM3_OUT_BE";
            codec {
                    sound-dai = <&hdmi_tx>;
            };
    };

    displayport-dai-link {
            link-name = "DPTX_BE";
            codec {
                    sound-dai = <&dp_tx>;
            };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 40: Sinks

Line 47: Sources

Line 132: Disallow legacy properties if xxx-dai-link nodes are specified

NeoFidelity NTP8835/NTP8835C Amplifiers

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

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

Maintainers (maintainers): "Igor Prusov <ivprusov@salutedevices.com>"

The NTP8835 is a single chip full digital audio amplifier including power stages for stereo amplifier systems. NTP8835 is integrated with versatile digital audio signal processing functions, high-performance, high-fidelity fully digital PWM modulator and two high-power full-bridge MOSFET power stages. NTP8835C has identical programming interface, but has different output signal characteristics.

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): "neofidelity,ntp8835", "neofidelity,ntp8835c"

reg — required here #

Allowed values (enum): 42, 43, 44, 45

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

clocks — not listed as required here #

Maximum number of items (maxItems): 4

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "wck"

Item 2

Exact value (const): "bck"

Item 3

Exact value (const): "scl"

Item 4

Exact value (const): "mclk"

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

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@2b {
     compatible = "neofidelity,ntp8835";
     #sound-dai-cells = <0>;
     reg = <0x2b>;
     reset-gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
     clocks = <&clkc 551>, <&clkc 552>, <&clkc 553>, <&clkc 554>;
     clock-names = "wck", "bck", "scl", "mclk";
   };
 };

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NeoFidelity NTP8918 Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/neofidelity,ntp8918.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Igor Prusov <ivprusov@salutedevices.com>"

The NTP8918 is a single chip full digital audio amplifier including power stage for stereo amplifier system. The NTP8918 is integrated with versatile digital audio signal processing functions, high-performance, high-fidelity fully digital PWM modulator and two high-power full-bridge MOSFET power stages.

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): "neofidelity,ntp8918"

reg — required here #

Allowed values (enum): 42, 43, 44, 45

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

clocks — not listed as required here #

Maximum number of items (maxItems): 3

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "wck"

Item 2

Exact value (const): "scl"

Item 3

Exact value (const): "bck"

Required in this object (required): "compatible", "reg"

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@2a {
        compatible = "neofidelity,ntp8918";
        #sound-dai-cells = <0>;
        reg = <0x2a>;
        clocks = <&clkc 150>, <&clkc 151>, <&clkc 152>;
        clock-names =  "wck", "scl", "bck";
        reset-gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NAU8315/NAU8318 Mono Class-D Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nuvoton,nau8315.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "David Lin <CTLIN0@nuvoton.com>"

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): "nuvoton,nau8315", "nuvoton,nau8318"

#sound-dai-cells — not listed as required here #

Exact value (const): 0

enable-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO specifier for the chip's device enable input(EN) pin. If this option is not specified then driver does not manage the pin state (e.g. chip is always on).

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

codec {
    compatible = "nuvoton,nau8315";
    #sound-dai-cells = <0>;
    enable-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

NAU8325 audio Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nuvoton,nau8325.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Seven Lee <WTLI@nuvoton.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nuvoton,nau8325"

reg — required here #

Maximum number of items (maxItems): 1

nuvoton,vref-impedance-ohms — not listed as required here #

The vref impedance to be used in ohms. Middle of voltage enables Tie-Off selection options. Due to the high impedance of the VREF pin, it is important to use a low-leakage capacitor.

Allowed values (enum): 0, 25000, 125000, 2500

nuvoton,dac-vref-microvolt — not listed as required here #

The DAC vref to be used in voltage. DAC reference voltage setting. Can be used for minor tuning of the output level. Since the VDDA is range between 1.62 to 1.98 voltage, the typical value for design is 1.8V. After the minor tuning, the final microvolt are as the below.

Allowed values (enum): 1800000, 2700000, 2880000, 3060000

nuvoton,alc-enable — not listed as required here #

Enable digital automatic level control (ALC) function.

Value type (type): "boolean"

nuvoton,clock-detection-disable — not listed as required here #

When clock detection is enabled, it will detect whether MCLK and FS are within the range. MCLK range is from 2.048MHz to 24.576MHz. FS range is from 8kHz to 96kHz. And also needs to detect the ratio MCLK_SRC/LRCK of 256, 400 or 500, and needs to detect the BCLK to make sure data is present. There needs to be at least 8 BCLK cycles per Frame Sync.

Value type (type): "boolean"

nuvoton,clock-det-data — not listed as required here #

Request clock detection to require 2048 non-zero samples before enabling the audio paths. If set then non-zero samples is required, otherwise it doesn't matter.

Value type (type): "boolean"

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@21 {
        compatible = "nuvoton,nau8325";
        reg = <0x21>;
        nuvoton,vref-impedance-ohms = <125000>;
        nuvoton,dac-vref-microvolt = <2880000>;
        nuvoton,alc-enable;
        nuvoton,clock-det-data;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NAU88L21 audio codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nuvoton,nau8821.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Seven Lee <wtli@nuvoton.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nuvoton,nau8821"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

nuvoton,jkdet-enable — not listed as required here #

Enable jack detection via JKDET pin.

Value type (type): "boolean"

nuvoton,jkdet-pull-enable — not listed as required here #

Enable JKDET pin pull. If set - pin pull enabled, otherwise pin in high impedance state.

Value type (type): "boolean"

nuvoton,jkdet-pull-up — not listed as required here #

Pull-up JKDET pin. If set then JKDET pin is pull up, otherwise pull down.

Value type (type): "boolean"

nuvoton,key-enable — not listed as required here #

handles key press detection.

Value type (type): "boolean"

nuvoton,jkdet-polarity — not listed as required here #

JKDET pin polarity.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

Default value (default): 1

nuvoton,micbias-voltage — not listed as required here #

MICBIAS output level select.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7

Default value (default): 6

nuvoton,vref-impedance — not listed as required here #

VMID Tie-off impedance select.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3

Default value (default): 2

nuvoton,jack-insert-debounce — not listed as required here #

number from 0 to 7 that sets debounce time to 2^(n+2)ms.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 7

Default value (default): 7

nuvoton,jack-eject-debounce — not listed as required here #

number from 0 to 7 that sets debounce time to 2^(n+2)ms.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 7

Default value (default): 0

nuvoton,dmic-clk-threshold — not listed as required here #

DMIC clock speed expected value. Unit is Hz.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 3072000

nuvoton,dmic-slew-rate — not listed as required here #

The range 0 to 7 represents the speed of DMIC slew rate. The lowest value 0 means the slowest rate and the highest value 7 means the fastest rate.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 7

Default value (default): 0

nuvoton,left-input-single-end — not listed as required here #

Enable left input with single-ended settings if set. For the headset mic application, the single-ended control is just limited to the left adc for design demand.

Value type (type): "boolean"

nuvoton,adc-delay-ms — not listed as required here #

Delay (in ms) to make input path stable and avoid pop noise.

Minimum value (minimum): 125

Maximum value (maximum): 500

Default value (default): 125

#sound-dai-cells — not listed as required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@1b {
        compatible = "nuvoton,nau8821";
        reg = <0x1b>;
        interrupt-parent = <&gpio>;
        interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
        nuvoton,jkdet-enable;
        nuvoton,jkdet-pull-enable;
        nuvoton,jkdet-pull-up;
        nuvoton,key-enable;
        nuvoton,left-input-single-end;
        nuvoton,jkdet-polarity = <GPIO_ACTIVE_LOW>;
        nuvoton,micbias-voltage = <6>;
        nuvoton,vref-impedance = <2>;
        nuvoton,jack-insert-debounce = <7>;
        nuvoton,jack-eject-debounce = <0>;
        nuvoton,dmic-clk-threshold = <3072000>;
        nuvoton,dmic-slew-rate = <0>;
        nuvoton,adc-delay-ms = <125>;
        #sound-dai-cells = <0>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 47: active high

Line 48: active low

Line 55: VDDA

Line 56: VDDA * 1

Line 57: VDDA * 1.1

Line 58: VDDA * 1.2

Line 59: VDDA * 1.3

Line 60: VDDA * 1.4

Line 61: VDDA * 1.53

Line 62: VDDA * 1.53

Line 69: open

Line 70: 25KOhms

Line 71: 125KOhms

Line 72: 2.5KOhms

NAU8822 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nuvoton,nau8822.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

24 bit stereo audio codec with speaker driver. This device supports I2C/SPI.

Maintainers (maintainers): "David Lin <CTLIN0@nuvoton.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nuvoton,nau8822"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — not listed as required here #

Exact value (const): 0

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "mclk"

nuvoton,spk-btl — not listed as required here #

If set, configure the two loudspeaker outputs as a Bridge Tied Load output to drive a high power external loudspeaker.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Required in this object (required): "compatible", "reg"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@1a {
        compatible = "nuvoton,nau8822";
        reg = <0x1a>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

NAU8824 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nuvoton,nau8824.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "John Hsu <KCHSU0@nuvoton.com>"

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): "nuvoton,nau8824"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — not listed as required here #

Exact value (const): 0

clocks — not listed as required here #

Array item rules (items) #

Item 1

The phandle of the master clock to the CODEC

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

nuvoton,jkdet-polarity — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

JKDET pin polarity.

Allowed values (enum): 0, 1

Default value (default): 1

nuvoton,vref-impedance — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

VREF Impedance selection.

Allowed values (enum): 0, 1, 2, 3

Default value (default): 2

nuvoton,micbias-voltage — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Micbias voltage level.

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7

Default value (default): 6

nuvoton,sar-threshold-num — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Number of buttons supported.

Minimum value (minimum): 1

Maximum value (maximum): 8

Default value (default): 4

nuvoton,sar-threshold — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Impedance threshold for each button. Array that contains up to 8 buttons configuration. SAR value is calculated as SAR = 255 * MICBIAS / SAR_VOLTAGE * R / (2000 + R) where MICBIAS is configured by 'nuvoton,micbias-voltage', SAR_VOLTAGE is configured by 'nuvoton,sar-voltage', R - button impedance. Refer datasheet section 10.2 for more information about threshold calculation.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 255

nuvoton,sar-hysteresis — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Button impedance measurement hysteresis.

Default value (default): 0

nuvoton,sar-voltage — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Reference voltage for button impedance measurement.

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7

Default value (default): 6

nuvoton,sar-compare-time — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

SAR compare time.

Allowed values (enum): 0, 1, 2, 3

Default value (default): 1

nuvoton,sar-sampling-time — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

SAR sampling time.

Allowed values (enum): 0, 1, 2, 3

Default value (default): 1

nuvoton,short-key-debounce — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Button short key press debounce time.

Allowed values (enum): 0, 1, 2

Default value (default): 0

nuvoton,jack-eject-debounce — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Jack ejection debounce time.

Allowed values (enum): 0, 1, 2

Default value (default): 1

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@1a {
        #sound-dai-cells = <0>;
        compatible = "nuvoton,nau8824";
        reg = <0x1a>;
        interrupt-parent = <&gpio>;
        interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
        nuvoton,vref-impedance = <2>;
        nuvoton,micbias-voltage = <6>;
        nuvoton,sar-threshold-num = <4>;
        // Setup 4 buttons impedance according to Android specification
        nuvoton,sar-threshold = <0xc 0x1e 0x38 0x60>;
        nuvoton,sar-hysteresis = <0>;
        nuvoton,sar-voltage = <6>;
        nuvoton,sar-compare-time = <1>;
        nuvoton,sar-sampling-time = <1>;
        nuvoton,short-key-debounce = <0>;
        nuvoton,jack-eject-debounce = <1>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Line 42: active high

Line 43: active low

Line 51: Open

Line 52: 25 kOhm

Line 53: 125 kOhm

Line 54: 2.5 kOhm

Line 62: VDDA

Line 63: VDDA

Line 64: VDDA * 1.1

Line 65: VDDA * 1.2

Line 66: VDDA * 1.3

Line 67: VDDA * 1.4

Line 68: VDDA * 1.53

Line 69: VDDA * 1.53

Line 107: VDDA

Line 108: VDDA

Line 109: VDDA * 1.1

Line 110: VDDA * 1.2

Line 111: VDDA * 1.3

Line 112: VDDA * 1.4

Line 113: VDDA * 1.53

Line 114: VDDA * 1.53

Line 122: 500ns

Line 123: 1us

Line 124: 2us

Line 125: 4us

Line 133: 2us

Line 134: 4us

Line 135: 8us

Line 136: 16us

Line 144: 30 ms

Line 145: 50 ms

Line 146: 100 ms

Line 154: 0 ms

Line 155: 1 ms

Line 156: 10 ms

NAU8825 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nuvoton,nau8825.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "John Hsu <KCHSU0@nuvoton.com>"

NAU8825 audio CODEC

Pins on the device (for linking into audio routes):

  Outputs:
    * HPOL    : Headphone Left Output
    * HPOR    : Headphone Right Output
    * MICBIAS : Microphone Bias Output
  Inputs:
    * MICP    : Analog Microphone Positive Input
    * MICN    : Analog Microphone Negative Input

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): "nuvoton,nau8825"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

nuvoton,jkdet-enable — not listed as required here #

Enable jack detection via JKDET pin.

Value type (type): "boolean"

nuvoton,jkdet-pull-enable — not listed as required here #

Enable JKDET pin pull. If set - pin pull enabled, otherwise pin in high impedance state.

Value type (type): "boolean"

nuvoton,jkdet-pull-up — not listed as required here #

Pull-up JKDET pin. If set then JKDET pin is pull up, otherwise pull down.

Value type (type): "boolean"

nuvoton,jkdet-polarity — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

JKDET pin polarity.

Allowed values (enum): 0, 1

Default value (default): 1

nuvoton,vref-impedance — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

VREF Impedance selection.

Allowed values (enum): 0, 1, 2, 3

Default value (default): 2

nuvoton,micbias-voltage — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Micbias voltage level.

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7

Default value (default): 6

nuvoton,sar-threshold-num — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Number of buttons supported.

Minimum value (minimum): 1

Maximum value (maximum): 4

Default value (default): 4

nuvoton,sar-threshold — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Impedance threshold for each button. Array that contains up to 8 buttons configuration. SAR value is calculated as SAR = 255 * MICBIAS / SAR_VOLTAGE * R / (2000 + R) where MICBIAS is configured by 'nuvoton,micbias-voltage', SAR_VOLTAGE is configured by 'nuvoton,sar-voltage', R - button impedance. Refer datasheet section 10.2 for more information about threshold calculation.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 255

nuvoton,sar-hysteresis — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Button impedance measurement hysteresis.

Default value (default): 0

nuvoton,sar-voltage — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Reference voltage for button impedance measurement.

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7

Default value (default): 6

nuvoton,sar-compare-time — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

SAR compare time.

Allowed values (enum): 0, 1, 2, 3

Default value (default): 1

nuvoton,sar-sampling-time — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

SAR sampling time.

Allowed values (enum): 0, 1, 2, 3

Default value (default): 1

nuvoton,short-key-debounce — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Button short key press debounce time.

Allowed values (enum): 0, 1, 2, 3

Default value (default): 3

nuvoton,jack-insert-debounce — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

number from 0 to 7 that sets debounce time to 2^(n+2) ms.

Maximum value (maximum): 7

Default value (default): 7

nuvoton,jack-eject-debounce — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

number from 0 to 7 that sets debounce time to 2^(n+2) ms

Maximum value (maximum): 7

Default value (default): 0

nuvoton,crosstalk-enable — not listed as required here #

make crosstalk function enable if set.

Value type (type): "boolean"

nuvoton,adcout-drive-strong — not listed as required here #

make the drive strength of ADCOUT IO PIN strong if set. Otherwise, the drive keeps normal strength.

Value type (type): "boolean"

nuvoton,adc-delay-ms — not listed as required here #

Delay (in ms) to make input path stable and avoid pop noise. The default value is 125 and range between 125 to 500 ms.

Minimum value (minimum): 125

Maximum value (maximum): 500

Default value (default): 125

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

#sound-dai-cells — not listed as required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@1a {
        #sound-dai-cells = <0>;
        compatible = "nuvoton,nau8825";
        reg = <0x1a>;
        interrupt-parent = <&gpio>;
        interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
        nuvoton,jkdet-enable;
        nuvoton,jkdet-pull-enable;
        nuvoton,jkdet-pull-up;
        nuvoton,jkdet-polarity = <GPIO_ACTIVE_LOW>;
        nuvoton,vref-impedance = <2>;
        nuvoton,micbias-voltage = <6>;
        // Setup 4 buttons impedance according to Android specification
        nuvoton,sar-threshold-num = <4>;
        nuvoton,sar-threshold = <0xc 0x1e 0x38 0x60>;
        nuvoton,sar-hysteresis = <1>;
        nuvoton,sar-voltage = <0>;
        nuvoton,sar-compare-time = <0>;
        nuvoton,sar-sampling-time = <0>;
        nuvoton,short-key-debounce = <2>;
        nuvoton,jack-insert-debounce = <7>;
        nuvoton,jack-eject-debounce = <7>;
        nuvoton,crosstalk-enable;

        clock-names = "mclk";
        clocks = <&tegra_pmc 1>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Line 62: active high

Line 63: active low

Line 71: Open

Line 72: 25 kOhm

Line 73: 125 kOhm

Line 74: 2.5 kOhm

Line 82: VDDA

Line 83: VDDA

Line 84: VDDA * 1.1

Line 85: VDDA * 1.2

Line 86: VDDA * 1.3

Line 87: VDDA * 1.4

Line 88: VDDA * 1.53

Line 89: VDDA * 1.53

Line 127: VDDA

Line 128: VDDA

Line 129: VDDA * 1.1

Line 130: VDDA * 1.2

Line 131: VDDA * 1.3

Line 132: VDDA * 1.4

Line 133: VDDA * 1.53

Line 134: VDDA * 1.53

Line 142: 500 ns

Line 143: 1 us

Line 144: 2 us

Line 145: 4 us

Line 153: 2 us

Line 154: 4 us

Line 155: 8 us

Line 156: 16 us

Line 164: 30 ms

Line 165: 50 ms

Line 166: 100 ms

Line 167: 30 ms

NVIDIA Tegra audio complex with ALC5632 CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra-audio-alc5632.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): nvidia,tegra-audio-common.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Array item rules (items) #

Item 1

String pattern (pattern): "^[a-z0-9]+,tegra-audio-alc5632(-[a-z0-9]+)+$"

Item 2

Exact value (const): "nvidia,tegra-audio-alc5632"

nvidia,audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names for sources and sinks are the pins (documented in the binding document), and the jacks on the board.

Minimum number of items (minItems): 2

Array item rules (items) #

Allowed values (enum): "Headset Stereophone", "Int Spk", "Headset Mic", "Digital Mic", "SPKOUT", "SPKOUTN", "MICBIAS1", "MIC1", "HPR", "HPL", "DMICDAT"

Required in this object (required): "nvidia,i2s-controller"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "nvidia,tegra-audio-alc5632-paz00",
                 "nvidia,tegra-audio-alc5632";

    nvidia,model = "Compal PAZ00";

    nvidia,audio-routing = "Int Spk", "SPKOUT",
                           "Int Spk", "SPKOUTN",
                           "Headset Mic", "MICBIAS1",
                           "MIC1", "Headset Mic",
                           "Headset Stereophone", "HPR",
                           "Headset Stereophone", "HPL",
                           "DMICDAT", "Digital Mic";

    nvidia,i2s-controller = <&i2s>;
    nvidia,audio-codec = <&codec>;

    clocks = <&clk 112>, <&clk 113>, <&clk 93>;
    clock-names = "pll_a", "pll_a_out0", "mclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 33: Board Connectors

Line 39: CODEC Pins

Common properties for NVIDIA Tegra audio complexes

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra-audio-common.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

Properties and child nodes (properties) #

clocks — not listed as required here #

Array item rules (items) #

Item 1

PLL A clock

Item 2

PLL A OUT0 clock

Item 3

The Tegra cdev1/extern1 clock, which feeds the card's mclk

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "pll_a"

Item 2

Exact value (const): "pll_a_out0"

Item 3

Exact value (const): "mclk"

nvidia,model — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

The user-visible name of this sound complex.

nvidia,audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names for sources and sinks are the pins (documented in the binding document), and the jacks on the board.

nvidia,ac97-controller — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

The phandle of the AC97 controller

nvidia,i2s-controller — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

The phandle of the Tegra I2S controller

nvidia,audio-codec — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

The phandle of audio codec

nvidia,spkr-en-gpios — not listed as required here #

Maximum number of items (maxItems): 1

The GPIO that enables the speakers

nvidia,hp-mute-gpios — not listed as required here #

Maximum number of items (maxItems): 1

The GPIO that mutes the headphones

nvidia,hp-det-gpios — not listed as required here #

Maximum number of items (maxItems): 1

The GPIO that detect headphones are plugged in

nvidia,mic-det-gpios — not listed as required here #

Maximum number of items (maxItems): 1

The GPIO that detect microphone is plugged in

nvidia,ear-sel-gpios — not listed as required here #

Maximum number of items (maxItems): 1

The GPIO that switch between the microphones

nvidia,int-mic-en-gpios — not listed as required here #

Maximum number of items (maxItems): 1

The GPIO that enables the internal microphone

nvidia,ext-mic-en-gpios — not listed as required here #

Maximum number of items (maxItems): 1

The GPIO that enables the external microphone

nvidia,headset — not listed as required here #

Value type (type): "boolean"

The Mic Jack represents state of the headset microphone pin

nvidia,coupled-mic-hp-det — not listed as required here #

Value type (type): "boolean"

The Mic detect GPIO is viable only if HP detect GPIO is active

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Audio Graph based Tegra sound card driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra-audio-graph-card.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

This is based on generic audio graph card driver along with additional customizations for Tegra platforms. It uses the same bindings with additional standard clock DT bindings required for Tegra.

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Sameer Pujar <spujar@nvidia.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): audio-graph.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "nvidia,tegra210-audio-graph-card", "nvidia,tegra186-audio-graph-card", "nvidia,tegra238-audio-graph-card", "nvidia,tegra264-audio-graph-card"

clocks — required here #

Minimum number of items (minItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pll_a"

Item 2

Exact value (const): "plla_out0"

assigned-clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

assigned-clock-parents — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

assigned-clock-rates — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

interconnects — not listed as required here #

Array item rules (items) #

Item 1

APE read memory client

Item 2

APE write memory client

interconnect-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "dma-mem"

Item 2

Exact value (const): "write"

iommus — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "clocks", "clock-names", "assigned-clocks", "assigned-clock-parents"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include<dt-bindings/clock/tegra210-car.h>

tegra_sound {
    compatible = "nvidia,tegra210-audio-graph-card";

    clocks = <&tegra_car TEGRA210_CLK_PLL_A>,
             <&tegra_car TEGRA210_CLK_PLL_A_OUT0>;
    clock-names = "pll_a", "plla_out0";

    assigned-clocks = <&tegra_car TEGRA210_CLK_PLL_A>,
                      <&tegra_car TEGRA210_CLK_PLL_A_OUT0>,
                      <&tegra_car TEGRA210_CLK_EXTERN1>;
    assigned-clock-parents = <0>, <0>, <&tegra_car TEGRA210_CLK_PLL_A_OUT0>;
    assigned-clock-rates = <368640000>, <49152000>, <12288000>;

    dais = /* FE */
           <&admaif1_port>,
           /* Router */
           <&xbar_i2s1_port>,
           /* I/O DAP Ports */
           <&i2s1_port>;

    label = "jetson-tx1-ape";
};

// The ports are defined for AHUB and its child devices.
ahub@702d0800 {
    compatible = "nvidia,tegra210-ahub";
    reg = <0x702d0800 0x800>;
    clocks = <&tegra_car TEGRA210_CLK_D_AUDIO>;
    clock-names = "ahub";
    assigned-clocks = <&tegra_car TEGRA210_CLK_D_AUDIO>;
    assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_A_OUT0>;
    #address-cells = <1>;
    #size-cells = <1>;
    ranges = <0x702d0000 0x702d0000 0x0000e400>;

    ports {
        #address-cells = <1>;
        #size-cells = <0>;

        port@0 {
            reg = <0x0>;
            xbar_admaif1_ep: endpoint {
                remote-endpoint = <&admaif1_ep>;
            };
        };

        // ...

        xbar_i2s1_port: port@a {
            reg = <0xa>;
            xbar_i2s1_ep: endpoint {
                remote-endpoint = <&i2s1_cif_ep>;
            };
        };
    };

    admaif@702d0000 {
        compatible = "nvidia,tegra210-admaif";
        reg = <0x702d0000 0x800>;
        dmas = <&adma 1>,  <&adma 1>,
               <&adma 2>,  <&adma 2>,
               <&adma 3>,  <&adma 3>,
               <&adma 4>,  <&adma 4>,
               <&adma 5>,  <&adma 5>,
               <&adma 6>,  <&adma 6>,
               <&adma 7>,  <&adma 7>,
               <&adma 8>,  <&adma 8>,
               <&adma 9>,  <&adma 9>,
               <&adma 10>, <&adma 10>;
        dma-names = "rx1",  "tx1",
                    "rx2",  "tx2",
                    "rx3",  "tx3",
                    "rx4",  "tx4",
                    "rx5",  "tx5",
                    "rx6",  "tx6",
                    "rx7",  "tx7",
                    "rx8",  "tx8",
                    "rx9",  "tx9",
                    "rx10", "tx10";

        ports {
            #address-cells = <1>;
            #size-cells = <0>;

            admaif1_port: port@0 {
                reg = <0x0>;
                admaif1_ep: endpoint {
                    remote-endpoint = <&xbar_admaif1_ep>;
                };
            };

            // More ADMAIF ports to follow
        };
    };

    i2s@702d1000 {
        compatible = "nvidia,tegra210-i2s";
        clocks = <&tegra_car TEGRA210_CLK_I2S0>;
        clock-names = "i2s";
        assigned-clocks = <&tegra_car TEGRA210_CLK_I2S0>;
        assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_A_OUT0>;
        assigned-clock-rates = <1536000>;
        reg = <0x702d1000 0x100>;

        ports {
            #address-cells = <1>;
            #size-cells = <0>;

            port@0 {
                reg = <0x0>;

                i2s1_cif_ep: endpoint {
                    remote-endpoint = <&xbar_i2s1_ep>;
                };
            };

            i2s1_port: port@1 {
                reg = <0x1>;

                i2s1_dap: endpoint {
                    dai-format = "i2s";
                };
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 56: read

NVIDIA Tegra audio complex with MAX9808x CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra-audio-max9808x.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): nvidia,tegra-audio-common.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

String pattern (pattern): "^[a-z0-9]+,tegra-audio-max98088(-[a-z0-9]+)+$"

Item 2

Exact value (const): "nvidia,tegra-audio-max98088"

Rule 2

Array item rules (items)

Item 1

String pattern (pattern): "^[a-z0-9]+,tegra-audio-max98089(-[a-z0-9]+)+$"

Item 2

Exact value (const): "nvidia,tegra-audio-max98089"

nvidia,audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names for sources and sinks are the pins (documented in the binding document), and the jacks on the board.

Minimum number of items (minItems): 2

Array item rules (items) #

Allowed values (enum): "Int Spk", "Headphone Jack", "Earpiece", "Headset Mic", "Internal Mic 1", "Internal Mic 2", "HPL", "HPR", "SPKL", "SPKR", "RECL", "RECR", "INA1", "INA2", "INB1", "INB2", "MIC1", "MIC2", "MICBIAS"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/tegra30-car.h>
#include <dt-bindings/soc/tegra-pmc.h>
sound {
    compatible = "lg,tegra-audio-max98089-p895",
                 "nvidia,tegra-audio-max98089";
    nvidia,model = "LG Optimus Vu MAX98089";

    nvidia,audio-routing =
        "Headphone Jack", "HPL",
        "Headphone Jack", "HPR",
        "Int Spk", "SPKL",
        "Int Spk", "SPKR",
        "Earpiece", "RECL",
        "Earpiece", "RECR",
        "INA1", "Headset Mic",
        "MIC1", "MICBIAS",
        "MICBIAS", "Internal Mic 1",
        "MIC2", "Internal Mic 2";

    nvidia,i2s-controller = <&tegra_i2s0>;
    nvidia,audio-codec = <&codec>;

    clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
             <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
             <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
    clock-names = "pll_a", "pll_a_out0", "mclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 37: Board Connectors

Line 45: CODEC Pins

NVIDIA Tegra audio complex with MAX98090 CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra-audio-max98090.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): nvidia,tegra-audio-common.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

String pattern (pattern): "^[a-z0-9]+,tegra-audio-max98090(-[a-z0-9]+)+$"

Item 2

Exact value (const): "nvidia,tegra-audio-max98090"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra-audio-max98090-nyan-big", "nvidia,tegra-audio-max98090-nyan-blaze"

Item 2

Exact value (const): "nvidia,tegra-audio-max98090-nyan"

Item 3

Exact value (const): "nvidia,tegra-audio-max98090"

nvidia,audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names for sources and sinks are the pins (documented in the binding document), and the jacks on the board.

Minimum number of items (minItems): 2

Array item rules (items) #

Allowed values (enum): "Headphones", "Speakers", "Mic Jack", "Int Mic", "MIC1", "MIC2", "DMICL", "DMICR", "IN1", "IN2", "IN3", "IN4", "IN5", "IN6", "IN12", "IN34", "IN56", "HPL", "HPR", "SPKL", "SPKR", "RCVL", "RCVR", "MICBIAS"

Required in this object (required): "nvidia,i2s-controller"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/tegra124-car.h>

sound {
    compatible = "nvidia,tegra-audio-max98090-venice2",
                 "nvidia,tegra-audio-max98090";
    nvidia,model = "NVIDIA Tegra Venice2";

    nvidia,audio-routing =
            "Headphones", "HPR",
            "Headphones", "HPL",
            "Speakers", "SPKR",
            "Speakers", "SPKL",
            "Mic Jack", "MICBIAS",
            "IN34", "Mic Jack";

    nvidia,i2s-controller = <&tegra_i2s1>;
    nvidia,audio-codec = <&acodec>;

    clocks = <&tegra_car TEGRA124_CLK_PLL_A>,
             <&tegra_car TEGRA124_CLK_PLL_A_OUT0>,
             <&tegra_car TEGRA124_CLK_EXTERN1>;
    clock-names = "pll_a", "pll_a_out0", "mclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 40: Board Connectors

Line 46: CODEC Pins

NVIDIA Tegra audio complex with RT5631 CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra-audio-rt5631.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): nvidia,tegra-audio-common.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Array item rules (items) #

Item 1

String pattern (pattern): "^[a-z0-9]+,tegra-audio-rt5631(-[a-z0-9]+)+$"

Item 2

Exact value (const): "nvidia,tegra-audio-rt5631"

nvidia,audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names for sources and sinks are the pins (documented in the binding document), and the jacks on the board.

Minimum number of items (minItems): 2

Array item rules (items) #

Allowed values (enum): "Int Spk", "Headphone Jack", "Mic Jack", "Int Mic", "MIC1", "MIC2", "AXIL", "AXIR", "MONOIN_RXN", "MONOIN_RXP", "DMIC", "MIC Bias1", "MIC Bias2", "MONO_IN", "AUXO1", "AUXO2", "SPOL", "SPOR", "HPOL", "HPOR", "MONO"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/tegra30-car.h>
#include <dt-bindings/soc/tegra-pmc.h>
sound {
    compatible = "asus,tegra-audio-rt5631-tf700t",
                 "nvidia,tegra-audio-rt5631";
    nvidia,model = "Asus Transformer Infinity TF700T RT5631";

    nvidia,audio-routing =
            "Headphone Jack", "HPOL",
            "Headphone Jack", "HPOR",
            "Int Spk", "SPOL",
            "Int Spk", "SPOR",
            "MIC1", "MIC Bias1",
            "MIC Bias1", "Mic Jack",
            "DMIC", "Int Mic";

    nvidia,i2s-controller = <&tegra_i2s1>;
    nvidia,audio-codec = <&rt5631>;

    clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
             <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
             <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
    clock-names = "pll_a", "pll_a_out0", "mclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 33: Board Connectors

Line 39: CODEC Pins

NVIDIA Tegra audio complex with RT5639 or RT5640 CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra-audio-rt5640.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): nvidia,tegra-audio-common.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Array item rules (items) #

Item 1

String pattern (pattern): "^[a-z0-9]+,tegra-audio-rt56(39|40)(-[a-z0-9]+)+$"

Item 2

Exact value (const): "nvidia,tegra-audio-rt5640"

nvidia,audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names for sources and sinks are the pins (documented in the binding document), and the jacks on the board.

Minimum number of items (minItems): 2

Array item rules (items) #

Allowed values (enum): "Headphones", "Speakers", "Mic Jack", "DMIC1", "DMIC2", "MICBIAS1", "IN1P", "IN1R", "IN2P", "IN2R", "HPOL", "HPOR", "LOUTL", "LOUTR", "MONOP", "MONON", "SPOLP", "SPOLN", "SPORP", "SPORN"

Required in this object (required): "nvidia,i2s-controller"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "nvidia,tegra-audio-rt5640-dalmore",
                 "nvidia,tegra-audio-rt5640";
    nvidia,model = "NVIDIA Tegra Dalmore";

    nvidia,audio-routing =
            "Headphones", "HPOR",
            "Headphones", "HPOL",
            "Speakers", "SPORP",
            "Speakers", "SPORN",
            "Speakers", "SPOLP",
            "Speakers", "SPOLN";

    nvidia,i2s-controller = <&tegra_i2s1>;
    nvidia,audio-codec = <&rt5640>;

    nvidia,hp-det-gpios = <&gpio 143 0>;

    clocks = <&clk 216>, <&clk 217>, <&clk 120>;
    clock-names = "pll_a", "pll_a_out0", "mclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 33: Board Connectors

Line 38: CODEC Pins

NVIDIA Tegra audio complex with RT5677 CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra-audio-rt5677.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): nvidia,tegra-audio-common.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Array item rules (items) #

Item 1

String pattern (pattern): "^[a-z0-9]+,tegra-audio-rt5677(-[a-z0-9]+)+$"

Item 2

Exact value (const): "nvidia,tegra-audio-rt5677"

nvidia,audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names for sources and sinks are the pins (documented in the binding document), and the jacks on the board.

Minimum number of items (minItems): 2

Array item rules (items) #

Allowed values (enum): "Headphone", "Speaker", "Headset Mic", "Internal Mic 1", "Internal Mic 2", "IN1P", "IN1N", "IN2P", "IN2N", "MICBIAS1", "DMIC1", "DMIC2", "DMIC3", "DMIC4", "DMIC L1", "DMIC L2", "DMIC L3", "DMIC L4", "DMIC R1", "DMIC R2", "DMIC R3", "DMIC R4", "LOUT1", "LOUT2", "LOUT3", "PDM1L", "PDM1R", "PDM2L", "PDM2R"

Required in this object (required): "nvidia,i2s-controller"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "nvidia,tegra-audio-rt5677-ryu",
                 "nvidia,tegra-audio-rt5677";
    nvidia,model = "NVIDIA Tegra Ryu";

    nvidia,audio-routing =
            "Headphone", "LOUT2",
            "Headphone", "LOUT1",
            "Headset Mic", "MICBIAS1",
            "IN1P", "Headset Mic",
            "IN1N", "Headset Mic",
            "DMIC L1", "Internal Mic 1",
            "DMIC R1", "Internal Mic 1",
            "DMIC L2", "Internal Mic 2",
            "DMIC R2", "Internal Mic 2",
            "Speaker", "PDM1L",
            "Speaker", "PDM1R";

    nvidia,i2s-controller = <&tegra_i2s1>;
    nvidia,audio-codec = <&rt5677>;

    nvidia,hp-det-gpios = <&gpio 143 0>;

    clocks = <&clk 216>,
             <&clk 217>,
             <&clk 121>;
    clock-names = "pll_a", "pll_a_out0", "mclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 33: Board Connectors

Line 40: CODEC Pins

NVIDIA Tegra audio complex with SGTL5000 CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra-audio-sgtl5000.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): nvidia,tegra-audio-common.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Array item rules (items) #

Item 1

String pattern (pattern): "^[a-z0-9]+,tegra-audio-sgtl5000([-_][a-z0-9]+)+$"

Item 2

Exact value (const): "nvidia,tegra-audio-sgtl5000"

nvidia,audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names for sources and sinks are the pins (documented in the binding document), and the jacks on the board.

Minimum number of items (minItems): 2

Array item rules (items) #

Allowed values (enum): "Headphone Jack", "Line In Jack", "Mic Jack", "HP_OUT", "LINE_OUT", "LINE_IN", "MIC_IN"

Required in this object (required): "nvidia,i2s-controller"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/tegra30-car.h>

sound {
  compatible = "toradex,tegra-audio-sgtl5000-apalis_t30",
               "nvidia,tegra-audio-sgtl5000";
  nvidia,model = "Toradex Apalis T30 SGTL5000";
  nvidia,audio-routing =
          "Headphone Jack", "HP_OUT",
          "LINE_IN", "Line In Jack",
          "MIC_IN", "Mic Jack";
  nvidia,i2s-controller = <&tegra_i2s2>;
  nvidia,audio-codec = <&codec>;
  clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
           <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
           <&tegra_car TEGRA30_CLK_EXTERN1>;
  clock-names = "pll_a", "pll_a_out0", "mclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 33: Board Connectors

Line 38: CODEC Pins

NVIDIA Tegra audio complex with TrimSlice CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra-audio-trimslice.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): nvidia,tegra-audio-common.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Exact value (const): "nvidia,tegra-audio-trimslice"

Required in this object (required): "nvidia,i2s-controller"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "nvidia,tegra-audio-trimslice";
    nvidia,i2s-controller = <&tegra_i2s1>;
    nvidia,audio-codec = <&codec>;
    clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 93>;
    clock-names = "pll_a", "pll_a_out0", "mclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra audio complex with WM8753 CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra-audio-wm8753.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): nvidia,tegra-audio-common.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Array item rules (items) #

Item 1

String pattern (pattern): "^[a-z0-9]+,tegra-audio-wm8753(-[a-z0-9]+)+$"

Item 2

Exact value (const): "nvidia,tegra-audio-wm8753"

nvidia,audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names for sources and sinks are the pins (documented in the binding document), and the jacks on the board.

Minimum number of items (minItems): 2

Array item rules (items) #

Allowed values (enum): "Headphone Jack", "Mic Jack", "LOUT1", "LOUT2", "ROUT1", "ROUT2", "MONO1", "MONO2", "OUT3", "OUT4", "LINE1", "LINE2", "RXP", "RXN", "ACIN", "ACOP", "MIC1N", "MIC1", "MIC2N", "MIC2", "Mic Bias"

Required in this object (required): "nvidia,i2s-controller"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "nvidia,tegra-audio-wm8753-whistler",
                 "nvidia,tegra-audio-wm8753";
    nvidia,model = "tegra-wm8753-harmony";

    nvidia,audio-routing =
            "Headphone Jack", "LOUT1",
            "Headphone Jack", "ROUT1";

    nvidia,i2s-controller = <&i2s1>;
    nvidia,audio-codec = <&wm8753>;

    clocks = <&clk 112>, <&clk 113>, <&clk 93>;
    clock-names = "pll_a", "pll_a_out0", "mclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 33: Board Connectors

Line 37: CODEC Pins

NVIDIA Tegra audio complex with WM8903 CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra-audio-wm8903.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): nvidia,tegra-audio-common.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

String pattern (pattern): "^[a-z0-9]+,tegra-audio-wm8903(-[a-z0-9]+)+$"

Item 2

Exact value (const): "nvidia,tegra-audio-wm8903"

Rule 2

Array item rules (items)

Item 1

String pattern (pattern): "ad,tegra-audio-plutux"

Item 2

Exact value (const): "nvidia,tegra-audio-wm8903"

nvidia,audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names for sources and sinks are the pins (documented in the binding document), and the jacks on the board.

Minimum number of items (minItems): 2

Array item rules (items) #

Allowed values (enum): "Headphone Jack", "Int Spk", "Mic Jack", "Int Mic", "IN1L", "IN1R", "IN2L", "IN2R", "IN3L", "IN3R", "DMICDAT", "HPOUTL", "HPOUTR", "LINEOUTL", "LINEOUTR", "LOP", "LON", "ROP", "RON", "MICBIAS"

Required in this object (required): "nvidia,i2s-controller"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "nvidia,tegra-audio-wm8903-harmony",
                 "nvidia,tegra-audio-wm8903";
    nvidia,model = "tegra-wm8903-harmony";

    nvidia,audio-routing =
            "Headphone Jack", "HPOUTR",
            "Headphone Jack", "HPOUTL",
            "Int Spk", "ROP",
            "Int Spk", "RON",
            "Int Spk", "LOP",
            "Int Spk", "LON",
            "Mic Jack", "MICBIAS",
            "IN1L", "Mic Jack";

    nvidia,i2s-controller = <&i2s1>;
    nvidia,audio-codec = <&wm8903>;

    nvidia,spkr-en-gpios = <&codec 2 0>;
    nvidia,hp-det-gpios = <&gpio 178 0>;
    nvidia,int-mic-en-gpios = <&gpio 184 0>;
    nvidia,ext-mic-en-gpios = <&gpio 185 0>;

    clocks = <&clk 112>, <&clk 113>, <&clk 93>;
    clock-names = "pll_a", "pll_a_out0", "mclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 37: Board Connectors

Line 43: CODEC Pins

NVIDIA Tegra audio complex with WM9712 CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra-audio-wm9712.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): nvidia,tegra-audio-common.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Array item rules (items) #

Item 1

String pattern (pattern): "^[a-z0-9]+,tegra-audio-wm9712([-_][a-z0-9]+)+$"

Item 2

Exact value (const): "nvidia,tegra-audio-wm9712"

nvidia,audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names for sources and sinks are the pins (documented in the binding document), and the jacks on the board.

Minimum number of items (minItems): 2

Array item rules (items) #

Allowed values (enum): "Headphone", "LineIn", "Mic", "MONOOUT", "HPOUTL", "HPOUTR", "LOUT2", "ROUT2", "OUT3", "LINEINL", "LINEINR", "PHONE", "PCBEEP", "MIC1", "MIC2", "Mic Bias"

Required in this object (required): "nvidia,ac97-controller"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "nvidia,tegra-audio-wm9712-colibri_t20",
                 "nvidia,tegra-audio-wm9712";
    nvidia,model = "Toradex Colibri T20";

    nvidia,audio-routing =
            "Headphone", "HPOUTL",
            "Headphone", "HPOUTR",
            "LineIn", "LINEINL",
            "LineIn", "LINEINR",
            "Mic", "MIC1";

    nvidia,ac97-controller = <&ac97>;

    clocks = <&clk 112>, <&clk 113>, <&clk 93>;
    clock-names = "pll_a", "pll_a_out0", "mclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 33: Board Connectors

Line 38: CODEC Pins

Tegra186 ASRC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra186-asrc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Asynchronous Sample Rate Converter (ASRC) converts the sampling frequency of the input signal from one frequency to another. It can handle over a wide range of sample rate ratios (freq_in/freq_out) from 1:24 to 24:1. ASRC has two modes of operation. One where ratio can be programmed in SW and the other where it gets the information from ratio estimator module.

It supports sample rate conversions in the range of 8 to 192 kHz and supports 6 streams upto 12 total channels. The input data size can be 16, 24 and 32 bits.

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Mohan Kumar <mkumard@nvidia.com>", "Sameer Pujar <spujar@nvidia.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^asrc@[0-9a-f]*$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nvidia,tegra186-asrc", "nvidia,tegra264-asrc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra234-asrc", "nvidia,tegra194-asrc"

Item 2

Exact value (const): "nvidia,tegra186-asrc"

reg — required here #

Maximum number of items (maxItems): 1

sound-name-prefix — not listed as required here #

String pattern (pattern): "^ASRC[1-9]$"

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

ASRC has seven input ports and six output ports. Accordingly ACIF (Audio Client Interfaces) port nodes are defined to represent the ASRC inputs (port 0 to 6) and outputs (port 7 to 12). These are connected to corresponding ports on AHUB (Audio Hub). Additional input (port 6) is for receiving ratio information from estimator.

Properties matching a name pattern (patternProperties) #

^port@[0-6] — name matches this regular expression

Shared schema rule ($ref): audio-graph-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

ASRC ACIF input ports

^port@[7-9]|1[1-2] — name matches this regular expression

Shared schema rule ($ref): audio-graph-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

ASRC ACIF output ports

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) #


asrc@2910000 {
    compatible = "nvidia,tegra186-asrc";
    reg = <0x2910000 0x2000>;
    sound-name-prefix = "ASRC1";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Tegra186 DSPK Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra186-dspk.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Digital Speaker Controller (DSPK) can be viewed as a Pulse Density Modulation (PDM) transmitter that up-samples the input to the desired sampling rate by interpolation and then converts the over sampled Pulse Code Modulation (PCM) input to the desired 1-bit output via Delta Sigma Modulation (DSM).

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Sameer Pujar <spujar@nvidia.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^dspk@[0-9a-f]*$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "nvidia,tegra186-dspk"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra264-dspk", "nvidia,tegra234-dspk", "nvidia,tegra194-dspk"

Item 2

Exact value (const): "nvidia,tegra186-dspk"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "dspk"

assigned-clocks — required here #

Maximum number of items (maxItems): 1

assigned-clock-parents — required here #

Maximum number of items (maxItems): 1

assigned-clock-rates — not listed as required here #

Maximum number of items (maxItems): 1

sound-name-prefix — required here #

String pattern (pattern): "^DSPK[1-9]$"

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties and child nodes (properties) #

port@0 — 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.

DSPK ACIF (Audio Client Interface) port connected to the corresponding AHUB (Audio Hub) ACIF port.

port@1 — 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.

DSPK DAP (Digital Audio Port) interface which can be connected to external audio codec for playback.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "assigned-clocks", "assigned-clock-parents", "sound-name-prefix"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include<dt-bindings/clock/tegra186-clock.h>

dspk@2905000 {
    compatible = "nvidia,tegra186-dspk";
    reg = <0x2905000 0x100>;
    clocks = <&bpmp TEGRA186_CLK_DSPK1>;
    clock-names = "dspk";
    assigned-clocks = <&bpmp TEGRA186_CLK_DSPK1>;
    assigned-clock-parents = <&bpmp TEGRA186_CLK_PLL_A_OUT0>;
    assigned-clock-rates = <12288000>;
    sound-name-prefix = "DSPK1";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra20 AC97 controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra20-ac97.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thierry Reding <treding@nvidia.com>", "Jon Hunter <jonathanh@nvidia.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nvidia,tegra20-ac97"

reg — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Exact value (const): "ac97"

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

dmas — required here #

Maximum number of items (maxItems): 2

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

nvidia,codec-reset-gpios — required here #

Reset pin of external AC97 codec

Maximum number of items (maxItems): 1

nvidia,codec-sync-gpios — required here #

AC97 DAP _FS line

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "resets", "reset-names", "interrupts", "clocks", "dmas", "dma-names", "nvidia,codec-reset-gpios", "nvidia,codec-sync-gpios"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/tegra20-car.h>
#include <dt-bindings/gpio/tegra-gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>

ac97@70002000 {
    compatible = "nvidia,tegra20-ac97";
    reg = <0x70002000 0x200>;
    resets = <&tegra_car 3>;
    reset-names = "ac97";
    interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&tegra_car 3>;
    dmas = <&apbdma 12>, <&apbdma 12>;
    dma-names = "rx", "tx";
    nvidia,codec-reset-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>;
    nvidia,codec-sync-gpios = <&gpio TEGRA_GPIO(P, 0) GPIO_ACTIVE_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra 20 DAS (Digital Audio Switch) controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra20-das.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thierry Reding <treding@nvidia.com>", "Jon Hunter <jonathanh@nvidia.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nvidia,tegra20-das"

reg — required here #

Maximum number of items (maxItems): 1

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) #

bus {
    #address-cells = <1>;
    #size-cells = <1>;
    das@70000c00 {
        compatible = "nvidia,tegra20-das";
        reg = <0x70000c00 0x80>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra20 I2S Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra20-i2s.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The I2S Controller streams synchronous serial audio data between system memory and an external audio device. The controller supports the I2S Left Justified Mode, Right Justified Mode, and DSP mode formats.

Maintainers (maintainers): "Thierry Reding <treding@nvidia.com>", "Jon Hunter <jonathanh@nvidia.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nvidia,tegra20-i2s"

reg — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Exact value (const): "i2s"

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

dmas — required here #

Minimum number of items (minItems): 2

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

nvidia,fixed-parent-rate — not listed as required here #

Specifies whether board prefers parent clock to stay at a fixed rate. This allows multiple Tegra20 audio components work simultaneously by limiting number of supportable audio rates.

Value type (type): "boolean"

Required in this object (required): "compatible", "reg", "resets", "reset-names", "interrupts", "clocks", "dmas", "dma-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2s@70002800 {
    compatible = "nvidia,tegra20-i2s";
    reg = <0x70002800 0x200>;
    interrupts = <45>;
    clocks = <&tegra_car 11>;
    resets = <&tegra_car 11>;
    reset-names = "i2s";
    dmas = <&apbdma 21>, <&apbdma 21>;
    dma-names = "rx", "tx";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra20 S/PDIF Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra20-spdif.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The S/PDIF controller supports both input and output in serial audio digital interface format. The input controller can digitally recover a clock from the received stream. The S/PDIF controller is also used to generate the embedded audio for HDMI output channel.

Maintainers (maintainers): "Thierry Reding <treding@nvidia.com>", "Jon Hunter <jonathanh@nvidia.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nvidia,tegra20-spdif"

reg — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "out"

Item 2

Exact value (const): "in"

dmas — required here #

Minimum number of items (minItems): 2

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

#sound-dai-cells — required here #

Exact value (const): 0

nvidia,fixed-parent-rate — not listed as required here #

Specifies whether board prefers parent clock to stay at a fixed rate. This allows multiple Tegra20 audio components work simultaneously by limiting number of supportable audio rates.

Value type (type): "boolean"

Required in this object (required): "compatible", "reg", "resets", "interrupts", "clocks", "clock-names", "dmas", "dma-names", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spdif@70002400 {
    compatible = "nvidia,tegra20-spdif";
    reg = <0x70002400 0x200>;
    interrupts = <77>;
    clocks = <&clk 99>, <&clk 98>;
    clock-names = "out", "in";
    resets = <&rst 10>;
    dmas = <&apbdma 3>, <&apbdma 3>;
    dma-names = "rx", "tx";
    #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Tegra210 ADMAIF

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra210-admaif.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

ADMAIF is the interface between ADMA and AHUB. Each ADMA channel that sends/receives data to/from AHUB must interface through an ADMAIF channel. ADMA channel sending data to AHUB pairs with ADMAIF Tx channel and ADMA channel receiving data from AHUB pairs with ADMAIF Rx channel.

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Sameer Pujar <spujar@nvidia.com>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^admaif@[0-9a-f]*$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nvidia,tegra210-admaif", "nvidia,tegra186-admaif", "nvidia,tegra264-admaif"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra234-admaif", "nvidia,tegra194-admaif"

Item 2

Exact value (const): "nvidia,tegra186-admaif"

reg — required here #

Maximum number of items (maxItems): 1

dmas — required here #

true — No constraints added by this property rule.

dma-names — required here #

true — No constraints added by this property rule.

interconnects — not listed as required here #

Array item rules (items) #

Item 1

APE read memory client

Item 2

APE write memory client

interconnect-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "dma-mem"

Item 2

Exact value (const): "write"

iommus — not listed as required here #

Maximum number of items (maxItems): 1

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Contains list of ACIF (Audio CIF) port nodes for ADMAIF channels. The number of port nodes depends on the number of ADMAIF channels that SoC may have. These are interfaced with respective ACIF ports in AHUB (Audio Hub). Each port is capable of data transfers in both directions.

Properties matching a name pattern (patternProperties) #

^port@[0-9] — name matches this regular expression

Shared schema rule ($ref): audio-graph-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "nvidia,tegra210-admaif"

When the condition matches (then) #

Properties and child nodes (properties)

dmas — not listed as required here

DMA channel specifiers, equally divided for Tx and Rx.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 20

dma-names — not listed as required here

Array item rules (items)

String pattern (pattern): "^[rt]x(10|[1-9])$"

Should be "rx1", "rx2" ... "rx10" for DMA Rx channel Should be "tx1", "tx2" ... "tx10" for DMA Tx channel

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 20

interconnects — not listed as required here

false — Not permitted by this property rule.

interconnect-names — not listed as required here

false — Not permitted by this property rule.

iommus — not listed as required here

false — Not permitted by this property rule.

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "nvidia,tegra186-admaif"

When the condition matches (then) #

Properties and child nodes (properties)

dmas — not listed as required here

DMA channel specifiers, equally divided for Tx and Rx.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 40

dma-names — not listed as required here

Array item rules (items)

String pattern (pattern): "^[rt]x(1[0-9]|[1-9]|20)$"

Should be "rx1", "rx2" ... "rx20" for DMA Rx channel Should be "tx1", "tx2" ... "tx20" for DMA Tx channel

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 40

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "nvidia,tegra264-admaif"

When the condition matches (then) #

Properties and child nodes (properties)

dmas — not listed as required here

DMA channel specifiers, equally divided for Tx and Rx.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 64

dma-names — not listed as required here

Array item rules (items)

String pattern (pattern): "^[rt]x(3[0-2]|[1-2][0-9]|[1-9])$"

Should be "rx1", "rx2" ... "rx32" for DMA Rx channel Should be "tx1", "tx2" ... "tx32" for DMA Tx channel

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 64

Required in this object (required): "compatible", "reg", "dmas", "dma-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

admaif@702d0000 {
    compatible = "nvidia,tegra210-admaif";
    reg = <0x702d0000 0x800>;
    dmas = <&adma 1>,  <&adma 1>,
           <&adma 2>,  <&adma 2>,
           <&adma 3>,  <&adma 3>,
           <&adma 4>,  <&adma 4>,
           <&adma 5>,  <&adma 5>,
           <&adma 6>,  <&adma 6>,
           <&adma 7>,  <&adma 7>,
           <&adma 8>,  <&adma 8>,
           <&adma 9>,  <&adma 9>,
           <&adma 10>, <&adma 10>;
    dma-names = "rx1",  "tx1",
                "rx2",  "tx2",
                "rx3",  "tx3",
                "rx4",  "tx4",
                "rx5",  "tx5",
                "rx6",  "tx6",
                "rx7",  "tx7",
                "rx8",  "tx8",
                "rx9",  "tx9",
                "rx10", "tx10";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 50: read

Tegra210 ADX

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra210-adx.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Audio Demultiplexer (ADX) block takes an input stream with up to 16 channels and demultiplexes it into four output streams of up to 16 channels each. A byte RAM helps to form output frames by any combination of bytes from the input frame. Its design is identical to that of byte RAM in the AMX except that the data flow direction is reversed.

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Mohan Kumar <mkumard@nvidia.com>", "Sameer Pujar <spujar@nvidia.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^adx@[0-9a-f]*$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nvidia,tegra210-adx", "nvidia,tegra264-adx"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra234-adx", "nvidia,tegra194-adx", "nvidia,tegra186-adx"

Item 2

Exact value (const): "nvidia,tegra210-adx"

reg — required here #

Maximum number of items (maxItems): 1

sound-name-prefix — not listed as required here #

String pattern (pattern): "^ADX[1-9]$"

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

ADX has one input and four outputs. Accordingly ACIF (Audio Client Interface) port nodes are defined to represent ADX input (port 0) and outputs (ports 1 to 4). These are connected to corresponding ports on AHUB (Audio Hub).

Properties and child nodes (properties) #

port@0 — 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.

ADX ACIF input port

Properties matching a name pattern (patternProperties) #

^port@[1-4] — name matches this regular expression

Shared schema rule ($ref): audio-graph-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

ADX ACIF output ports

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) #


adx@702d3800 {
    compatible = "nvidia,tegra210-adx";
    reg = <0x702d3800 0x100>;
    sound-name-prefix = "ADX1";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Tegra210 AHUB

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra210-ahub.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Audio Hub (AHUB) comprises a collection of hardware accelerators for audio pre-processing, post-processing and a programmable full crossbar for routing audio data across these accelerators. It has external interfaces such as I2S, DMIC, DSPK. It interfaces with ADMA engine through ADMAIF.

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Sameer Pujar <spujar@nvidia.com>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^ahub@[0-9a-f]*$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nvidia,tegra210-ahub", "nvidia,tegra186-ahub", "nvidia,tegra234-ahub", "nvidia,tegra264-ahub"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "nvidia,tegra194-ahub"

Item 2

Exact value (const): "nvidia,tegra186-ahub"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "ahub"

assigned-clocks — required here #

Maximum number of items (maxItems): 1

assigned-clock-parents — required here #

Maximum number of items (maxItems): 1

assigned-clock-rates — not listed as required here #

Maximum number of items (maxItems): 1

#address-cells — required here #

Allowed values (enum): 1, 2

#size-cells — required here #

Allowed values (enum): 1, 2

ranges — required here #

true — No constraints added by this property rule.

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Contains list of ACIF (Audio CIF) port nodes for AHUB (Audio Hub). These are connected to ACIF interfaces of AHUB clients. Thus the number of port nodes depend on the number of clients that AHUB may have depending on the SoC revision.

Properties matching a name pattern (patternProperties) #

^port@[0-9] — name matches this regular expression

Shared schema rule ($ref): audio-graph-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

^i2s@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

^dmic@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): nvidia,tegra210-dmic.yaml#

^admaif@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): nvidia,tegra210-admaif.yaml#

^dspk@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): nvidia,tegra186-dspk.yaml#

^mvc@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): nvidia,tegra210-mvc.yaml#

^sfc@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): nvidia,tegra210-sfc.yaml#

^amx@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): nvidia,tegra210-amx.yaml#

^adx@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): nvidia,tegra210-adx.yaml#

^amixer@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): nvidia,tegra210-mixer.yaml#

^asrc@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): nvidia,tegra186-asrc.yaml#

^processing-engine@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): nvidia,tegra210-ope.yaml#

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "assigned-clocks", "assigned-clock-parents", "#address-cells", "#size-cells", "ranges"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include<dt-bindings/clock/tegra210-car.h>

ahub@702d0800 {
    compatible = "nvidia,tegra210-ahub";
    reg = <0x702d0800 0x800>;
    clocks = <&tegra_car TEGRA210_CLK_D_AUDIO>;
    clock-names = "ahub";
    assigned-clocks = <&tegra_car TEGRA210_CLK_D_AUDIO>;
    assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_A_OUT0>;
    #address-cells = <1>;
    #size-cells = <1>;
    ranges = <0x702d0000 0x702d0000 0x0000e400>;

    // All AHUB child nodes below
    admaif@702d0000 {
        compatible = "nvidia,tegra210-admaif";
        reg = <0x702d0000 0x800>;
        dmas = <&adma 1>,  <&adma 1>,
           <&adma 2>,  <&adma 2>,
           <&adma 3>,  <&adma 3>,
           <&adma 4>,  <&adma 4>,
           <&adma 5>,  <&adma 5>,
           <&adma 6>,  <&adma 6>,
           <&adma 7>,  <&adma 7>,
           <&adma 8>,  <&adma 8>,
           <&adma 9>,  <&adma 9>,
           <&adma 10>, <&adma 10>;
        dma-names = "rx1",  "tx1",
                "rx2",  "tx2",
                "rx3",  "tx3",
                "rx4",  "tx4",
                "rx5",  "tx5",
                "rx6",  "tx6",
                "rx7",  "tx7",
                "rx8",  "tx8",
                "rx9",  "tx9",
                "rx10", "tx10";
    };

    i2s@702d1000 {
        compatible = "nvidia,tegra210-i2s";
        reg = <0x702d1000 0x100>;
        clocks = <&tegra_car TEGRA210_CLK_I2S0>;
        clock-names = "i2s";
        assigned-clocks = <&tegra_car TEGRA210_CLK_I2S0>;
        assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_A_OUT0>;
        assigned-clock-rates = <1536000>;
        sound-name-prefix = "I2S1";
    };

    dmic@702d4000 {
        compatible = "nvidia,tegra210-dmic";
        reg = <0x702d4000 0x100>;
        clocks = <&tegra_car TEGRA210_CLK_DMIC1>;
        clock-names = "dmic";
        assigned-clocks = <&tegra_car TEGRA210_CLK_DMIC1>;
        assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_A_OUT0>;
        assigned-clock-rates = <3072000>;
        sound-name-prefix = "DMIC1";
    };

    // More child nodes to follow
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Tegra210 AMX

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra210-amx.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Audio Multiplexer (AMX) block can multiplex up to four input streams each of which can have maximum 16 channels and generate an output stream with maximum 16 channels. A byte RAM helps to form an output frame by any combination of bytes from the input frames.

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Mohan Kumar <mkumard@nvidia.com>", "Sameer Pujar <spujar@nvidia.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^amx@[0-9a-f]*$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nvidia,tegra210-amx", "nvidia,tegra194-amx", "nvidia,tegra264-amx"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "nvidia,tegra186-amx"

Item 2

Exact value (const): "nvidia,tegra210-amx"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "nvidia,tegra234-amx"

Item 2

Exact value (const): "nvidia,tegra194-amx"

reg — required here #

Maximum number of items (maxItems): 1

sound-name-prefix — not listed as required here #

String pattern (pattern): "^AMX[1-9]$"

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

AMX has four inputs and one output. Accordingly ACIF (Audio Client Interfaces) port nodes are defined to represent AMX inputs (port 0 to 3) and output (port 4). These are connected to corresponding ports on AHUB (Audio Hub).

Properties matching a name pattern (patternProperties) #

^port@[0-3] — name matches this regular expression

Shared schema rule ($ref): audio-graph-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

AMX ACIF input ports

Properties and child nodes (properties) #

port@4 — 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.

AMX ACIF output port

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) #


amx@702d3000 {
    compatible = "nvidia,tegra210-amx";
    reg = <0x702d3000 0x100>;
    sound-name-prefix = "AMX1";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Tegra210 DMIC Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra210-dmic.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Digital MIC (DMIC) Controller is used to interface with Pulse Density Modulation (PDM) input devices. It converts PDM signals to Pulse Coded Modulation (PCM) signals. DMIC can be viewed as a PDM receiver.

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Sameer Pujar <spujar@nvidia.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^dmic@[0-9a-f]*$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "nvidia,tegra210-dmic"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra264-dmic", "nvidia,tegra234-dmic", "nvidia,tegra194-dmic", "nvidia,tegra186-dmic"

Item 2

Exact value (const): "nvidia,tegra210-dmic"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "dmic"

assigned-clocks — required here #

Maximum number of items (maxItems): 1

assigned-clock-parents — required here #

Maximum number of items (maxItems): 1

assigned-clock-rates — not listed as required here #

Maximum number of items (maxItems): 1

sound-name-prefix — not listed as required here #

String pattern (pattern): "^DMIC[1-9]$"

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties and child nodes (properties) #

port@0 — 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.

DMIC ACIF (Audio Client Interface) port connected to the corresponding AHUB (Audio Hub) ACIF port.

port@1 — 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.

DMIC DAP (Digital Audio Port) interface which can be connected to external audio codec for capture.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "assigned-clocks", "assigned-clock-parents"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include<dt-bindings/clock/tegra210-car.h>

dmic@702d4000 {
    compatible = "nvidia,tegra210-dmic";
    reg = <0x702d4000 0x100>;
    clocks = <&tegra_car TEGRA210_CLK_DMIC1>;
    clock-names = "dmic";
    assigned-clocks = <&tegra_car TEGRA210_CLK_DMIC1>;
    assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_A_OUT0>;
    assigned-clock-rates = <3072000>;
    sound-name-prefix = "DMIC1";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Tegra210 I2S Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra210-i2s.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Inter-IC Sound (I2S) controller implements full-duplex, bi-directional and single direction point-to-point serial interfaces. It can interface with I2S compatible devices. I2S controller can operate both in master and slave mode.

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Sameer Pujar <spujar@nvidia.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^i2s@[0-9a-f]*$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nvidia,tegra210-i2s", "nvidia,tegra264-i2s"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra234-i2s", "nvidia,tegra194-i2s", "nvidia,tegra186-i2s"

Item 2

Exact value (const): "nvidia,tegra210-i2s"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

I2S bit clock

Item 2

Sync input clock, which can act as clock source to other I/O modules in AHUB. The Tegra I2S driver sets this clock rate as per bit clock rate. I/O module which wants to use this clock as source, can mention this clock as parent in the DT bindings. This is an optional clock entry, since it is only required when some other I/O wants to reference from a particular I2Sx instance.

clock-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "i2s"

Item 2

Exact value (const): "sync_input"

assigned-clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

assigned-clock-parents — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

assigned-clock-rates — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

sound-name-prefix — not listed as required here #

String pattern (pattern): "^I2S[1-9]$"

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties and child nodes (properties) #

port@0 — 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.

I2S ACIF (Audio Client Interface) port connected to the corresponding AHUB (Audio Hub) ACIF port.

port@1 — 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.

I2S DAP (Digital Audio Port) interface which can be connected to external audio codec for playback or capture.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "assigned-clocks", "assigned-clock-parents"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include<dt-bindings/clock/tegra210-car.h>

i2s@702d1000 {
    compatible = "nvidia,tegra210-i2s";
    reg = <0x702d1000 0x100>;
    clocks = <&tegra_car TEGRA210_CLK_I2S0>;
    clock-names = "i2s";
    assigned-clocks = <&tegra_car TEGRA210_CLK_I2S0>;
    assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_A_OUT0>;
    assigned-clock-rates = <1536000>;
    sound-name-prefix = "I2S1";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Tegra210 MBDRC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra210-mbdrc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Multi Band Dynamic Range Compressor (MBDRC) is part of Output Processing Engine (OPE) which interfaces with Audio Hub (AHUB) via Audio Client Interface (ACIF). MBDRC can be used as a traditional single full band or a dual band or a multi band dynamic processor.

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Mohan Kumar <mkumard@nvidia.com>", "Sameer Pujar <spujar@nvidia.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "nvidia,tegra210-mbdrc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra264-mbdrc", "nvidia,tegra234-mbdrc", "nvidia,tegra194-mbdrc", "nvidia,tegra186-mbdrc"

Item 2

Exact value (const): "nvidia,tegra210-mbdrc"

reg — required here #

Maximum number of items (maxItems): 1

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) #

dynamic-range-compressor@702d8200 {
    compatible = "nvidia,tegra210-mbdrc";
    reg = <0x702d8200 0x200>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Tegra210 Mixer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra210-mixer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Mixer supports mixing of up to ten 7.1 audio input streams and generate five outputs (each of which can be any combination of the ten input streams).

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Mohan Kumar <mkumard@nvidia.com>", "Sameer Pujar <spujar@nvidia.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^amixer@[0-9a-f]*$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "nvidia,tegra210-amixer"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra264-amixer", "nvidia,tegra234-amixer", "nvidia,tegra194-amixer", "nvidia,tegra186-amixer"

Item 2

Exact value (const): "nvidia,tegra210-amixer"

reg — required here #

Maximum number of items (maxItems): 1

sound-name-prefix — not listed as required here #

String pattern (pattern): "^MIXER[1-9]$"

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Mixer has ten inputs and five outputs. Accordingly ACIF (Audio Client Interfaces) port nodes are defined to represent Mixer inputs (port 0 to 9) and outputs (port 10 to 14). These are connected to corresponding ports on AHUB (Audio Hub).

Properties matching a name pattern (patternProperties) #

^port@[0-9] — name matches this regular expression

Shared schema rule ($ref): audio-graph-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Mixer ACIF input ports

^port@[10-14] — name matches this regular expression

Shared schema rule ($ref): audio-graph-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Mixer ACIF output ports

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) #


amixer@702dbb00 {
    compatible = "nvidia,tegra210-amixer";
    reg = <0x702dbb00 0x800>;
    sound-name-prefix = "MIXER1";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Tegra210 MVC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra210-mvc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Master Volume Control (MVC) provides gain or attenuation to a digital signal path. It can be used in input or output signal path for per-stream volume control or it can be used as master volume control. The MVC block has one input and one output. The input digital stream can be mono or multi-channel (up to 7.1 channels) stream. An independent mute control is also included in the MVC block.

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Mohan Kumar <mkumard@nvidia.com>", "Sameer Pujar <spujar@nvidia.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^mvc@[0-9a-f]*$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "nvidia,tegra210-mvc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra264-mvc", "nvidia,tegra234-mvc", "nvidia,tegra194-mvc", "nvidia,tegra186-mvc"

Item 2

Exact value (const): "nvidia,tegra210-mvc"

reg — required here #

Maximum number of items (maxItems): 1

sound-name-prefix — not listed as required here #

String pattern (pattern): "^MVC[1-9]$"

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties and child nodes (properties) #

port@0 — 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.

MVC ACIF (Audio Client Interface) input port. This is connected to corresponding ACIF output port on AHUB (Audio Hub).

port@1 — 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.

MVC ACIF output port. This is connected to corresponding ACIF input port on AHUB.

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) #


mvc@702da000 {
    compatible = "nvidia,tegra210-mvc";
    reg = <0x702da000 0x200>;
    sound-name-prefix = "MVC1";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Tegra210 OPE

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra210-ope.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Output Processing Engine (OPE) is one of the AHUB client. It has PEQ (Parametric Equalizer) and MBDRC (Multi Band Dynamic Range Compressor) sub blocks for data processing.

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Mohan Kumar <mkumard@nvidia.com>", "Sameer Pujar <spujar@nvidia.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "nvidia,tegra210-ope"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra264-ope", "nvidia,tegra234-ope", "nvidia,tegra194-ope", "nvidia,tegra186-ope"

Item 2

Exact value (const): "nvidia,tegra210-ope"

reg — required here #

Maximum number of items (maxItems): 1

#address-cells — not listed as required here #

Allowed values (enum): 1, 2

#size-cells — not listed as required here #

Allowed values (enum): 1, 2

ranges — not listed as required here #

true — No constraints added by this property rule.

sound-name-prefix — not listed as required here #

String pattern (pattern): "^OPE[1-9]$"

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties and child nodes (properties) #

port@0 — 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.

OPE ACIF (Audio Client Interface) input port. This is connected to corresponding ACIF output port on AHUB (Audio Hub).

port@1 — 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.

OPE ACIF output port. This is connected to corresponding ACIF input port on AHUB.

Properties matching a name pattern (patternProperties) #

^equalizer@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): nvidia,tegra210-peq.yaml#

^dynamic-range-compressor@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): nvidia,tegra210-mbdrc.yaml#

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) #

processing-engine@702d8000 {
    compatible = "nvidia,tegra210-ope";
    reg = <0x702d8000 0x100>;
    sound-name-prefix = "OPE1";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Tegra210 PEQ

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra210-peq.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Parametric Equalizer (PEQ) is a cascade of biquad filters with each filter tuned based on certain parameters. It can be used to equalize the irregularities in the speaker frequency response. PEQ sits inside Output Processing Engine (OPE) which interfaces with Audio Hub (AHUB) via Audio Client Interface (ACIF).

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Mohan Kumar <mkumard@nvidia.com>", "Sameer Pujar <spujar@nvidia.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "nvidia,tegra210-peq"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra264-peq", "nvidia,tegra234-peq", "nvidia,tegra194-peq", "nvidia,tegra186-peq"

Item 2

Exact value (const): "nvidia,tegra210-peq"

reg — required here #

Maximum number of items (maxItems): 1

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) #

equalizer@702d8100 {
    compatible = "nvidia,tegra210-peq";
    reg = <0x702d8100 0x100>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Tegra210 SFC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra210-sfc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Sampling Frequency Converter (SFC) converts the sampling frequency of the input signal from one frequency to another. It supports sampling frequency conversions of streams of up to two channels (stereo).

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Mohan Kumar <mkumard@nvidia.com>", "Sameer Pujar <spujar@nvidia.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^sfc@[0-9a-f]*$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "nvidia,tegra210-sfc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra264-sfc", "nvidia,tegra234-sfc", "nvidia,tegra194-sfc", "nvidia,tegra186-sfc"

Item 2

Exact value (const): "nvidia,tegra210-sfc"

reg — required here #

Maximum number of items (maxItems): 1

sound-name-prefix — not listed as required here #

String pattern (pattern): "^SFC[1-9]$"

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties and child nodes (properties) #

port@0 — 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.

SFC ACIF (Audio Client Interface) input port. This is connected to corresponding ACIF output port on AHUB (Audio Hub).

port@1 — 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.

SFC ACIF output port. This is connected to corresponding ACIF input port on AHUB.

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) #


sfc@702d2000 {
    compatible = "nvidia,tegra210-sfc";
    reg = <0x702d2000 0x200>;
    sound-name-prefix = "SFC1";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra HDA controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra30-hda.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The High Definition Audio (HDA) block provides a serial interface to audio codec. It supports multiple input and output streams.

Maintainers (maintainers): "Thierry Reding <treding@nvidia.com>", "Jon Hunter <jonathanh@nvidia.com>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^hda@[0-9a-f]*$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nvidia,tegra30-hda", "nvidia,tegra194-hda", "nvidia,tegra234-hda", "nvidia,tegra264-hda"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra186-hda", "nvidia,tegra210-hda", "nvidia,tegra124-hda", "nvidia,tegra114-hda"

Item 2

Exact value (const): "nvidia,tegra30-hda"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "nvidia,tegra132-hda"

Item 2

Exact value (const): "nvidia,tegra124-hda"

Item 3

Exact value (const): "nvidia,tegra30-hda"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

The interrupt from the HDA controller

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

resets — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

reset-names — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

interconnects — not listed as required here #

Maximum number of items (maxItems): 2

interconnect-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "dma-mem"

Item 2

Exact value (const): "write"

iommus — not listed as required here #

Maximum number of items (maxItems): 1

nvidia,model — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

The user-visible name of this sound complex. If this property is not specified then boards can use default name provided in hda driver.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra30-hda"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hda"

Item 2

Exact value (const): "hda2hdmi"

Item 3

Exact value (const): "hda2codec_2x"

resets — not listed as required here

Minimum number of items (minItems): 3

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hda"

Item 2

Exact value (const): "hda2hdmi"

Item 3

Exact value (const): "hda2codec_2x"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra194-hda"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hda"

Item 2

Exact value (const): "hda2hdmi"

Item 3

Exact value (const): "hda2codec_2x"

resets — not listed as required here

Maximum number of items (maxItems): 2

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hda"

Item 2

Exact value (const): "hda2hdmi"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra234-hda"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hda"

Item 2

Exact value (const): "hda2codec_2x"

resets — not listed as required here

Maximum number of items (maxItems): 2

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hda"

Item 2

Exact value (const): "hda2codec_2x"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra264-hda"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hda"

resets — not listed as required here

Maximum number of items (maxItems): 2

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hda"

Item 2

Exact value (const): "hda2codec_2x"

power-domains — not listed as required here

false — Not permitted by this property rule.

Examples (examples) #

#include<dt-bindings/clock/tegra124-car-common.h>
#include<dt-bindings/interrupt-controller/arm-gic.h>

hda@70030000 {
    compatible = "nvidia,tegra124-hda", "nvidia,tegra30-hda";
    reg = <0x70030000 0x10000>;
    interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&tegra_car TEGRA124_CLK_HDA>,
             <&tegra_car TEGRA124_CLK_HDA2HDMI>,
             <&tegra_car TEGRA124_CLK_HDA2CODEC_2X>;
    clock-names = "hda", "hda2hdmi", "hda2codec_2x";
    resets = <&tegra_car 125>, /* hda */
             <&tegra_car 128>, /* hda2hdmi */
             <&tegra_car 111>; /* hda2codec_2x */
    reset-names = "hda", "hda2hdmi", "hda2codec_2x";
    nvidia,model = "jetson-tk1-hda";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra30 I2S controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra30-i2s.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thierry Reding <treding@nvidia.com>", "Jon Hunter <jonathanh@nvidia.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nvidia,tegra124-i2s", "nvidia,tegra30-i2s"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "nvidia,tegra114-i2s"

Item 2

Exact value (const): "nvidia,tegra30-i2s"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "i2s"

resets — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Exact value (const): "i2s"

nvidia,ahub-cif-ids — required here #

list of AHUB CIF IDs

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Array item rules (items) #

Item 1

rx (playback)

Item 2

tx (capture)

Required in this object (required): "compatible", "reg", "clocks", "resets", "reset-names", "nvidia,ahub-cif-ids"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/tegra30-car.h>

i2s@70080300 {
    compatible = "nvidia,tegra30-i2s";
    reg = <0x70080300 0x100>;
    nvidia,ahub-cif-ids = <4 4>;
    clocks = <&tegra_car TEGRA30_CLK_I2S0>;
    resets = <&tegra_car 30>;
    reset-names = "i2s";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NXP LPC32XX I2S Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nxp,lpc3220-i2s.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The I2S controller in LPC32XX SoCs, ASoC DAI.

Maintainers (maintainers): "J.M.B. Downing <jonathan.downing@nautel.com>", "Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>"

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): "nxp,lpc3220-i2s"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

input clock of the peripheral.

dmas — required here #

Array item rules (items) #

Item 1

RX DMA Channel

Item 2

TX DMA Channel

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "dmas", "dma-names", "#sound-dai-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/lpc32xx-clock.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2s@20094000 {
  compatible = "nxp,lpc3220-i2s";
  reg = <0x20094000 0x1000>;
  interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&clk LPC32XX_CLK_I2S0>;
  dmas = <&dma 0 1>, <&dma 13 1>;
  dma-names = "rx", "tx";
  #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NXP/Goodix TFA989X (TFA1) Audio Amplifiers

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/nxp,tfa989x.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Stephan Gerhold <stephan@gerhold.net>"

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): "nxp,tfa9890", "nxp,tfa9895", "nxp,tfa9897"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

rcv-gpios — not listed as required here #

optional GPIO to be asserted when receiver mode is enabled.

sound-name-prefix — not listed as required here #

true — No constraints added by this property rule.

vddd-supply — not listed as required here #

regulator phandle for the VDDD power supply.

Condition (if) #

This rule must not match (not) #

Properties and child nodes (properties) #

compatible — not listed as required here

Exact value (const): "nxp,tfa9897"

When the condition matches (then) #

Properties and child nodes (properties) #

rcv-gpios — not listed as required here #

false — Not permitted by this property rule.

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  audio-codec@34 {
    compatible = "nxp,tfa9895";
    reg = <0x34>;
    sound-name-prefix = "Speaker Left";
    #sound-dai-cells = <0>;
  };
  audio-codec@36 {
    compatible = "nxp,tfa9895";
    reg = <0x36>;
    sound-name-prefix = "Speaker Right";
    #sound-dai-cells = <0>;
  };
};
#include <dt-bindings/gpio/gpio.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  speaker_codec_top: audio-codec@34 {
    compatible = "nxp,tfa9897";
    reg = <0x34>;
    vddd-supply = <&pm8916_l6>;
    rcv-gpios = <&msmgpio 50 GPIO_ACTIVE_HIGH>;
    pinctrl-names = "default";
    pinctrl-0 = <&speaker_top_default>;
    sound-name-prefix = "Speaker Top";
    #sound-dai-cells = <0>;
  };

  speaker_codec_bottom: audio-codec@36 {
    compatible = "nxp,tfa9897";
    reg = <0x36>;
    vddd-supply = <&pm8916_l6>;
    rcv-gpios = <&msmgpio 111 GPIO_ACTIVE_HIGH>;
    pinctrl-names = "default";
    pinctrl-0 = <&speaker_bottom_default>;
    sound-name-prefix = "Speaker Bottom";
    #sound-dai-cells = <0>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

GTM601 UMTS modem audio interface CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/option,gtm601.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "kernel@puri.sm"

This device has no configuration interface. The sample rate and channels are based on the compatible string

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Broadmobi BM818 (48Khz stereo)

Array item rules (items)

Item 1

Exact value (const): "broadmobi,bm818"

Item 2

Exact value (const): "option,gtm601"

Rule 2

GTM601 (8kHz mono)

Exact value (const): "option,gtm601"

#sound-dai-cells — not listed as required here #

Exact value (const): 0

Required in this object (required): "compatible"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

codec {
    compatible = "option,gtm601";
    #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Qualcomm APQ8016 and similar sound cards

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,apq8016-sbc-sndcard.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>", "Stephan Gerhold <stephan@gerhold.net>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,apq8016-sbc-sndcard", "qcom,msm8916-qdsp6-sndcard"

reg — required here #

Array item rules (items) #

Item 1

Microphone I/O mux register address

Item 2

Speaker I/O mux register address

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mic-iomux"

Item 2

Exact value (const): "spkr-iomux"

audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names could be power supplies, MicBias of codec and the jacks on the board.

aux-devs — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

List of phandles pointing to auxiliary devices, such as amplifiers, to be added to the sound card.

model — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

User visible long sound card name

pin-switches — not listed as required here #

List of widget names for which pin switches should be created.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array

widgets — not listed as required here #

User specified audio sound widgets.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

Properties matching a name pattern (patternProperties) #

.*-dai-link$ — name matches this regular expression #

Each subnode represents a dai link. Subnodes of each dai links would be cpu/codec dais.

Value type (type): "object"

Properties and child nodes (properties) #

link-name — required here

Indicates dai-link name and PCM stream name.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Maximum number of items (maxItems): 1

cpu — required here

Holds subnode which indicates cpu dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

sound-dai — not listed as required here

Maximum number of items (maxItems): 1

platform — not listed as required here

Holds subnode which indicates platform dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

sound-dai — not listed as required here

Maximum number of items (maxItems): 1

codec — not listed as required here

Holds subnode which indicates codec dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

sound-dai — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

Required in this object (required): "link-name", "cpu"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "reg-names", "model"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/sound/qcom,lpass.h>
sound@7702000 {
    compatible = "qcom,apq8016-sbc-sndcard";
    reg = <0x07702000 0x4>, <0x07702004 0x4>;
    reg-names = "mic-iomux", "spkr-iomux";

    model = "DB410c";
    audio-routing =
        "AMIC2", "MIC BIAS Internal2",
        "AMIC3", "MIC BIAS External1";

    pinctrl-0 = <&cdc_pdm_lines_act &ext_sec_tlmm_lines_act &ext_mclk_tlmm_lines_act>;
    pinctrl-1 = <&cdc_pdm_lines_sus &ext_sec_tlmm_lines_sus &ext_mclk_tlmm_lines_sus>;
    pinctrl-names = "default", "sleep";

    quaternary-dai-link {
        link-name = "ADV7533";
        cpu {
            sound-dai = <&lpass MI2S_QUATERNARY>;
        };
        codec {
            sound-dai = <&adv_bridge 0>;
        };
    };

    primary-dai-link {
        link-name = "WCD";
        cpu {
            sound-dai = <&lpass MI2S_PRIMARY>;
        };
        codec {
            sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;
        };
    };

    tertiary-dai-link {
        link-name = "WCD-Capture";
        cpu {
            sound-dai = <&lpass MI2S_TERTIARY>;
        };
        codec {
            sound-dai = <&lpass_codec 1>, <&wcd_codec 1>;
        };
    };
};
#include <dt-bindings/sound/qcom,q6afe.h>
#include <dt-bindings/sound/qcom,q6asm.h>
sound@7702000 {
    compatible = "qcom,msm8916-qdsp6-sndcard";
    reg = <0x07702000 0x4>, <0x07702004 0x4>;
    reg-names = "mic-iomux", "spkr-iomux";

    model = "msm8916";
    widgets =
        "Speaker", "Speaker",
        "Headphone", "Headphones";
    pin-switches = "Speaker";
    audio-routing =
        "Speaker", "Speaker Amp OUT",
        "Speaker Amp IN", "HPH_R",
        "Headphones", "HPH_L",
        "Headphones", "HPH_R",
        "AMIC1", "MIC BIAS Internal1",
        "AMIC2", "MIC BIAS Internal2",
        "AMIC3", "MIC BIAS Internal3";
    aux-devs = <&speaker_amp>;

    pinctrl-names = "default", "sleep";
    pinctrl-0 = <&cdc_pdm_lines_act>;
    pinctrl-1 = <&cdc_pdm_lines_sus>;

    mm1-dai-link {
        link-name = "MultiMedia1";
        cpu {
            sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
        };
    };

    primary-dai-link {
        link-name = "Primary MI2S";
        cpu {
            sound-dai = <&q6afedai PRIMARY_MI2S_RX>;
        };
        platform {
            sound-dai = <&q6routing>;
        };
        codec {
            sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Qualcomm Technologies Inc. LPASS CPU dai driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,lpass-cpu.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>", "Rohit kumar <quic_rohkumar@quicinc.com>"

Qualcomm Technologies Inc. SOC Low-Power Audio SubSystem (LPASS) that consist of MI2S interface for audio data transfer on external codecs. LPASS cpu driver is a module to configure Low-Power Audio Interface(LPAIF) core registers across different IP versions.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,lpass-cpu", "qcom,apq8016-lpass-cpu", "qcom,sc7180-lpass-cpu", "qcom,sc7280-lpass-cpu"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 6

LPAIF core registers

reg-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 6

clocks — required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 10

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 10

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

LPAIF DMA buffer interrupt

interrupt-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

qcom,adsp — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle for the audio DSP node

iommus — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

Phandle to apps_smmu node with sid mask

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

power-domain-names — not listed as required here #

Maximum number of items (maxItems): 1

required-opps — not listed as required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 1

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^dai-link@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

LPASS CPU dai node for each I2S device or Soundwire device. Bindings of each node depends on the specific driver providing the functionality and properties.

Properties and child nodes (properties) #

reg — required here

Maximum number of items (maxItems): 1

Must be one of the DAI ID

qcom,playback-sd-lines — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

list of MI2S data lines for playback

qcom,capture-sd-lines — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

list of MI2S data lines for capture

Required in this object (required): "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "reg-names", "clocks", "clock-names", "interrupts", "interrupt-names", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "qcom,lpass-cpu"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "ahbix-clk"

Item 2

Exact value (const): "mi2s-osr-clk"

Item 3

Exact value (const): "mi2s-bit-clk"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "qcom,apq8016-lpass-cpu"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 7

Maximum number of items (maxItems): 7

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "ahbix-clk"

Item 2

Exact value (const): "mi2s-bit-clk0"

Item 3

Exact value (const): "mi2s-bit-clk1"

Item 4

Exact value (const): "mi2s-bit-clk2"

Item 5

Exact value (const): "mi2s-bit-clk3"

Item 6

Exact value (const): "pcnoc-mport-clk"

Item 7

Exact value (const): "pcnoc-sway-clk"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "qcom,sc7180-lpass-cpu"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 6

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pcnoc-sway-clk"

Item 2

Exact value (const): "audio-core"

Item 3

Exact value (const): "mclk0"

Item 4

Exact value (const): "pcnoc-mport-clk"

Item 5

Exact value (const): "mi2s-bit-clk0"

Item 6

Exact value (const): "mi2s-bit-clk1"

reg — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "lpass-hdmiif"

Item 2

Exact value (const): "lpass-lpaif"

interrupts — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "lpass-irq-lpaif"

Item 2

Exact value (const): "lpass-irq-hdmi"

Required in this object (required): "iommus", "power-domains"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "qcom,sc7280-lpass-cpu"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 10

Maximum number of items (maxItems): 10

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "aon_cc_audio_hm_h"

Item 2

Exact value (const): "audio_cc_ext_mclk0"

Item 3

Exact value (const): "core_cc_sysnoc_mport_core"

Item 4

Exact value (const): "core_cc_ext_if0_ibit"

Item 5

Exact value (const): "core_cc_ext_if1_ibit"

Item 6

Exact value (const): "audio_cc_codec_mem"

Item 7

Exact value (const): "audio_cc_codec_mem0"

Item 8

Exact value (const): "audio_cc_codec_mem1"

Item 9

Exact value (const): "audio_cc_codec_mem2"

Item 10

Exact value (const): "aon_cc_va_mem0"

reg — not listed as required here

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 6

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "lpass-hdmiif"

Item 2

Exact value (const): "lpass-lpaif"

Item 3

Exact value (const): "lpass-rxtx-cdc-dma-lpm"

Item 4

Exact value (const): "lpass-rxtx-lpaif"

Item 5

Exact value (const): "lpass-va-lpaif"

Item 6

Exact value (const): "lpass-va-cdc-dma-lpm"

interrupts — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

interrupt-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "lpass-irq-lpaif"

Item 2

Exact value (const): "lpass-irq-hdmi"

Item 3

Exact value (const): "lpass-irq-vaif"

Item 4

Exact value (const): "lpass-irq-rxtxif"

power-domain-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "lcx"

Required in this object (required): "iommus", "power-domains"

Examples (examples) #

#include <dt-bindings/sound/sc7180-lpass.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;
    lpass@62d80000 {
        compatible = "qcom,sc7180-lpass-cpu";

        reg = <0 0x62d87000 0 0x68000>,
              <0 0x62f00000 0 0x29000>;
        reg-names = "lpass-hdmiif",
                    "lpass-lpaif";
        iommus = <&apps_smmu 0x1020 0>,
                 <&apps_smmu 0x1032 0>;
        power-domains = <&lpass_hm 0>;

        clocks = <&gcc 131>,
             <&lpasscorecc 6>,
             <&lpasscorecc 7>,
             <&lpasscorecc 10>,
             <&lpasscorecc 8>,
             <&lpasscorecc 9>;

        clock-names = "pcnoc-sway-clk", "audio-core",
                      "mclk0", "pcnoc-mport-clk",
                      "mi2s-bit-clk0", "mi2s-bit-clk1";

        interrupts = <0 160 1>,
                     <0 268 1>;
        interrupt-names = "lpass-irq-lpaif",
                          "lpass-irq-hdmi";
        #sound-dai-cells = <1>;

        #address-cells = <1>;
        #size-cells = <0>;
        /* Optional to set different MI2S SD lines */
        dai-link@0 {
            reg = <MI2S_PRIMARY>;
            qcom,playback-sd-lines = <1>;
            qcom,capture-sd-lines = <0>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

LPASS(Low Power Audio Subsystem) RX Macro audio codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,lpass-rx-macro.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "qcom,sc7280-lpass-rx-macro", "qcom,sm6115-lpass-rx-macro", "qcom,sm8250-lpass-rx-macro", "qcom,sm8450-lpass-rx-macro", "qcom,sm8550-lpass-rx-macro", "qcom,sc8280xp-lpass-rx-macro"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qcom,kaanapali-lpass-rx-macro", "qcom,sm8650-lpass-rx-macro", "qcom,sm8750-lpass-rx-macro", "qcom,x1e80100-lpass-rx-macro"

Item 2

Exact value (const): "qcom,sm8550-lpass-rx-macro"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 1

#clock-cells — not listed as required here #

Exact value (const): 0

clocks — not listed as required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 5

clock-names — not listed as required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 5

clock-output-names — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 2

power-domain-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "macro"

Item 2

Exact value (const): "dcodec"

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "qcom,sc7280-lpass-rx-macro"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Exactly one of these rules must match (oneOf)

Rule 1

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "npl"

Item 3

Exact value (const): "macro"

Item 4

Exact value (const): "dcodec"

Item 5

Exact value (const): "fsgen"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "npl"

Item 3

Exact value (const): "fsgen"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "qcom,sm6115-lpass-rx-macro"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "npl"

Item 3

Exact value (const): "dcodec"

Item 4

Exact value (const): "fsgen"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "qcom,sc8280xp-lpass-rx-macro", "qcom,sm8250-lpass-rx-macro", "qcom,sm8450-lpass-rx-macro"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 5

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "npl"

Item 3

Exact value (const): "macro"

Item 4

Exact value (const): "dcodec"

Item 5

Exact value (const): "fsgen"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sm8550-lpass-rx-macro"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "macro"

Item 3

Exact value (const): "dcodec"

Item 4

Exact value (const): "fsgen"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/sound/qcom,q6afe.h>
codec@3200000 {
  compatible = "qcom,sm8250-lpass-rx-macro";
  reg = <0x3200000 0x1000>;
  #sound-dai-cells = <1>;
  #clock-cells = <0>;
  clocks = <&audiocc 0>,
           <&audiocc 1>,
           <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
           <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
           <&vamacro>;
  clock-names = "mclk", "npl", "macro", "dcodec", "fsgen";
  clock-output-names = "mclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 74: for ADSP based platforms

Line 80: for ADSP bypass based platforms

LPASS(Low Power Audio Subsystem) TX Macro audio codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,lpass-tx-macro.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "qcom,sc7280-lpass-tx-macro", "qcom,sm6115-lpass-tx-macro", "qcom,sm8250-lpass-tx-macro", "qcom,sm8450-lpass-tx-macro", "qcom,sm8550-lpass-tx-macro", "qcom,sc8280xp-lpass-tx-macro"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qcom,kaanapali-lpass-tx-macro", "qcom,sm8650-lpass-tx-macro", "qcom,sm8750-lpass-tx-macro", "qcom,x1e80100-lpass-tx-macro"

Item 2

Exact value (const): "qcom,sm8550-lpass-tx-macro"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 1

#clock-cells — not listed as required here #

Exact value (const): 0

clocks — not listed as required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 5

clock-names — not listed as required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 5

clock-output-names — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 2

power-domain-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "macro"

Item 2

Exact value (const): "dcodec"

qcom,dmic-sample-rate — not listed as required here #

dmic sample rate

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "qcom,sc7280-lpass-tx-macro"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Exactly one of these rules must match (oneOf)

Rule 1

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "npl"

Item 3

Exact value (const): "macro"

Item 4

Exact value (const): "dcodec"

Item 5

Exact value (const): "fsgen"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "npl"

Item 3

Exact value (const): "fsgen"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "qcom,sc8280xp-lpass-tx-macro", "qcom,sm8250-lpass-tx-macro", "qcom,sm8450-lpass-tx-macro"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 5

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "npl"

Item 3

Exact value (const): "macro"

Item 4

Exact value (const): "dcodec"

Item 5

Exact value (const): "fsgen"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "qcom,sm6115-lpass-tx-macro"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "npl"

Item 3

Exact value (const): "dcodec"

Item 4

Exact value (const): "fsgen"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sm8550-lpass-tx-macro"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "macro"

Item 3

Exact value (const): "dcodec"

Item 4

Exact value (const): "fsgen"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/sound/qcom,q6afe.h>
codec@3220000 {
  compatible = "qcom,sm8250-lpass-tx-macro";
  reg = <0x3220000 0x1000>;
  #sound-dai-cells = <1>;
  #clock-cells = <0>;
  clocks = <&aoncc 0>,
           <&aoncc 1>,
           <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
           <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
           <&vamacro>;
  clock-names = "mclk", "npl", "macro", "dcodec", "fsgen";
  clock-output-names = "mclk";
  qcom,dmic-sample-rate = <600000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 78: for ADSP based platforms

Line 84: for ADSP bypass based platforms

LPASS(Low Power Audio Subsystem) VA Macro audio codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,lpass-va-macro.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "qcom,sc7280-lpass-va-macro", "qcom,sm6115-lpass-va-macro", "qcom,sm8250-lpass-va-macro", "qcom,sm8450-lpass-va-macro", "qcom,sm8550-lpass-va-macro", "qcom,sc8280xp-lpass-va-macro"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qcom,glymur-lpass-va-macro", "qcom,kaanapali-lpass-va-macro", "qcom,sm8650-lpass-va-macro", "qcom,sm8750-lpass-va-macro", "qcom,x1e80100-lpass-va-macro"

Item 2

Exact value (const): "qcom,sm8550-lpass-va-macro"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 1

#clock-cells — not listed as required here #

Exact value (const): 0

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

clock-output-names — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 2

power-domain-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "macro"

Item 2

Exact value (const): "dcodec"

qcom,dmic-sample-rate — not listed as required here #

dmic sample rate

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

vdd-micb-supply — not listed as required here #

phandle to voltage regulator of MIC Bias

Required in this object (required): "compatible", "reg", "#sound-dai-cells", "clock-names", "clocks"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "qcom,sc7280-lpass-va-macro"

When the condition matches (then) #

Condition (if)

Required in this object (required): "power-domains"

When the condition matches (then)

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

When the condition does not match (else)

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "macro"

Item 3

Exact value (const): "dcodec"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "qcom,sm6115-lpass-va-macro"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "dcodec"

Item 3

Exact value (const): "npl"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "qcom,sm8250-lpass-va-macro"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "macro"

Item 3

Exact value (const): "dcodec"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sc8280xp-lpass-va-macro", "qcom,sm8450-lpass-va-macro"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "macro"

Item 3

Exact value (const): "dcodec"

Item 4

Exact value (const): "npl"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sm8550-lpass-va-macro"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "macro"

Item 3

Exact value (const): "dcodec"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/sound/qcom,q6afe.h>
codec@3370000 {
  compatible = "qcom,sm8250-lpass-va-macro";
  reg = <0x3370000 0x1000>;
  #sound-dai-cells = <1>;
  #clock-cells = <0>;
  clocks = <&aoncc 0>,
           <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
           <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
  clock-names = "mclk", "macro", "dcodec";
  clock-output-names = "fsgen";
  qcom,dmic-sample-rate = <600000>;
  vdd-micb-supply = <&vreg_s4a_1p8>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

LPASS(Low Power Audio Subsystem) VA Macro audio codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,lpass-wsa-macro.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "qcom,sc7280-lpass-wsa-macro", "qcom,sm8250-lpass-wsa-macro", "qcom,sm8450-lpass-wsa-macro", "qcom,sm8550-lpass-wsa-macro", "qcom,sc8280xp-lpass-wsa-macro"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qcom,glymur-lpass-wsa-macro", "qcom,kaanapali-lpass-wsa-macro", "qcom,sm8650-lpass-wsa-macro", "qcom,sm8750-lpass-wsa-macro", "qcom,x1e80100-lpass-wsa-macro"

Item 2

Exact value (const): "qcom,sm8550-lpass-wsa-macro"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 1

#clock-cells — not listed as required here #

Exact value (const): 0

clocks — not listed as required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 6

clock-names — not listed as required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 6

clock-output-names — not listed as required here #

Maximum number of items (maxItems): 1

qcom,dmic-sample-rate — not listed as required here #

dmic sample rate

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

vdd-micb-supply — not listed as required here #

phandle to voltage regulator of MIC Bias

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "qcom,sc7280-lpass-wsa-macro", "qcom,sm8250-lpass-wsa-macro", "qcom,sm8450-lpass-wsa-macro", "qcom,sc8280xp-lpass-wsa-macro"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 5

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "npl"

Item 3

Exact value (const): "macro"

Item 4

Exact value (const): "dcodec"

Item 5

Exact value (const): "fsgen"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sm8550-lpass-wsa-macro"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "macro"

Item 3

Exact value (const): "dcodec"

Item 4

Exact value (const): "fsgen"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/qcom,sm8250-lpass-aoncc.h>
#include <dt-bindings/sound/qcom,q6afe.h>
codec@3240000 {
  compatible = "qcom,sm8250-lpass-wsa-macro";
  reg = <0x3240000 0x1000>;
  #sound-dai-cells = <1>;
  #clock-cells = <0>;
  clocks = <&audiocc 1>,
           <&audiocc 0>,
           <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
           <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
           <&vamacro>;
  clock-names = "mclk", "npl", "macro", "dcodec", "fsgen";
  clock-output-names = "mclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Qualcomm MSM8916 WCD Digital Audio Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,msm8916-wcd-digital-codec.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

The digital WCD audio codec found on Qualcomm MSM8916 LPASS.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "qcom,msm8916-wcd-digital-codec"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ahbix-clk"

Item 2

Exact value (const): "mclk"

#sound-dai-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "#sound-dai-cells"

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/clock/qcom,gcc-msm8916.h>
audio-codec@771c000 {
    compatible = "qcom,msm8916-wcd-digital-codec";
    reg = <0x0771c000 0x400>;
    clocks = <&gcc GCC_ULTAUDIO_AHBFABRIC_IXFABRIC_CLK>,
             <&gcc GCC_CODEC_DIGCODEC_CLK>;
    clock-names = "ahbix-clk", "mclk";
    #sound-dai-cells = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Qualcomm PM4125 Audio Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,pm4125-codec.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alexey Klimov <alexey.klimov@linaro.org>"

The audio codec IC found on Qualcomm PM4125/PM2250 PMIC. It has RX and TX Soundwire slave devices.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "qcom,pm4125-codec"

reg — required here #

Specifies the SPMI base address for the audio codec peripherals. The address space contains reset register needed to power-on the codec.

Maximum number of items (maxItems): 1

reg-names — not listed as required here #

Maximum number of items (maxItems): 1

vdd-io-supply — required here #

A reference to the 1.8V I/O supply

vdd-cp-supply — required here #

A reference to the charge pump I/O supply

vdd-mic-bias-supply — required here #

A reference to the 3.3V mic bias supply

vdd-pa-vpos-supply — required here #

A reference to the PA VPOS supply

qcom,tx-device — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

A reference to Soundwire tx device phandle

qcom,rx-device — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

A reference to Soundwire rx device phandle

qcom,micbias1-microvolt — required here #

micbias1 voltage

Minimum value (minimum): 1800000

Maximum value (maximum): 2850000

qcom,micbias2-microvolt — required here #

micbias2 voltage

Minimum value (minimum): 1800000

Maximum value (maximum): 2850000

qcom,micbias3-microvolt — required here #

micbias3 voltage

Minimum value (minimum): 1800000

Maximum value (maximum): 2850000

qcom,mbhc-buttons-vthreshold-microvolt — not listed as required here #

Array of 8 Voltage threshold values corresponding to headset button0 - button7

Minimum number of items (minItems): 8

Maximum number of items (maxItems): 8

#sound-dai-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "vdd-io-supply", "vdd-cp-supply", "vdd-mic-bias-supply", "vdd-pa-vpos-supply", "qcom,tx-device", "qcom,rx-device", "qcom,micbias1-microvolt", "qcom,micbias2-microvolt", "qcom,micbias3-microvolt", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/spmi/spmi.h>

spmi {
    #address-cells = <2>;
    #size-cells = <0>;

    pmic {
        #address-cells = <1>;
        #size-cells = <0>;

        audio-codec@f000 {
            compatible = "qcom,pm4125-codec";
            reg = <0xf000>;
            vdd-io-supply = <&pm4125_l15>;
            vdd-cp-supply = <&pm4125_s4>;
            vdd-pa-vpos-supply = <&pm4125_s4>;
            vdd-mic-bias-supply = <&pm4125_l22>;
            qcom,micbias1-microvolt = <1800000>;
            qcom,micbias2-microvolt = <1800000>;
            qcom,micbias3-microvolt = <1800000>;
            qcom,rx-device = <&pm4125_rx>;
            qcom,tx-device = <&pm4125_tx>;
            #sound-dai-cells = <1>;
        };
    };
};

/* ... */

soundwire@a610000 {
    reg = <0x0a610000 0x2000>;
    #address-cells = <2>;
    #size-cells = <0>;
    pm4125_rx: audio-codec@0,4 {
        compatible = "sdw20217010c00";
        reg = <0 4>;
        qcom,rx-port-mapping = <1 3>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Qualcomm SoundWire Slave devices on PM4125/PM2250 PMIC audio codec.

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,pm4125-sdw.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alexey Klimov <alexey.klimov@linaro.org>"

The audio codec IC found on Qualcomm PM4125/PM2250 PMICs. It has RX and TX Soundwire slave devices.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sdw20217010c00"

reg — required here #

Maximum number of items (maxItems): 1

qcom,tx-port-mapping — not listed as required here #

Specifies static port mapping between device and host tx ports. In the order of the device port index which are adc1_port, adc23_port, dmic03_mbhc_port, dmic46_port. Supports maximum 2 tx soundwire ports.

PM4125 TX Port 1 (ADC1,2 & DMIC0 & MBHC) <=> SWR0 Port 1 PM4125 TX Port 2 (ADC1 & DMIC0,1,2 & MBHC) <=> SWR0 Port 2

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 4

Array item rules (items) #

Allowed values (enum): 1, 2, 3, 4

qcom,rx-port-mapping — not listed as required here #

Specifies static port mapping between device and host rx ports. In the order of device port index which are hph_port, clsh_port, comp_port, lo_port, dsd port. Supports maximum 2 rx soundwire ports.

PM4125 RX Port 1 (HPH_L/R) <==> SWR1 Port 1 (HPH_L/R) PM4125 RX Port 2 (COMP_L/R) <==> SWR1 Port 3 (COMP_L/R)

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 5

Array item rules (items) #

Allowed values (enum): 1, 2, 3, 4, 5

Required in this object (required): "compatible", "reg"

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "qcom,tx-port-mapping"

Rule 2 #

Required in this object (required): "qcom,rx-port-mapping"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

soundwire@a610000 {
    reg = <0x0a610000 0x2000>;
    #address-cells = <2>;
    #size-cells = <0>;
    pm4125_rx: codec@0,1 {
        compatible = "sdw20217010c00";
        reg = <0 1>;
        qcom,rx-port-mapping = <1 3>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Qualcomm PM8916 WCD Analog Audio Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,pm8916-wcd-analog-codec.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Konrad Dybcio <konradybcio@kernel.org>"

The analog WCD audio codec found on Qualcomm PM8916 PMIC.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "qcom,pm8916-wcd-analog-codec"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 14

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "cdc_spk_cnp_int"

Item 2

Exact value (const): "cdc_spk_clip_int"

Item 3

Exact value (const): "cdc_spk_ocp_int"

Item 4

Exact value (const): "mbhc_ins_rem_det1"

Item 5

Exact value (const): "mbhc_but_rel_det"

Item 6

Exact value (const): "mbhc_but_press_det"

Item 7

Exact value (const): "mbhc_ins_rem_det"

Item 8

Exact value (const): "mbhc_switch_int"

Item 9

Exact value (const): "cdc_ear_ocp_int"

Item 10

Exact value (const): "cdc_hphr_ocp_int"

Item 11

Exact value (const): "cdc_hphl_ocp_det"

Item 12

Exact value (const): "cdc_ear_cnp_int"

Item 13

Exact value (const): "cdc_hphr_cnp_int"

Item 14

Exact value (const): "cdc_hphl_cnp_int"

vdd-cdc-io-supply — not listed as required here #

1.8V buck supply

vdd-cdc-tx-rx-cx-supply — not listed as required here #

1.8V SIDO buck supply

vdd-micbias-supply — not listed as required here #

micbias supply

qcom,mbhc-vthreshold-low — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Array of 5 threshold voltages in mV for 5-button detection on headset when MBHC is powered by an internal current source.

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 5

qcom,mbhc-vthreshold-high — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Array of 5 threshold voltages in mV for 5-button detection on headset when MBHC is powered from micbias.

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 5

qcom,micbias-lvl — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Voltage (mV) for Mic Bias

qcom,hphl-jack-type-normally-open — not listed as required here #

Value type (type): "boolean"

True if the HPHL pin on the jack is NO (Normally Open), false if it's NC (Normally Closed).

qcom,gnd-jack-type-normally-open — not listed as required here #

Value type (type): "boolean"

True if the GND pin on the jack is NO (Normally Open), false if it's NC (Normally Closed).

qcom,micbias1-ext-cap — not listed as required here #

Value type (type): "boolean"

True if micbias1 has an external capacitor.

qcom,micbias2-ext-cap — not listed as required here #

Value type (type): "boolean"

True if micbias2 has an external capacitor.

#sound-dai-cells — not listed as required here #

Exact value (const): 1

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/interrupt-controller/irq.h>
#include <dt-bindings/spmi/spmi.h>

pmic@1 {
  compatible = "qcom,pm8916", "qcom,spmi-pmic";
  reg = <0x1 SPMI_USID>;
  #address-cells = <1>;
  #size-cells = <0>;

  audio-codec@f000 {
    compatible = "qcom,pm8916-wcd-analog-codec";
    reg = <0xf000>;
    qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
    qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
    interrupt-parent = <&spmi_bus>;
    interrupts = <0x1 0xf0 0x0 IRQ_TYPE_NONE>,
          <0x1 0xf0 0x1 IRQ_TYPE_NONE>,
          <0x1 0xf0 0x2 IRQ_TYPE_NONE>,
          <0x1 0xf0 0x3 IRQ_TYPE_NONE>,
          <0x1 0xf0 0x4 IRQ_TYPE_NONE>,
          <0x1 0xf0 0x5 IRQ_TYPE_NONE>,
          <0x1 0xf0 0x6 IRQ_TYPE_NONE>,
          <0x1 0xf0 0x7 IRQ_TYPE_NONE>,
          <0x1 0xf1 0x0 IRQ_TYPE_NONE>,
          <0x1 0xf1 0x1 IRQ_TYPE_NONE>,
          <0x1 0xf1 0x2 IRQ_TYPE_NONE>,
          <0x1 0xf1 0x3 IRQ_TYPE_NONE>,
          <0x1 0xf1 0x4 IRQ_TYPE_NONE>,
          <0x1 0xf1 0x5 IRQ_TYPE_NONE>;
    interrupt-names = "cdc_spk_cnp_int",
                      "cdc_spk_clip_int",
                      "cdc_spk_ocp_int",
                      "mbhc_ins_rem_det1",
                      "mbhc_but_rel_det",
                      "mbhc_but_press_det",
                      "mbhc_ins_rem_det",
                      "mbhc_switch_int",
                      "cdc_ear_ocp_int",
                      "cdc_hphr_ocp_int",
                      "cdc_hphl_ocp_det",
                      "cdc_ear_cnp_int",
                      "cdc_hphr_cnp_int",
                      "cdc_hphl_cnp_int";
    vdd-cdc-io-supply = <&pm8916_l5>;
    vdd-cdc-tx-rx-cx-supply = <&pm8916_l5>;
    vdd-micbias-supply = <&pm8916_l13>;
    #sound-dai-cells = <1>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Qualcomm Audio Device Manager (Q6ADM) routing

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,q6adm-routing.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Qualcomm Audio Device Manager (Q6ADM) routing node represents routing specific configuration.

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): "qcom,q6adm-routing"

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

routing {
    compatible = "qcom,q6adm-routing";
    #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

Qualcomm Audio Device Manager (Q6ADM)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,q6adm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/soc/qcom/qcom,apr-services.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,q6adm"

routing — required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/sound/qcom,q6adm-routing.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Qualcomm DSP LPASS audio routing

Required in this object (required): "compatible", "routing"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/soc/qcom,apr.h>

apr {
    #address-cells = <1>;
    #size-cells = <0>;

    service@8 {
        compatible = "qcom,q6adm";
        reg = <APR_SVC_ADM>;
        qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd";

        routing {
            compatible = "qcom,q6adm-routing";
            #sound-dai-cells = <0>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

Qualcomm Audio FrontEnd (Q6AFE)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,q6afe.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/soc/qcom/qcom,apr-services.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,q6afe"

clock-controller — not listed as required here #

Shared schema rule ($ref): /schemas/sound/qcom,q6dsp-lpass-clocks.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Qualcomm DSP LPASS clock controller

dais — required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/sound/qcom,q6dsp-lpass-ports.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Qualcomm DSP audio ports

usbd — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/sound/qcom,q6usb.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Qualcomm DSP USB audio ports

Required in this object (required): "compatible", "dais"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/soc/qcom,apr.h>
#include <dt-bindings/sound/qcom,q6afe.h>
apr {
    #address-cells = <1>;
    #size-cells = <0>;

    service@4 {
        compatible = "qcom,q6afe";
        reg = <APR_SVC_AFE>;
        qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd";

        clock-controller {
            compatible = "qcom,q6afe-clocks";
            #clock-cells = <2>;
        };

        dais {
            compatible = "qcom,q6afe-dais";
            #address-cells = <1>;
            #size-cells = <0>;
            #sound-dai-cells = <1>;

            dai@22 {
                reg = <QUATERNARY_MI2S_RX>;
                qcom,sd-lines = <0 1 2 3>;
            };
        };

        usbd {
            compatible = "qcom,q6usb";
            #sound-dai-cells = <1>;
            iommus = <&apps_smmu 0x180f 0x0>;
            qcom,usb-audio-intr-idx = /bits/ 16 <2>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

Qualcomm Audio Process Manager Digital Audio Interfaces

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,q6apm-dai.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

This binding describes the Qualcomm APM DAIs in DSP

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "qcom,q6apm-dais"

iommus — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Required in this object (required): "compatible", "iommus"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

dais {
    compatible = "qcom,q6apm-dais";
    iommus = <&apps_smmu 0x1801 0x0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Qualcomm DSP LPASS (Low Power Audio SubSystem) Audio Ports

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,q6apm-lpass-dais.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

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): "qcom,q6apm-lpass-dais"

#sound-dai-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

dais {
    compatible = "qcom,q6apm-lpass-dais";
    #sound-dai-cells = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

Qualcomm Audio Process Manager (Q6APM)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,q6apm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Shared schema rule ($ref): /schemas/soc/qcom/qcom,apr-services.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,q6apm"

bedais — required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/sound/qcom,q6apm-lpass-dais.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Qualcomm DSP audio ports

dais — required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/sound/qcom,q6apm-dai.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Qualcomm DSP audio ports

#sound-dai-cells — not listed as required here #

Exact value (const): 0

Required in this object (required): "compatible", "bedais", "dais"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/soc/qcom,gpr.h>

gpr {
    #address-cells = <1>;
    #size-cells = <0>;

    service@1 {
        reg = <GPR_APM_MODULE_IID>;
        compatible = "qcom,q6apm";
        #sound-dai-cells = <0>;
        qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd";

        dais {
            compatible = "qcom,q6apm-dais";
            iommus = <&apps_smmu 0x1801 0x0>;
        };

        bedais {
            compatible = "qcom,q6apm-lpass-dais";
            #sound-dai-cells = <1>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

Qualcomm Audio Stream Manager (Q6ASM)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,q6asm-dais.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Q6ASM is one of the APR audio services on Q6DSP. Each of its subnodes represent a dai with board specific configuration.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,q6asm-dais"

iommus — not listed as required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 1

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^dai@[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Q6ASM Digital Audio Interface

Properties and child nodes (properties) #

reg — required here

Maximum number of items (maxItems): 1

direction — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

The direction of the dai stream:: - Q6ASM_DAI_TX_RX (0) for both tx and rx - Q6ASM_DAI_TX (1) for only tx (Capture/Encode) - Q6ASM_DAI_RX (2) for only rx (Playback/Decode)

is-compress-dai — not listed as required here

Value type (type): "boolean"

Compress offload dai.

Property dependencies (dependencies) #

is-compress-dai — applies when this property is present

Also requires: "direction"

Required in this object (required): "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "#sound-dai-cells", "#address-cells", "#size-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

dais {
    compatible = "qcom,q6asm-dais";
    iommus = <&apps_smmu 0x1821 0x0>;
    #address-cells = <1>;
    #size-cells = <0>;
    #sound-dai-cells = <1>;

    dai@0 {
        reg = <0>;
    };

    dai@1 {
        reg = <1>;
    };

    dai@2 {
        reg = <2>;
        is-compress-dai;
        direction = <1>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

Qualcomm Audio Stream Manager (Q6ASM)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,q6asm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/soc/qcom/qcom,apr-services.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,q6asm"

dais — required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/sound/qcom,q6asm-dais.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Qualcomm DSP audio ports

Required in this object (required): "compatible", "dais"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/soc/qcom,apr.h>

apr {
    #address-cells = <1>;
    #size-cells = <0>;

    service@7 {
        compatible = "qcom,q6asm";
        reg = <APR_SVC_ASM>;
        qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd";

        dais {
            compatible = "qcom,q6asm-dais";
            iommus = <&apps_smmu 0x1821 0x0>;
            #address-cells = <1>;
            #size-cells = <0>;
            #sound-dai-cells = <1>;

            dai@0 {
                reg = <0>;
            };

            dai@1 {
                reg = <1>;
            };

            dai@2 {
                reg = <2>;
                is-compress-dai;
                direction = <1>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

Qualcomm Audio Core (Q6Core)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,q6core.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/soc/qcom/qcom,apr-services.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,q6core"

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/soc/qcom,apr.h>

apr {
    #address-cells = <1>;
    #size-cells = <0>;

    service@3 {
        compatible = "qcom,q6core";
        reg = <APR_SVC_ADSP_CORE>;
        qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd";
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

Qualcomm DSP LPASS Clock Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,q6dsp-lpass-clocks.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

This binding describes the Qualcomm DSP Clock Controller

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,q6afe-clocks", "qcom,q6prm-lpass-clocks"

#clock-cells — required here #

Exact value (const): 2

Clock Id is followed by clock coupling attributes. 1 = for no coupled clock 2 = for dividend of the coupled clock 3 = for divisor of the coupled clock 4 = for inverted and no couple clock

Required in this object (required): "compatible", "#clock-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

clock-controller {
    compatible = "qcom,q6afe-clocks";
    #clock-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Qualcomm DSP LPASS(Low Power Audio SubSystem) Audio Ports

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,q6dsp-lpass-ports.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

This binding describes the Qualcomm DSP LPASS Audio ports

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,q6afe-dais"

#sound-dai-cells — required here #

Exact value (const): 1

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^dai@[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Q6DSP Digital Audio Interfaces.

Properties and child nodes (properties) #

reg — required here

Digital Audio Interface ID

qcom,sd-lines — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

List of serial data lines used by this dai.should be one or more of the 0-3 sd lines.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Items must be unique (uniqueItems): true

Array item rules (items)

Minimum value (minimum): 0

Maximum value (maximum): 3

qcom,tdm-sync-mode — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

TDM Synchronization mode 0 = Short sync bit mode 1 = Long sync mode 2 = Short sync slot mode

qcom,tdm-sync-src — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

TDM Synchronization source 0 = External source 1 = Internal source

qcom,tdm-data-out — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

TDM Data out signal to drive with other masters 0 = Disable 1 = Enable

qcom,tdm-invert-sync — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

TDM Invert the sync 0 = Normal 1 = Invert

qcom,tdm-data-delay — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

TDM Number of bit clock to delay data 0 = 0 bit clock cycle 1 = 1 bit clock cycle 2 = 2 bit clock cycle

qcom,tdm-data-align — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

Indicate how data is packed within the slot. For example, 32 slot width in case of sample bit width is 24TDM Invert the sync. 0 = MSB 1 = LSB

Required in this object (required): "reg"

All of these rules must match (allOf) #

Rule 1

Condition (if)

Properties and child nodes (properties)

reg — not listed as required here

Rule for matching array elements (contains)

Array item rules (items)

Minimum value (minimum): 24

Maximum value (maximum): 103

When the condition matches (then)

Required in this object (required): "qcom,tdm-sync-mode", "qcom,tdm-sync-src", "qcom,tdm-data-out", "qcom,tdm-invert-sync", "qcom,tdm-data-delay", "qcom,tdm-data-align"

Rule 2

Condition (if)

Properties and child nodes (properties)

reg — not listed as required here

Rule for matching array elements (contains)

Array item rules (items)

Exactly one of these rules must match (oneOf)

Rule 1

Minimum value (minimum): 16

Maximum value (maximum): 23

Rule 2

Minimum value (minimum): 127

Maximum value (maximum): 128

When the condition matches (then)

Required in this object (required): "qcom,sd-lines"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "#sound-dai-cells", "#address-cells", "#size-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/sound/qcom,q6dsp-lpass-ports.h>

dais {
    compatible = "qcom,q6afe-dais";
    #address-cells = <1>;
    #size-cells = <0>;
    #sound-dai-cells = <1>;

    dai@22 {
        reg = <QUATERNARY_MI2S_RX>;
        qcom,sd-lines = <0 1 2 3>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 29: Digital Audio Interfaces

Line 111: TDM DAI ID range from PRIMARY_TDM_RX_0 - QUINARY_TDM_TX_7

Line 128: MI2S DAI ID range PRIMARY_MI2S_RX - QUATERNARY_MI2S_TX and

Line 129: QUINARY_MI2S_RX - QUINARY_MI2S_TX

Qualcomm Proxy Resource Manager (Q6PRM)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,q6prm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/soc/qcom/qcom,apr-services.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,q6prm"

clock-controller — required here #

Shared schema rule ($ref): /schemas/sound/qcom,q6dsp-lpass-clocks.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Qualcomm DSP LPASS clock controller

Required in this object (required): "compatible", "clock-controller"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/soc/qcom,gpr.h>

gpr {
    #address-cells = <1>;
    #size-cells = <0>;

    service@2 {
        reg = <GPR_PRM_MODULE_IID>;
        compatible = "qcom,q6prm";
        qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd";

        clock-controller {
            compatible = "qcom,q6prm-lpass-clocks";
            #clock-cells = <2>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

Qualcomm ASoC DPCM USB backend DAI

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,q6usb.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Wesley Cheng <quic_wcheng@quicinc.com>"

The USB port is a supported AFE path on the Q6 DSP. This ASoC DPCM backend DAI will communicate the required settings to initialize the XHCI host controller properly for enabling the offloaded audio stream. Parameters defined under this node will carry settings, which will be passed along during the QMI stream enable request and configuration of the XHCI host controller.

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): "qcom,q6usb"

iommus — not listed as required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 1

qcom,usb-audio-intr-idx — required here #

Desired XHCI interrupter number to use. Depending on the audio DSP on the platform, it will operate on a specific XHCI interrupter.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Maximum value (maximum): 8

Required in this object (required): "compatible", "#sound-dai-cells", "qcom,usb-audio-intr-idx"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

dais {
  compatible = "qcom,q6usb";
  #sound-dai-cells = <1>;
  iommus = <&apps_smmu 0x180f 0x0>;
  qcom,usb-audio-intr-idx = /bits/ 16 <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Qualcomm Technologies Inc. ASoC sound card drivers

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,sm8250.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

This bindings describes Qualcomm SoC based sound cards which uses LPASS internal codec for audio.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "lenovo,yoga-c630-sndcard", "qcom,db845c-sndcard"

Item 2

Exact value (const): "qcom,sdm845-sndcard"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qcom,kaanapali-sndcard", "qcom,sm8550-sndcard", "qcom,sm8650-sndcard", "qcom,sm8750-sndcard"

Item 2

Exact value (const): "qcom,sm8450-sndcard"

Rule 3

Allowed values (enum): "fairphone,fp4-sndcard", "fairphone,fp5-sndcard", "qcom,apq8096-sndcard", "qcom,glymur-sndcard", "qcom,qcm6490-idp-sndcard", "qcom,qcs615-sndcard", "qcom,qcs6490-rb3gen2-sndcard", "qcom,qcs8275-sndcard", "qcom,qcs9075-sndcard", "qcom,qcs9100-sndcard", "qcom,qrb2210-sndcard", "qcom,qrb4210-rb2-sndcard", "qcom,qrb5165-rb5-sndcard", "qcom,sc7180-qdsp6-sndcard", "qcom,sc8280xp-sndcard", "qcom,sdm845-sndcard", "qcom,sm8250-sndcard", "qcom,sm8450-sndcard", "qcom,x1e80100-sndcard"

audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names could be power supplies, MicBias of codec and the jacks on the board.

aux-devs — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

List of phandles pointing to auxiliary devices, such as amplifiers, to be added to the sound card.

model — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

User visible long sound card name

Properties matching a name pattern (patternProperties) #

.*-dai-link$ — name matches this regular expression #

Each subnode represents a dai link. Subnodes of each dai links would be cpu/codec dais.

Value type (type): "object"

Properties and child nodes (properties) #

link-name — required here

Indicates dai-link name and PCM stream name.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Maximum number of items (maxItems): 1

cpu — required here

Holds subnode which indicates cpu dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

sound-dai — not listed as required here

Maximum number of items (maxItems): 1

platform — not listed as required here

Holds subnode which indicates platform dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

sound-dai — not listed as required here

Maximum number of items (maxItems): 1

codec — not listed as required here

Holds subnode which indicates codec dai.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

sound-dai — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

Required in this object (required): "link-name", "cpu"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "model"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/sound/qcom,q6afe.h>
#include <dt-bindings/sound/qcom,q6asm.h>
sound {
    compatible = "qcom,qrb5165-rb5-sndcard";
    model = "Qualcomm-qrb5165-RB5-WSA8815-Speakers-DMIC0";
    audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT",
                "SpkrRight IN", "WSA_SPK2 OUT",
                "VA DMIC0", "vdd-micb",
                "VA DMIC1", "vdd-micb";

    mm1-dai-link {
        link-name = "MultiMedia0";
        cpu {
            sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA1>;
        };
    };

    mm2-dai-link {
        link-name = "MultiMedia2";
        cpu {
            sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA2>;
        };
    };

    mm3-dai-link {
        link-name = "MultiMedia3";
        cpu {
            sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA3>;
        };
    };

    hdmi-dai-link {
        link-name = "HDMI Playback";
        cpu {
            sound-dai = <&q6afedai TERTIARY_MI2S_RX>;
        };

        platform {
            sound-dai = <&q6routing>;
        };

        codec {
            sound-dai = <&lt9611_codec 0>;
        };
    };

    wsa-dai-link {
        link-name = "WSA Playback";
        cpu {
            sound-dai = <&q6afedai WSA_CODEC_DMA_RX_0>;
        };

        platform {
            sound-dai = <&q6routing>;
        };

        codec {
            sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro>;
        };
    };

    va-dai-link {
        link-name = "VA Capture";
        cpu {
            sound-dai = <&q6afedai VA_CODEC_DMA_TX_0>;
        };

        platform {
            sound-dai = <&q6routing>;
        };

        codec {
            sound-dai = <&vamacro 0>;
        };
    };

    usb-dai-link {
        link-name = "USB Playback";
        cpu {
            sound-dai = <&q6afedai USB_RX>;
        };

        codec {
            sound-dai = <&usbdai USB_RX>;
        };

        platform {
            sound-dai = <&q6routing>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Qualcomm WCD9335 Audio Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,wcd9335.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Qualcomm WCD9335 Codec is a standalone Hi-Fi audio codec IC with in-built Soundwire controller and interrupt mux. It supports both I2S/I2C and SLIMbus audio interfaces.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "slim217,1a0"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 2

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "slimbus"

interrupts — not listed as required here #

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "intr1"

Item 2

Exact value (const): "intr2"

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 1

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

slim-ifc-dev — not listed as required here #

SLIM IFC device interface

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

#sound-dai-cells — not listed as required here #

Exact value (const): 1

vdd-buck-supply — not listed as required here #

1.8V buck supply

vdd-buck-sido-supply — not listed as required here #

1.8V SIDO buck supply

vdd-io-supply — not listed as required here #

1.8V I/O supply

vdd-micbias-supply — not listed as required here #

micbias supply

vdd-rx-supply — not listed as required here #

1.8V rx supply

vdd-tx-supply — not listed as required here #

1.8V tx supply

vdd-vbat-supply — not listed as required here #

vbat supply

Required in this object (required): "compatible", "reg"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Required in this object (required): "slim-ifc-dev"

When the condition matches (then) #

Required in this object (required): "clocks", "clock-names", "interrupts", "interrupt-names", "interrupt-controller", "#interrupt-cells", "reset-gpios", "slim-ifc-dev", "#sound-dai-cells", "vdd-buck-supply", "vdd-buck-sido-supply", "vdd-io-supply", "vdd-rx-supply", "vdd-tx-supply"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

false — Not permitted by this property rule.

clock-names — not listed as required here

false — Not permitted by this property rule.

interrupts — not listed as required here

false — Not permitted by this property rule.

interrupt-names — not listed as required here

false — Not permitted by this property rule.

interrupt-controller — not listed as required here

false — Not permitted by this property rule.

#interrupt-cells — not listed as required here

false — Not permitted by this property rule.

reset-gpios — not listed as required here

false — Not permitted by this property rule.

slim-ifc-dev — not listed as required here

false — Not permitted by this property rule.

#sound-dai-cells — not listed as required here

false — Not permitted by this property rule.

vdd-buck-supply — not listed as required here

false — Not permitted by this property rule.

vdd-buck-sido-supply — not listed as required here

false — Not permitted by this property rule.

vdd-io-supply — not listed as required here

false — Not permitted by this property rule.

vdd-micbias-supply — not listed as required here

false — Not permitted by this property rule.

vdd-rx-supply — not listed as required here

false — Not permitted by this property rule.

vdd-tx-supply — not listed as required here

false — Not permitted by this property rule.

vdd-vbat-supply — not listed as required here

false — Not permitted by this property rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/qcom,rpmcc.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

tasha_ifd: codec@0,0 {
    compatible = "slim217,1a0";
    reg = <0 0>;
};

codec@1,0 {
    compatible = "slim217,1a0";
    reg = <1 0>;

    clock-names = "mclk", "slimbus";
    clocks = <&div1_mclk>, <&rpmcc RPM_SMD_BB_CLK1>;

    interrupt-parent = <&tlmm>;
    interrupts = <54 IRQ_TYPE_LEVEL_HIGH>,
                 <53 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "intr1", "intr2";
    interrupt-controller;
    #interrupt-cells = <1>;

    reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
    slim-ifc-dev = <&tasha_ifd>;
    #sound-dai-cells = <1>;

    vdd-buck-supply = <&vreg_s4a_1p8>;
    vdd-buck-sido-supply = <&vreg_s4a_1p8>;
    vdd-tx-supply = <&vreg_s4a_1p8>;
    vdd-rx-supply = <&vreg_s4a_1p8>;
    vdd-io-supply = <&vreg_s4a_1p8>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Qualcomm WCD9340/WCD9341 Audio Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,wcd934x.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Qualcomm WCD9340/WCD9341 Codec is a standalone Hi-Fi audio codec IC. It has in-built Soundwire controller, pin controller, interrupt mux and supports both I2S/I2C and SLIMbus audio interfaces.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "slim217,250"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

GPIO spec for reset line to use

Maximum number of items (maxItems): 1

slim-ifc-dev — not listed as required here #

IFC device interface

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "extclk"

vdd-buck-supply — not listed as required here #

A reference to the 1.8V buck supply

vdd-buck-sido-supply — not listed as required here #

A reference to the 1.8V SIDO buck supply

vdd-rx-supply — not listed as required here #

A reference to the 1.8V rx supply

vdd-tx-supply — not listed as required here #

A reference to the 1.8V tx supply

vdd-vbat-supply — not listed as required here #

A reference to the vbat supply

vdd-io-supply — not listed as required here #

A reference to the 1.8V I/O supply

vdd-micbias-supply — not listed as required here #

A reference to the micbias supply

qcom,micbias1-microvolt — not listed as required here #

micbias1 voltage

Minimum value (minimum): 1800000

Maximum value (maximum): 2850000

qcom,micbias2-microvolt — not listed as required here #

micbias2 voltage

Minimum value (minimum): 1800000

Maximum value (maximum): 2850000

qcom,micbias3-microvolt — not listed as required here #

micbias3 voltage

Minimum value (minimum): 1800000

Maximum value (maximum): 2850000

qcom,micbias4-microvolt — not listed as required here #

micbias4 voltage

Minimum value (minimum): 1800000

Maximum value (maximum): 2850000

qcom,hphl-jack-type-normally-closed — not listed as required here #

Indicates that HPHL jack switch type is normally closed

Value type (type): "boolean"

qcom,ground-jack-type-normally-closed — not listed as required here #

Indicates that Headset Ground switch type is normally closed

Value type (type): "boolean"

qcom,mbhc-headset-vthreshold-microvolt — not listed as required here #

Voltage threshold value for headset detection

Minimum value (minimum): 0

Maximum value (maximum): 2850000

qcom,mbhc-headphone-vthreshold-microvolt — not listed as required here #

Voltage threshold value for headphone detection

Minimum value (minimum): 0

Maximum value (maximum): 2850000

qcom,mbhc-buttons-vthreshold-microvolt — not listed as required here #

Array of 8 Voltage threshold values corresponding to headset button0 - button7

Minimum number of items (minItems): 8

Maximum number of items (maxItems): 8

clock-output-names — not listed as required here #

Exact value (const): "mclk"

clock-frequency — not listed as required here #

Clock frequency of output clk in Hz

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 1

#clock-cells — not listed as required here #

Exact value (const): 0

#sound-dai-cells — not listed as required here #

Exact value (const): 1

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 1

gpio@42 — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/gpio/qcom,wcd934x-gpio.yaml#

Properties matching a name pattern (patternProperties) #

@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

WCD934x subnode for each slave devices. Bindings of each subnodes depends on the specific driver providing the functionality and documented in their respective bindings.

Properties and child nodes (properties) #

reg — required here

Maximum number of items (maxItems): 1

Required in this object (required): "reg"

Required in this object (required): "compatible", "reg"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Required in this object (required): "slim-ifc-dev"

When the condition matches (then) #

Required in this object (required): "reset-gpios", "slim-ifc-dev", "interrupt-controller", "clock-frequency", "clock-output-names", "qcom,micbias1-microvolt", "qcom,micbias2-microvolt", "qcom,micbias3-microvolt", "qcom,micbias4-microvolt", "#interrupt-cells", "#clock-cells", "#sound-dai-cells", "#address-cells", "#size-cells"

Exactly one of these rules must match (oneOf)

Rule 1

Required in this object (required): "interrupts-extended"

Rule 2

Required in this object (required): "interrupts"

When the condition does not match (else) #

Properties and child nodes (properties)

reset-gpios — not listed as required here

false — Not permitted by this property rule.

slim-ifc-dev — not listed as required here

false — Not permitted by this property rule.

interrupts — not listed as required here

false — Not permitted by this property rule.

interrupt-controller — not listed as required here

false — Not permitted by this property rule.

clock-frequency — not listed as required here

false — Not permitted by this property rule.

clock-output-names — not listed as required here

false — Not permitted by this property rule.

qcom,micbias1-microvolt — not listed as required here

false — Not permitted by this property rule.

qcom,micbias2-microvolt — not listed as required here

false — Not permitted by this property rule.

qcom,micbias3-microvolt — not listed as required here

false — Not permitted by this property rule.

qcom,micbias4-microvolt — not listed as required here

false — Not permitted by this property rule.

#interrupt-cells — not listed as required here

false — Not permitted by this property rule.

#clock-cells — not listed as required here

false — Not permitted by this property rule.

#sound-dai-cells — not listed as required here

false — Not permitted by this property rule.

#address-cells — not listed as required here

false — Not permitted by this property rule.

#size-cells — not listed as required here

false — Not permitted by this property rule.

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>
codec@1,0{
    compatible = "slim217,250";
    reg = <1 0>;
    reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
    slim-ifc-dev = <&wcd9340_ifd>;
    #sound-dai-cells = <1>;
    interrupt-parent = <&tlmm>;
    interrupts = <54 4>;
    interrupt-controller;
    #interrupt-cells = <1>;
    #clock-cells = <0>;
    clock-frequency = <9600000>;
    clock-output-names = "mclk";
    qcom,micbias1-microvolt = <1800000>;
    qcom,micbias2-microvolt = <1800000>;
    qcom,micbias3-microvolt = <1800000>;
    qcom,micbias4-microvolt = <1800000>;
    qcom,hphl-jack-type-normally-closed;
    qcom,ground-jack-type-normally-closed;
    qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
    qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
    qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
    clock-names = "extclk";
    clocks = <&rpmhcc 2>;

    #address-cells = <1>;
    #size-cells = <1>;

    gpio@42 {
        compatible = "qcom,wcd9340-gpio";
        reg = <0x42 0x2>;
        gpio-controller;
        #gpio-cells = <2>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Qualcomm SoundWire Slave devices on WCD9370/WCD9375

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,wcd937x-sdw.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Qualcomm WCD9370/WCD9375 Codec is a standalone Hi-Fi audio codec IC. It has RX and TX Soundwire slave devices. This bindings is for the slave devices.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sdw20217010a00"

reg — required here #

Maximum number of items (maxItems): 1

qcom,tx-port-mapping — not listed as required here #

Specifies static port mapping between device and host tx ports. In the order of the device port index which are adc1_port, adc23_port, dmic03_mbhc_port, dmic46_port. Supports maximum 4 tx soundwire ports.

WCD9370 TX Port 1 (ADC1) <=> SWR2 Port 2 WCD9370 TX Port 2 (ADC2, 3) <=> SWR2 Port 2 WCD9370 TX Port 3 (DMIC0,1,2,3 & MBHC) <=> SWR2 Port 3 WCD9370 TX Port 4 (DMIC4,5,6,7) <=> SWR2 Port 4

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

Array item rules (items) #

Allowed values (enum): 1, 2, 3, 4

qcom,rx-port-mapping — not listed as required here #

Specifies static port mapping between device and host rx ports. In the order of device port index which are hph_port, clsh_port, comp_port, lo_port, dsd port. Supports maximum 5 rx soundwire ports.

WCD9370 RX Port 1 (HPH_L/R) <==> SWR1 Port 1 (HPH_L/R) WCD9370 RX Port 2 (CLSH) <==> SWR1 Port 2 (CLSH) WCD9370 RX Port 3 (COMP_L/R) <==> SWR1 Port 3 (COMP_L/R) WCD9370 RX Port 4 (LO) <==> SWR1 Port 4 (LO) WCD9370 RX Port 5 (DSD_L/R) <==> SWR1 Port 5 (DSD)

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 5

Array item rules (items) #

Allowed values (enum): 1, 2, 3, 4, 5

qcom,tx-channel-mapping — not listed as required here #

Specifies static channel mapping between slave and master tx port channels. In the order of slave port channels which is adc1, adc2, adc3, dmic0, dmic1, mbhc, dmic2, dmic3, dmci4, dmic5, dmic6, dmic7.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array

Minimum number of items (minItems): 12

Maximum number of items (maxItems): 12

Array items beyond the listed positions (additionalItems) #

false

Not allowed by this rule.

Array item rules (items) #

Allowed values (enum): 1, 2, 3, 4

qcom,rx-channel-mapping — not listed as required here #

Specifies static channels mapping between slave and master rx port channels. In the order of slave port channels, which is hph_l, hph_r, clsh, comp_l, comp_r, lo, dsd_r, dsd_l.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array

Minimum number of items (minItems): 8

Maximum number of items (maxItems): 8

Array items beyond the listed positions (additionalItems) #

false

Not allowed by this rule.

Array item rules (items) #

Allowed values (enum): 1, 2, 3, 4

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) #

soundwire@3210000 {
    reg = <0x03210000 0x2000>;
    #address-cells = <2>;
    #size-cells = <0>;
    wcd937x_rx: codec@0,4 {
        compatible = "sdw20217010a00";
        reg = <0 4>;
        qcom,rx-port-mapping = <1 2 3 4 5>;
        qcom,rx-channel-mapping = /bits/ 8 <1 2 1 1 2 1 1 2>;
    };
};

soundwire@3230000 {
    reg = <0x03230000 0x2000>;
    #address-cells = <2>;
    #size-cells = <0>;
    wcd937x_tx: codec@0,3 {
        compatible = "sdw20217010a00";
        reg = <0 3>;
        qcom,tx-port-mapping = <2 2 3 4>;
        qcom,tx-channel-mapping = /bits/ 8 <1 2 1 1 2 3 3 4 1 2 3 4>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 73: WCD9370_SWRM_CH1

Line 74: WCD9370_SWRM_CH2

Line 75: WCD9370_SWRM_CH3

Line 76: WCD9370_SWRM_CH4

Line 90: WCD9370_SWRM_CH1

Line 91: WCD9370_SWRM_CH2

Line 92: WCD9370_SWRM_CH3

Line 93: WCD9370_SWRM_CH4

Qualcomm WCD9370/WCD9375 Audio Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,wcd937x.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Qualcomm WCD9370/WCD9375 Codec is a standalone Hi-Fi audio codec IC. It has RX and TX Soundwire slave devices.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Shared schema rule ($ref): qcom,wcd93xx-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "qcom,wcd9370-codec"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "qcom,wcd9375-codec"

Item 2

Exact value (const): "qcom,wcd9370-codec"

vdd-px-supply — required here #

A reference to the 1.8V I/O supply

Required in this object (required): "compatible", "vdd-px-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
codec {
    compatible = "qcom,wcd9370-codec";
    pinctrl-names = "default", "sleep";
    pinctrl-0 = <&wcd_reset_n>;
    pinctrl-1 = <&wcd_reset_n_sleep>;
    reset-gpios = <&tlmm 83 GPIO_ACTIVE_LOW>;
    vdd-buck-supply = <&vreg_l17b_1p8>;
    vdd-rxtx-supply = <&vreg_l18b_1p8>;
    vdd-px-supply = <&vreg_l18b_1p8>;
    vdd-mic-bias-supply = <&vreg_bob>;
    qcom,micbias1-microvolt = <1800000>;
    qcom,micbias2-microvolt = <1800000>;
    qcom,micbias3-microvolt = <1800000>;
    qcom,micbias4-microvolt = <1800000>;
    qcom,rx-device = <&wcd937x_rx>;
    qcom,tx-device = <&wcd937x_tx>;
    #sound-dai-cells = <1>;
};

/* ... */

soundwire@3210000 {
    reg = <0x03210000 0x2000>;
    #address-cells = <2>;
    #size-cells = <0>;
    wcd937x_rx: codec@0,4 {
        compatible = "sdw20217010a00";
        reg = <0 4>;
        qcom,rx-port-mapping = <1 2 3 4 5>;
    };
};

soundwire@3230000 {
    reg = <0x03230000 0x2000>;
    #address-cells = <2>;
    #size-cells = <0>;
    wcd937x_tx: codec@0,3 {
        compatible = "sdw20217010a00";
        reg = <0 3>;
        qcom,tx-port-mapping = <1 2 3 4>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Qualcomm SoundWire Slave devices on WCD9380/WCD9385

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,wcd938x-sdw.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Qualcomm WCD9380/WCD9385 Codec is a standalone Hi-Fi audio codec IC. It has RX and TX Soundwire slave devices. This bindings is for the slave devices.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sdw20217010d00"

reg — required here #

Maximum number of items (maxItems): 1

qcom,tx-port-mapping — not listed as required here #

Specifies static port mapping between slave and master tx ports. In the order of slave port index.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

qcom,rx-port-mapping — not listed as required here #

Specifies static port mapping between slave and master rx ports. In the order of slave port index.

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"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

soundwire@3210000 {
    #address-cells = <2>;
    #size-cells = <0>;
    reg = <0x03210000 0x2000>;
    wcd938x_rx: codec@0,4 {
        compatible = "sdw20217010d00";
        reg = <0 4>;
        qcom,rx-port-mapping = <1 2 3 4 5>;
    };
};

soundwire@3230000 {
    #address-cells = <2>;
    #size-cells = <0>;
    reg = <0x03230000 0x2000>;
    wcd938x_tx: codec@0,3 {
        compatible = "sdw20217010d00";
        reg = <0 3>;
        qcom,tx-port-mapping = <2 3 4 5>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Qualcomm WCD9380/WCD9385 Audio Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,wcd938x.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Qualcomm WCD9380/WCD9385 Codec is a standalone Hi-Fi audio codec IC. It has RX and TX Soundwire slave devices.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Shared schema rule ($ref): qcom,wcd93xx-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,wcd9380-codec", "qcom,wcd9385-codec"

mux-controls — not listed as required here #

A reference to the audio mux switch for switching CTIA/OMTP Headset types

Maximum number of items (maxItems): 1

us-euro-gpios — not listed as required here #

GPIO spec for swapping gnd and mic segments

Maximum number of items (maxItems): 1

Deprecated (deprecated): true

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
codec {
    compatible = "qcom,wcd9380-codec";
    reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
    #sound-dai-cells = <1>;
    qcom,tx-device = <&wcd938x_tx>;
    qcom,rx-device = <&wcd938x_rx>;
    qcom,micbias1-microvolt = <1800000>;
    qcom,micbias2-microvolt = <1800000>;
    qcom,micbias3-microvolt = <1800000>;
    qcom,micbias4-microvolt = <1800000>;
    qcom,hphl-jack-type-normally-closed;
    qcom,ground-jack-type-normally-closed;
    qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
    qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
};

/* ... */

soundwire@3210000 {
    #address-cells = <2>;
    #size-cells = <0>;
    reg = <0x03210000 0x2000>;
    wcd938x_rx: codec@0,4 {
        compatible = "sdw20217010d00";
        reg = <0 4>;
        qcom,rx-port-mapping = <1 2 3 4 5>;
    };
};

soundwire@3230000 {
    #address-cells = <2>;
    #size-cells = <0>;
    reg = <0x03230000 0x2000>;
    wcd938x_tx: codec@0,3 {
        compatible = "sdw20217010d00";
        reg = <0 3>;
        qcom,tx-port-mapping = <2 3 4 5>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Qualcomm SoundWire devices on WCD9390/WCD9395

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,wcd939x-sdw.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Qualcomm WCD9390/WCD9395 Codec is a standalone Hi-Fi audio codec IC. It has RX and TX Soundwire devices. This bindings is for the devices.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sdw20217010e00"

reg — required here #

Maximum number of items (maxItems): 1

qcom,tx-port-mapping — not listed as required here #

Specifies static port mapping between device and host tx ports. In the order of the device port index.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

qcom,rx-port-mapping — not listed as required here #

Specifies static port mapping between device and host rx ports. In the order of device port index.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 6

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) #

soundwire@3210000 {
    #address-cells = <2>;
    #size-cells = <0>;
    reg = <0x03210000 0x2000>;
    wcd938x_rx: codec@0,4 {
        compatible = "sdw20217010e00";
        reg = <0 4>;
        qcom,rx-port-mapping = <1 2 3 4 5 6>;
    };
};

soundwire@3230000 {
    #address-cells = <2>;
    #size-cells = <0>;
    reg = <0x03230000 0x2000>;
    wcd938x_tx: codec@0,3 {
        compatible = "sdw20217010e00";
        reg = <0 3>;
        qcom,tx-port-mapping = <2 3 4 5>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Qualcomm WCD9380/WCD9385 Audio Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,wcd939x.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Qualcomm WCD9390/WCD9395 Codec is a standalone Hi-Fi audio codec IC. It has RX and TX Soundwire devices. The WCD9390/WCD9395 IC has a functionally separate USB-C Mux subsystem accessible over an I2C interface. The Audio Headphone and Microphone data path between the Codec and the USB-C Mux subsystems are external to the IC, thus requiring DT port-endpoint graph description to handle USB-C altmode & orientation switching for Audio Accessory Mode.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Shared schema rule ($ref): qcom,wcd93xx-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "qcom,wcd9390-codec"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "qcom,wcd9395-codec"

Item 2

Exact value (const): "qcom,wcd9390-codec"

mode-switch — not listed as required here #

Flag the port as possible handler of altmode switching

Value type (type): "boolean"

orientation-switch — not listed as required here #

Flag the port as possible handler of orientation switching

Value type (type): "boolean"

port — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

A port node to link the WCD939x Codec node to USB MUX subsystems for the purpose of handling altmode muxing and orientation switching to detect and enable Audio Accessory Mode.

vdd-px-supply — not listed as required here #

A reference to the 1.2V PX supply

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
codec {
    compatible = "qcom,wcd9390-codec";
    reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
    #sound-dai-cells = <1>;
    qcom,tx-device = <&wcd939x_tx>;
    qcom,rx-device = <&wcd939x_rx>;
    qcom,micbias1-microvolt = <1800000>;
    qcom,micbias2-microvolt = <1800000>;
    qcom,micbias3-microvolt = <1800000>;
    qcom,micbias4-microvolt = <1800000>;
    qcom,hphl-jack-type-normally-closed;
    qcom,ground-jack-type-normally-closed;
    qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
    qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
};

/* ... */

soundwire@3210000 {
    #address-cells = <2>;
    #size-cells = <0>;
    reg = <0x03210000 0x2000>;
    wcd939x_rx: codec@0,4 {
        compatible = "sdw20217010e00";
        reg = <0 4>;
        qcom,rx-port-mapping = <1 2 3 4 5 6>;
    };
};

soundwire@3230000 {
    #address-cells = <2>;
    #size-cells = <0>;
    reg = <0x03230000 0x2000>;
    wcd938x_tx: codec@0,3 {
        compatible = "sdw20217010e00";
        reg = <0 3>;
        qcom,tx-port-mapping = <2 3 4 5>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Common properties for Qualcomm WCD93xx Audio Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,wcd93xx-common.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Properties and child nodes (properties) #

reset-gpios — required here #

GPIO spec for reset line to use

Maximum number of items (maxItems): 1

vdd-buck-supply — not listed as required here #

A reference to the 1.8V buck supply

vdd-rxtx-supply — not listed as required here #

A reference to the 1.8V rx supply

vdd-io-supply — not listed as required here #

A reference to the 1.8V I/O supply

vdd-mic-bias-supply — not listed as required here #

A reference to the 3.8V mic bias supply

qcom,tx-device — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

A reference to Soundwire tx device phandle

qcom,rx-device — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

A reference to Soundwire rx device phandle

qcom,micbias1-microvolt — required here #

micbias1 voltage

Minimum value (minimum): 1800000

Maximum value (maximum): 2850000

qcom,micbias2-microvolt — required here #

micbias2 voltage

Minimum value (minimum): 1800000

Maximum value (maximum): 2850000

qcom,micbias3-microvolt — required here #

micbias3 voltage

Minimum value (minimum): 1800000

Maximum value (maximum): 2850000

qcom,micbias4-microvolt — required here #

micbias4 voltage

Minimum value (minimum): 1800000

Maximum value (maximum): 2850000

qcom,hphl-jack-type-normally-closed — not listed as required here #

Indicates that HPHL jack switch type is normally closed

Value type (type): "boolean"

qcom,ground-jack-type-normally-closed — not listed as required here #

Indicates that Headset Ground switch type is normally closed

Value type (type): "boolean"

qcom,mbhc-headset-vthreshold-microvolt — not listed as required here #

Voltage threshold value for headset detection

Minimum value (minimum): 0

Maximum value (maximum): 2850000

qcom,mbhc-headphone-vthreshold-microvolt — not listed as required here #

Voltage threshold value for headphone detection

Minimum value (minimum): 0

Maximum value (maximum): 2850000

qcom,mbhc-buttons-vthreshold-microvolt — not listed as required here #

Array of 8 Voltage threshold values corresponding to headset button0 - button7

Minimum number of items (minItems): 8

Maximum number of items (maxItems): 8

#sound-dai-cells — required here #

Exact value (const): 1

Required in this object (required): "reset-gpios", "qcom,tx-device", "qcom,rx-device", "qcom,micbias1-microvolt", "qcom,micbias2-microvolt", "qcom,micbias3-microvolt", "qcom,micbias4-microvolt", "#sound-dai-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Qualcomm WSA8810/WSA8815 Class-D Smart Speaker Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,wsa881x.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

WSA8810 is a class-D smart speaker amplifier and WSA8815 is a high-output power class-D smart speaker amplifier. Their primary operating mode uses a SoundWire digital audio interface. This binding is for SoundWire interface.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sdw10217201000"

reg — required here #

Maximum number of items (maxItems): 1

powerdown-gpios — required here #

GPIO spec for Powerdown/Shutdown line to use

Maximum number of items (maxItems): 1

#thermal-sensor-cells — required here #

Exact value (const): 0

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "powerdown-gpios", "#thermal-sensor-cells", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

soundwire@c2d0000 {
    #address-cells = <2>;
    #size-cells = <0>;
    reg = <0x0c2d0000 0x2000>;

    speaker@0,1 {
        compatible = "sdw10217201000";
        reg = <0 1>;
        powerdown-gpios = <&wcdpinctrl 2 0>;
        #thermal-sensor-cells = <0>;
        #sound-dai-cells = <0>;
    };

    speaker@0,2 {
        compatible = "sdw10217201000";
        reg = <0 2>;
        powerdown-gpios = <&wcdpinctrl 2 0>;
        #thermal-sensor-cells = <0>;
        #sound-dai-cells = <0>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Qualcomm WSA8830/WSA8832/WSA8835 smart speaker amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,wsa883x.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

WSA883X is the Qualcomm Aqstic smart speaker amplifier Their primary operating mode uses a SoundWire digital audio interface. This binding is for SoundWire interface.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sdw10217020200"

reg — required here #

Maximum number of items (maxItems): 1

powerdown-gpios — not listed as required here #

GPIO spec for Powerdown/Shutdown line to use (pin SD_N)

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

Powerdown/Shutdown line to use (pin SD_N)

Maximum number of items (maxItems): 1

vdd-supply — required here #

VDD Supply for the Codec

qcom,port-mapping — not listed as required here #

Specifies static port mapping between slave and master ports. In the order of slave port index.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

#thermal-sensor-cells — required here #

Exact value (const): 0

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "vdd-supply", "#thermal-sensor-cells", "#sound-dai-cells"

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "powerdown-gpios"

Rule 2 #

Required in this object (required): "reset-gpios"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

soundwire@3250000 {
    #address-cells = <2>;
    #size-cells = <0>;
    reg = <0x3250000 0x2000>;

    speaker@0,1 {
        compatible = "sdw10217020200";
        reg = <0 1>;
        powerdown-gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
        vdd-supply = <&vreg_s10b_1p8>;
        #thermal-sensor-cells = <0>;
        #sound-dai-cells = <0>;
        sound-name-prefix = "SpkrLeft";
    };

    speaker@0,2 {
        compatible = "sdw10217020200";
        reg = <0 2>;
        powerdown-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>;
        vdd-supply = <&vreg_s10b_1p8>;
        #thermal-sensor-cells = <0>;
        #sound-dai-cells = <0>;
        sound-name-prefix = "SpkrRight";
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Qualcomm WSA8840/WSA8845/WSA8845H smart speaker amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,wsa8840.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

WSA884X is a family of Qualcomm Aqstic smart speaker amplifiers using SoundWire digital audio interface.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sdw20217020400"

reg — required here #

Maximum number of items (maxItems): 1

powerdown-gpios — not listed as required here #

Powerdown/Shutdown line to use (pin SD_N)

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

Powerdown/Shutdown line to use (pin SD_N)

Maximum number of items (maxItems): 1

qcom,port-mapping — not listed as required here #

Specifies static port mapping between slave and master ports. In the order of slave port index.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 6

#sound-dai-cells — required here #

Exact value (const): 0

vdd-1p8-supply — required here #

true — No constraints added by this property rule.

vdd-io-supply — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "#sound-dai-cells", "vdd-1p8-supply", "vdd-io-supply"

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "powerdown-gpios"

Rule 2 #

Required in this object (required): "reset-gpios"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

soundwire {
    #address-cells = <2>;
    #size-cells = <0>;

    speaker@0,1 {
        compatible = "sdw20217020400";
        reg = <0 1>;
        pinctrl-names = "default";
        pinctrl-0 = <&spkr_2_sd_n_active>;
        powerdown-gpios = <&lpass_tlmm 18 GPIO_ACTIVE_LOW>;
        #sound-dai-cells = <0>;
        sound-name-prefix = "SpkrRight";
        vdd-1p8-supply = <&vreg_l15b_1p8>;
        vdd-io-supply = <&vreg_l3g_1p2>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Realtek ALC203 AC97 Audio Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,alc203.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Keguang Zhang <keguang.zhang@gmail.com>"

ALC203 is a full duplex AC97 2.3 compatible stereo audio codec.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "realtek,alc203"

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

audio-codec {
    compatible = "realtek,alc203";
    #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

ALC5621/ALC5623 Audio Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,alc5623.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Mahdi Khosravi <mmk1776@gmail.com>"

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): "realtek,alc5621", "realtek,alc5623"

reg — required here #

Maximum number of items (maxItems): 1

add-ctrl — not listed as required here #

Default register value for Reg-40h, Additional Control Register. If absent or zero, the register is left untouched.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

jack-det-ctrl — not listed as required here #

Default register value for Reg-5Ah, Jack Detect Control Register. If absent or zero, the register is left untouched.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@1a {
        compatible = "realtek,alc5623";
        reg = <0x1a>;
        add-ctrl = <0x3700>;
        jack-det-ctrl = <0x4810>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

ALC5632 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,alc5632.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Pins on the device (for linking into audio routes):
    * SPK_OUTP
    * SPK_OUTN
    * HP_OUT_L
    * HP_OUT_R
    * AUX_OUT_P
    * AUX_OUT_N
    * LINE_IN_L
    * LINE_IN_R
    * PHONE_P
    * PHONE_N
    * MIC1_P
    * MIC1_N
    * MIC2_P
    * MIC2_N
    * MICBIAS1
    * DMICDAT

Maintainers (maintainers): "Leon Romanovsky <leon@leon.nu>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "realtek,alc5632"

reg — required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "#gpio-cells", "gpio-controller"

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>;
    codec@1a {
        compatible = "realtek,alc5632";
        reg = <0x1a>;
        gpio-controller;
        #gpio-cells = <2>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

RT1015 Mono Class D Audio Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt1015.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jack Yu <jack.yu@realtek.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "realtek,rt1015"

reg — required here #

Maximum number of items (maxItems): 1

realtek,power-up-delay-ms — not listed as required here #

Set a delay time for flush work to be completed, this vlaue is adjustable depending on platform.

Maximum number of items (maxItems): 1

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) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@28 {
        compatible = "realtek,rt1015";
        reg = <0x28>;
        realtek,power-up-delay-ms = <50>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Realtek rt1015p codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt1015p.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Tzung-Bi Shih <tzungbi@kernel.org>"

Rt1015p is a rt1015 variant which does not support I2C and only supports S24, 48kHz, 64FS.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "realtek,rt1015p", "realtek,rt1019p"

sdb-gpios — not listed as required here #

GPIO used for shutdown control. 0 means shut down; 1 means power on.

Maximum number of items (maxItems): 1

#sound-dai-cells — not listed as required here #

Exact value (const): 0

Required in this object (required): "compatible"

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>

rt1015p: rt1015p {
    compatible = "realtek,rt1015p";
    sdb-gpios = <&pio 175 GPIO_ACTIVE_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Reaktek RT1016 Stereo Class D Audio Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt1016.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "oder_chiou@realtek.com"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "realtek,rt1016"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — not listed as required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@1a {
        compatible = "realtek,rt1016";
        reg = <0x1a>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

RT1019 Mono Class-D Audio Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt1019.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "jack.yu@realtek.com"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "realtek,rt1019"

reg — required here #

Maximum number of items (maxItems): 1

I2C address of the device.

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) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    rt1019: codec@28 {
        compatible = "realtek,rt1019";
        reg = <0x28>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

RT5514 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt5514.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Animesh Agarwal <animeshagarwal28@gmail.com>"

This device supports both I2C and SPI.

Pins on the device (for linking into audio routes) for I2C:
  * DMIC1L
  * DMIC1R
  * DMIC2L
  * DMIC2R
  * AMICL
  * AMICR

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Rule 2 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "realtek,rt5514"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

Master clock to the CODEC

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

The interrupt number to the cpu.

realtek,dmic-init-delay-ms — not listed as required here #

Set the DMIC initial delay (ms) to wait it ready for I2C.

spi-max-frequency — not listed as required here #

true — No constraints added by this property rule.

wakeup-source — not listed as required here #

Value type (type): "boolean"

Flag to indicate this device can wake system (suspend/resume).

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@57 {
        compatible = "realtek,rt5514";
        reg = <0x57>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

ALC5575 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt5575.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Oder Chiou <oder_chiou@realtek.com>"

The device supports both I2C and SPI. I2C is mandatory, while SPI is optional depending on the hardware configuration. SPI is used for firmware loading if present.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "realtek,rt5575"

reg — required here #

Maximum number of items (maxItems): 1

spi-parent — not listed as required here #

Optional phandle reference to the SPI controller used for firmware loading. The argument specifies the chip select.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@57 {
        compatible = "realtek,rt5575";
        reg = <0x57>;
    };
};
i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@57 {
        compatible = "realtek,rt5575";
        reg = <0x57>;
        spi-parent = <&spi0 0>; /* chip-select 0 */
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Line 40: I2C-only node

Line 51: I2C + optional SPI node

Realtek rt5616 ALSA SoC audio codec driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt5616.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Pins on the device (for linking into audio routes) for RT5616:

    * IN1P
    * IN2P
    * IN2N
    * LOUTL
    * LOUTR
    * HPOL
    * HPOR

Maintainers (maintainers): "Bard Liao <bardliao@realtek.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "realtek,rt5616"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

Master clock to the CODEC

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

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 evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    audio-codec@1b {
        compatible = "realtek,rt5616";
        reg = <0x1b>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

ALC5631/RT5631 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt5631.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Animesh Agarwal <animeshagarwal28@gmail.com>"

This device supports I2C only.

Pins on the device (for linking into audio routes):
    * SPK_OUT_R_P
    * SPK_OUT_R_N
    * SPK_OUT_L_P
    * SPK_OUT_L_N
    * HP_OUT_L
    * HP_OUT_R
    * AUX_OUT2_LP
    * AUX_OUT2_RN
    * AUX_OUT1_LP
    * AUX_OUT1_RN
    * AUX_IN_L_JD
    * AUX_IN_R_JD
    * MONO_IN_P
    * MONO_IN_N
    * MIC1_P
    * MIC1_N
    * MIC2_P
    * MIC2_N
    * MONO_OUT_P
    * MONO_OUT_N
    * MICBIAS1
    * MICBIAS2

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "realtek,alc5631", "realtek,rt5631"

reg — 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) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@1a {
        compatible = "realtek,alc5631";
        reg = <0x1a>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

RT5640/RT5639 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt5640.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

This device supports I2C only.

Pins on the device (for linking into audio routes) for RT5639/RT5640:
  * DMIC1
  * DMIC2
  * MICBIAS1
  * IN1P
  * IN1N
  * IN2P
  * IN2N
  * IN3P
  * IN3N
  * HPOL
  * HPOR
  * LOUTL
  * LOUTR
  * SPOLP
  * SPOLN
  * SPORP
  * SPORN
Additional pins on the device for RT5640:
  * MONOP
  * MONON

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): "realtek,rt5640", "realtek,rt5639"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "mclk"

interrupts — required here #

Maximum number of items (maxItems): 1

The CODEC's interrupt output.

realtek,in1-differential — not listed as required here #

Indicate MIC1 input is differential, rather than single-ended.

Value type (type): "boolean"

realtek,in2-differential — not listed as required here #

Indicate MIC2 input is differential, rather than single-ended.

Value type (type): "boolean"

realtek,in3-differential — not listed as required here #

Indicate MIC3 input is differential, rather than single-ended.

Value type (type): "boolean"

realtek,lout-differential — not listed as required here #

Indicate LOUT output is differential, rather than single-ended.

Value type (type): "boolean"

realtek,dmic1-data-pin — not listed as required here #

Specify which pin to be used as DMIC1 data pin.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

realtek,dmic2-data-pin — not listed as required here #

Specify which pin to be used as DMIC2 data pin.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

realtek,jack-detect-source — not listed as required here #

The Jack Detect source.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7

realtek,jack-detect-not-inverted — not listed as required here #

Normal jack-detect switches give an inverted signal, set this bool in the rare case you've a jack-detect switch which is not inverted.

Value type (type): "boolean"

realtek,over-current-threshold-microamp — not listed as required here #

micbias over-current detection threshold in µA

Allowed values (enum): 600, 1500, 2000

realtek,over-current-scale-factor — not listed as required here #

micbias over-current detection scale-factor

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3

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", "interrupts"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@1a {
        compatible = "realtek,rt5640";
        reg = <0x1a>;
        interrupt-parent = <&gpio>;
        interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Line 84: dmic1 is not used

Line 85: using IN2P pin as dmic1 data pin

Line 86: using GPIO3 pin as dmic1 data pin

Line 92: dmic2 is not used

Line 93: using IN2N pin as dmic2 data pin

Line 94: using GPIO4 pin as dmic2 data pin

Line 100: Jack Detect function is not used

Line 101: Use GPIO1 for jack-detect

Line 102: Use JD1_IN4P for jack-detect

Line 103: Use JD2_IN4N for jack-detect

Line 104: Use GPIO2 for jack-detect

Line 105: Use GPIO3 for jack-detect

Line 106: Use GPIO4 for jack-detect

Line 107: Use HDA header for jack-detect

Line 126: Scale current by 0.5

Line 127: Scale current by 0.75

Line 128: Scale current by 1.0

Line 129: Scale current by 1.5

RT5650/RT5645 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt5645.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Animesh Agarwal <animeshagarwal28@gmail.com>"

This device supports I2C only.

Pins on the device (for linking into audio routes) for RT5645/RT5650:
  * DMIC L1
  * DMIC R1
  * DMIC L2
  * DMIC R2
  * IN1P
  * IN1N
  * IN2P
  * IN2N
  * Haptic Generator
  * HPOL
  * HPOR
  * LOUTL
  * LOUTR
  * PDM1L
  * PDM1R
  * SPOL
  * SPOR

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): "realtek,rt5645", "realtek,rt5650"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

The CODEC's interrupt output.

avdd-supply — required here #

Power supply for AVDD, providing 1.8V.

cpvdd-supply — required here #

Power supply for CPVDD, providing 1.8V.

hp-detect-gpios — not listed as required here #

A GPIO spec for the external headphone detect pin. If jd-mode = 0, we will get the JD status by getting the value of hp-detect-gpios.

Maximum number of items (maxItems): 1

cbj-sleeve-gpios — not listed as required here #

A GPIO spec to control the external combo jack circuit to tie the sleeve/ring2 contacts to the ground or floating. It could avoid some electric noise from the active speaker jacks.

Maximum number of items (maxItems): 1

realtek,in2-differential — not listed as required here #

Indicate MIC2 input are differential, rather than single-ended.

Value type (type): "boolean"

realtek,dmic1-data-pin — not listed as required here #

Specify which pin to be used as DMIC1 data pin.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3, 4

realtek,dmic2-data-pin — not listed as required here #

Specify which pin to be used as DMIC2 data pin.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3

realtek,jd-mode — not listed as required here #

The JD mode of rt5645/rt5650.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3

Required in this object (required): "compatible", "reg", "interrupts", "avdd-supply", "cpvdd-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@1a {
        compatible = "realtek,rt5650";
        reg = <0x1a>;
        hp-detect-gpios = <&gpio 19 0>;
        cbj-sleeve-gpios = <&gpio 20 0>;
        interrupt-parent = <&gpio>;
        interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
        avdd-supply = <&avdd_reg>;
        cpvdd-supply = <&cpvdd_supply>;
        realtek,jd-mode = <3>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Line 78: dmic1 is not used

Line 79: using IN2P pin as dmic1 data pin

Line 80: using GPIO6 pin as dmic1 data pin

Line 81: using GPIO10 pin as dmic1 data pin

Line 82: using GPIO12 pin as dmic1 data pin

Line 88: dmic2 is not used

Line 89: using IN2N pin as dmic2 data pin

Line 90: using GPIO5 pin as dmic2 data pin

Line 91: using GPIO11 pin as dmic2 data pin

Line 97: rt5645/rt5650 JD function is not used

Line 98: Mode-0 (VDD=3.3V), two port jack detection

Line 99: Mode-1 (VDD=3.3V), one port jack detection

Line 100: Mode-2 (VDD=1.8V), one port jack detection

Realtek RT5651 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt5651.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Bard Liao <bardliao@realtek.com>"

This device supports I2C only. Pins on the device (for linking into audio routes) for RT5651:

  * DMIC L1
  * DMIC R1
  * IN1P
  * IN2P
  * IN2N
  * IN3P
  * HPOL
  * HPOR
  * LOUTL
  * LOUTR
  * PDML
  * PDMR

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/sound/dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "realtek,rt5651"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "mclk"

#sound-dai-cells — not listed as required here #

Exact value (const): 0

realtek,in2-differential — not listed as required here #

Value type (type): "boolean"

Indicate MIC2 input are differential, rather than single-ended.

realtek,dmic-en — not listed as required here #

Value type (type): "boolean"

Indicates DMIC is used.

realtek,jack-detect-source — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Select jack-detect input pin.

Allowed values (enum): 1, 2, 3

realtek,jack-detect-not-inverted — not listed as required here #

Value type (type): "boolean"

Normal jack-detect switches give an inverted (active-low) signal. Set this bool in the rare case you've a jack-detect switch which is not inverted.

realtek,over-current-threshold-microamp — not listed as required here #

Micbias over-current detection threshold in µA.

Allowed values (enum): 600, 1500, 2000

realtek,over-current-scale-factor — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Micbias over-current detection scale factor:

  0: scale current by 0.5
  1: scale current by 0.75
  2: scale current by 1.0
  3: scale current by 1.5

Allowed values (enum): 0, 1, 2, 3

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) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@1a {
        compatible = "realtek,rt5651";
        reg = <0x1a>;
        realtek,dmic-en;
        realtek,in2-differential;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

RT5659/RT5658 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt5659.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Animesh Agarwal <animeshagarwal28@gmail.com>"

This device supports I2C only.

Pins on the device (for linking into audio routes) for RT5659/RT5658:
  * DMIC L1
  * DMIC R1
  * DMIC L2
  * DMIC R2
  * IN1P
  * IN1N
  * IN2P
  * IN2N
  * IN3P
  * IN3N
  * IN4P
  * IN4N
  * HPOL
  * HPOR
  * SPOL
  * SPOR
  * LOUTL
  * LOUTR
  * MONOOUT
  * PDML
  * PDMR
  * SPDIF

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): "realtek,rt5659", "realtek,rt5658"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "mclk"

realtek,dmic1-data-pin — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3, 4

Specify which pin to be used as DMIC1 data pin.

Default value (default): 0

realtek,dmic2-data-pin — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3, 4

Specify which pin to be used as DMIC2 data pin.

Default value (default): 0

realtek,jd-src — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

Specify which JD source be used.

Default value (default): 0

realtek,ldo1-en-gpios — not listed as required here #

Maximum number of items (maxItems): 1

CODEC's LDO1_EN pin.

realtek,reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

CODEC's RESET pin.

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

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", "interrupts"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@1b {
        compatible = "realtek,rt5659";
        reg = <0x1b>;
        interrupt-parent = <&gpio>;
        interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
        realtek,ldo1-en-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 63: dmic1 is not used

Line 64: using IN2N pin as dmic1 data pin

Line 65: using GPIO5 pin as dmic1 data pin

Line 66: using GPIO9 pin as dmic1 data pin

Line 67: using GPIO11 pin as dmic1 data pin

Line 74: dmic2 is not used

Line 75: using IN2P pin as dmic2 data pin

Line 76: using GPIO6 pin as dmic2 data pin

Line 77: using GPIO10 pin as dmic2 data pin

Line 78: using GPIO12 pin as dmic2 data pin

Line 85: No JD is used

Line 86: using JD3 as JD source

Line 87: JD source for Intel HDA header

RT5677 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt5677.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Animesh Agarwal <animeshagarwal28@gmail.com>"

This device supports I2C only.

Pins on the device (for linking into audio routes):
  * IN1P
  * IN1N
  * IN2P
  * IN2N
  * MICBIAS1
  * DMIC1
  * DMIC2
  * DMIC3
  * DMIC4
  * LOUT1
  * LOUT2
  * LOUT3

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "realtek,rt5677"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

realtek,pow-ldo2-gpio — not listed as required here #

Maximum number of items (maxItems): 1

CODEC's POW_LDO2 pin.

realtek,reset-gpio — not listed as required here #

Maximum number of items (maxItems): 1

CODEC's RESET pin. Active low.

realtek,gpio-config — not listed as required here #

Array of six 8bit elements that configures GPIO. 0 - floating (reset value) 1 - pull down 2 - pull up

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 6

Array item rules (items) #

Maximum value (maximum): 2

realtek,jd1-gpio — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3

Configures GPIO Mic Jack detection 1.

realtek,jd2-gpio — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3

Configures GPIO Mic Jack detection 2.

realtek,jd3-gpio — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3

Configures GPIO Mic Jack detection 3.

Properties matching a name pattern (patternProperties) #

^realtek,in[1-2]-differential$ — name matches this regular expression #

Value type (type): "boolean"

Indicate MIC1/2 input are differential, rather than single-ended.

^realtek,lout[1-3]-differential$ — name matches this regular expression #

Value type (type): "boolean"

Indicate LOUT1/2/3 outputs are differential, rather than single-ended.

Required in this object (required): "compatible", "reg", "interrupts", "gpio-controller", "#gpio-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@2c {
        compatible = "realtek,rt5677";
        reg = <0x2c>;
        interrupt-parent = <&gpio>;
        interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
        gpio-controller;
        #gpio-cells = <2>;
        realtek,pow-ldo2-gpio = <&gpio 3 GPIO_ACTIVE_HIGH>;
        realtek,reset-gpio = <&gpio 3 GPIO_ACTIVE_LOW>;
        realtek,in1-differential;
        realtek,gpio-config = <0 0 0 0 0 2>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 70: OFF

Line 71: GPIO1 for jd1.

Line 72: GPIO2 for jd1.

Line 73: GPIO3 for jd1.

Line 79: OFF

Line 80: GPIO4 for jd2.

Line 81: GPIO5 for jd2.

Line 82: GPIO6 for jd2.

Line 88: OFF

Line 89: GPIO4 for jd3.

Line 90: GPIO5 for jd3.

Line 91: GPIO6 for jd3.

Realtek rt5682 and rt5682i codecs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt5682.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Bard Liao <bardliao@realtek.com>"

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): "realtek,rt5682", "realtek,rt5682i"

reg — required here #

Maximum number of items (maxItems): 1

I2C address of the device.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

The CODEC's interrupt output.

realtek,dmic1-data-pin — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

Specify which GPIO pin be used as DMIC1 data pin.

realtek,dmic1-clk-pin — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

Specify which GPIO pin be used as DMIC1 clk pin.

realtek,jd-src — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

Specify which JD source be used.

realtek,ldo1-en-gpios — not listed as required here #

The GPIO that controls the CODEC's LDO1_EN pin.

realtek,btndet-delay — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The debounce delay for push button. The delay time is realtek,btndet-delay value multiple of 8.192 ms. If absent, the default is 16.

realtek,dmic-clk-rate-hz — not listed as required here #

Set the clock rate (hz) for the requirement of the particular DMIC.

realtek,dmic-delay-ms — not listed as required here #

Set the delay time (ms) for the requirement of the particular DMIC.

realtek,dmic-clk-driving-high — not listed as required here #

Value type (type): "boolean"

Set the high driving of the DMIC clock out.

clocks — not listed as required here #

Array item rules (items) #

Item 1

phandle and clock specifier for codec MCLK.

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

#clock-cells — not listed as required here #

Exact value (const): 1

clock-output-names — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Name given for DAI word clock and bit clock outputs.

#sound-dai-cells — not listed as required here #

Exact value (const): 1

AVDD-supply — required here #

Regulator supplying analog power through the AVDD pin.

MICVDD-supply — required here #

Regulator supplying power for the microphone bias through the MICVDD pin.

VBAT-supply — required here #

Regulator supplying battery power through the VBAT pin.

DBVDD-supply — required here #

Regulator supplying I/O power through the DBVDD pin.

LDO1-IN-supply — required here #

Regulator supplying power to the digital core and charge pump through the LDO1_IN pin.

Required in this object (required): "compatible", "reg", "AVDD-supply", "VBAT-supply", "MICVDD-supply", "DBVDD-supply", "LDO1-IN-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@1a {
        compatible = "realtek,rt5682";
        reg = <0x1a>;
        interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
        realtek,ldo1-en-gpios =
            <&gpio 2 GPIO_ACTIVE_HIGH>;
        realtek,dmic1-data-pin = <1>;
        realtek,dmic1-clk-pin = <1>;
        realtek,jd-src = <1>;

        #clock-cells = <1>;
        clock-output-names = "rt5682-dai-wclk", "rt5682-dai-bclk";

        clocks = <&osc>;
        clock-names = "mclk";

        AVDD-supply = <&avdd_reg>;
        VBAT-supply = <&vbat_reg>;
        MICVDD-supply = <&micvdd_reg>;
        DBVDD-supply = <&dbvdd_reg>;
        LDO1-IN-supply = <&ldo1_in_reg>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 32: dmic1 data is not used

Line 33: using GPIO2 pin as dmic1 data pin

Line 34: using GPIO5 pin as dmic1 data pin

Line 41: using GPIO1 pin as dmic1 clock pin

Line 42: using GPIO3 pin as dmic1 clock pin

Line 49: No JD is used

Line 50: using JD1 as JD source

Realtek rt5682s codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/realtek,rt5682s.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Derek Fang <derek.fang@realtek.com>"

Rt5682s(ALC5682I-VS) is a rt5682i variant which supports I2C only.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "realtek,rt5682s"

reg — required here #

Maximum number of items (maxItems): 1

I2C address of the device.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

The CODEC's interrupt output.

realtek,dmic1-data-pin — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

Specify which GPIO pin be used as DMIC1 data pin.

realtek,dmic1-clk-pin — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

Specify which GPIO pin be used as DMIC1 clk pin.

realtek,jd-src — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

Specify which JD source be used.

realtek,ldo1-en-gpios — not listed as required here #

The GPIO that controls the CODEC's LDO1_EN pin.

realtek,dmic-clk-rate-hz — not listed as required here #

Set the clock rate (hz) for the requirement of the particular DMIC.

realtek,dmic-delay-ms — not listed as required here #

Set the delay time (ms) for the requirement of the particular DMIC.

realtek,amic-delay-ms — not listed as required here #

Set the delay time (ms) for the requirement of the particular platform or AMIC.

realtek,dmic-clk-driving-high — not listed as required here #

Value type (type): "boolean"

Set the high driving of the DMIC clock out.

clocks — not listed as required here #

Array item rules (items) #

Item 1

phandle and clock specifier for codec MCLK.

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

#clock-cells — not listed as required here #

Exact value (const): 1

clock-output-names — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Name given for DAI word clock and bit clock outputs.

#sound-dai-cells — not listed as required here #

Exact value (const): 1

AVDD-supply — required here #

Regulator supplying analog power through the AVDD pin.

MICVDD-supply — required here #

Regulator supplying power for the microphone bias through the MICVDD pin.

DBVDD-supply — required here #

Regulator supplying I/O power through the DBVDD pin.

LDO1-IN-supply — required here #

Regulator supplying power to the digital core and charge pump through the LDO1_IN pin.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "AVDD-supply", "MICVDD-supply", "DBVDD-supply", "LDO1-IN-supply"

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@1a {
        compatible = "realtek,rt5682s";
        reg = <0x1a>;
        interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
        realtek,ldo1-en-gpios =
            <&gpio 2 GPIO_ACTIVE_HIGH>;
        realtek,dmic1-data-pin = <1>;
        realtek,dmic1-clk-pin = <1>;
        realtek,jd-src = <1>;

        #clock-cells = <1>;
        clock-output-names = "rt5682-dai-wclk", "rt5682-dai-bclk";

        clocks = <&osc>;
        clock-names = "mclk";

        AVDD-supply = <&avdd_reg>;
        MICVDD-supply = <&micvdd_reg>;
        DBVDD-supply = <&dbvdd_reg>;
        LDO1-IN-supply = <&ldo1_in_reg>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 33: dmic1 data is not used

Line 34: using GPIO2 pin as dmic1 data pin

Line 35: using GPIO5 pin as dmic1 data pin

Line 42: dmic1 clk is not used

Line 43: using GPIO1 pin as dmic1 clock pin

Line 44: using GPIO3 pin as dmic1 clock pin

Line 51: No JD is used

Line 52: using JD1 as JD source

Renesas FIFO-buffered Serial Interface (FSI)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/renesas,fsi.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^sound@.*"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "renesas,fsi2-sh73a0", "renesas,fsi2-r8a7740"

Item 2

Allowed values (enum): "renesas,sh_fsi2"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,sh_fsi", "renesas,sh_fsi2"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 1

Properties matching a name pattern (patternProperties) #

^fsi(a|b),spdif-connection$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

FSI is connected by S/PDIF

^fsi(a|b),stream-mode-support$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

FSI supports 16bit stream mode

^fsi(a|b),use-internal-clock$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

FSI uses internal clock when master mode

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "power-domains", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r8a7740-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
sh_fsi2: sound@fe1f0000 {
        compatible = "renesas,fsi2-r8a7740", "renesas,sh_fsi2";
        reg = <0xfe1f0000 0x400>;
        interrupts = <GIC_SPI 9 0x4>;
        clocks = <&mstp3_clks R8A7740_CLK_FSI>;
        power-domains = <&pd_a4mp>;

        #sound-dai-cells = <1>;
        fsia,spdif-connection;
        fsia,stream-mode-support;
        fsia,use-internal-clock;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 21: for FSI2 SoC

Line 24: SH-Mobile AG5

Line 25: R-Mobile A1

Line 28: for Generic

Renesas IDT821034 codec device

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/renesas,idt821034.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Herve Codina <herve.codina@bootlin.com>"

The IDT821034 codec is a four channel PCM codec with onchip filters and programmable gain setting.

The time-slots used by the codec must be set and so, the properties 'dai-tdm-slot-num', 'dai-tdm-slot-width', 'dai-tdm-slot-tx-mask' and 'dai-tdm-slot-rx-mask' must be present in the ALSA sound card node for sub-nodes that involve the codec. The codec uses one 8bit time-slot per channel. 'dai-tdm-tdm-slot-with' must be set to 8.

The IDT821034 codec also supports 5 gpios (SLIC signals) per channel.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Rule 2 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "renesas,idt821034"

reg — required here #

SPI device address.

Maximum number of items (maxItems): 1

spi-max-frequency — not listed as required here #

Maximum value (maximum): 8192000

spi-cpha — required here #

true — No constraints added by this property rule.

#sound-dai-cells — required here #

Exact value (const): 0

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "spi-cpha", "#sound-dai-cells", "gpio-controller", "#gpio-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spi {
    #address-cells = <1>;
    #size-cells = <0>;
    audio-codec@0 {
        compatible = "renesas,idt821034";
        reg = <0>;
        spi-max-frequency = <8192000>;
        spi-cpha;
        #sound-dai-cells = <0>;
        gpio-controller;
        #gpio-cells = <2>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Renesas R-Car Sound Driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/renesas,rsnd.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "renesas,rcar_sound-r8a7778", "renesas,rcar_sound-r8a7779"

Item 2

Exact value (const): "renesas,rcar_sound-gen1"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,rcar_sound-r8a7742", "renesas,rcar_sound-r8a7743", "renesas,rcar_sound-r8a7744", "renesas,rcar_sound-r8a7745", "renesas,rcar_sound-r8a77470", "renesas,rcar_sound-r8a7790", "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-r8a7793", "renesas,rcar_sound-r8a7794"

Item 2

Exact value (const): "renesas,rcar_sound-gen2"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "renesas,rcar_sound-r8a774a1", "renesas,rcar_sound-r8a774b1", "renesas,rcar_sound-r8a774c0", "renesas,rcar_sound-r8a774e1", "renesas,rcar_sound-r8a7795", "renesas,rcar_sound-r8a7796", "renesas,rcar_sound-r8a77961", "renesas,rcar_sound-r8a77965", "renesas,rcar_sound-r8a77990", "renesas,rcar_sound-r8a77995"

Item 2

Exact value (const): "renesas,rcar_sound-gen3"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "renesas,rcar_sound-r8a779g0", "renesas,rcar_sound-r8a779h0"

Item 2

Exact value (const): "renesas,rcar_sound-gen4"

Rule 5

Allowed values (enum): "renesas,rcar_sound-gen1", "renesas,rcar_sound-gen2", "renesas,rcar_sound-gen3", "renesas,rcar_sound-gen4"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

reg-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

#sound-dai-cells — not listed as required here #

it must be 0 if your system is using single DAI it must be 1 if your system is using multi DAIs This is used on simple-audio-card

Allowed values (enum): 0, 1

#clock-cells — not listed as required here #

it must be 0 if your system has audio_clkout it must be 1 if your system has audio_clkout0/1/2/3

Allowed values (enum): 0, 1

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

clock-frequency — not listed as required here #

for audio_clkout0/1/2/3

clkout-lr-asynchronous — not listed as required here #

audio_clkoutn is asynchronizes with lr-clock.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

power-domains — not listed as required here #

true — No constraints added by this property rule.

resets — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 11

reset-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 11

clocks — required here #

References to SSI/SRC/MIX/CTU/DVC/AUDIO_CLK clocks.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 31

clock-names — required here #

List of necessary clock names.

port — not listed as required here #

Shared schema rule ($ref): audio-graph-port.yaml#/definitions/port-base

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

^endpoint(@[0-9a-f]+)? — name matches this regular expression

Shared schema rule ($ref): audio-graph-port.yaml#/definitions/endpoint-base

Properties and child nodes (properties)

playback — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

capture — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

rcar_sound,dvc — not listed as required here #

DVC subnode.

Value type (type): "object"

Properties matching a name pattern (patternProperties) #

^dvc-[0-1]$ — name matches this regular expression

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

dmas — required here

Maximum number of items (maxItems): 1

dma-names — required here

Exact value (const): "tx"

Required in this object (required): "dmas", "dma-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

rcar_sound,mix — not listed as required here #

MIX subnode.

Value type (type): "object"

Properties matching a name pattern (patternProperties) #

^mix-[0-1]$ — name matches this regular expression

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

rcar_sound,ctu — not listed as required here #

CTU subnode.

Value type (type): "object"

Properties matching a name pattern (patternProperties) #

^ctu-[0-7]$ — name matches this regular expression

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

rcar_sound,src — not listed as required here #

SRC subnode.

Value type (type): "object"

Properties matching a name pattern (patternProperties) #

^src-[0-9]$ — name matches this regular expression

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 1

dmas — not listed as required here

Maximum number of items (maxItems): 2

dma-names — not listed as required here

All of these rules must match (allOf)

Rule 1

Array item rules (items)

Allowed values (enum): "tx", "rx"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

rcar_sound,ssiu — not listed as required here #

SSIU subnode.

Value type (type): "object"

Properties matching a name pattern (patternProperties) #

^ssiu-[0-9]+$ — name matches this regular expression

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

dmas — required here

Maximum number of items (maxItems): 2

dma-names — required here

All of these rules must match (allOf)

Rule 1

Array item rules (items)

Allowed values (enum): "tx", "rx"

Required in this object (required): "dmas", "dma-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

rcar_sound,ssi — not listed as required here #

SSI subnode.

Value type (type): "object"

Properties matching a name pattern (patternProperties) #

^ssi-[0-9]$ — name matches this regular expression

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

interrupts — required here

Maximum number of items (maxItems): 1

dmas — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 4

dma-names — not listed as required here

All of these rules must match (allOf)

Rule 1

Array item rules (items)

Allowed values (enum): "tx", "rx", "txu", "rxu"

shared-pin — not listed as required here

shared clock pin

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

pio-transfer — not listed as required here

PIO transfer mode

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

no-busif — not listed as required here

BUSIF is not used when [mem -> SSI] via DMA case

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Required in this object (required): "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

rcar_sound,dai(@[0-9a-f]+)?$ — name matches this regular expression #

DAI subnode.

Value type (type): "object"

Properties matching a name pattern (patternProperties) #

^dai([0-9]+)?$ — name matches this regular expression

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

playback — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

capture — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

At least one of these rules must match (anyOf)

Rule 1

Required in this object (required): "playback"

Rule 2

Required in this object (required): "capture"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

ports(@[0-9a-f]+)?$ — name matches this regular expression #

Shared schema rule ($ref): audio-graph-port.yaml#/definitions/port-base

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

^port(@[0-9a-f]+)?$ — name matches this regular expression

Shared schema rule ($ref): #/properties/port

Required in this object (required): "compatible", "reg", "reg-names", "clocks", "clock-names"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,rcar_sound-gen1"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 3

reg-names — not listed as required here

Array item rules (items)

Allowed values (enum): "sru", "ssi", "adg"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,rcar_sound-gen2", "renesas,rcar_sound-gen3"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 5

reg-names — not listed as required here

Array item rules (items)

Allowed values (enum): "scu", "adg", "ssiu", "ssi", "audmapp"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,rcar_sound-gen4"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 4

reg-names — not listed as required here

Array item rules (items)

Allowed values (enum): "adg", "ssiu", "ssi", "sdmc"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,rcar_sound-gen4"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Maximum number of items (maxItems): 3

Array item rules (items)

Allowed values (enum): "ssi.0", "ssiu.0", "clkin"

When the condition does not match (else) #

Properties and child nodes (properties)

clock-names — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 31

Array item rules (items)

Exactly one of these rules must match (oneOf)

Rule 1

Exact value (const): "ssi-all"

Rule 2

String pattern (pattern): "^ssi\\.[0-9]$"

Rule 3

String pattern (pattern): "^src\\.[0-9]$"

Rule 4

String pattern (pattern): "^mix\\.[0-1]$"

Rule 5

String pattern (pattern): "^ctu\\.[0-1]$"

Rule 6

String pattern (pattern): "^dvc\\.[0-1]$"

Rule 7

String pattern (pattern): "^clk_(a|b|c|i)$"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r8a7790-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7790-sysc.h>
rcar_sound: sound@ec500000 {
    #sound-dai-cells = <1>;
    compatible = "renesas,rcar_sound-r8a7790", "renesas,rcar_sound-gen2";
    reg = <0xec500000 0x1000>, /* SCU  */
          <0xec5a0000 0x100>,  /* ADG  */
          <0xec540000 0x1000>, /* SSIU */
          <0xec541000 0x280>,  /* SSI  */
          <0xec740000 0x200>;  /* Audio DMAC peri peri*/
    reg-names = "scu", "adg", "ssiu", "ssi", "audmapp";

    clocks = <&cpg CPG_MOD 1005>,                      /* SSI-ALL    */
             <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>, /* SSI9, SSI8 */
             <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>, /* SSI7, SSI6 */
             <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>, /* SSI5, SSI4 */
             <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>, /* SSI3, SSI2 */
             <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>, /* SSI1, SSI0 */
             <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>, /* SRC9, SRC8 */
             <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>, /* SRC7, SRC6 */
             <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>, /* SRC5, SRC4 */
             <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>, /* SRC3, SRC2 */
             <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>, /* SRC1, SRC0 */
             <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>, /* MIX1, MIX0 */
             <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>, /* CTU1, CTU0 */
             <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>, /* DVC0, DVC1 */
             <&audio_clk_a>, <&audio_clk_b>,           /* CLKA, CLKB */
             <&audio_clk_c>, <&audio_clk_i>;           /* CLKC, CLKI */

    clock-names = "ssi-all",
                  "ssi.9", "ssi.8",
                  "ssi.7", "ssi.6",
                  "ssi.5", "ssi.4",
                  "ssi.3", "ssi.2",
                  "ssi.1", "ssi.0",
                  "src.9", "src.8",
                  "src.7", "src.6",
                  "src.5", "src.4",
                  "src.3", "src.2",
                  "src.1", "src.0",
                  "mix.1", "mix.0",
                  "ctu.1", "ctu.0",
                  "dvc.0", "dvc.1",
                  "clk_a", "clk_b",
                  "clk_c", "clk_i";

    power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;

    resets = <&cpg 1005>,
             <&cpg 1006>, <&cpg 1007>, <&cpg 1008>, <&cpg 1009>,
             <&cpg 1010>, <&cpg 1011>, <&cpg 1012>, <&cpg 1013>,
             <&cpg 1014>, <&cpg 1015>;
    reset-names = "ssi-all",
                  "ssi.9", "ssi.8", "ssi.7", "ssi.6",
                  "ssi.5", "ssi.4", "ssi.3", "ssi.2",
                  "ssi.1", "ssi.0";

    rcar_sound,dvc {
           dvc0: dvc-0 {
                dmas = <&audma0 0xbc>;
                dma-names = "tx";
           };
           dvc1: dvc-1 {
                dmas = <&audma0 0xbe>;
                dma-names = "tx";
           };
    };

    rcar_sound,mix {
        mix0: mix-0 { };
        mix1: mix-1 { };
    };

    rcar_sound,ctu {
        ctu00: ctu-0 { };
        ctu01: ctu-1 { };
        ctu02: ctu-2 { };
        ctu03: ctu-3 { };
        ctu10: ctu-4 { };
        ctu11: ctu-5 { };
        ctu12: ctu-6 { };
        ctu13: ctu-7 { };
    };

    rcar_sound,src {
        src0: src-0 {
            status = "disabled";
        };
        src1: src-1 {
            interrupts = <GIC_SPI 353 IRQ_TYPE_LEVEL_HIGH>;
            dmas = <&audma0 0x87>, <&audma1 0x9c>;
            dma-names = "rx", "tx";
        };
        /* skip after src-2 */
    };

    rcar_sound,ssiu {
        ssiu00: ssiu-0 {
            dmas = <&audma0 0x15>, <&audma1 0x16>;
            dma-names = "rx", "tx";
        };
        ssiu01: ssiu-1 {
            dmas = <&audma0 0x35>, <&audma1 0x36>;
            dma-names = "rx", "tx";
        };
        /* skip after ssiu-2 */
    };

    rcar_sound,ssi {
        ssi0: ssi-0 {
            interrupts = <GIC_SPI 370 IRQ_TYPE_LEVEL_HIGH>;
            dmas = <&audma0 0x01>, <&audma1 0x02>;
            dma-names = "rx", "tx";
        };
        ssi1: ssi-1 {
            interrupts = <GIC_SPI 371 IRQ_TYPE_LEVEL_HIGH>;
            dmas = <&audma0 0x03>, <&audma1 0x04>;
            dma-names = "rx", "tx";
        };
        /* skip other ssi-2 */
    };

    /* DAI base */
    rcar_sound,dai {
        dai0 {
            playback = <&ssi5>, <&src5>;
            capture = <&ssi6>;
        };
        dai1 {
            playback = <&ssi3>;
        };
        dai2 {
            capture = <&ssi4>;
        };
        dai3 {
            playback = <&ssi7>;
        };
        dai4 {
            capture = <&ssi8>;
        };
    };

    /* assume audio-graph */
    port {
        rsnd_endpoint: endpoint {
            remote-endpoint = <&codec_endpoint>;

            dai-format = "left_j";
            bitclock-master = <&rsnd_endpoint0>;
            frame-master = <&rsnd_endpoint0>;

            playback = <&ssi0>, <&src0>, <&dvc0>;
            capture = <&ssi1>, <&src1>, <&dvc1>;
        };
    };
};

/* assume audio-graph */
codec {
    port {
        codec_endpoint: endpoint {
            remote-endpoint = <&rsnd_endpoint>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 16: for Gen1 SoC

Line 19: R-Car M1A

Line 20: R-Car H1

Line 22: for Gen2 SoC

Line 25: RZ/G1H

Line 26: RZ/G1M

Line 27: RZ/G1N

Line 28: RZ/G1E

Line 29: RZ/G1C

Line 30: R-Car H2

Line 31: R-Car M2-W

Line 32: R-Car M2-N

Line 33: R-Car E2

Line 35: for Gen3 SoC

Line 38: RZ/G2M

Line 39: RZ/G2N

Line 40: RZ/G2E

Line 41: RZ/G2H

Line 42: R-Car H3

Line 43: R-Car M3-W

Line 44: R-Car M3-W+

Line 45: R-Car M3-N

Line 46: R-Car E3

Line 47: R-Car D3

Line 49: for Gen4 SoC

Line 52: R-Car V4H

Line 53: R-Car V4M

Line 55: for Generic

Line 113: details are defined below

Line 115: ports is below

Line 228: if no ssiu node

Line 229: if no ssiu node

Line 245: For DAI base

Line 283: --------------------

Line 284: reg/reg-names

Line 285: --------------------

Line 286: for Gen1

Line 302: for Gen2/Gen3

Line 322: for Gen4

Line 340: --------------------

Line 341: clock-names

Line 342: --------------------

Renesas RZ/{G2L,V2L} ASoC Sound Serial Interface (SSIF-2)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/renesas,rz-ssi.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Biju Das <biju.das.jz@bp.renesas.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "renesas,r9a07g043-ssi", "renesas,r9a07g044-ssi", "renesas,r9a07g054-ssi", "renesas,r9a08g045-ssi", "renesas,r9a08g046-ssi"

Item 2

Exact value (const): "renesas,rz-ssi"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

interrupt-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "int_req"

Item 2

Exact value (const): "dma_rx"

Item 3

Exact value (const): "dma_tx"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "int_req"

Item 2

Exact value (const): "dma_rt"

clocks — required here #

Maximum number of items (maxItems): 4

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ssi"

Item 2

Exact value (const): "ssi_sfr"

Item 3

Exact value (const): "audio_clk1"

Item 4

Exact value (const): "audio_clk2"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

dmas — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

dma-names — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "rt"

#sound-dai-cells — required here #

Exact value (const): 0

port — not listed as required here #

Shared schema rule ($ref): audio-graph-port.yaml#/definitions/port-base

Connection to controller providing I2S signals

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "resets", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/r9a07g044-cpg.h>

ssi0: ssi@10049c00 {
    compatible = "renesas,r9a07g044-ssi",
                 "renesas,rz-ssi";
        reg = <0x10049c00 0x400>;
        interrupts = <GIC_SPI 326 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 327 IRQ_TYPE_EDGE_RISING>,
                     <GIC_SPI 328 IRQ_TYPE_EDGE_RISING>;
        interrupt-names = "int_req", "dma_rx", "dma_tx";
        clocks = <&cpg CPG_MOD R9A07G044_SSI0_PCLK2>,
                 <&cpg CPG_MOD R9A07G044_SSI0_PCLK_SFR>,
                 <&audio_clk1>,
                 <&audio_clk2>;
        clock-names = "ssi", "ssi_sfr", "audio_clk1", "audio_clk2";
        power-domains = <&cpg>;
        resets = <&cpg R9A07G044_SSI0_RST_M2_REG>;
        dmas = <&dmac 0x2655>,
               <&dmac 0x2656>;
        dma-names = "tx", "rx";
        #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 19: RZ/G2UL and RZ/Five

Line 20: RZ/G2{L,LC}

Line 21: RZ/V2L

Line 22: RZ/G3S

Line 23: RZ/G3L

Richtek RT9120 Class-D audio amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/richtek,rt9120.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "ChiYuan Huang <cy_huang@richtek.com>"

The RT9120 is a high efficiency, I2S-input, stereo audio power amplifier delivering 2*20W into 8 Ohm BTL speaker loads. It supports the wide input voltage range from 4.5V to 26.4V to meet the need on most common applications like as TV, monitors. home entertainment, electronic music equipment.

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): "richtek,rt9120"

reg — required here #

I2C device address

Maximum number of items (maxItems): 1

pwdnn-gpios — not listed as required here #

GPIO used for power down, low active

Maximum number of items (maxItems): 1

dvdd-supply — required here #

Supply for the default on DVDD power, voltage domain must be 3P3V or 1P8V

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "dvdd-supply", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;
  rt9120@1a {
    compatible = "richtek,rt9120";
    reg = <0x1a>;
    pwdnn-gpios = <&gpio26 2 0>;
    dvdd-supply = <&vdd_io_reg>;
    #sound-dai-cells = <0>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Richtek RT9123/RTQ9124 Audio Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/richtek,rt9123.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "ChiYuan Huang <cy_huang@richtek.com>"

RT9123 is a 3.2W mono Class-D audio amplifier that features high efficiency and performance with ultra-low quiescent current. The digital audio interface support various formats, including I2S, left-justified, right-justified, and TDM formats. RTQ9124 is an ultra-low output noise, digital input, mono-channel Class-D power amplifier that supports a 2.1MHz switching frequency. It integrates both DC and AC load diagnostics, as well as real-time load monitoring to assess speaker condition. The device operates from 4.5V to 18V and delivers up to 30W output power.

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): "richtek,rt9123", "richtek,rtq9124"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

enable-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

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>;

    amplifier@5e {
        compatible = "richtek,rt9123";
        reg = <0x5e>;
        enable-gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
        #sound-dai-cells = <0>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Richtek RT9123P Audio Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/richtek,rt9123p.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "ChiYuan Huang <cy_huang@richtek.com>"

RT9123P is a RT9123 variant which does not support I2C control.

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): "richtek,rt9123p"

#sound-dai-cells — required here #

Exact value (const): 0

enable-gpios — not listed as required here #

Maximum number of items (maxItems): 1

enable-delay-ms — not listed as required here #

Delay time for 'ENABLE' pin changes intended to make I2S clocks ready to prevent speaker pop noise. The unit is in millisecond.

Required in this object (required): "compatible", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

amplifier {
    compatible = "richtek,rt9123p";
    enable-gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
    #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Richtek RTQ9128 Automative Audio Power Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/richtek,rtq9128.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "ChiYuan Huang <cy_huang@richtek.com>"

The RTQ9128 is a ultra-low output noise, high-efficiency, four-channel class-D audio power amplifier and delivering 4x75W into 4OHm at 10% THD+N from a 25V supply in automotive applications. The RTQ9154 is the family series of RTQ9128. The major change is to modify the package size. Beside this, whole functions are almost all the same.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "richtek,rtq9128"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "richtek,rtq9154"

Item 2

Exact value (const): "richtek,rtq9128"

reg — required here #

Maximum number of items (maxItems): 1

enable-gpios — not listed as required here #

Maximum number of items (maxItems): 1

richtek,tdm-input-data2-select — not listed as required here #

Value type (type): "boolean"

By default, if TDM mode is used, TDM data input will select 'DATA1' pin as the data source. This option will configure TDM data input source from 'DATA1' to 'DATA2' pin.

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

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>;

  speaker@1a {
    compatible = "richtek,rtq9128";
    reg = <0x1a>;
    enable-gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
    #sound-dai-cells = <0>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Rockchip I2S/TDM Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/rockchip,i2s-tdm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Rockchip I2S/TDM Controller is a Time Division Multiplexed audio interface found in various Rockchip SoCs, allowing up to 8 channels of audio over a serial interface.

Maintainers (maintainers): "Nicolas Frattaroli <frattaroli.nicolas@gmail.com>"

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): "rockchip,px30-i2s-tdm", "rockchip,rk1808-i2s-tdm", "rockchip,rk3308-i2s-tdm", "rockchip,rk3568-i2s-tdm", "rockchip,rk3588-i2s-tdm", "rockchip,rv1126-i2s-tdm"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

dmas — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

dma-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Array item rules (items) #

Allowed values (enum): "rx", "tx"

clocks — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

clock for TX

Item 2

clock for RX

Item 3

AHB clock driving the interface

Item 4

Parent clock for mclk_tx (only required when using mclk-calibrate)

Item 5

Parent clock for mclk_rx (only required when using mclk-calibrate)

Item 6

Clock for sample rates that are an integer multiple of 8000 (only required when using mclk-calibrate)

Item 7

Clock for sample rates that are an integer multiple of 11025 (only required when using mclk-calibrate)

clock-names — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

Exact value (const): "mclk_tx"

Item 2

Exact value (const): "mclk_rx"

Item 3

Exact value (const): "hclk"

Item 4

Exact value (const): "mclk_tx_src"

Item 5

Exact value (const): "mclk_rx_src"

Item 6

Exact value (const): "mclk_root0"

Item 7

Exact value (const): "mclk_root1"

resets — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

resets for the tx and rx directions

reset-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Array item rules (items) #

Allowed values (enum): "tx-m", "rx-m"

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.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

rockchip,grf — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

The phandle of the syscon node for the GRF register.

rockchip,trcm-sync-tx-only — not listed as required here #

Value type (type): "boolean"

Use TX BCLK/LRCK for both TX and RX.

rockchip,trcm-sync-rx-only — not listed as required here #

Value type (type): "boolean"

Use RX BCLK/LRCK for both TX and RX.

#sound-dai-cells — required here #

Exact value (const): 0

rockchip,i2s-rx-route — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Defines the mapping of I2S RX sdis to I2S data bus lines. By default, they are mapped one-to-one. rockchip,i2s-rx-route = <3> would mean sdi3 is receiving from data0.

Maximum number of items (maxItems): 4

Array item rules (items) #

Allowed values (enum): 0, 1, 2, 3

rockchip,i2s-tx-route — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Defines the mapping of I2S TX sdos to I2S data bus lines. By default, they are mapped one-to-one. rockchip,i2s-tx-route = <3> would mean sdo3 is sending to data0.

Maximum number of items (maxItems): 4

Array item rules (items) #

Allowed values (enum): 0, 1, 2, 3

rockchip,io-multiplex — not listed as required here #

Specify that the GPIO lines on the I2S bus are multiplexed such that the direction (input/output) needs to be dynamically adjusted.

Value type (type): "boolean"

Required in this object (required): "compatible", "reg", "interrupts", "dmas", "dma-names", "clocks", "clock-names", "resets", "reset-names", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3568-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/rockchip.h>

bus {
    #address-cells = <2>;
    #size-cells = <2>;
    i2s@fe410000 {
        compatible = "rockchip,rk3568-i2s-tdm";
        reg = <0x0 0xfe410000 0x0 0x1000>;
        interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&cru MCLK_I2S1_8CH_TX>, <&cru MCLK_I2S1_8CH_RX>,
                 <&cru HCLK_I2S1_8CH>;
        clock-names = "mclk_tx", "mclk_rx", "hclk";
        dmas = <&dmac1 3>, <&dmac1 2>;
        dma-names = "rx", "tx";
        resets = <&cru SRST_M_I2S1_8CH_TX>, <&cru SRST_M_I2S1_8CH_RX>;
        reset-names = "tx-m", "rx-m";
        rockchip,trcm-sync-tx-only;
        rockchip,grf = <&grf>;
        #sound-dai-cells = <0>;
        pinctrl-names = "default";
        pinctrl-0 =
            <&i2s1m0_sclktx
            &i2s1m0_sclkrx
            &i2s1m0_lrcktx
            &i2s1m0_lrckrx
            &i2s1m0_sdi0
            &i2s1m0_sdi1
            &i2s1m0_sdi2
            &i2s1m0_sdi3
            &i2s1m0_sdo0
            &i2s1m0_sdo1
            &i2s1m0_sdo2
            &i2s1m0_sdo3>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Rockchip PDM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/rockchip,pdm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Pulse Density Modulation Interface Controller (PDMC) is a PDM interface controller and decoder that support PDM format. It integrates a clock generator driving the PDM microphone and embeds filters which decimate the incoming bit stream to obtain most common audio rates.

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

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): "rockchip,pdm", "rockchip,px30-pdm", "rockchip,rk1808-pdm", "rockchip,rk3308-pdm", "rockchip,rk3568-pdm", "rockchip,rv1126-pdm"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

clock for PDM controller

Item 2

clock for PDM BUS

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pdm_clk"

Item 2

Exact value (const): "pdm_hclk"

dmas — required here #

Maximum number of items (maxItems): 1

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Array item rules (items) #

Item 1

reset for PDM controller

reset-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "pdm-m"

rockchip,path-map — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Defines the mapping of PDM SDIx to PDM PATHx. By default, they are mapped one-to-one.

Maximum number of items (maxItems): 4

Items must be unique (uniqueItems): true

Array item rules (items) #

Allowed values (enum): 0, 1, 2, 3

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3328-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/rockchip.h>

bus {
    #address-cells = <2>;
    #size-cells = <2>;

    pdm@ff040000 {
        compatible = "rockchip,pdm";
        reg = <0x0 0xff040000 0x0 0x1000>;
        interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&cru SCLK_PDM>, <&cru HCLK_PDM>;
        clock-names = "pdm_clk", "pdm_hclk";
        dmas = <&dmac 16>;
        dma-names = "rx";
        #sound-dai-cells = <0>;
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&pdmm0_clk
                     &pdmm0_sdi0
                     &pdmm0_sdi1
                     &pdmm0_sdi2
                     &pdmm0_sdi3>;
        pinctrl-1 = <&pdmm0_clk_sleep
                     &pdmm0_sdi0_sleep
                     &pdmm0_sdi1_sleep
                     &pdmm0_sdi2_sleep
                     &pdmm0_sdi3_sleep>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Rockchip RK3036 internal codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/rockchip,rk3036-codec.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "rockchip,rk3036-codec"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

clock for audio codec

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "acodec_pclk"

rockchip,grf — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

The phandle of the syscon node for the GRF register.

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "rockchip,grf", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3036-cru.h>
acodec: audio-codec@20030000 {
  compatible = "rockchip,rk3036-codec";
  reg = <0x20030000 0x4000>;
  rockchip,grf = <&grf>;
  clock-names = "acodec_pclk";
  clocks = <&cru ACLK_VCODEC>;
  #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Rockchip RK3308 Internal Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/rockchip,rk3308-codec.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

This is the audio codec embedded in the Rockchip RK3308 SoC. It has 8 24-bit ADCs and 2 24-bit DACs. The maximum supported sampling rate is 192 kHz.

It is connected internally to one out of a selection of the internal I2S controllers.

The RK3308 audio codec has 8 independent capture channels, but some
features work on stereo pairs called groups:
  * grp 0 -- MIC1 / MIC2
  * grp 1 -- MIC3 / MIC4
  * grp 2 -- MIC5 / MIC6
  * grp 3 -- MIC7 / MIC8

Maintainers (maintainers): "Luca Ceresoli <luca.ceresoli@bootlin.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "rockchip,rk3308-codec"

reg — required here #

Maximum number of items (maxItems): 1

rockchip,grf — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to the General Register Files (GRF)

clocks — required here #

Array item rules (items) #

Item 1

clock for TX

Item 2

clock for RX

Item 3

AHB clock driving the interface

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk_tx"

Item 2

Exact value (const): "mclk_rx"

Item 3

Exact value (const): "hclk"

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.

resets — required here #

Maximum number of items (maxItems): 1

reset-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "codec"

#sound-dai-cells — required here #

Exact value (const): 0

rockchip,micbias-avdd-percent — not listed as required here #

Voltage setting for the MICBIAS pins expressed as a percentage of AVDD.

E.g. if rockchip,micbias-avdd-percent = 85 and AVDD = 3v3, then the MIC BIAS voltage will be 3.3 V * 85% = 2.805 V.

Allowed values (enum): 50, 55, 60, 65, 70, 75, 80, 85

Required in this object (required): "compatible", "reg", "rockchip,grf", "clocks", "resets", "#sound-dai-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3308-cru.h>

audio_codec: audio-codec@ff560000 {
    compatible = "rockchip,rk3308-codec";
    reg = <0xff560000 0x10000>;
    rockchip,grf = <&grf>;
    clock-names = "mclk_tx", "mclk_rx", "hclk";
    clocks = <&cru SCLK_I2S2_8CH_TX_OUT>,
             <&cru SCLK_I2S2_8CH_RX_OUT>,
             <&cru PCLK_ACODEC>;
    reset-names = "codec";
    resets = <&cru SRST_ACODEC_P>;
    #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Rockchip rk3328 internal codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/rockchip,rk3328-codec.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "rockchip,rk3328-codec"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

clock for audio codec

Item 2

clock for I2S master clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "mclk"

rockchip,grf — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

The phandle of the syscon node for the GRF register.

spk-depop-time-ms — not listed as required here #

Default value (default): 200

Speaker depop time in msec.

mute-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO specifier for external line driver control (typically the dedicated GPIO_MUTE pin)

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "rockchip,grf", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/rk3328-cru.h>
codec: codec@ff410000 {
  compatible = "rockchip,rk3328-codec";
  reg = <0xff410000 0x1000>;
  clocks = <&cru PCLK_ACODECPHY>, <&cru SCLK_I2S1>;
  clock-names = "pclk", "mclk";
  rockchip,grf = <&grf>;
  mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_LOW>;
  spk-depop-time-ms = <100>;
  #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Rockchip Serial Audio Interface Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/rockchip,rk3576-sai.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Rockchip Serial Audio Interface (SAI) controller is a flexible audio controller that implements the I2S, I2S/TDM and the PDM standards.

Maintainers (maintainers): "Nicolas Frattaroli <nicolas.frattaroli@collabora.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "rockchip,rk3576-sai"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

dmas — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

dma-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Allowed values (enum): "tx", "rx"

Item 2

Exact value (const): "rx"

clocks — required here #

Array item rules (items) #

Item 1

master audio clock

Item 2

AHB clock driving the interface

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "hclk"

resets — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

reset for the mclk domain

Item 2

reset for the hclk domain

reset-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "m"

Item 2

Exact value (const): "h"

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.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

rockchip,sai-rx-route — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Defines the mapping of the controller's SDI ports to actual input lanes, as well as the number of input lanes. rockchip,sai-rx-route = <3> would mean sdi3 is receiving from data0, and that there is only one receiving lane. This property's absence is to be understood as only one receiving lane being used if the controller has capture capabilities.

Maximum number of items (maxItems): 4

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 3

rockchip,sai-tx-route — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Defines the mapping of the controller's SDO ports to actual output lanes, as well as the number of output lanes. rockchip,sai-tx-route = <3> would mean sdo3 is sending to data0, and that there is only one transmitting lane. This property's absence is to be understood as only one transmitting lane being used if the controller has playback capabilities.

Maximum number of items (maxItems): 4

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 3

Required in this object (required): "compatible", "reg", "dmas", "dma-names", "clocks", "clock-names", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rockchip,rk3576-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/power/rockchip,rk3576-power.h>
#include <dt-bindings/reset/rockchip,rk3576-cru.h>

bus {
    #address-cells = <2>;
    #size-cells = <2>;
    sai1: sai@2a610000 {
        compatible = "rockchip,rk3576-sai";
        reg = <0x0 0x2a610000 0x0 0x1000>;
        interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&cru MCLK_SAI1_8CH>, <&cru HCLK_SAI1_8CH>;
        clock-names = "mclk", "hclk";
        dmas = <&dmac0 2>, <&dmac0 3>;
        dma-names = "tx", "rx";
        power-domains = <&power RK3576_PD_AUDIO>;
        resets = <&cru SRST_M_SAI1_8CH>, <&cru SRST_H_SAI1_8CH>;
        reset-names = "m", "h";
        pinctrl-names = "default";
        pinctrl-0 = <&sai1m0_lrck
                     &sai1m0_sclk
                     &sai1m0_sdi0
                     &sai1m0_sdo0
                     &sai1m0_sdo1
                     &sai1m0_sdo2
                     &sai1m0_sdo3>;
        rockchip,sai-tx-route = <3 1 2 0>;
        #sound-dai-cells = <0>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Rockchip I2S controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/rockchip-i2s.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The I2S bus (Inter-IC sound bus) is a serial link for digital audio data transfer between devices in the system.

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "rockchip,rk3066-i2s"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,px30-i2s", "rockchip,rk1808-i2s", "rockchip,rk3036-i2s", "rockchip,rk3128-i2s", "rockchip,rk3188-i2s", "rockchip,rk3228-i2s", "rockchip,rk3288-i2s", "rockchip,rk3308-i2s", "rockchip,rk3328-i2s", "rockchip,rk3366-i2s", "rockchip,rk3368-i2s", "rockchip,rk3399-i2s", "rockchip,rk3588-i2s", "rockchip,rv1126-i2s"

Item 2

Exact value (const): "rockchip,rk3066-i2s"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

clock for I2S controller

Item 2

clock for I2S BUS

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "i2s_clk"

Item 2

Exact value (const): "i2s_hclk"

dmas — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

dma-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "rx"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

pinctrl-names — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "default"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "bclk_on"

Item 2

Exact value (const): "bclk_off"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

reset-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "reset-m"

Item 2

Exact value (const): "reset-h"

resets — not listed as required here #

Maximum number of items (maxItems): 2

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.

rockchip,capture-channels — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 2

Max capture channels, if not set, 2 channels default.

rockchip,playback-channels — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 8

Max playback channels, if not set, 8 channels default.

rockchip,grf — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

The phandle of the syscon node for the GRF register. Required property for controllers which support multi channel playback/capture.

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3288-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2s@ff890000 {
  compatible = "rockchip,rk3288-i2s", "rockchip,rk3066-i2s";
  reg = <0xff890000 0x10000>;
  interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0>;
  clock-names = "i2s_clk", "i2s_hclk";
  dmas = <&pdma1 0>, <&pdma1 1>;
  dma-names = "tx", "rx";
  rockchip,capture-channels = <2>;
  rockchip,playback-channels = <8>;
  #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Rockchip SPDIF transceiver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/rockchip-spdif.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The S/PDIF audio block is a stereo transceiver that allows the processor to receive and transmit digital audio via a coaxial or fibre cable.

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "rockchip,rk3066-spdif"

Rule 2

Exact value (const): "rockchip,rk3228-spdif"

Rule 3

Exact value (const): "rockchip,rk3328-spdif"

Rule 4

Exact value (const): "rockchip,rk3366-spdif"

Rule 5

Exact value (const): "rockchip,rk3368-spdif"

Rule 6

Exact value (const): "rockchip,rk3399-spdif"

Rule 7

Exact value (const): "rockchip,rk3568-spdif"

Rule 8

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,rk3128-spdif", "rockchip,rk3188-spdif", "rockchip,rk3288-spdif", "rockchip,rk3308-spdif"

Item 2

Exact value (const): "rockchip,rk3066-spdif"

Rule 9

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,rk3576-spdif", "rockchip,rk3588-spdif"

Item 2

Exact value (const): "rockchip,rk3568-spdif"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

clock for SPDIF bus

Item 2

clock for SPDIF controller

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "hclk"

dmas — required here #

Maximum number of items (maxItems): 1

dma-names — required here #

Exact value (const): "tx"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

rockchip,grf — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

The phandle of the syscon node for the GRF register. Required property on RK3288.

#sound-dai-cells — required here #

Exact value (const): 0

port — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names", "#sound-dai-cells"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3288-spdif"

When the condition matches (then) #

Required in this object (required): "rockchip,grf"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3188-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
spdif: spdif@1011e000 {
  compatible = "rockchip,rk3188-spdif", "rockchip,rk3066-spdif";
  reg = <0x1011e000 0x2000>;
  interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF>;
  clock-names = "mclk", "hclk";
  dmas = <&dmac1_s 8>;
  dma-names = "tx";
  #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

ROHM BD28623MUV Class D speaker amplifier for digital input

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/rohm,bd28623.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

This codec does not have any control buses such as I2C, it detect format and rate of I2S signal automatically. It has two signals that can be connected to GPIOs reset and mute.

Maintainers (maintainers): "Katsuhiro Suzuki <katsuhiro@katsuster.net>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "rohm,bd28623"

#sound-dai-cells — required here #

Exact value (const): 0

VCCA-supply — required here #

regulator phandle for the VCCA (for analog) power supply

VCCP1-supply — required here #

regulator phandle for the VCCP1 (for ch1) power supply

VCCP2-supply — required here #

regulator phandle for the VCCP2 (for ch2) power supply

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO specifier for the active low reset line

mute-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO specifier for the active low mute line

Required in this object (required): "compatible", "VCCA-supply", "VCCP1-supply", "VCCP2-supply", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
codec {
  compatible = "rohm,bd28623";
  #sound-dai-cells = <0>;

  VCCA-supply = <&vcc_reg>;
  VCCP1-supply = <&vcc_reg>;
  VCCP2-supply = <&vcc_reg>;
  reset-gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
  mute-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Samsung Aries audio complex with WM8994 codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/samsung,aries-wm8994.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jonathan Bakker <xc-racer2@live.ca>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): sound-card-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "samsung,aries-wm8994", "samsung,fascinate4g-wm8994"

cpu — required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

sound-dai — required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

phandles to the I2S controller and bluetooth codec, in that order

Required in this object (required): "sound-dai"

codec — required here #

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Value type (type): "object"

Properties and child nodes (properties) #

sound-dai — required here

Maximum number of items (maxItems): 1

phandle to the WM8994 CODEC

Required in this object (required): "sound-dai"

samsung,audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

Deprecated (deprecated): true

List of the connections between audio components; each entry is a pair of strings, the first being the connection's sink, the second being the connection's source; valid names for sources and sinks are the WM8994's pins (as documented in its binding), and the jacks on the board - For samsung,aries-wm8994: HP, SPK, RCV, LINE, Main Mic, Headset Mic, or FM In For samsung,fascinate4g-wm8994: HP, SPK, RCV, LINE, Main Mic, or HeadsetMic Deprecated, use audio-routing.

extcon — required here #

Extcon phandle for dock detection

main-micbias-supply — required here #

Supply for the micbias on the main mic

headset-micbias-supply — required here #

Supply for the micbias on the headset mic

earpath-sel-gpios — required here #

Maximum number of items (maxItems): 1

GPIO for switching between tv-out and mic paths

headset-detect-gpios — required here #

Maximum number of items (maxItems): 1

GPIO for detection of headset insertion

headset-key-gpios — required here #

Maximum number of items (maxItems): 1

GPIO for detection of headset key press

io-channels — not listed as required here #

Maximum number of items (maxItems): 1

IO channel to read micbias voltage for headset detection

io-channel-names — not listed as required here #

Exact value (const): "headset-detect"

Required in this object (required): "compatible", "cpu", "codec", "audio-routing", "extcon", "main-micbias-supply", "headset-micbias-supply", "earpath-sel-gpios", "headset-detect-gpios", "headset-key-gpios"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

sound {
    compatible = "samsung,fascinate4g-wm8994";

    model = "Fascinate4G";

    extcon = <&fsa9480>;

    main-micbias-supply = <&main_micbias_reg>;
    headset-micbias-supply = <&headset_micbias_reg>;

    earpath-sel-gpios = <&gpj2 6 GPIO_ACTIVE_HIGH>;

    io-channels = <&adc 3>;
    io-channel-names = "headset-detect";
    headset-detect-gpios = <&gph0 6 GPIO_ACTIVE_HIGH>;
    headset-key-gpios = <&gph3 6 GPIO_ACTIVE_HIGH>;

    audio-routing =
        "HP", "HPOUT1L",
        "HP", "HPOUT1R",

        "SPK", "SPKOUTLN",
        "SPK", "SPKOUTLP",

        "RCV", "HPOUT2N",
        "RCV", "HPOUT2P",

        "LINE", "LINEOUT2N",
        "LINE", "LINEOUT2P",

        "IN1LP", "Main Mic",
        "IN1LN", "Main Mic",

        "IN1RP", "Headset Mic",
        "IN1RN", "Headset Mic";

    pinctrl-names = "default";
    pinctrl-0 = <&headset_det &earpath_sel>;

    cpu {
        sound-dai = <&i2s0>, <&bt_codec>;
    };

    codec {
        sound-dai = <&wm8994>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 18: With FM radio and modem master

Line 20: Without FM radio and modem slave

Insignal Arndale boards audio complex

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/samsung,arndale.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Sylwester Nawrocki <s.nawrocki@samsung.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "samsung,arndale-alc5631", "samsung,arndale-rt5631", "samsung,arndale-wm1811"

samsung,audio-codec — required here #

Phandle to the audio codec.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

samsung,audio-cpu — required here #

Phandle to the Samsung I2S controller.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

samsung,model — not listed as required here #

The user-visible name of this sound complex.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Required in this object (required): "compatible", "samsung,audio-codec", "samsung,audio-cpu"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "samsung,arndale-rt5631";
    samsung,audio-cpu = <&i2s0>;
    samsung,audio-codec = <&rt5631>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Samsung Midas audio complex with WM1811 codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/samsung,midas-audio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sylwester Nawrocki <s.nawrocki@samsung.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): sound-card-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "samsung,midas-audio"

cpu — required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

sound-dai — required here

Maximum number of items (maxItems): 1

phandle to the I2S controller

Required in this object (required): "sound-dai"

codec — required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

sound-dai — required here

Maximum number of items (maxItems): 1

phandle to the WM1811 CODEC

Required in this object (required): "sound-dai"

samsung,audio-routing — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

List of the connections between audio components; each entry is a pair of strings, the first being the connection's sink, the second being the connection's source; valid names for sources and sinks are the WM1811's pins (as documented in its binding), and the jacks on the board: HP, SPK, Main Mic, Sub Mic, Headset Mic. Deprecated, use audio-routing.

mic-bias-supply — required here #

Supply for the micbias on the Main microphone

submic-bias-supply — required here #

Supply for the micbias on the Sub microphone

headset-mic-bias-supply — not listed as required here #

Supply for the micbias on the Headset microphone

fm-sel-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO pin for FM selection

lineout-sel-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO pin for line out selection

headset-detect-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO for detection of headset insertion

headset-key-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO for detection of headset key press

io-channels — not listed as required here #

Maximum number of items (maxItems): 1

IO channel to read micbias voltage for headset detection

io-channel-names — not listed as required here #

Exact value (const): "headset-detect"

samsung,headset-4pole-threshold-microvolt — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Array containing minimum and maximum IO channel value for 4-pole (with microphone/button) headsets. If the IO channel value is outside of this range, a 3-pole headset is assumed.

samsung,headset-button-threshold-microvolt — not listed as required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

Array of minimum (inclusive) IO channel values for headset button detection, in order: "Media", "Volume Up" and "Volume Down".

Required in this object (required): "compatible", "cpu", "codec", "audio-routing", "mic-bias-supply", "submic-bias-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

sound {
    compatible = "samsung,midas-audio";
    model = "Midas";

    fm-sel-gpios = <&gpaa0 3 GPIO_ACTIVE_HIGH>;

    mic-bias-supply = <&mic_bias_reg>;
    submic-bias-supply = <&submic_bias_reg>;

    audio-routing =
            "HP", "HPOUT1L",
            "HP", "HPOUT1R",

            "SPK", "SPKOUTLN",
            "SPK", "SPKOUTLP",
            "SPK", "SPKOUTRN",
            "SPK", "SPKOUTRP",

            "RCV", "HPOUT2N",
            "RCV", "HPOUT2P",

            "IN1LP", "Main Mic",
            "IN1LN", "Main Mic",
            "IN1RP", "Sub Mic",
            "IN1LP", "Sub Mic";

    cpu {
        sound-dai = <&i2s0>;
    };

    codec {
        sound-dai = <&wm1811>;
    };

};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/samsung,odroid.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Sylwester Nawrocki <s.nawrocki@samsung.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): sound-card-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "hardkernel,odroid-xu3-audio"

Rule 2

Exact value (const): "hardkernel,odroid-xu4-audio"

Deprecated (deprecated): true

Rule 3

Exact value (const): "samsung,odroid-xu3-audio"

Deprecated (deprecated): true

Rule 4

Exact value (const): "samsung,odroid-xu4-audio"

Deprecated (deprecated): true

cpu — required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

sound-dai — not listed as required here

phandles to the I2S controllers

codec — required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

sound-dai — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

phandle of the HDMI IP block node

Item 2

phandle of the MAX98090 CODEC

samsung,audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

Deprecated (deprecated): true

List of the connections between audio components; each entry is a pair of strings, the first being the connection's sink, the second being the connection's source; valid names for sources and sinks are the MAX98090's pins (as documented in its binding), and the jacks on the board. For Odroid X2: "Headphone Jack", "Mic Jack", "DMIC" For Odroid U3, XU3: "Headphone Jack", "Speakers" For Odroid XU4: no entries Deprecated, use audio-routing.

samsung,audio-widgets — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

This property specifies off-codec audio elements like headphones or speakers, for details see widgets.txt

Required in this object (required): "compatible", "cpu", "codec"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "hardkernel,odroid-xu3-audio";
    model = "Odroid-XU3";
    audio-routing =
            "Headphone Jack", "HPL",
            "Headphone Jack", "HPR",
            "IN1", "Mic Jack",
            "Mic Jack", "MICBIAS";

    cpu {
        sound-dai = <&i2s0 0>;
    };

    codec {
        sound-dai = <&hdmi>, <&max98090>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Samsung SMDK5250 audio complex with WM8994 codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/samsung,smdk5250.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Sylwester Nawrocki <s.nawrocki@samsung.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "samsung,smdk-wm8994"

samsung,audio-codec — required here #

Phandle to the audio codec.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

samsung,i2s-controller — required here #

Phandle to the Samsung I2S controller.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Required in this object (required): "compatible", "samsung,audio-codec", "samsung,i2s-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "samsung,smdk-wm8994";
    samsung,i2s-controller = <&i2s0>;
    samsung,audio-codec = <&wm8994>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Google Snow audio complex with MAX9809x codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/samsung,snow.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Sylwester Nawrocki <s.nawrocki@samsung.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "google,snow-audio-max98090", "google,snow-audio-max98091", "google,snow-audio-max98095"

codec — required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

sound-dai — required here

List of phandles to the CODEC and HDMI IP nodes.

Array item rules (items)

Item 1

Phandle to the MAX98090, MAX98091 or MAX98095 CODEC.

Item 2

Phandle to the HDMI IP block node.

Required in this object (required): "sound-dai"

cpu — required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

sound-dai — required here

Phandle to the Samsung I2S controller.

Maximum number of items (maxItems): 1

Required in this object (required): "sound-dai"

samsung,audio-codec — not listed as required here #

Phandle to the audio codec.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Deprecated (deprecated): true

samsung,i2s-controller — not listed as required here #

Phandle to the Samsung I2S controller.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Deprecated (deprecated): true

samsung,model — not listed as required here #

The user-visible name of this sound complex.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Required in this object (required): "compatible", "codec", "cpu"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "google,snow-audio-max98095";
    samsung,model = "Snow-I2S-MAX98095";

    cpu {
        sound-dai = <&i2s0 0>;
    };

    codec {
        sound-dai = <&max98095 0>, <&hdmi>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Samsung Exynos5433 TM2(E) audio complex with WM5110 codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/samsung,tm2.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Sylwester Nawrocki <s.nawrocki@samsung.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): sound-card-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "samsung,tm2-audio"

audio-amplifier — required here #

Phandle to the MAX98504 amplifier.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

audio-codec — required here #

Phandles to the codecs.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

Phandle to the WM5110 audio codec.

Item 2

Array item rules (items)

Item 1

Phandle to the HDMI transmitter node.

samsung,audio-routing — not listed as required here #

List of the connections between audio components; each entry is a pair of strings, the first being the connection's sink, the second being the connection's source; valid names for sources and sinks are the WM5110's and MAX98504's pins and the jacks on the board: HP, SPK, Main Mic, Sub Mic, Third Mic, Headset Mic. Deprecated, use audio-routing.

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

i2s-controller — required here #

Phandles to the I2S controllers.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Item 1

Phandle to I2S0.

Item 2

Phandle to I2S1.

mic-bias-gpios — required here #

GPIO pin that enables the Main Mic bias regulator.

Required in this object (required): "compatible", "audio-amplifier", "audio-codec", "audio-routing", "i2s-controller", "mic-bias-gpios"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

sound {
    compatible = "samsung,tm2-audio";
    audio-codec = <&wm5110>, <&hdmi>;
    i2s-controller = <&i2s0 0>, <&i2s1 0>;
    audio-amplifier = <&max98504>;
    mic-bias-gpios = <&gpr3 2 GPIO_ACTIVE_HIGH>;
    model = "wm5110";
    audio-routing = "HP", "HPOUT1L",
                            "HP", "HPOUT1R",
                            "SPK", "SPKOUT",
                            "SPKOUT", "HPOUT2L",
                            "SPKOUT", "HPOUT2R",
                            "RCV", "HPOUT3L",
                            "RCV", "HPOUT3R";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Samsung SoC I2S controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/samsung-i2s.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Sylwester Nawrocki <s.nawrocki@samsung.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

samsung,s3c6410-i2s: for 8/16/24bit stereo I2S.

samsung,s5pv210-i2s: for 8/16/24bit multichannel (5.1) I2S with secondary FIFO, s/w reset control and internal mux for root clock source.

samsung,exynos5420-i2s: for 8/16/24bit multichannel (5.1) I2S for playback, stereo channel capture, secondary FIFO using internal or external DMA, s/w reset control, internal mux for root clock source and 7.1 channel TDM support for playback; TDM (Time division multiplexing) is to allow transfer of multiple channel audio data on single data line.

samsung,exynos7-i2s: with all the available features of Exynos5 I2S. Exynos7 I2S has 7.1 channel TDM support for capture, secondary FIFO with only external DMA and more number of root clock sampling frequencies.

samsung,exynos7-i2s1: I2S1 on previous samsung platforms supports stereo channels. Exynos7 I2S1 upgraded to 5.1 multichannel with slightly modified bit offsets.

tesla,fsd-i2s: for 8/16/24bit stereo channel I2S for playback and capture, secondary FIFO using external DMA, s/w reset control, internal mux for root clock source with all root clock sampling frequencies supported by Exynos7 I2S and 7.1 channel TDM support for playback and capture TDM (Time division multiplexing) to allow transfer of multiple channel audio data on single data line.

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "samsung,s3c6410-i2s", "samsung,s5pv210-i2s", "samsung,exynos5420-i2s", "samsung,exynos7-i2s", "samsung,exynos7-i2s1", "tesla,fsd-i2s"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "samsung,exynos5433-i2s"

Item 2

Exact value (const): "samsung,exynos7-i2s"

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

reg — required here #

Maximum number of items (maxItems): 1

dmas — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

dma-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

Item 3

Exact value (const): "tx-sec"

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "iis"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "iis"

Item 2

Exact value (const): "i2s_opclk0"

Item 3

Exact value (const): "i2s_opclk1"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "iis"

Item 2

Exact value (const): "i2s_opclk0"

"iis" is the I2S bus clock and i2s_opclk0, i2s_opclk1 are sources of the root clock. I2S0 has internal mux to select the source of root clock and I2S1 and I2S2 doesn't have any such mux.

#clock-cells — not listed as required here #

Exact value (const): 1

clock-output-names — not listed as required here #

Deprecated (deprecated): true

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "i2s_cdclk0"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "i2s_cdclk1"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "i2s_cdclk2"

Names of the CDCLK I2S output clocks.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

samsung,idma-addr — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Internal DMA register base address of the audio subsystem (used in secondary sound source).

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — not listed as required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "dmas", "dma-names", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/exynos-audss-clk.h>

i2s0: i2s@3830000 {
    compatible = "samsung,s5pv210-i2s";
    reg = <0x03830000 0x100>;
    dmas = <&pdma0 10>,
            <&pdma0 9>,
            <&pdma0 8>;
    dma-names = "tx", "rx", "tx-sec";
    clocks = <&clock_audss EXYNOS_I2S_BUS>,
            <&clock_audss EXYNOS_I2S_BUS>,
            <&clock_audss EXYNOS_SCLK_I2S>;
    clock-names = "iis", "i2s_opclk0", "i2s_opclk1";
    #clock-cells = <1>;
    samsung,idma-addr = <0x03000000>;
    pinctrl-names = "default";
    pinctrl-0 = <&i2s0_bus>;
    #sound-dai-cells = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 91: for I2S0

Line 95: for I2S1 and I2S2

Line 109: for I2S0

Line 111: for I2S1

Line 113: for I2S2

Generic Serial MIDI Interface

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/serial-midi.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Daniel Kaehn <kaehndan@gmail.com>"

Generic MIDI interface using a serial device. This denotes that a serial device is dedicated to MIDI communication, either to an external MIDI device through a DIN5 or other connector, or to a known hardwired MIDI controller. This device must be a child node of a serial node. Can only be set to use standard baud rates corresponding to supported rates of the parent serial device. If the standard MIDI baud of 31.25 kBaud is needed (as would be the case if interfacing with arbitrary external MIDI devices), configure the clocks of the parent serial device so that a requested baud of 38.4 kBaud results in the standard MIDI baud rate, and set the 'current-speed' property to 38400 (default)

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/serial/serial-peripheral-props.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "serial-midi"

current-speed — not listed as required here #

Baudrate to set the serial port to when this MIDI device is opened.

Default value (default): 38400

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

serial {
    midi {
        compatible = "serial-midi";
    };
};
serial {
    midi {
        compatible = "serial-midi";
        current-speed = <115200>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Simple Audio Amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/simple-audio-amplifier.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

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): "dioo,dio2125", "simple-audio-amplifier"

enable-gpios — not listed as required here #

Maximum number of items (maxItems): 1

VCC-supply — not listed as required here #

power supply for the device

sound-name-prefix — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/meson8-gpio.h>

analog-amplifier {
    compatible = "simple-audio-amplifier";
    VCC-supply = <&regulator>;
    enable-gpios = <&gpio GPIOH_3 0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Simple Audio Multiplexer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/simple-audio-mux.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alexandre Belloni <aleandre.belloni@bootlin.com>"

Simple audio multiplexers are driven using gpios, allowing to select which of their input line is connected to the output line.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "simple-audio-mux"

mux-gpios — required here #

GPIOs used to select the input line.

state-labels — not listed as required here #

State of input line. default is "Input 1", "Input 2"

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array

Maximum number of items (maxItems): 2

idle-state — not listed as required here #

If present specifies the state when the mux is powered down

Shared schema rule ($ref): /schemas/mux/mux-controller.yaml#/properties/idle-state

sound-name-prefix — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "mux-gpios"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

mux {
    compatible = "simple-audio-mux";
    mux-gpios = <&gpio 3 0>;
    state-labels = "Label_A", "Label_B";
    idle-state = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)

Simple Audio Card Driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/simple-card.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>"

Reusable definitions (definitions) #

frame-master #

Indicates dai-link frame master.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

bitclock-master #

Indicates dai-link bit clock master

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

frame-inversion #

dai-link uses frame clock inversion

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

bitclock-inversion #

dai-link uses bit clock inversion

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

dai-tdm-slot-num #

see tdm-slot.txt.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

dai-tdm-slot-width #

see tdm-slot.txt.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

system-clock-frequency #

If a clock is specified and a multiplication factor is given with mclk-fs, the clock will be set to the calculated mclk frequency when the stream starts.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

system-clock-direction-out #

specifies clock direction as 'out' on initialization. It is useful for some aCPUs with fixed clocks.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

system-clock-fixed #

Specifies that the clock frequency should not be modified. Implied when system-clock-frequency is specified, but can be used when a clock is mapped to the device whose frequency cannot or should not be changed. When mclk-fs is also specified, this restricts the device to a single fixed sampling rate.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

mclk-fs #

Multiplication factor between stream rate and codec mclk. When defined, mclk-fs property defined in dai-link sub nodes are ignored.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

aux-devs #

List of phandles pointing to auxiliary devices, such as amplifiers, to be added to the sound card.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

convert-rate #

CPU to Codec rate convert.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

convert-channels #

CPU to Codec rate channels.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

prefix #

device name prefix

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

label #

Maximum number of items (maxItems): 1

routing #

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

widgets #

User specified audio sound widgets.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

pin-switches #

the widget names for which pin switches must be created.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array

format #

audio format.

Array item rules (items) #

Allowed values (enum): "i2s", "right_j", "left_j", "dsp_a", "dsp_b", "ac97", "pdm", "msb", "lsb"

dai #

Value type (type): "object"

Properties and child nodes (properties) #

sound-dai — required here

Maximum number of items (maxItems): 1

mclk-fs — not listed as required here

Shared schema rule ($ref): #/definitions/mclk-fs

prefix — not listed as required here

Shared schema rule ($ref): #/definitions/prefix

frame-inversion — not listed as required here

Shared schema rule ($ref): #/definitions/frame-inversion

bitclock-inversion — not listed as required here

Shared schema rule ($ref): #/definitions/bitclock-inversion

frame-master — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

bitclock-master — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

dai-tdm-slot-num — not listed as required here

Shared schema rule ($ref): #/definitions/dai-tdm-slot-num

dai-tdm-slot-width — not listed as required here

Shared schema rule ($ref): #/definitions/dai-tdm-slot-width

clocks — not listed as required here

Maximum number of items (maxItems): 1

system-clock-frequency — not listed as required here

Shared schema rule ($ref): #/definitions/system-clock-frequency

system-clock-direction-out — not listed as required here

Shared schema rule ($ref): #/definitions/system-clock-direction-out

system-clock-fixed — not listed as required here

Shared schema rule ($ref): #/definitions/system-clock-fixed

Required in this object (required): "sound-dai"

additional-devs #

Value type (type): "object"

Additional devices used by the simple audio card.

Properties matching a name pattern (patternProperties) #

^iio-aux(-.+)?$ — name matches this regular expression

Value type (type): "object"

Shared schema rule ($ref): audio-iio-aux.yaml#

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains) #

Allowed values (enum): "simple-audio-card", "simple-scu-audio-card"

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

label — not listed as required here #

Shared schema rule ($ref): #/definitions/label

simple-audio-card,name — not listed as required here #

User specified audio sound card name.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

simple-audio-card,widgets — not listed as required here #

Shared schema rule ($ref): #/definitions/widgets

simple-audio-card,routing — not listed as required here #

Shared schema rule ($ref): #/definitions/routing

simple-audio-card,frame-master — not listed as required here #

Shared schema rule ($ref): #/definitions/frame-master

simple-audio-card,bitclock-master — not listed as required here #

Shared schema rule ($ref): #/definitions/bitclock-master

simple-audio-card,frame-inversion — not listed as required here #

Shared schema rule ($ref): #/definitions/frame-inversion

simple-audio-card,bitclock-inversion — not listed as required here #

Shared schema rule ($ref): #/definitions/bitclock-inversion

simple-audio-card,format — not listed as required here #

Shared schema rule ($ref): #/definitions/format

simple-audio-card,mclk-fs — not listed as required here #

Shared schema rule ($ref): #/definitions/mclk-fs

simple-audio-card,aux-devs — not listed as required here #

Shared schema rule ($ref): #/definitions/aux-devs

simple-audio-card,additional-devs — not listed as required here #

Shared schema rule ($ref): #/definitions/additional-devs

simple-audio-card,convert-rate — not listed as required here #

Shared schema rule ($ref): #/definitions/convert-rate

simple-audio-card,convert-channels — not listed as required here #

Shared schema rule ($ref): #/definitions/convert-channels

simple-audio-card,prefix — not listed as required here #

Shared schema rule ($ref): #/definitions/prefix

simple-audio-card,pin-switches — not listed as required here #

Shared schema rule ($ref): #/definitions/pin-switches

simple-audio-card,hp-det-gpio — not listed as required here #

Deprecated (deprecated): true

Maximum number of items (maxItems): 1

simple-audio-card,hp-det-gpios — not listed as required here #

Maximum number of items (maxItems): 1

simple-audio-card,mic-det-gpio — not listed as required here #

Deprecated (deprecated): true

Maximum number of items (maxItems): 1

simple-audio-card,mic-det-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

^simple-audio-card,cpu(@[0-9a-f]+)?$ — name matches this regular expression #

Shared schema rule ($ref): #/definitions/dai

^simple-audio-card,codec(@[0-9a-f]+)?$ — name matches this regular expression #

Shared schema rule ($ref): #/definitions/dai

^simple-audio-card,plat(@[0-9a-f]+)?$ — name matches this regular expression #

Shared schema rule ($ref): #/definitions/dai

^simple-audio-card,dai-link(@[0-9a-f]+)?$ — name matches this regular expression #

Container for dai-link level properties and the CPU and CODEC sub-nodes. This container may be omitted when the card has only one DAI link.

Value type (type): "object"

Properties and child nodes (properties) #

reg — not listed as required here

Maximum number of items (maxItems): 1

#address-cells — not listed as required here

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 0

frame-master — not listed as required here

Shared schema rule ($ref): #/definitions/frame-master

bitclock-master — not listed as required here

Shared schema rule ($ref): #/definitions/bitclock-master

frame-inversion — not listed as required here

Shared schema rule ($ref): #/definitions/frame-inversion

bitclock-inversion — not listed as required here

Shared schema rule ($ref): #/definitions/bitclock-inversion

format — not listed as required here

Shared schema rule ($ref): #/definitions/format

mclk-fs — not listed as required here

Shared schema rule ($ref): #/definitions/mclk-fs

aux-devs — not listed as required here

Shared schema rule ($ref): #/definitions/aux-devs

convert-rate — not listed as required here

Shared schema rule ($ref): #/definitions/convert-rate

convert-channels — not listed as required here

Shared schema rule ($ref): #/definitions/convert-channels

prefix — not listed as required here

Shared schema rule ($ref): #/definitions/prefix

pin-switches — not listed as required here

Shared schema rule ($ref): #/definitions/pin-switches

hp-det-gpio — not listed as required here

Deprecated (deprecated): true

Maximum number of items (maxItems): 1

hp-det-gpios — not listed as required here

Maximum number of items (maxItems): 1

mic-det-gpio — not listed as required here

Deprecated (deprecated): true

Maximum number of items (maxItems): 1

mic-det-gpios — not listed as required here

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

^cpu(-[0-9]+)?$ — name matches this regular expression

Shared schema rule ($ref): #/definitions/dai

^codec(-[0-9]+)?$ — name matches this regular expression

Shared schema rule ($ref): #/definitions/dai

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "simple-audio-card";
    simple-audio-card,name = "VF610-Tower-Sound-Card";
    simple-audio-card,format = "left_j";
    simple-audio-card,bitclock-master = <&dailink0_master>;
    simple-audio-card,frame-master = <&dailink0_master>;
    simple-audio-card,widgets =
            "Microphone", "Microphone Jack",
            "Headphone", "Headphone Jack",
            "Speaker", "External Speaker";
    simple-audio-card,routing =
            "MIC_IN", "Microphone Jack",
            "Headphone Jack", "HP_OUT",
            "External Speaker", "LINE_OUT";

    simple-audio-card,cpu {
        sound-dai = <&sh_fsi2 0>;
    };

    dailink0_master: simple-audio-card,codec {
        sound-dai = <&ak4648>;
        clocks = <&osc>;
    };
};
sound {
    compatible = "simple-audio-card";
    simple-audio-card,name = "Cubox Audio";

    #address-cells = <1>;
    #size-cells = <0>;

    simple-audio-card,dai-link@0 {		/* I2S - HDMI */
        reg = <0>;
        format = "i2s";
        cpu {
            sound-dai = <&audio0>;
        };
        codec {
            sound-dai = <&tda998x0>;
        };
    };

    simple-audio-card,dai-link@1 {		/* S/PDIF - HDMI */
        reg = <1>;
        cpu {
            sound-dai = <&audio1>;
        };
        codec {
            sound-dai = <&tda998x1>;
        };
    };

    simple-audio-card,dai-link@2 {		/* S/PDIF - S/PDIF */
        reg = <2>;
        cpu {
            sound-dai = <&audio2>;
        };
        codec {
            sound-dai = <&spdif_codec>;
        };
    };
};
sound {
    compatible = "simple-audio-card";

    simple-audio-card,widgets =
        "Headphone", "Headphone Jack";
    simple-audio-card,routing =
        "Headphone Jack", "HPLEFT",
        "Headphone Jack", "HPRIGHT",
        "LEFTIN", "HPL",
        "RIGHTIN", "HPR";
    simple-audio-card,aux-devs = <&amp>;
    simple-audio-card,cpu {
        sound-dai = <&ssi2>;
    };
    simple-audio-card,codec {
        sound-dai = <&codec>;
        clocks = <&clocks>;
    };
};
sound {
    compatible = "simple-audio-card";

    simple-audio-card,aux-devs = <&amp_in>, <&amp_out>;
    simple-audio-card,routing =
        "CODEC LEFTIN", "AMP_IN LEFT OUT",
        "CODEC RIGHTIN", "AMP_IN RIGHT OUT",
        "AMP_OUT LEFT IN", "CODEC LEFTOUT",
        "AMP_OUT RIGHT IN", "CODEC RIGHTOUT";

    simple-audio-card,additional-devs {
        amp_out: iio-aux-out {
            compatible = "audio-iio-aux";
            io-channels = <&pot_out 0>, <&pot_out 1>;
            io-channel-names = "LEFT", "RIGHT";
            snd-control-invert-range = <1 1>;
            sound-name-prefix = "AMP_OUT";
        };

        amp_in: iio_aux-in {
            compatible = "audio-iio-aux";
            io-channels = <&pot_in 0>, <&pot_in 1>;
            io-channel-names = "LEFT", "RIGHT";
            sound-name-prefix = "AMP_IN";
        };
    };

    simple-audio-card,cpu {
        sound-dai = <&cpu>;
    };

    simple-audio-card,codec {
        sound-dai = <&codec>;
        clocks = <&clocks>;
    };
};
sound {
    compatible = "simple-audio-card";

    simple-audio-card,name = "rsnd-ak4643";
    simple-audio-card,format = "left_j";
    simple-audio-card,bitclock-master = <&sndcodec>;
    simple-audio-card,frame-master = <&sndcodec>;

    simple-audio-card,convert-rate = <48000>;

    simple-audio-card,prefix = "ak4642";
    simple-audio-card,routing = "ak4642 Playback", "DAI0 Playback",
                                "DAI0 Capture", "ak4642 Capture";

    sndcpu: simple-audio-card,cpu {
        sound-dai = <&rcar_sound>;
    };

    sndcodec: simple-audio-card,codec {
        sound-dai = <&ak4643>;
        system-clock-frequency = <11289600>;
    };
};
sound {
    compatible = "simple-audio-card";
    #address-cells = <1>;
    #size-cells = <0>;

    simple-audio-card,name = "rsnd-ak4643";
    simple-audio-card,format = "left_j";
    simple-audio-card,bitclock-master = <&dpcmcpu>;
    simple-audio-card,frame-master = <&dpcmcpu>;

    simple-audio-card,convert-rate = <48000>;
    simple-audio-card,convert-channels = <2>;

    simple-audio-card,routing = "ak4642 Playback", "DAI0 Playback",
                                "ak4642 Playback", "DAI1 Playback";

    dpcmcpu: simple-audio-card,cpu@0 {
        reg = <0>;
        sound-dai = <&rcar_sound 0>;
    };

    simple-audio-card,cpu@1 {
        reg = <1>;
        sound-dai = <&rcar_sound 1>;
    };

    simple-audio-card,codec {
        prefix = "ak4642";
        sound-dai = <&ak4643>;
        clocks = <&audio_clock>;
    };
};
sound {
    compatible = "simple-audio-card";
    #address-cells = <1>;
    #size-cells = <0>;

    simple-audio-card,routing =
        "pcm3168a Playback", "DAI1 Playback",
        "pcm3168a Playback", "DAI2 Playback",
        "pcm3168a Playback", "DAI3 Playback",
        "pcm3168a Playback", "DAI4 Playback";

    simple-audio-card,dai-link@0 {
        reg = <0>;
        format = "left_j";
        bitclock-master = <&sndcpu0>;
        frame-master = <&sndcpu0>;

        sndcpu0: cpu {
            sound-dai = <&rcar_sound 0>;
        };
        codec {
            sound-dai = <&ak4613>;
        };
    };

    simple-audio-card,dai-link@1 {
        reg = <1>;
        format = "i2s";
        bitclock-master = <&sndcpu1>;
        frame-master = <&sndcpu1>;

        convert-channels = <8>; /* TDM Split */

        sndcpu1: cpu-0 {
            sound-dai = <&rcar_sound 1>;
        };
        cpu-1 {
            sound-dai = <&rcar_sound 2>;
        };
        cpu-2 {
            sound-dai = <&rcar_sound 3>;
        };
        cpu-3 {
            sound-dai = <&rcar_sound 4>;
        };
        codec {
            mclk-fs = <512>;
            prefix = "pcm3168a";
            dai-tdm-slot-num = <8>;
            sound-dai = <&pcm3168a 0>;
        };
    };

    simple-audio-card,dai-link@2 {
        reg = <2>;
        format = "i2s";
        bitclock-master = <&sndcpu2>;
        frame-master = <&sndcpu2>;

        sndcpu2: cpu {
            sound-dai = <&rcar_sound 5>;
        };
        codec {
            mclk-fs = <512>;
            prefix = "pcm3168a";
            sound-dai = <&pcm3168a 1>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 122: common properties

Line 184: common properties

Line 241: common properties

Line 288: --------------------

Line 289: single DAI link

Line 290: --------------------

Line 317: --------------------

Line 318: Multi DAI links

Line 319: --------------------

Line 360: --------------------

Line 361: route audio from IMX6 SSI2 through TLV320DAC3100 codec

Line 362: through TPA6130A2 amplifier to headphones:

Line 363: --------------------

Line 385: --------------------

Line 386: route audio to/from a codec through an amplifier

Line 387: designed with a potentiometer driven by IIO:

Line 388: --------------------

Line 427: --------------------

Line 428: Sampling Rate Conversion

Line 429: --------------------

Line 455: --------------------

Line 456: 2 CPU 1 Codec (Mixing)

Line 457: --------------------

Line 492: --------------------

Line 493: Multi DAI links with DPCM:

Line 494:

Line 495: CPU0 ------ ak4613

Line 496: CPU1 ------ PCM3168A-p /* DPCM 1ch/2ch */

Line 497: CPU2 --/ /* DPCM 3ch/4ch */

Line 498: CPU3 --/ /* DPCM 5ch/6ch */

Line 499: CPU4 --/ /* DPCM 7ch/8ch */

Line 500: CPU5 ------ PCM3168A-c

Line 501: --------------------

DesignWare I2S controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/snps,designware-i2s.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jose Abreu <joabreu@synopsys.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "canaan,k210-i2s"

Item 2

Exact value (const): "snps,designware-i2s"

Rule 2

Allowed values (enum): "snps,designware-i2s", "starfive,jh7110-i2stx0", "starfive,jh7110-i2stx1", "starfive,jh7110-i2srx"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

The interrupt line number for the I2S controller. Add this parameter if the I2S controller that you are using does not support DMA.

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Sampling rate reference clock

Item 2

APB clock

Item 3

Audio master clock

Item 4

Inner audio master clock source

Item 5

External audio master clock source

Item 6

Bit clock

Item 7

Left/right channel clock

Item 8

External bit clock

Item 9

External left/right channel clock

Minimum number of items (minItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "i2sclk"

Item 2

Exact value (const): "apb"

Item 3

Exact value (const): "mclk"

Item 4

Exact value (const): "mclk_inner"

Item 5

Exact value (const): "mclk_ext"

Item 6

Exact value (const): "bclk"

Item 7

Exact value (const): "lrck"

Item 8

Exact value (const): "bclk_ext"

Item 9

Exact value (const): "lrck_ext"

Minimum number of items (minItems): 1

resets — not listed as required here #

Array item rules (items) #

Item 1

Optional controller resets

Item 2

controller reset of Sampling rate

Minimum number of items (minItems): 1

dmas — not listed as required here #

Array item rules (items) #

Item 1

TX DMA Channel

Item 2

RX DMA Channel

Minimum number of items (minItems): 1

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

Minimum number of items (minItems): 1

starfive,syscon — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to System Register Controller sys_syscon node.

Item 2

I2S-rx enabled control offset of SYS_SYSCONSAIF__SYSCFG register.

Item 3

I2S-rx enabled control mask

The phandle to System Register Controller syscon node and the I2S-rx(ADC) enabled control offset and mask of SYS_SYSCONSAIF__SYSCFG register.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "canaan,k210-i2s"

When the condition matches (then) #

Properties and child nodes (properties)

#sound-dai-cells — not listed as required here

Exact value (const): 1

When the condition does not match (else) #

Properties and child nodes (properties)

#sound-dai-cells — not listed as required here

Exact value (const): 0

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "snps,designware-i2s"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Maximum number of items (maxItems): 1

resets — not listed as required here

Maximum number of items (maxItems): 1

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "starfive,jh7110-i2stx0"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 5

clock-names — not listed as required here

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 5

Required in this object (required): "resets"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "starfive,jh7110-i2stx1"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 9

Maximum number of items (maxItems): 9

clock-names — not listed as required here

Minimum number of items (minItems): 9

Maximum number of items (maxItems): 9

Required in this object (required): "resets"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "starfive,jh7110-i2srx"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 9

Maximum number of items (maxItems): 9

clock-names — not listed as required here

Minimum number of items (minItems): 9

Maximum number of items (maxItems): 9

Required in this object (required): "resets", "starfive,syscon"

When the condition does not match (else) #

Properties and child nodes (properties)

starfive,syscon — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "dmas", "dma-names"

Rule 2 #

Required in this object (required): "interrupts"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

soc_i2s: i2s@7ff90000 {
  compatible = "snps,designware-i2s";
  reg = <0x7ff90000 0x1000>;
  clocks = <&scpi_i2sclk 0>;
  clock-names = "i2sclk";
  #sound-dai-cells = <0>;
  dmas = <&dma0 5>;
  dma-names = "tx";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

UniPhier AIO audio system

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/socionext,uniphier-aio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "<alsa-devel@alsa-project.org>"

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): "socionext,uniphier-ld11-aio", "socionext,uniphier-ld20-aio", "socionext,uniphier-pxs2-aio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "aio"

clocks — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Exact value (const): "aio"

resets — required here #

Maximum number of items (maxItems): 1

socionext,syscon — not listed as required here #

Specifies a phandle to soc-glue, which is used for changing mode of S/PDIF signal pin to output from Hi-Z. This property is optional if you use I2S signal pins only.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

#sound-dai-cells — required here #

Exact value (const): 1

Properties matching a name pattern (patternProperties) #

^port@[0-9]$ — name matches this regular expression #

Port number of DT node is specified by the following DAI channels that
depends on SoC.
ld11-aio,ld20-aio:
  0: hdmi
  1: pcmin2
  2: line
  3: hpcmout1
  4: pcmout3
  5: hiecout1
  6: epcmout2
  7: epcmout3
  8: hieccompout1
pxs2-aio:
  0: hdmi
  1: line
  2: aux
  3: hiecout1
  4: iecout1
  5: hieccompout1
  6: ieccompout1

Shared schema rule ($ref): audio-graph-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "clock-names", "clocks", "reset-names", "resets", "#sound-dai-cells"

Examples (examples) #

audio@56000000 {
    compatible = "socionext,uniphier-ld20-aio";
    reg = <0x56000000 0x80000>;
    interrupts = <0 144 4>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_aout>;
    clock-names = "aio";
    clocks = <&sys_clk 40>;
    reset-names = "aio";
    resets = <&sys_rst 40>;
    #sound-dai-cells = <1>;
    socionext,syscon = <&soc_glue>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

UniPhier EVEA SoC-internal sound codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/socionext,uniphier-evea.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "<alsa-devel@alsa-project.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "socionext,uniphier-evea"

reg — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "evea"

Item 2

Exact value (const): "exiv"

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "evea"

Item 2

Exact value (const): "exiv"

Item 3

Exact value (const): "adamv"

resets — required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

#sound-dai-cells — required here #

Exact value (const): 1

Properties matching a name pattern (patternProperties) #

^port@[0-9]$ — name matches this regular expression #

Port number of DT node is specified by the following DAI channels.
  0: line1
  1: hp
  2: line2

Shared schema rule ($ref): audio-graph-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "clock-names", "clocks", "reset-names", "resets", "#sound-dai-cells"

Examples (examples) #

codec@57900000 {
    compatible = "socionext,uniphier-evea";
    reg = <0x57900000 0x1000>;
    clock-names = "evea", "exiv";
    clocks = <&sys_clk 41>, <&sys_clk 42>;
    reset-names = "evea", "exiv", "adamv";
    resets = <&sys_rst 41>, <&sys_rst 42>, <&adamv_rst 0>;
    #sound-dai-cells = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Sophgo CV1800B Internal ADC/DAC Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/sophgo,cv1800b-codecs.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Anton D. Stavinskii <stavinsky@gmail.com>"

Internal ADC and DAC audio codecs integrated in the Sophgo CV1800B SoC. Codecs expose a single DAI and are intended to be connected to an I2S/TDM controller via an ASoC machine driver.

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): "sophgo,cv1800b-sound-adc", "sophgo,cv1800b-sound-dac"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

audio-codec@300a100 {
  compatible = "sophgo,cv1800b-sound-adc";
  reg = <0x0300a100 0x100>;
  #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Sophgo CV1800B I2S/TDM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/sophgo,cv1800b-i2s.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Anton D. Stavinskii <stavinsky@gmail.com>"

I2S/TDM controller found in CV1800B / Sophgo SG2002/SG2000 SoCs.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sophgo,cv1800b-i2s"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "i2s"

Item 2

Exact value (const): "mclk"

dmas — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

dma-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Allowed values (enum): "rx", "tx"

Item 2

Exact value (const): "tx"

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/sophgo,cv1800.h>

i2s@4110000 {
    compatible = "sophgo,cv1800b-i2s";
    reg = <0x04110000 0x10000>;
    clocks = <&clk CLK_APB_I2S1>,  <&clk CLK_SDMA_AUD1>;
    clock-names = "i2s", "mclk";
    dmas = <&dmamux 2 1>, <&dmamux 3 1>;
    dma-names = "rx", "tx";
    #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Board Sound Card Common Properties

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/sound-card-common.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Mark Brown <broonie@kernel.org>"

Properties and child nodes (properties) #

audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source.

ignore-suspend-widgets — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of audio sound widgets which are marked ignoring system suspend. Paths between these endpoints are still active over suspend of the main application processor that the current operating system is running.

model — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

User specified audio sound card name

Required in this object (required): "model"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Digital Audio Interface consumer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/sound-dai.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Rob Herring <robh@kernel.org>"

Automatic schema selection (select) #

true

This selection rule always matches.

Properties and child nodes (properties) #

sound-dai — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

A phandle plus args to digital audio interface provider(s)

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

K1 I2S controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/spacemit,k1-i2s.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The I2S bus (Inter-IC sound bus) is a serial link for digital audio data transfer between devices in the system.

Maintainers (maintainers): "Troy Mitchell <troy.mitchell@linux.spacemit.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "spacemit,k1-i2s"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

clock for I2S sysclk

Item 2

clock for I2S bclk

Item 3

clock for I2S bus

Item 4

clock for I2S controller

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "sysclk"

Item 2

Exact value (const): "bclk"

Item 3

Exact value (const): "bus"

Item 4

Exact value (const): "func"

dmas — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

dma-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

resets — 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.

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "dmas", "dma-names", "resets", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/spacemit,k1-syscon.h>
i2s@d4026000 {
  compatible = "spacemit,k1-i2s";
  reg = <0xd4026000 0x30>;
  clocks = <&syscon_mpmu CLK_I2S_SYSCLK>,
           <&syscon_mpmu CLK_I2S_BCLK>,
           <&syscon_apbc CLK_SSPA0_BUS>,
           <&syscon_apbc CLK_SSPA0>;
  clock-names = "sysclk", "bclk", "bus", "func";
  dmas = <&pdma0 21>, <&pdma0 22>;
  dma-names = "tx", "rx";
  resets = <&syscon_apbc RESET_SSPA0>;
  #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Spreadtrum DMA platform

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/sprd,pcm-platform.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sprd,pcm-platform"

dmas — required here #

Maximum number of items (maxItems): 10

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "normal_p_l"

Item 2

Exact value (const): "normal_p_r"

Item 3

Exact value (const): "normal_c_l"

Item 4

Exact value (const): "normal_c_r"

Item 5

Exact value (const): "voice_c"

Item 6

Exact value (const): "fast_p"

Item 7

Exact value (const): "loop_c"

Item 8

Exact value (const): "loop_p"

Item 9

Exact value (const): "voip_c"

Item 10

Exact value (const): "voip_p"

Required in this object (required): "compatible", "dmas", "dma-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

platform {
  compatible = "sprd,pcm-platform";
  dmas = <&agcp_dma 1 1>, <&agcp_dma 2 2>,
         <&agcp_dma 3 3>, <&agcp_dma 4 4>,
         <&agcp_dma 5 5>, <&agcp_dma 6 6>,
         <&agcp_dma 7 7>, <&agcp_dma 8 8>,
         <&agcp_dma 9 9>, <&agcp_dma 10 10>;
  dma-names = "normal_p_l", "normal_p_r",
              "normal_c_l", "normal_c_r",
              "voice_c", "fast_p",
              "loop_c", "loop_p",
              "voip_c", "voip_p";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Spreadtrum Multi-Channel Data Transfer controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/sprd,sc9860-mcdt.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Multi-channel data transfer controller is used for sound stream transmission between the audio subsystem and other AP/CP subsystem. It supports 10 DAC channels and 10 ADC channels, and each channel can be configured with DMA mode or interrupt mode.

Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sprd,sc9860-mcdt"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

mcdt@41490000 {
  compatible = "sprd,sc9860-mcdt";
  reg = <0x41490000 0x170>;
  interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

STMicroelectronics STM32 SPI/I2S Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/st,stm32-i2s.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Olivier Moysan <olivier.moysan@foss.st.com>"

The SPI/I2S block supports I2S/PCM protocols when configured on I2S mode. Only some SPI instances support I2S.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "st,stm32h7-i2s", "st,stm32mp25-i2s"

#sound-dai-cells — required here #

Exact value (const): 0

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

clock feeding the peripheral bus interface.

Item 2

clock feeding the internal clock generator.

Item 3

I2S parent clock for sampling rates multiple of 8kHz.

Item 4

I2S parent clock for sampling rates multiple of 11.025kHz.

Minimum number of items (minItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "i2sclk"

Item 3

Exact value (const): "x8k"

Item 4

Exact value (const): "x11k"

Minimum number of items (minItems): 2

interrupts — required here #

Maximum number of items (maxItems): 1

dmas — required here #

Array item rules (items) #

Item 1

audio capture DMA.

Item 2

audio playback DMA.

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

resets — not listed as required here #

Maximum number of items (maxItems): 1

#clock-cells — not listed as required here #

Configure the I2S device as MCLK clock provider.

Exact value (const): 0

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.

access-controllers — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Required in this object (required): "compatible", "#sound-dai-cells", "reg", "clocks", "clock-names", "interrupts", "dmas", "dma-names"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "st,stm32h7-i2s"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

clock-names — not listed as required here

Minimum number of items (minItems): 4

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "st,stm32mp25-i2s"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Maximum number of items (maxItems): 2

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
i2s2: audio-controller@4000b000 {
    compatible = "st,stm32h7-i2s";
    #sound-dai-cells = <0>;
    reg = <0x4000b000 0x400>;
    clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
    clock-names = "pclk", "i2sclk", "x8k", "x11k";
    interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
    dmas = <&dmamux1 39 0x400 0x01>,
           <&dmamux1 40 0x400 0x01>;
    dma-names = "rx", "tx";
    pinctrl-names = "default";
    pinctrl-0 = <&i2s2_pins_a>;

    /* assume audio-graph */
    port {
        codec_endpoint: endpoint {
            remote-endpoint = <&codec_endpoint>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

STMicroelectronics STM32 Serial Audio Interface (SAI)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/st,stm32-sai.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Olivier Moysan <olivier.moysan@foss.st.com>"

The SAI interface (Serial Audio Interface) offers a wide set of audio protocols as I2S standards, LSB or MSB-justified, PCM/DSP, TDM, and AC'97. The SAI contains two independent audio sub-blocks. Each sub-block has its own clock generator and I/O lines controller.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "st,stm32f4-sai", "st,stm32h7-sai", "st,stm32mp25-sai"

reg — required here #

Array item rules (items) #

Item 1

Base address and size of SAI common register set.

Item 2

Base address and size of SAI identification register set.

Minimum number of items (minItems): 1

ranges — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

access-controllers — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Required in this object (required): "compatible", "reg", "ranges", "#address-cells", "#size-cells", "clocks", "clock-names"

Properties matching a name pattern (patternProperties) #

^audio-controller@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Two subnodes corresponding to SAI sub-block instances A et B can be defined. Subnode can be omitted for unused sub-block.

Properties and child nodes (properties) #

compatible — required here

Compatible for SAI sub-block A or B.

String pattern (pattern): "^st,stm32-sai-sub-[ab]$"

#sound-dai-cells — required here

Exact value (const): 0

reg — required here

Maximum number of items (maxItems): 1

clocks — required here

Array item rules (items)

Item 1

sai_ck clock feeding the internal clock generator.

Item 2

MCLK clock from a SAI set as master clock provider.

Minimum number of items (minItems): 1

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "sai_ck"

Item 2

Exact value (const): "MCLK"

Minimum number of items (minItems): 1

dmas — required here

Maximum number of items (maxItems): 1

dma-names — required here

rx: SAI sub-block is configured as a capture DAI. tx: SAI sub-block is configured as a playback DAI.

Allowed values (enum): "rx", "tx"

st,sync — not listed as required here

Configure the SAI sub-block as slave of another SAI sub-block. By default SAI sub-block is in asynchronous mode. Must contain the phandle and index of the SAI sub-block providing the synchronization.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items)

Item 1

Array item rules (items)

Item 1

phandle of the SAI sub-block

Item 2

index of the SAI sub-block

st,iec60958 — not listed as required here

If set, support S/PDIF IEC6958 protocol for playback. IEC60958 protocol is not available for capture. By default, custom protocol is assumed, meaning that protocol is configured according to protocol defined in related DAI link node, such as i2s, left justified, right justified, dsp and pdm protocols.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

#clock-cells — not listed as required here

Configure the SAI device as master clock provider.

Exact value (const): 0

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", "#sound-dai-cells", "reg", "clocks", "clock-names", "dmas", "dma-names"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "st,stm32f4-sai"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

x8k, SAI parent clock for sampling rates multiple of 8kHz.

Item 2

x11k, SAI parent clock for sampling rates multiple of 11.025kHz.

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "x8k"

Item 2

Exact value (const): "x11k"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "st,stm32h7-sai"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

pclk feeds the peripheral bus interface.

Item 2

x8k, SAI parent clock for sampling rates multiple of 8kHz.

Item 3

x11k, SAI parent clock for sampling rates multiple of 11.025kHz.

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "x8k"

Item 3

Exact value (const): "x11k"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "st,stm32mp25-sai"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

pclk feeds the peripheral bus interface.

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pclk"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
#include <dt-bindings/reset/stm32mp1-resets.h>
sai2: sai@4400b000 {
  compatible = "st,stm32h7-sai";
  #address-cells = <1>;
  #size-cells = <1>;
  ranges = <0 0x4400b000 0x400>;
  reg = <0x4400b000 0x4>, <0x4400b3f0 0x10>;
  clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
  clock-names = "pclk", "x8k", "x11k";
  pinctrl-names = "default", "sleep";
  pinctrl-0 = <&sai2a_pins_a>, <&sai2b_pins_b>;
  pinctrl-1 = <&sai2a_sleep_pins_a>, <&sai2b_sleep_pins_b>;

  sai2a: audio-controller@4400b004 {
    #sound-dai-cells = <0>;
    compatible = "st,stm32-sai-sub-a";
    reg = <0x4 0x1c>;
    dmas = <&dmamux1 89 0x400 0x01>;
    dma-names = "tx";
    clocks = <&rcc SAI2_K>;
    clock-names = "sai_ck";
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

STMicroelectronics STM32 S/PDIF receiver (SPDIFRX)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/st,stm32-spdifrx.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Olivier Moysan <olivier.moysan@foss.st.com>"

The SPDIFRX peripheral, is designed to receive an S/PDIF flow compliant with IEC-60958 and IEC-61937.

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): "st,stm32h7-spdifrx"

#sound-dai-cells — required here #

Exact value (const): 0

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "kclk"

interrupts — required here #

Maximum number of items (maxItems): 1

dmas — required here #

Array item rules (items) #

Item 1

audio data capture DMA

Item 2

IEC status bits capture DMA

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "rx-ctrl"

resets — 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.

access-controllers — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Required in this object (required): "compatible", "#sound-dai-cells", "reg", "clocks", "clock-names", "interrupts", "dmas", "dma-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
spdifrx: spdifrx@40004000 {
    compatible = "st,stm32h7-spdifrx";
    #sound-dai-cells = <0>;
    reg = <0x40004000 0x400>;
    clocks = <&rcc SPDIF_K>;
    clock-names = "kclk";
    interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
    dmas = <&dmamux1 2 93 0x400 0x0>,
           <&dmamux1 3 94 0x400 0x0>;
    dma-names = "rx", "rx-ctrl";
    pinctrl-0 = <&spdifrx_pins>;
    pinctrl-names = "default";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

StarFive JH7110 PWM-DAC Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/starfive,jh7110-pwmdac.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The PWM-DAC Controller uses PWM square wave generators plus RC filters to form a DAC for audio play in StarFive JH7110 SoC. This audio play controller supports 16 bit audio format, up to 48K sampling frequency, up to left and right dual channels.

Maintainers (maintainers): "Hal Feng <hal.feng@starfivetech.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "starfive,jh7110-pwmdac"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

PWMDAC APB

Item 2

PWMDAC CORE

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "core"

resets — required here #

Maximum number of items (maxItems): 1

PWMDAC APB

dmas — required here #

Maximum number of items (maxItems): 1

TX DMA Channel

dma-names — required here #

Exact value (const): "tx"

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "dmas", "dma-names", "#sound-dai-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwmdac@100b0000 {
    compatible = "starfive,jh7110-pwmdac";
    reg = <0x100b0000 0x1000>;
    clocks = <&syscrg 157>,
             <&syscrg 158>;
    clock-names = "apb", "core";
    resets = <&syscrg 96>;
    dmas = <&dma 22>;
    dma-names = "tx";
    #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

StarFive JH7110 TDM Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/starfive,jh7110-tdm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The TDM Controller is a Time Division Multiplexed audio interface integrated in StarFive JH7110 SoC, allowing up to 8 channels of audio over a serial interface. The TDM controller can operate both in master and slave mode.

Maintainers (maintainers): "Walker Chen <walker.chen@starfivetech.com>"

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): "starfive,jh7110-tdm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

TDM AHB Clock

Item 2

TDM APB Clock

Item 3

TDM Internal Clock

Item 4

TDM Clock

Item 5

Inner MCLK

Item 6

TDM External Clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tdm_ahb"

Item 2

Exact value (const): "tdm_apb"

Item 3

Exact value (const): "tdm_internal"

Item 4

Exact value (const): "tdm"

Item 5

Exact value (const): "mclk_inner"

Item 6

Exact value (const): "tdm_ext"

resets — required here #

Array item rules (items) #

Item 1

tdm ahb reset line

Item 2

tdm apb reset line

Item 3

tdm core reset line

dmas — required here #

Array item rules (items) #

Item 1

RX DMA Channel

Item 2

TX DMA Channel

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "dmas", "dma-names", "#sound-dai-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

tdm@10090000 {
    compatible = "starfive,jh7110-tdm";
    reg = <0x10090000 0x1000>;
    clocks = <&syscrg 184>,
             <&syscrg 185>,
             <&syscrg 186>,
             <&syscrg 187>,
             <&syscrg 17>,
             <&tdm_ext>;
    clock-names = "tdm_ahb", "tdm_apb",
                  "tdm_internal", "tdm",
                  "mclk_inner", "tdm_ext";
    resets = <&syscrg 105>,
             <&syscrg 107>,
             <&syscrg 106>;
    dmas = <&dma 20>, <&dma 21>;
    dma-names = "rx","tx";
    #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Test Component

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/test-component.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "test-cpu", "test-cpu-verbose", "test-cpu-verbose-dai", "test-cpu-verbose-component", "test-codec", "test-codec-verbose", "test-codec-verbose-dai", "test-codec-verbose-component"

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Examples (examples) #

test_cpu {
    compatible = "test-cpu";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Texas Instruments J721e Common Processor Board Audio Support

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,j721e-cpb-audio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Peter Ujfalusi <peter.ujfalusi@gmail.com>"

The audio support on the board is using pcm3168a codec connected to McASP10 serializers in parallel setup. The pcm3168a SCKI clock is sourced from j721e AUDIO_REFCLK2 pin. In order to support 48KHz and 44.1KHz family of sampling rates the parent clock for AUDIO_REFCLK2 needs to be changed between PLL4 (for 48KHz) and PLL15 (for 44.1KHz). The same PLLs are used for McASP10's AUXCLK clock via different HSDIVIDER.

Clocking setup for j721e:
  48KHz family:
  PLL4 ---> PLL4_HSDIV0 ---> MCASP10_AUXCLK ---> McASP10.auxclk
        |-> PLL4_HSDIV2 ---> AUDIO_REFCLK2  ---> pcm3168a.SCKI
  44.1KHz family:
  PLL15 ---> PLL15_HSDIV0 ---> MCASP10_AUXCLK ---> McASP10.auxclk
         |-> PLL15_HSDIV2 ---> AUDIO_REFCLK2  ---> pcm3168a.SCKI
Clocking setup for j7200:
  48KHz family:
  PLL4 ---> PLL4_HSDIV0 ---> MCASP0_AUXCLK ---> McASP0.auxclk
        |-> PLL4_HSDIV2 ---> AUDIO_REFCLK2  ---> pcm3168a.SCKI

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,j721e-cpb-audio", "ti,j7200-cpb-audio"

model — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

User specified audio sound card name

ti,cpb-mcasp — required here #

phandle to McASP used on CPB

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

ti,cpb-codec — required here #

phandle to the pcm3168a codec used on the CPB

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

clocks — required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 6

clock-names — required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 6

Required in this object (required): "compatible", "model", "ti,cpb-mcasp", "ti,cpb-codec", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ti,j721e-cpb-audio"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

AUXCLK clock for McASP used by CPB audio

Item 2

Parent for CPB_McASP auxclk (for 48KHz)

Item 3

Parent for CPB_McASP auxclk (for 44.1KHz)

Item 4

SCKI clock for the pcm3168a codec on CPB

Item 5

Parent for CPB_SCKI clock (for 48KHz)

Item 6

Parent for CPB_SCKI clock (for 44.1KHz)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "cpb-mcasp-auxclk"

Item 2

Exact value (const): "cpb-mcasp-auxclk-48000"

Item 3

Exact value (const): "cpb-mcasp-auxclk-44100"

Item 4

Exact value (const): "cpb-codec-scki"

Item 5

Exact value (const): "cpb-codec-scki-48000"

Item 6

Exact value (const): "cpb-codec-scki-44100"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ti,j7200-cpb-audio"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

AUXCLK clock for McASP used by CPB audio

Item 2

Parent for CPB_McASP auxclk (for 48KHz)

Item 3

SCKI clock for the pcm3168a codec on CPB

Item 4

Parent for CPB_SCKI clock (for 48KHz)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "cpb-mcasp-auxclk"

Item 2

Exact value (const): "cpb-mcasp-auxclk-48000"

Item 3

Exact value (const): "cpb-codec-scki"

Item 4

Exact value (const): "cpb-codec-scki-48000"

Examples (examples) #

sound {
    compatible = "ti,j721e-cpb-audio";
    model = "j721e-cpb";

    ti,cpb-mcasp = <&mcasp10>;
    ti,cpb-codec = <&pcm3168a_1>;

    clocks = <&k3_clks 184 1>,
             <&k3_clks 184 2>, <&k3_clks 184 4>,
             <&k3_clks 157 371>,
             <&k3_clks 157 400>, <&k3_clks 157 401>;
    clock-names = "cpb-mcasp-auxclk",
                  "cpb-mcasp-auxclk-48000", "cpb-mcasp-auxclk-44100",
                  "cpb-codec-scki",
                  "cpb-codec-scki-48000", "cpb-codec-scki-44100";
};

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) 2020 Texas Instruments Incorporated

Line 3: Author: Peter Ujfalusi <peter.ujfalusi@ti.com>

Texas Instruments J721e Common Processor Board Audio Support

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,j721e-cpb-ivi-audio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Peter Ujfalusi <peter.ujfalusi@gmail.com>"

The Infotainment board plugs into the Common Processor Board, the support of the extension board is extending the CPB audio support, described in: sound/ti,j721e-cpb-audio.txt

The audio support on the Infotainment Expansion Board consists of McASP0 connected to two pcm3168a codecs with dedicated set of serializers to each. The SCKI for pcm3168a is sourced from j721e AUDIO_REFCLK0 pin.

In order to support 48KHz and 44.1KHz family of sampling rates the parent clock for AUDIO_REFCLK0 needs to be changed between PLL4 (for 48KHz) and PLL15 (for 44.1KHz). The same PLLs are used for McASP0's AUXCLK clock via different HSDIVIDER.

Note: the same PLL4 and PLL15 is used by the audio support on the CPB!

Clocking setup for 48KHz family:
PLL4 ---> PLL4_HSDIV0 ---> MCASP10_AUXCLK ---> McASP10.auxclk
      |                |-> MCASP0_AUXCLK  ---> McASP0.auxclk
      |
      |-> PLL4_HSDIV2 ---> AUDIO_REFCLK2  ---> pcm3168a.SCKI
                       |-> AUDIO_REFCLK0  ---> pcm3168a_a/b.SCKI
Clocking setup for 44.1KHz family:
PLL15 ---> PLL15_HSDIV0 ---> MCASP10_AUXCLK ---> McASP10.auxclk
      |                  |-> MCASP0_AUXCLK  ---> McASP0.auxclk
      |
      |-> PLL15_HSDIV2 ---> AUDIO_REFCLK2   ---> pcm3168a.SCKI
                        |-> AUDIO_REFCLK0   ---> pcm3168a_a/b.SCKI

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "ti,j721e-cpb-ivi-audio"

model — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

User specified audio sound card name

ti,cpb-mcasp — required here #

phandle to McASP used on CPB

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

ti,cpb-codec — required here #

phandle to the pcm3168a codec used on the CPB

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

ti,ivi-mcasp — required here #

phandle to McASP used on IVI

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

ti,ivi-codec-a — required here #

phandle to the pcm3168a-A codec on the expansion board

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

ti,ivi-codec-b — required here #

phandle to the pcm3168a-B codec on the expansion board

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

clocks — required here #

Array item rules (items) #

Item 1

AUXCLK clock for McASP used by CPB audio

Item 2

Parent for CPB_McASP auxclk (for 48KHz)

Item 3

Parent for CPB_McASP auxclk (for 44.1KHz)

Item 4

SCKI clock for the pcm3168a codec on CPB

Item 5

Parent for CPB_SCKI clock (for 48KHz)

Item 6

Parent for CPB_SCKI clock (for 44.1KHz)

Item 7

AUXCLK clock for McASP used by IVI audio

Item 8

Parent for IVI_McASP auxclk (for 48KHz)

Item 9

Parent for IVI_McASP auxclk (for 44.1KHz)

Item 10

SCKI clock for the pcm3168a codec on IVI

Item 11

Parent for IVI_SCKI clock (for 48KHz)

Item 12

Parent for IVI_SCKI clock (for 44.1KHz)

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "cpb-mcasp-auxclk"

Item 2

Exact value (const): "cpb-mcasp-auxclk-48000"

Item 3

Exact value (const): "cpb-mcasp-auxclk-44100"

Item 4

Exact value (const): "cpb-codec-scki"

Item 5

Exact value (const): "cpb-codec-scki-48000"

Item 6

Exact value (const): "cpb-codec-scki-44100"

Item 7

Exact value (const): "ivi-mcasp-auxclk"

Item 8

Exact value (const): "ivi-mcasp-auxclk-48000"

Item 9

Exact value (const): "ivi-mcasp-auxclk-44100"

Item 10

Exact value (const): "ivi-codec-scki"

Item 11

Exact value (const): "ivi-codec-scki-48000"

Item 12

Exact value (const): "ivi-codec-scki-44100"

Required in this object (required): "compatible", "model", "ti,cpb-mcasp", "ti,cpb-codec", "ti,ivi-mcasp", "ti,ivi-codec-a", "ti,ivi-codec-b", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "ti,j721e-cpb-ivi-audio";
    model = "j721e-cpb-ivi";

    ti,cpb-mcasp = <&mcasp10>;
    ti,cpb-codec = <&pcm3168a_1>;

    ti,ivi-mcasp = <&mcasp0>;
    ti,ivi-codec-a = <&pcm3168a_a>;
    ti,ivi-codec-b = <&pcm3168a_b>;

    clocks = <&k3_clks 184 1>,
             <&k3_clks 184 2>, <&k3_clks 184 4>,
             <&k3_clks 157 371>,
             <&k3_clks 157 400>, <&k3_clks 157 401>,
             <&k3_clks 174 1>,
             <&k3_clks 174 2>, <&k3_clks 174 4>,
             <&k3_clks 157 301>,
             <&k3_clks 157 330>, <&k3_clks 157 331>;
    clock-names = "cpb-mcasp-auxclk",
                  "cpb-mcasp-auxclk-48000", "cpb-mcasp-auxclk-44100",
                  "cpb-codec-scki",
                  "cpb-codec-scki-48000", "cpb-codec-scki-44100",
                  "ivi-mcasp-auxclk",
                  "ivi-mcasp-auxclk-48000", "ivi-mcasp-auxclk-44100",
                  "ivi-codec-scki",
                  "ivi-codec-scki-48000", "ivi-codec-scki-44100";
};

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) 2020 Texas Instruments Incorporated

Line 3: Author: Peter Ujfalusi <peter.ujfalusi@ti.com>

Texas Instruments SoC with twl4030 based audio setups

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,omap-twl4030.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Peter Ujfalusi <peter.ujfalusi@gmail.com>"

Audio setups on TI OMAP SoCs using TWL4030-family audio codec connected via a McBSP port.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,omap-twl4030"

ti,model — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Name of the sound card (for example "omap3beagle").

ti,mcbsp — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle for the McBSP node.

ti,codec — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle for the twl4030 audio node.

ti,mcbsp-voice — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle to the McBSP node connected to the voice port.

ti,jack-det-gpio — not listed as required here #

GPIO specifier for jack detection.

Maximum number of items (maxItems): 1

ti,audio-routing — not listed as required here #

A list of audio routing connections. Each entry is a pair of strings, with the first being the connection's sink and the second being the source. If not provided, all possible connections are available.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

Array item rules (items) #

Allowed values (enum): "Headset Stereophone", "Earpiece Spk", "Handsfree Spk", "Ext Spk", "Main Mic", "Sub Mic", "Headset Mic", "Carkit Mic", "Digital0 Mic", "Digital1 Mic", "Line In", "HSOL", "HSOR", "EARPIECE", "HFL", "HFR", "PREDRIVEL", "PREDRIVER", "CARKITL", "CARKITR", "MAINMIC", "SUBMIC", "HSMIC", "DIGIMIC0", "DIGIMIC1", "CARKITMIC", "AUXL", "AUXR", "Mic Bias 1", "Mic Bias 2"

Required in this object (required): "compatible", "ti,model", "ti,mcbsp"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "ti,omap-twl4030";
    ti,model = "omap3beagle";
    ti,mcbsp = <&mcbsp2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Line 49: Board Connectors

Line 62: CODEC Pins

Line 81: Headset Mic Bias

Line 82: Used for Main Mic or Digimic0

Line 83: Used for Sub Mic or Digimic1

OMAP McPDM

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,omap4-mcpdm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Misael Lopez Cruz <misael.lopez@ti.com>"

OMAP ALSA SoC DAI driver using McPDM port used by TWL6040

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,omap4-mcpdm"

reg — required here #

Array item rules (items) #

Item 1

MPU access base address

Item 2

L3 interconnect address

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mpu"

Item 2

Exact value (const): "dma"

interrupts — required here #

Maximum number of items (maxItems): 1

dmas — required here #

Maximum number of items (maxItems): 2

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "up_link"

Item 2

Exact value (const): "dn_link"

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pdmclk"

Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "dmas", "dma-names", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
mcpdm@0 {
  compatible = "ti,omap4-mcpdm";
  reg = <0x0 0x7f>, /* MPU private access */
        <0x49032000 0x7f>; /* L3 Interconnect */
  reg-names = "mpu", "dma";
  interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
  interrupt-parent = <&gic>;
  dmas = <&sdma 65>, <&sdma 66>;
  dma-names = "up_link", "dn_link";
  clocks = <&twl6040>;
  clock-names = "pdmclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Texas Instruments PCM1681 8-channel Digital-to-Analog Converter

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,pcm1681.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>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,pcm1681"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — not listed as required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    pcm1681: audio-codec@4c {
        compatible = "ti,pcm1681";
        reg = <0x4c>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Texas Instruments PCM1754 Stereo DAC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,pcm1754.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The PCM1754 is a simple stereo DAC that is controlled via hardware gpios.

Maintainers (maintainers): "Stefan Kerkmann <s.kerkmann@pengutronix.de>"

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,pcm1754"

vcc-supply — required here #

true — No constraints added by this property rule.

#sound-dai-cells — required here #

Exact value (const): 0

format-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO used to select the PCM format

mute-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO used to mute all outputs

Required in this object (required): "compatible", "#sound-dai-cells", "vcc-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>
codec {
  compatible = "ti,pcm1754";
  #sound-dai-cells = <0>;

  vcc-supply = <&vcc_reg>;
  mute-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  format-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Texas Instruments PCM186x Universal Audio ADC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,pcm1862.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Ranganath V N <vnranganath.20@gmail.com>"

The Texas Instruments PCM186x family are multi-channel audio ADCs that support both I2C and SPI control interfaces, selected by pin strapping. These devices include on-chip programmable gain amplifiers and support differential or single-ended analog inputs.

CODEC input pins:
  * VINL1
  * VINR1
  * VINL2
  * VINR2
  * VINL3
  * VINR3
  * VINL4
  * VINR4

The pins can be used in referring sound node's audio-routing property.

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,pcm1862", "ti,pcm1863", "ti,pcm1864", "ti,pcm1865"

reg — required here #

Maximum number of items (maxItems): 1

avdd-supply — required here #

true — No constraints added by this property rule.

dvdd-supply — required here #

true — No constraints added by this property rule.

iovdd-supply — required here #

true — No constraints added by this property rule.

#sound-dai-cells — not listed as required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "avdd-supply", "dvdd-supply", "iovdd-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    audio-codec@4a {
        compatible = "ti,pcm1865";
        reg = <0x4a>;

        avdd-supply = <&reg_3v3_analog>;
        dvdd-supply = <&reg_3v3>;
        iovdd-supply = <&reg_1v8>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Texas Instruments PCM3168A Audio Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,pcm3168a.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Damien Horsley <Damien.Horsley@imgtec.com>", "Geert Uytterhoeven <geert+renesas@glider.be>", "Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>"

The Texas Instruments PCM3168A is a 24-bit Multi-channel Audio CODEC with 96/192kHz sampling rate, supporting both SPI and I2C bus access.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,pcm3168a"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

System clock input

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "scki"

reset-gpios — not listed as required here #

Array item rules (items) #

Item 1

GPIO line connected to the active-low RST pin of the codec.
  RST = low: device power-down
  RST = high: device is enabled

#sound-dai-cells — not listed as required here #

Allowed values (enum): 0, 1

VDD1-supply — required here #

Digital power supply regulator 1 (+3.3V)

VDD2-supply — required here #

Digital power supply regulator 2 (+3.3V)

VCCAD1-supply — required here #

ADC power supply regulator 1 (+5V)

VCCAD2-supply — required here #

ADC power supply regulator 2 (+5V)

VCCDA1-supply — required here #

DAC power supply regulator 1 (+5V)

VCCDA2-supply — required here #

DAC power supply regulator 2 (+5V)

ports — not listed as required here #

Shared schema rule ($ref): audio-graph-port.yaml#/definitions/port-base

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

port@0 — not listed as required here

Shared schema rule ($ref): audio-graph-port.yaml#

Audio input port.

port@1 — not listed as required here

Shared schema rule ($ref): audio-graph-port.yaml#

Audio output port.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "VDD1-supply", "VDD2-supply", "VCCAD1-supply", "VCCAD2-supply", "VCCDA1-supply", "VCCDA2-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>;

    pcm3168a: audio-codec@44 {
        compatible = "ti,pcm3168a";
        reg = <0x44>;
        reset-gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
        clocks = <&clk_core 42>;
        clock-names = "scki";
        VDD1-supply = <&supply3v3>;
        VDD2-supply = <&supply3v3>;
        VCCAD1-supply = <&supply5v0>;
        VCCAD2-supply = <&supply5v0>;
        VCCDA1-supply = <&supply5v0>;
        VCCDA2-supply = <&supply5v0>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

PCM512x and TAS575x audio CODECs/amplifiers

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,pcm512x.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Animesh Agarwal <animeshagarwal28@gmail.com>"

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,pcm5121", "ti,pcm5122", "ti,pcm5141", "ti,pcm5142", "ti,pcm5242", "ti,tas5754", "ti,tas5756"

reg — required here #

Maximum number of items (maxItems): 1

AVDD-supply — required here #

true — No constraints added by this property rule.

DVDD-supply — required here #

true — No constraints added by this property rule.

CPVDD-supply — required here #

true — No constraints added by this property rule.

clocks — not listed as required here #

Maximum number of items (maxItems): 1

A clock specifier for the clock connected as SCLK. If this is absent the device will be configured to clock from BCLK. If pll-in and pll-out are specified in addition to a clock, the device is configured to accept clock input on a specified gpio pin.

#sound-dai-cells — not listed as required here #

Exact value (const): 0

pll-in — not listed as required here #

GPIO pin used to connect the pll using <1> through <6>. The device will be configured for clock input on the given pll-in pin.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 1

Maximum value (maximum): 6

pll-out — not listed as required here #

GPIO pin used to connect the pll using <1> through <6>. The device will be configured for PLL output on the given pll-out pin. An external connection from the pll-out pin to the SCLK pin is assumed.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 1

Maximum value (maximum): 6

Required in this object (required): "compatible", "reg", "AVDD-supply", "DVDD-supply", "CPVDD-supply"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "ti,tas5754", "ti,tas5756"

When the condition matches (then) #

Properties and child nodes (properties) #

pll-in — not listed as required here #

Maximum value (maximum): 3

pll-out — not listed as required here #

Maximum value (maximum): 3

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@4c {
        compatible = "ti,pcm5142";
        reg = <0x4c>;
        AVDD-supply = <&reg_3v3_analog>;
        DVDD-supply = <&reg_1v8>;
        CPVDD-supply = <&reg_3v3>;
        #sound-dai-cells = <0>;
        clocks = <&sck>;
        pll-in = <3>;
        pll-out = <6>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Texas Instruments PCM6240 Family Audio ADC/DAC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,pcm6240.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shenghao Ding <shenghao-ding@ti.com>"

The PCM6240 Family is a big family of Audio ADC/DAC for different Specifications, range from Personal Electric to Automotive Electric, even some professional fields.

Specifications about the audio chip can be found at:
  https://www.ti.com/lit/gpn/tlv320adc3120
  https://www.ti.com/lit/gpn/tlv320adc5120
  https://www.ti.com/lit/gpn/tlv320adc6120
  https://www.ti.com/lit/gpn/dix4192
  https://www.ti.com/lit/gpn/pcm1690
  https://www.ti.com/lit/gpn/pcm3120-q1
  https://www.ti.com/lit/gpn/pcm3140-q1
  https://www.ti.com/lit/gpn/pcm5120-q1
  https://www.ti.com/lit/gpn/pcm6120-q1
  https://www.ti.com/lit/gpn/pcm6260-q1
  https://www.ti.com/lit/gpn/pcm9211
  https://www.ti.com/lit/gpn/pcmd3140
  https://www.ti.com/lit/gpn/pcmd3180
  https://www.ti.com/lit/gpn/taa5212
  https://www.ti.com/lit/gpn/tad5212

Properties and child nodes (properties) #

compatible — required here #

ti,adc3120: Stereo-channel, 768-kHz, Burr-Brown™ audio analog-to- digital converter (ADC) with 106-dB SNR.

ti,adc5120: 2-Channel, 768-kHz, Burr-Brown™ Audio ADC with 120-dB SNR.

ti,adc6120: Stereo-channel, 768-kHz, Burr-Brown™ audio analog-to- digital converter (ADC) with 123-dB SNR.

ti,dix4192: 216-kHz digital audio converter with Quad-Channel In and One-Channel Out.

ti,pcm1690: Automotive Catalog 113dB SNR 8-Channel Audio DAC with Differential Outputs.

ti,pcm3120: Automotive, stereo, 106-dB SNR, 768-kHz, low-power software-controlled audio ADC.

ti,pcm3140: Automotive, Quad-Channel, 768-kHz, Burr-Brown™ Audio ADC with 106-dB SNR.

ti,pcm5120: Automotive, stereo, 120-dB SNR, 768-kHz, low-power software-controlled audio ADC.

ti,pcm5140: Automotive, Quad-Channel, 768-kHz, Burr-Brown™ Audio ADC with 120-dB SNR.

ti,pcm6120: Automotive, stereo, 123-dB SNR, 768-kHz, low-power software-controlled audio ADC.

ti,pcm6140: Automotive, Quad-Channel, 768-kHz, Burr-Brown™ Audio ADC with 123-dB SNR.

ti,pcm6240: Automotive 4-ch audio ADC with integrated programmable mic bias, boost and input diagnostics.

ti,pcm6260: Automotive 6-ch audio ADC with integrated programmable mic bias, boost and input diagnostics.

ti,pcm9211: 216-kHz digital audio converter With Stereo ADC and Routing.

ti,pcmd3140: Four-channel PDM-input to TDM or I2S output converter.

ti,pcmd3180: Eight-channel pulse-density-modulation input to TDM or I2S output converter.

ti,taa5212: Low-power high-performance stereo audio ADC with 118-dB dynamic range.

ti,tad5212: Low-power stereo audio DAC with 120-dB dynamic range.

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "ti,adc3120", "ti,adc5120", "ti,pcm3120", "ti,pcm5120", "ti,pcm6120"

Item 2

Exact value (const): "ti,adc6120"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "ti,pcmd512x", "ti,pcm9211", "ti,taa5212", "ti,tad5212"

Item 2

Exact value (const): "ti,adc6120"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "ti,pcm3140", "ti,pcm5140", "ti,dix4192", "ti,pcm6140", "ti,pcm6260"

Item 2

Exact value (const): "ti,pcm6240"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "ti,pcmd3140", "ti,pcmd3180", "ti,pcm1690", "ti,taa5412", "ti,tad5412"

Item 2

Exact value (const): "ti,pcm6240"

Rule 5

Allowed values (enum): "ti,adc6120", "ti,pcm6240"

reg — required here #

I2C address, in multiple pcmdevices case, all the i2c address aggregate as one Audio Device to support multiple audio slots.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Invalid only for ti,pcm1690 because of no INT pin.

#sound-dai-cells — not listed as required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,pcm1690"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

false — Not permitted by this property rule.

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 {
    /* example for two devices with interrupt support */
    #address-cells = <1>;
    #size-cells = <0>;

    audio-codec@48 {
        compatible = "ti,pcm6240";
        reg = <0x48>, /* primary-device */
              <0x4b>; /* secondary-device */
        #sound-dai-cells = <0>;
        reset-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
        interrupt-parent = <&gpio1>;
        interrupts = <15>;
    };
};

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 - 2024 Texas Instruments Incorporated

Texas Instruments SRC4392

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,src4xxx.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The SRC4392 is a digital audio codec that can be connected via I2C or SPI. Currently, only I2C bus is supported.

Maintainers (maintainers): "Matt Flax <flatmax@flatmax.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,src4392"

#sound-dai-cells — required here #

Exact value (const): 0

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "#sound-dai-cells", "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    audio-codec@70 {
        #sound-dai-cells = <0>;
        compatible = "ti,src4392";
        reg = <0x70>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Texas Instruments TAS2552 Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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)

Texas Instruments TAS2562 Smart PA

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,tas2562.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Andrew Davis <afd@ti.com>"

The TAS2562 is a mono, digital input Class-D audio amplifier optimized for efficiently driving high peak power into small loudspeakers. Integrated speaker voltage and current sense provides for real time monitoring of loudspeaker behavior.

Specifications about the audio amplifier can be found at:
  https://www.ti.com/lit/gpn/tas2562
  https://www.ti.com/lit/gpn/tas2564
  https://www.ti.com/lit/gpn/tas2110

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,tas2562", "ti,tas2564", "ti,tas2110"

reg — required here #

Maximum number of items (maxItems): 1

I2C address of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f

shut-down-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO used to control the state of the device.

Deprecated (deprecated): true

shutdown-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO used to control the state of the device.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

ti,imon-slot-no — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

TDM TX current sense time slot.

#sound-dai-cells — not listed as required here #

Allowed values (enum): 0, 1

Required in this object (required): "compatible", "reg"

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>;

    codec@4c {
        compatible = "ti,tas2562";
        reg = <0x4c>;
        #sound-dai-cells = <0>;
        interrupt-parent = <&gpio1>;
        interrupts = <14>;
        shutdown-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
        ti,imon-slot-no = <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) 2019 Texas Instruments Incorporated

Line 56: The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward

Line 57: compatibility but is deprecated.

Texas Instruments TAS2770 Smart PA

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,tas2770.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shi Fu <shifu0704@thundersoft.com>"

The TAS2770 is a mono, digital input Class-D audio amplifier optimized for efficiently driving high peak power into small loudspeakers. Integrated speaker voltage and current sense provides for real time monitoring of loudspeaker behavior.

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,tas2770", "ti,tas5770l"

reg — required here #

Maximum number of items (maxItems): 1

I2C address of the device can be between 0x41 to 0x48.

reset-gpio — not listed as required here #

Maximum number of items (maxItems): 1

GPIO used to reset the device.

shutdown-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO used to control the state of the device.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

ti,imon-slot-no — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

TDM TX current sense time slot.

ti,vmon-slot-no — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

TDM TX voltage sense time slot.

ti,asi-format — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Sets TDM RX capture edge.

Allowed values (enum): 0, 1

#sound-dai-cells — not listed as required here #

Allowed values (enum): 0, 1

Required in this object (required): "compatible", "reg"

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>;

    codec@41 {
        compatible = "ti,tas2770";
        reg = <0x41>;
        #sound-dai-cells = <0>;
        interrupt-parent = <&gpio1>;
        interrupts = <14>;
        reset-gpio = <&gpio1 15 GPIO_ACTIVE_HIGH>;
        shutdown-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
        ti,imon-slot-no = <0>;
        ti,vmon-slot-no = <2>;
    };
};

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-20 Texas Instruments Incorporated

Line 26: Apple variant

Line 57: Rising edge

Line 58: Falling edge

Line 61: The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward

Line 62: compatibility but is deprecated.

Texas Instruments TAS2563/TAS2781 SmartAMP

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,tas2781.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shenghao Ding <shenghao-ding@ti.com>"

The TAS2118/TAS2X20 is mono, digital input Class-D audio amplifier optimized for efficiently driving high peak power into small loudspeakers. The TAS257x is mono, digital input Class-D audio amplifier optimized for efficiently driving high peak power into small loudspeakers. Integrated speaker voltage and current sense provides for real time monitoring of loudspeaker behavior. The TAS2563/TAS2781 is a mono, digital input Class-D audio amplifier optimized for efficiently driving high peak power into small loudspeakers. An integrated on-chip DSP supports Texas Instruments Smart Amp speaker protection algorithm. The integrated speaker voltage and current sense provides for real time monitoring of loudspeaker behavior. The TAS5802/TAS5815/TAS5822/TAS5825/TAS5827/TAS5828 is a stereo, digital input Class-D audio amplifier optimized for efficiently driving high peak power into small loudspeakers. An integrated on-chip DSP supports Texas Instruments Smart Amp speaker protection algorithm.

Specifications about the audio amplifier can be found at:
  https://www.ti.com/lit/gpn/tas2120
  https://www.ti.com/lit/gpn/tas2320
  https://www.ti.com/lit/gpn/tas2563
  https://www.ti.com/lit/gpn/tas2572
  https://www.ti.com/lit/gpn/tas2574
  https://www.ti.com/lit/gpn/tas2781
  https://www.ti.com/lit/gpn/tas5806m
  https://www.ti.com/lit/gpn/tas5806md
  https://www.ti.com/lit/gpn/tas5815
  https://www.ti.com/lit/gpn/tas5822m
  https://www.ti.com/lit/gpn/tas5825m
  https://www.ti.com/lit/gpn/tas5827
  https://www.ti.com/lit/gpn/tas5828m
  https://www.ti.com/lit/gpn/tas5830

Properties and child nodes (properties) #

compatible — required here #

ti,tas2020: 3.2-W Mono Digital Input Class-D Speaker Amp with 5.5V PVDD Support.

ti,tas2118: 5-W Mono Digital Input Class-D Speaker Amp with Integrated 8.4-V Class-H Boost.

ti,tas2120: 8.2-W Mono Digital Input Class-D Speaker Amp with Integrated 14.75V Class-H Boost.

ti,tas2320: 15-W Mono Digital Input Class-D Speaker Amp with 15V Support.

ti,tas2563: 6.1-W Boosted Class-D Audio Amplifier With Integrated DSP and IV Sense, 16/20/24/32bit stereo I2S or multichannel TDM.

ti,tas2568: 5.3-W Digital Input Smart Amp with I/V Sense and Integrated 10.75-V Class-H Boost

ti,tas2570: 5.8-W Digital Input smart amp with I/V sense and integrated 11-V Class-H Boost

ti,tas2572: 6.6-W Digital Input smart amp with I/V sense and integrated 13-V Class-H Boost

ti,tas2574: 8.5-W Digital Input smart amp with I/V sense and integrated 15-V Class-H Boost

ti,tas2781: 24-V Class-D Amplifier with Real Time Integrated Speaker Protection and Audio Processing, 16/20/24/32bit stereo I2S or multichannel TDM.

ti,tas5802: 22-W, Inductor-Less, Digital Input, Closed-Loop Class-D Audio Amplifier with 96-Khz Extended Processing and Low Idle Power Dissipation.

ti,tas5806m: 23-W, Inductor-Less, Digital Input, Stereo, Closed-Loop Class-D Audio Amplifier with Enhanced Processing and Low Power Dissipation.

ti,tas5806md: 23-W, Inductor-Less, Digital Input, Stereo, Closed-Loop Class-D Audio Amplifier with Enhanced Processing and DirectPath(TM) HP Driver

ti,tas5815: 30-W, Digital Input, Stereo, Closed-loop Class-D Audio Amplifier with 96 kHz Enhanced Processing

ti,tas5822: 35-W, Digital Input, Stereo, Closed-Loop Class-D Audio Amplifier with 96 kHz Enhanced Processing

ti,tas5825: 38-W Stereo, Inductor-Less, Digital Input, Closed-Loop 4.5V to 26.4V Class-D Audio Amplifier with 192-kHz Extended Audio Processing.

ti,tas5827: 47-W Stereo, Digital Input, High Efficiency Closed-Loop Class-D Amplifier with Class-H Algorithm

ti,tas5828: 50-W Stereo, Digital Input, High Efficiency Closed-Loop Class-D Amplifier with Hybrid-Pro Algorithm

ti,tas5830: 65-W Stereo, Digital Input, High Efficiency Closed-Loop Class-D Amplifier with Class-H Algorithm

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "ti,tas2020", "ti,tas2118", "ti,tas2120", "ti,tas2320", "ti,tas2563", "ti,tas2568", "ti,tas2570", "ti,tas2572", "ti,tas2574", "ti,tas5802", "ti,tas5806m", "ti,tas5806md", "ti,tas5815", "ti,tas5822", "ti,tas5825", "ti,tas5827", "ti,tas5828", "ti,tas5830"

Item 2

Exact value (const): "ti,tas2781"

Rule 2

Allowed values (enum): "ti,tas2781"

reg — required here #

I2C address, in multiple-AMP case, all the i2c address aggregate as one Audio Device to support multiple audio slots.

Maximum number of items (maxItems): 8

Minimum number of items (minItems): 1

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — not listed as required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,tas2020", "ti,tas2118", "ti,tas2120", "ti,tas2320", "ti,tas2568", "ti,tas2574"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 4

Array item rules (items)

Minimum value (minimum): 72

Maximum value (maximum): 75

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,tas2563", "ti,tas5825"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

I2C address, in multiple-AMP case, all the i2c address aggregate as one Audio Device to support multiple audio slots.

Maximum number of items (maxItems): 4

Minimum number of items (minItems): 1

Array item rules (items)

Minimum value (minimum): 76

Maximum value (maximum): 79

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,tas2570", "ti,tas2572"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 4

Array item rules (items)

Minimum value (minimum): 72

Maximum value (maximum): 75

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,tas2781"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

I2C address, in multiple-AMP case, all the i2c address aggregate as one Audio Device to support multiple audio slots.

Maximum number of items (maxItems): 8

Minimum number of items (minItems): 1

Array item rules (items)

Minimum value (minimum): 56

Maximum value (maximum): 63

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,tas5802", "ti,tas5815"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 4

Array item rules (items)

Minimum value (minimum): 84

Maximum value (maximum): 87

Rule 7 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,tas5806m", "ti,tas5806md", "ti,tas5822"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 4

Array item rules (items)

Minimum value (minimum): 44

Maximum value (maximum): 47

Rule 8 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,tas5827", "ti,tas5828", "ti,tas5830"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 6

Array item rules (items)

Minimum value (minimum): 96

Maximum value (maximum): 101

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 {
    /* example with quad tas2781s, such as tablet or pad device */
    #address-cells = <1>;
    #size-cells = <0>;

    audio-codec@38 {
        compatible = "ti,tas2781";
        reg = <0x38>, /* Audio slot 0 */
              <0x3a>, /* Audio slot 1 */
              <0x39>, /* Audio slot 2 */
              <0x3b>; /* Audio slot 3 */

        #sound-dai-cells = <0>;
        reset-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
        interrupt-parent = <&gpio1>;
        interrupts = <15>;
    };
};

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 - 2025 Texas Instruments Incorporated

Texas Instruments TAS2764/TAS2780 Smart PA

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,tas27xx.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shenghao Ding <shenghao-ding@ti.com>"

The TAS2764/TAS2780 is a mono, digital input Class-D audio amplifier optimized for efficiently driving high peak power into small loudspeakers. Integrated speaker voltage and current sense provides for real time monitoring of loudspeaker behavior.

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,tas2764", "ti,tas2780", "ti,sn012776"

reg — required here #

Maximum number of items (maxItems): 1

I2C address of the device can be between 0x38 to 0x45.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO used to reset the device.

shutdown-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO used to control the state of the device.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

ti,imon-slot-no — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

TDM TX current sense time slot.

ti,vmon-slot-no — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

TDM TX voltage sense time slot.

#sound-dai-cells — not listed as required here #

Allowed values (enum): 0, 1

Required in this object (required): "compatible", "reg"

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>;

    codec@38 {
        compatible = "ti,tas2764";
        reg = <0x38>;
        #sound-dai-cells = <0>;
        interrupt-parent = <&gpio1>;
        interrupts = <14>;
        reset-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
        shutdown-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
        ti,imon-slot-no = <0>;
        ti,vmon-slot-no = <2>;
    };
};

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) 2020-2022 Texas Instruments Incorporated

Line 27: Apple variant of TAS2764

Line 54: The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward

Line 55: compatibility but is deprecated.

Texas Instruments TAS5711/TAS5717/TAS5719/TAS5721 stereo power amplifiers

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,tas57xx.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,tas5707", "ti,tas5711", "ti,tas5717", "ti,tas5719", "ti,tas5721", "ti,tas5733", "ti,tas5753"

reg — required here #

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO for the active low reset line

pdn-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO for the active low powerdown line

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "mclk"

AVDD-supply — not listed as required here #

true — No constraints added by this property rule.

DVDD-supply — not listed as required here #

true — No constraints added by this property rule.

HPVDD-supply — not listed as required here #

true — No constraints added by this property rule.

PVDD_AB-supply — not listed as required here #

true — No constraints added by this property rule.

PVDD_CD-supply — not listed as required here #

true — No constraints added by this property rule.

PVDD_A-supply — not listed as required here #

true — No constraints added by this property rule.

PVDD_B-supply — not listed as required here #

true — No constraints added by this property rule.

PVDD_C-supply — not listed as required here #

true — No constraints added by this property rule.

PVDD_D-supply — not listed as required here #

true — No constraints added by this property rule.

DRVDD-supply — not listed as required here #

true — No constraints added by this property rule.

PVDD-supply — not listed as required here #

true — No constraints added by this property rule.

#sound-dai-cells — required here #

Exact value (const): 0

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", "#sound-dai-cells"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,tas5717", "ti,tas5719"

When the condition matches (then) #

Properties and child nodes (properties)

PVDD_A-supply — not listed as required here

false — Not permitted by this property rule.

PVDD_B-supply — not listed as required here

false — Not permitted by this property rule.

PVDD_C-supply — not listed as required here

false — Not permitted by this property rule.

PVDD_D-supply — not listed as required here

false — Not permitted by this property rule.

DRVDD-supply — not listed as required here

false — Not permitted by this property rule.

PVDD-supply — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,tas5711"

When the condition matches (then) #

Properties and child nodes (properties)

HPVDD-supply — not listed as required here

false — Not permitted by this property rule.

PVDD_AB-supply — not listed as required here

false — Not permitted by this property rule.

PVDD_CD-supply — not listed as required here

false — Not permitted by this property rule.

DRVDD-supply — not listed as required here

false — Not permitted by this property rule.

PVDD-supply — not listed as required here

false — Not permitted by this property rule.

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,tas5721", "ti,tas5753"

When the condition matches (then) #

Properties and child nodes (properties)

HPVDD-supply — not listed as required here

false — Not permitted by this property rule.

PVDD_AB-supply — not listed as required here

false — Not permitted by this property rule.

PVDD_CD-supply — not listed as required here

false — Not permitted by this property rule.

PVDD_A-supply — not listed as required here

false — Not permitted by this property rule.

PVDD_B-supply — not listed as required here

false — Not permitted by this property rule.

PVDD_C-supply — not listed as required here

false — Not permitted by this property rule.

PVDD_D-supply — not listed as required here

false — Not permitted by this property rule.

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>;

    codec@2a {
        compatible = "ti,tas5717";
        reg = <0x2a>;
        #sound-dai-cells = <0>;
        reset-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
        pdn-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
        AVDD-supply = <&avdd_supply>;
        DVDD-supply = <&dvdd_supply>;
        HPVDD-supply = <&hpvdd_supply>;
        PVDD_AB-supply = <&pvdd_ab_supply>;
        PVDD_CD-supply = <&pvdd_cd_supply>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

TAS5805M audio amplifier

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,tas5805m.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Daniel Beer <daniel.beer@igorinstitute.com>"

The TAS5805M is a class D audio amplifier with a built-in DSP.

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "ti,tas5805m"

reg — not listed as required here #

Maximum number of items (maxItems): 1

I2C address of the amplifier. See the datasheet for possible values.

pvdd-supply — not listed as required here #

Regulator for audio power supply (PVDD in the datasheet).

pdn-gpios — not listed as required here #

Power-down control GPIO (PDN pin in the datasheet).

ti,dsp-config-name — not listed as required here #

The name of the DSP configuration that should be loaded for this instance. Configuration blobs are sequences of register writes generated from TI's PPC3 tool.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    tas5805m: tas5805m@2c {
            reg = <0x2c>;
            compatible = "ti,tas5805m";

            pvdd-supply = <&audiopwr>;
            pdn-gpios = <&tlmm 160 0>;

            ti,dsp-config-name = "mono_pbtl_48khz";
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Texas Instruments TLV320ADC3001/TLV320ADC3101 Stereo ADC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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

Texas Instruments TLV320ADCX140 Quad Channel Analog-to-Digital Converter

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,tlv320adcx140.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Andrew Davis <afd@ti.com>"

The TLV320ADCX140 are multichannel (4-ch analog recording or 8-ch digital PDM microphones recording), high-performance audio, analog-to-digital converter (ADC) with analog inputs supporting up to 2V RMS. The TLV320ADCX140 family supports line and microphone Inputs, and offers a programmable microphone bias or supply voltage generation.

Specifications can be found at:
  https://www.ti.com/lit/ds/symlink/tlv320adc3140.pdf
  https://www.ti.com/lit/ds/symlink/tlv320adc5140.pdf
  https://www.ti.com/lit/ds/symlink/tlv320adc6140.pdf

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,tlv320adc3140", "ti,tlv320adc5140", "ti,tlv320adc6140"

reg — required here #

Maximum number of items (maxItems): 1

I2C address of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO used for hardware reset.

areg-supply — not listed as required here #

External supply of 1.8V. If not defined then the internal regulator is enabled instead.

avdd-supply — not listed as required here #

true — No constraints added by this property rule.

iovdd-supply — not listed as required here #

true — No constraints added by this property rule.

ti,mic-bias-source — not listed as required here #

Indicates the source for MIC Bias. 0 - Mic bias is set to VREF 1 - Mic bias is set to VREF × 1.096 6 - Mic bias is set to AVDD

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 6

ti,vref-source — not listed as required here #

Indicates the source for MIC Bias. 0 - Set VREF to 2.75V 1 - Set VREF to 2.5V 2 - Set VREF to 1.375V

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

ti,pdm-edge-select — not listed as required here #

Defines the PDMCLK sampling edge configuration for the PDM inputs. This array is defined as <PDMIN1 PDMIN2 PDMIN3 PDMIN4>.

0 - (default) Odd channel is latched on the negative edge and even channel is latched on the positive edge. 1 - Odd channel is latched on the positive edge and even channel is latched on the negative edge.

PDMIN1 - PDMCLK latching edge used for channel 1 and 2 data PDMIN2 - PDMCLK latching edge used for channel 3 and 4 data PDMIN3 - PDMCLK latching edge used for channel 5 and 6 data PDMIN4 - PDMCLK latching edge used for channel 7 and 8 data

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Array item rules (items) #

Maximum value (maximum): 1

Default value (default): 0, 0, 0, 0

ti,gpi-config — not listed as required here #

Defines the configuration for the general purpose input pins (GPI). The array is defined as <GPI1 GPI2 GPI3 GPI4>.

0 - (default) disabled
1 - GPIX is configured as a general-purpose input (GPI)
2 - GPIX is configured as a master clock input (MCLK)
3 - GPIX is configured as an ASI input for daisy-chain (SDIN)
4 - GPIX is configured as a PDM data input for channel 1 and channel
     (PDMDIN1)
5 - GPIX is configured as a PDM data input for channel 3 and channel
     (PDMDIN2)
6 - GPIX is configured as a PDM data input for channel 5 and channel
     (PDMDIN3)
7 - GPIX is configured as a PDM data input for channel 7 and channel
     (PDMDIN4)

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Array item rules (items) #

Maximum value (maximum): 7

Default value (default): 0, 0, 0, 0

ti,gpio-config — not listed as required here #

Defines the configuration and output drive for the General Purpose Input and Output pin (GPIO1). Its value is a pair, the first value is for the configuration type and the second value is for the output drive type. The array is defined as <GPIO1_CFG GPIO1_DRV>

configuration for the GPIO pin can be one of the following:
0 - disabled
1 - GPIO1 is configured as a general-purpose output (GPO)
2 - (default) GPIO1 is configured as a device interrupt output (IRQ)
3 - GPIO1 is configured as a secondary ASI output (SDOUT2)
4 - GPIO1 is configured as a PDM clock output (PDMCLK)
8 - GPIO1 is configured as an input to control when MICBIAS turns on or
    off (MICBIAS_EN)
9 - GPIO1 is configured as a general-purpose input (GPI)
10 - GPIO1 is configured as a master clock input (MCLK)
11 - GPIO1 is configured as an ASI input for daisy-chain (SDIN)
12 - GPIO1 is configured as a PDM data input for channel 1 and channel 2
     (PDMDIN1)
13 - GPIO1 is configured as a PDM data input for channel 3 and channel 4
     (PDMDIN2)
14 - GPIO1 is configured as a PDM data input for channel 5 and channel 6
     (PDMDIN3)
15 - GPIO1 is configured as a PDM data input for channel 7 and channel 8
     (PDMDIN4)

output drive type for the GPIO pin can be one of the following: 0 - Hi-Z output 1 - Drive active low and active high 2 - (default) Drive active low and weak high 3 - Drive active low and Hi-Z 4 - Drive weak low and active high 5 - Drive Hi-Z and active high

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Array item rules (items) #

Maximum value (maximum): 15

Default value (default): 2, 2

ti,asi-tx-drive — not listed as required here #

Value type (type): "boolean"

When set the device will set the Tx ASI output to a Hi-Z state for unused data cycles. Default is to drive the output low on unused ASI cycles.

Properties matching a name pattern (patternProperties) #

^ti,gpo-config-[1-4]$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Defines the configuration and output driver for the general purpose output pins (GPO). These values are pairs, the first value is for the configuration type and the second value is for the output drive type. The array is defined as <GPO_CFG GPO_DRV>

GPO output configuration can be one of the following:

0 - (default) disabled 1 - GPOX is configured as a general-purpose output (GPO) 2 - GPOX is configured as a device interrupt output (IRQ) 3 - GPOX is configured as a secondary ASI output (SDOUT2) 4 - GPOX is configured as a PDM clock output (PDMCLK)

GPO output drive configuration for the GPO pins can be one of the following:

0d - (default) Hi-Z output 1d - Drive active low and active high 2d - Drive active low and weak high 3d - Drive active low and Hi-Z 4d - Drive weak low and active high 5d - Drive Hi-Z and active high

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>;
  codec: codec@4c {
    compatible = "ti,tlv320adc5140";
    reg = <0x4c>;
    ti,mic-bias-source = <6>;
    ti,pdm-edge-select = <0 1 0 1>;
    ti,gpi-config = <4 5 6 7>;
    ti,gpio-config = <10 2>;
    ti,gpo-config-1 = <0 0>;
    ti,gpo-config-2 = <0 0>;
    reset-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)

Line 2: Copyright (C) 2019 Texas Instruments Incorporated

Texas Instruments TLV320AIC32x4 Stereo Audio codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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)

Required in this object (required): "ldoin-supply"

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 = <&reg_3v3>;
    ldoin-supply = <&reg_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

Texas Instruments TLV320AIC3x Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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): 1

MICBIAS output is powered to 2.0V.

Rule 2

Exact value (const): 2

MICBIAS output is powered to 2.5V.

Rule 3

Exact value (const): 3

MICBIAS 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): 0

1.35V

Rule 2

Exact value (const): 1

1.5V

Rule 3

Exact value (const): 2

1.65V

Rule 4

Exact value (const): 3

1.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 = <&regulator>;
    IOVDD-supply = <&regulator>;
    DRVDD-supply = <&regulator>;
    DVDD-supply = <&regulator>;
  };
};
#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 = <&regulator>;
    IOVDD-supply = <&regulator>;
    DRVDD-supply = <&regulator>;
    DVDD-supply = <&regulator>;
    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

Texas Instruments - tlv320aic31xx Codec module

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

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 = <&regulator>;
        SPRVDD-supply = <&regulator>;
        SPLVDD-supply = <&regulator>;
        AVDD-supply = <&regulator>;
        IOVDD-supply = <&regulator>;
        DVDD-supply = <&regulator>;
   };
};

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)

Texas Instruments - tpa6130a2 Codec module

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,tpa6130a2.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

Stereo, analog input headphone amplifier

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,tpa6130a2", "ti,tpa6140a2"

reg — required here #

Maximum number of items (maxItems): 1

Vdd-supply — required here #

power supply regulator

power-gpio — not listed as required here #

gpio pin to power the device

Required in this object (required): "compatible", "reg", "Vdd-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>;

    amplifier@60 {
        compatible = "ti,tpa6130a2";
        reg = <0x60>;
        Vdd-supply = <&vmmc2>;
        power-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)

Texas Instruments TS3A227E Autonomous Audio Accessory Detection and Configuration Switch

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,ts3a227e.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Dylan Reid <dgreid@chromium.org>"

The TS3A227E detect headsets of 3-ring and 4-ring standards and switches automatically to route the microphone correctly. It also handles key press detection in accordance with the Android audio headset specification v1.0.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,ts3a227e"

reg — required here #

Exact value (const): 59

interrupts — required here #

Maximum number of items (maxItems): 1

ti,micbias — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Intended MICBIAS voltage (datasheet section 9.6.7).

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7

Default value (default): 1

ti,debounce-release-ms — not listed as required here #

key release debounce time in ms (datasheet section 9.6.7).

Allowed values (enum): 0, 20

Default value (default): 20

ti,debounce-press-ms — not listed as required here #

key press debounce time in ms (datasheet section 9.6.7).

Allowed values (enum): 2, 40, 80, 120

Default value (default): 80

ti,debounce-insertion-ms — not listed as required here #

headset insertion debounce time in ms (datasheet section 9.6.5).

Allowed values (enum): 2, 30, 60, 90, 120, 150, 1000, 2000

Default value (default): 90

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec: audio-controller@3b {
        compatible = "ti,ts3a227e";
        reg = <0x3b>;
        interrupt-parent = <&gpio1>;
        interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 34: 2.1 V

Line 35: 2.2 V

Line 36: 2.3 V

Line 37: 2.4 V

Line 38: 2.5 V

Line 39: 2.6 V

Line 40: 2.7 V

Line 41: 2.8 V

Texas Instruments TWL4030-family Audio Module

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,twl4030-audio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Peter Ujfalusi <peter.ujfalusi@gmail.com>"

The audio module within the TWL4030-family of companion chips consists of an audio codec and a vibra driver. This binding describes the parent node for these functions.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,twl4030-audio"

codec — not listed as required here #

Value type (type): "object"

Node containing properties for the audio codec functionality.

Properties and child nodes (properties) #

ti,digimic_delay — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Delay in milliseconds after enabling digital microphones to reduce artifacts.

ti,ramp_delay_value — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Headset ramp delay configuration to reduce pop noise.

ti,hs_extmute — not listed as required here

Value type (type): "boolean"

Enable the use of an external mute for headset pop reduction.

ti,hs_extmute_gpio — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

The GPIO specifier for the external mute control.

Maximum number of items (maxItems): 1

ti,offset_cncl_path — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Offset cancellation path selection. Refer to the Technical Reference Manual for valid values.

ti,enable-vibra — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

Enable or disable the vibra functionality.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible"

Examples (examples) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  twl: twl@48 {
    reg = <0x48>;
    interrupts = <7>; /* SYS_NIRQ cascaded to intc */
    interrupt-parent = <&intc>;

    twl_audio: audio {
      compatible = "ti,twl4030-audio";

      ti,enable-vibra = <1>;

      codec {
        ti,ramp_delay_value = <3>;
      };

    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 54: The 'codec' node itself is optional, but if it exists, it can be empty.

Line 55: We don't require any of its sub-properties.

Trivial Audio Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/trivial-codec.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Rob Herring <robh@kernel.org>"

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): "adi,ssm2602", "adi,ssm2603", "adi,ssm2604", "adi,ssm3515", "cirrus,cs4265", "cirrus,cs4341a", "cirrus,cs4349", "dlg,da9055-codec", "nuvoton,nau8540", "nuvoton,nau8810", "nuvoton,nau8812", "nuvoton,nau8814", "nxp,tfa9879", "nxp,uda1342", "sdw3019f836300", "ti,pcm1789", "ti,pcm1792a", "ti,pcm5102a", "wlf,wm8510", "wlf,wm8523", "wlf,wm8580", "wlf,wm8581", "wlf,wm8711", "wlf,wm8728", "wlf,wm8737", "wlf,wm8750", "wlf,wm8753", "wlf,wm8770", "wlf,wm8776", "wlf,wm8961", "wlf,wm8974", "wlf,wm8987"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — not listed as required here #

Exact value (const): 0

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@1a {
        compatible = "wlf,wm8523";
        reg = <0x1a>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 18: Analog Devices SSM2602 I2S audio CODEC devices

Line 23: Cirrus Logic CS4265 audio DAC

Line 28: Nuvoton Technology Corporation NAU85L40 Audio CODEC

Line 33: NXP TFA9879 class-D audio amplifier

Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/wlf,arizona.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "patches@opensource.cirrus.com"

These devices are audio SoCs with extensive digital capabilities and a range of analogue I/O.

This document lists sound specific bindings, see the primary binding document ../mfd/arizona.yaml

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

#sound-dai-cells — not listed as required here #

The first cell indicating the audio interface.

Exact value (const): 1

wlf,inmode — not listed as required here #

A list of INn_MODE register values, where n is the number of input signals. Valid values are 0 (Differential), 1 (Single-ended) and 2 (Digital Microphone). If absent, INn_MODE registers set to 0 by default. If present, values must be specified less than or equal to the number of input signals. If values less than the number of input signals, elements that have not been specified are set to 0 by default. Entries are <IN1, IN2, IN3, IN4> (wm5102, wm5110, wm8280, wm8997) and <IN1A, IN2A, IN1B, IN2B> (wm8998, wm1814)

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 2

Default value (default): 0

wlf,out-mono — not listed as required here #

A list of boolean values indicating whether each output is mono or stereo. Position within the list indicates the output affected (eg. First entry in the list corresponds to output 1). A non-zero value indicates a mono output. If present, the number of values should be less than or equal to the number of outputs, if less values are supplied the additional outputs will be treated as stereo.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 6

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

wlf,dmic-ref — not listed as required here #

DMIC reference voltage source for each input, can be selected from either MICVDD or one of the MICBIAS's, defines (ARIZONA_DMIC_xxxx) are provided in dt-bindings/mfd/arizona.h. If present, the number of values should be less than or equal to the number of inputs, unspecified inputs will use the chip default.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 3

Default value (default): 0

wlf,max-channels-clocked — not listed as required here #

The maximum number of channels to be clocked on each AIF, useful for I2S systems with multiple data lines being mastered. Specify one cell for each AIF to be configured, specify zero for AIFs that should be handled normally. If present, number of cells must be less than or equal to the number of AIFs. If less than the number of AIFs, for cells that have not been specified the corresponding AIFs will be treated as default setting.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

Array item rules (items) #

Default value (default): 0

wlf,spk-fmt — not listed as required here #

PDM speaker data format, must contain 2 cells (OUT5 and OUT6). See the datasheet for values. The second cell is ignored for codecs that do not have OUT6 (wm5102, wm8997, wm8998, wm1814)

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

wlf,spk-mute — not listed as required here #

PDM speaker mute setting, must contain 2 cells (OUT5 and OUT6). See the datasheet for values. The second cell is ignored for codecs that do not have OUT6 (wm5102, wm8997, wm8998, wm1814)

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

wlf,out-volume-limit — not listed as required here #

The volume limit value that should be applied to each output channel. See the datasheet for exact values. Channels are specified in the order OUT1L, OUT1R, OUT2L, OUT2R, etc.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 12

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Wolfson WM8524 24-bit 192KHz Stereo DAC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/wlf,wm8524.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "patches@opensource.cirrus.com"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "wlf,wm8524"

#sound-dai-cells — not listed as required here #

Exact value (const): 0

wlf,mute-gpios — required here #

Maximum number of items (maxItems): 1

a GPIO spec for the MUTE pin.

Required in this object (required): "compatible", "wlf,mute-gpios"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

wm8524: codec {
    compatible = "wlf,wm8524";
    wlf,mute-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Wolfson Microelectromics WM8731 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/wlf,wm8731.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "patches@opensource.cirrus.com"

Wolfson Microelectronics WM8731 audio CODEC

Pins on the device (for linking into audio routes):
  * LOUT: Left Channel Line Output
  * ROUT: Right Channel Line Output
  * LHPOUT: Left Channel Headphone Output
  * RHPOUT: Right Channel Headphone Output
  * LLINEIN: Left Channel Line Input
  * RLINEIN: Right Channel Line Input
  * MICIN: Microphone Input

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "wlf,wm8731"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — not listed as required here #

Exact value (const): 0

clocks — not listed as required here #

Clock provider for MCLK pin.

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

AVDD-supply — required here #

Analog power supply regulator on the AVDD pin.

HPVDD-supply — required here #

Headphone power supply regulator on the HPVDD pin.

DBVDD-supply — required here #

Digital buffer supply regulator for the DBVDD pin.

DCVDD-supply — required here #

Digital core supply regulator for the DCVDD pin.

Required in this object (required): "reg", "compatible", "AVDD-supply", "HPVDD-supply", "DBVDD-supply", "DCVDD-supply"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spi {
    #address-cells = <1>;
    #size-cells = <0>;
    wm8731_i2c: codec@0 {
        compatible = "wlf,wm8731";
        reg = <0>;
        spi-max-frequency = <12500000>;

        AVDD-supply = <&avdd_reg>;
        HPVDD-supply = <&hpvdd_reg>;
        DCVDD-supply = <&dcvdd_reg>;
        DBVDD-supply = <&dbvdd_reg>;
    };
};

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    wm8731_spi: codec@1b {
        compatible = "wlf,wm8731";
        reg = <0x1b>;

        AVDD-supply = <&avdd_reg>;
        HPVDD-supply = <&hpvdd_reg>;
        DCVDD-supply = <&dcvdd_reg>;
        DBVDD-supply = <&dbvdd_reg>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Wolfson Microelectromics WM8782 audio CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/wlf,wm8782.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "patches@opensource.cirrus.com"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "wlf,wm8782"

Vdda-supply — required here #

Regulator for the analog power supply (2.7V - 5.5V)

Vdd-supply — required here #

Regulator for the digital power supply (2.7V - 3.6V)

wlf,fsampen — not listed as required here #

FSAMPEN pin value, 0 for low, 1 for high, 2 for disconnected.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

#sound-dai-cells — not listed as required here #

Exact value (const): 0

Required in this object (required): "compatible", "Vdda-supply", "Vdd-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

wm8782: codec {
    compatible = "wlf,wm8782";
    Vdda-supply = <&vdda_supply>;
    Vdd-supply = <&vdd_supply>;
    wlf,fsampen = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

WM8804 audio codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/wlf,wm8804.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

This device supports both I2C and SPI (configured with pin strapping on the board).

Maintainers (maintainers): "patches@opensource.cirrus.com"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "wlf,wm8804"

reg — required here #

The I2C address of the device for I2C, the chip select number for SPI.

Maximum number of items (maxItems): 1

#sound-dai-cells — not listed as required here #

Exact value (const): 0

PVDD-supply — required here #

PLL core supply

DVDD-supply — required here #

Digital core supply

wlf,reset-gpio — not listed as required here #

A GPIO specifier for the GPIO controlling the reset pin.

Maximum number of items (maxItems): 1

Required in this object (required): "reg", "compatible", "PVDD-supply", "DVDD-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@1a {
        compatible = "wlf,wm8804";
        reg = <0x1a>;
        PVDD-supply = <&pvdd_reg>;
        DVDD-supply = <&dvdd_reg>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

WM8903 audio codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/wlf,wm8903.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

This device supports I2C only.
Pins on the device (for linking into audio routes):
    * IN1L
    * IN1R
    * IN2L
    * IN2R
    * IN3L
    * IN3R
    * DMICDAT
    * HPOUTL
    * HPOUTR
    * LINEOUTL
    * LINEOUTR
    * LOP
    * LON
    * ROP
    * RON
    * MICBIAS

Maintainers (maintainers): "patches@opensource.cirrus.com"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "wlf,wm8903"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

micdet-cfg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 0

Default register value for R6 (Mic Bias).

micdet-delay — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 100

The debounce delay for microphone detection in mS.

gpio-cfg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

minItems: 5 maxItems: 5 A list of GPIO configuration register values. If absent, no configuration of these registers is performed. If any entry has the value 0xffffffff, that GPIO's configuration will not be modified.

AVDD-supply — not listed as required here #

Analog power supply regulator on the AVDD pin.

CPVDD-supply — not listed as required here #

Charge pump supply regulator on the CPVDD pin.

DBVDD-supply — not listed as required here #

Digital buffer supply regulator for the DBVDD pin.

DCVDD-supply — not listed as required here #

Digital core supply regulator for the DCVDD pin.

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  wm8903: codec@1a {
    compatible = "wlf,wm8903";
    reg = <0x1a>;
    interrupts = <347>;

    AVDD-supply = <&fooreg_a>;
    CPVDD-supply = <&fooreg_b>;
    DBVDD-supply = <&fooreg_c>;
    DCVDD-supply = <&fooreg_d>;

    gpio-controller;
    #gpio-cells = <2>;

    micdet-cfg = <0>;
    micdet-delay = <100>;
    gpio-cfg = <
      0x0600 /* DMIC_LR, output */
      0x0680 /* DMIC_DAT, input */
      0x0000 /* GPIO, output, low */
      0x0200 /* Interrupt, output */
      0x01a0 /* BCLK, input, active high */
    >;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Wolfson WM8904/WM8912 audio codecs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/wlf,wm8904.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "patches@opensource.cirrus.com"

Pins on the device (for linking into audio routes): IN1L, IN1R, IN2L, IN2R, IN3L, IN3R, HPOUTL, HPOUTR, LINEOUTL, LINEOUTR, MICBIAS

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "wlf,wm8904", "wlf,wm8912"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — not listed as required here #

Exact value (const): 0

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "mclk"

AVDD-supply — required here #

true — No constraints added by this property rule.

CPVDD-supply — required here #

true — No constraints added by this property rule.

DBVDD-supply — required here #

true — No constraints added by this property rule.

DCVDD-supply — required here #

true — No constraints added by this property rule.

MICVDD-supply — required here #

true — No constraints added by this property rule.

wlf,in1l-as-dmicdat1 — not listed as required here #

Value type (type): "boolean"

Use IN1L/DMICDAT1 as DMICDAT1, enabling the DMIC input path. Can be used separately or together with wlf,in1r-as-dmicdat2.

wlf,in1r-as-dmicdat2 — not listed as required here #

Value type (type): "boolean"

Use IN1R/DMICDAT2 as DMICDAT2, enabling the DMIC input path. Can be used separately or together with wlf,in1l-as-dmicdat1.

wlf,gpio-cfg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

Default register values for R121/122/123/124 (GPIO Control). If any entry has the value 0xFFFF, the related register won't be set.

Default value (default): 65535, 65535, 65535, 65535

wlf,micbias-cfg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Default register values for R6/R7 (Mic Bias Control).

Default value (default): 0, 0

wlf,drc-cfg-names — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array

List of strings for the available DRC modes. If absent, DRC is disabled.

wlf,drc-cfg-regs — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16-matrix

Sets of default register values for R40/41/42/43 (DRC). Each set corresponds to a DRC mode, so the number of sets should equal the length of wlf,drc-cfg-names. If absent, DRC is disabled.

Array item rules (items) #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

wlf,retune-mobile-cfg-names — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

List of strings for the available retune modes. If absent, retune is disabled.

wlf,retune-mobile-cfg-hz — not listed as required here #

The list must be the same length as wlf,retune-mobile-cfg-names. If absent, retune is disabled.

wlf,retune-mobile-cfg-regs — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16-matrix

Sets of default register values for R134/.../157 (EQ). Each set corresponds to a retune mode, so the number of sets should equal the length of wlf,retune-mobile-cfg-names. If absent, retune is disabled.

Array item rules (items) #

Minimum number of items (minItems): 24

Maximum number of items (maxItems): 24

Property dependencies (dependencies) #

wlf,drc-cfg-names — applies when this property is present #

Also requires: "wlf,drc-cfg-regs"

wlf,drc-cfg-regs — applies when this property is present #

Also requires: "wlf,drc-cfg-names"

wlf,retune-mobile-cfg-names — applies when this property is present #

Also requires: "wlf,retune-mobile-cfg-hz", "wlf,retune-mobile-cfg-regs"

wlf,retune-mobile-cfg-regs — applies when this property is present #

Also requires: "wlf,retune-mobile-cfg-names", "wlf,retune-mobile-cfg-hz"

wlf,retune-mobile-cfg-hz — applies when this property is present #

Also requires: "wlf,retune-mobile-cfg-names", "wlf,retune-mobile-cfg-regs"

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "AVDD-supply", "CPVDD-supply", "DBVDD-supply", "DCVDD-supply", "MICVDD-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) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@1a {
        compatible = "wlf,wm8904";
        reg = <0x1a>;
        clocks = <&pck0>;
        clock-names = "mclk";
        AVDD-supply = <&reg_1p8v>;
        CPVDD-supply = <&reg_1p8v>;
        DBVDD-supply = <&reg_1p8v>;
        DCVDD-supply = <&reg_1p8v>;
        MICVDD-supply = <&reg_1p8v>;

        wlf,drc-cfg-names = "default", "peaklimiter", "tradition", "soft",
                            "music";
        /*
         * Config registers per name, respectively:
         * KNEE_IP = 0,   KNEE_OP = 0,     HI_COMP = 1,   LO_COMP = 1
         * KNEE_IP = -24, KNEE_OP = -6,    HI_COMP = 1/4, LO_COMP = 1
         * KNEE_IP = -42, KNEE_OP = -3,    HI_COMP = 0,   LO_COMP = 1
         * KNEE_IP = -45, KNEE_OP = -9,    HI_COMP = 1/8, LO_COMP = 1
         * KNEE_IP = -30, KNEE_OP = -10.5, HI_COMP = 1/4, LO_COMP = 1
         */
        wlf,drc-cfg-regs = /bits/ 16 <0x01af 0x3248 0x0000 0x0000>,
                           /bits/ 16 <0x04af 0x324b 0x0010 0x0408>,
                           /bits/ 16 <0x04af 0x324b 0x0028 0x0704>,
                           /bits/ 16 <0x04af 0x324b 0x0018 0x078c>,
                           /bits/ 16 <0x04af 0x324b 0x0010 0x050e>;

        /* GPIO1 = DMIC_CLK, don't touch others */
        wlf,gpio-cfg = <0x0018>, <0xffff>, <0xffff>, <0xffff>;

        /* Use IN1R as DMICDAT2, leave IN1L as an analog input path */
        wlf,in1r-as-dmicdat2;

        wlf,retune-mobile-cfg-names = "bassboost", "bassboost", "treble";
        wlf,retune-mobile-cfg-hz = <48000>, <44100>, <48000>;
        /*
         * Config registers per name, respectively:
         * EQ_ENA,  100 Hz,  300 Hz,  875 Hz, 2400 Hz, 6900 Hz
         *      1,   +6 dB,   +3 dB,    0 dB,    0 dB,    0 dB
         *      1,   +6 dB,   +3 dB,    0 dB,    0 dB,    0 dB
         *      1,   -2 dB,   -2 dB,    0 dB,    0 dB,   +3 dB
         * Each one uses the defaults for ReTune Mobile registers 140-157
         */
        wlf,retune-mobile-cfg-regs = /bits/ 16 <0x1 0x12 0xf 0xc 0xc 0xc
                                                0x0fca 0x0400 0x00d8 0x1eb5
                                                0xf145 0x0bd5 0x0075 0x1c58
                                                0xf3d3 0x0a54 0x0568 0x168e
                                                0xf829 0x07ad 0x1103 0x0564
                                                0x0559 0x4000>,

                                     /bits/ 16 <0x1 0x12 0xf 0xc 0xc 0xc
                                                0x0fca 0x0400 0x00d8 0x1eb5
                                                0xf145 0x0bd5 0x0075 0x1c58
                                                0xf3d3 0x0a54 0x0568 0x168e
                                                0xf829 0x07ad 0x1103 0x0564
                                                0x0559 0x4000>,

                                     /bits/ 16 <0x1 0xa 0xa 0xc 0xc 0xf
                                                0x0fca 0x0400 0x00d8 0x1eb5
                                                0xf145 0x0bd5 0x0075 0x1c58
                                                0xf3d3 0x0a54 0x0568 0x168e
                                                0xf829 0x07ad 0x1103 0x0564
                                                0x0559 0x4000>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Wolfson WM8940 Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/wlf,wm8940.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "patches@opensource.cirrus.com"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

#sound-dai-cells — required here #

Exact value (const): 0

compatible — required here #

Exact value (const): "wlf,wm8940"

reg — required here #

Maximum number of items (maxItems): 1

spi-max-frequency — not listed as required here #

Maximum value (maximum): 526000

Required in this object (required): "#sound-dai-cells", "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@0 {
        #sound-dai-cells = <0>;
        compatible = "wlf,wm8940";
        reg = <0>;
        spi-max-frequency = <500000>;
    };
};
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@1a {
        #sound-dai-cells = <0>;
        compatible = "wlf,wm8940";
        reg = <0x1a>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Wolfson WM8960 audio codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/wlf,wm8960.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "patches@opensource.cirrus.com"

Wolfson WM8960 audio codec

Pins on the device (for linking into audio routes):

  Outputs:
    * HP_L    : Left Headphone/Line Output
    * HP_R    : Right Headphone/Line Output
    * SPK_LP  : Left Speaker Output (Positive)
    * SPK_LN  : Left Speaker Output (Negative)
    * SPK_RP  : Right Speaker Output (Positive)
    * SPK_RN  : Right Speaker Output (Negative)
    * OUT3    : Mono, Left, Right or buffered midrail output for capless mode
  Inputs:
    * LINPUT1 : Left single-ended or negative differential microphone input
    * RINPUT1 : Right single-ended or negative differential microphone input
    * LINPUT2 : Left line input or positive differential microphone input
    * RINPUT2 : Right line input or positive differential microphone input
    * LINPUT3 : Left line input, positive differential microphone, or Jack Detect 2
    * RINPUT3 : Right line input, positive differential microphone, or Jack Detect 3

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "wlf,wm8960"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

#sound-dai-cells — not listed as required here #

Exact value (const): 0

AVDD-supply — not listed as required here #

Analogue supply.

DBVDD-supply — not listed as required here #

Digital Buffer Supply.

DCVDD-supply — not listed as required here #

Digital Core Supply.

SPKVDD1-supply — not listed as required here #

Supply for speaker drivers 1.

SPKVDD2-supply — not listed as required here #

Supply for speaker drivers 2.

wlf,capless — not listed as required here #

Value type (type): "boolean"

If present, OUT3 pin will be enabled and disabled together with HP_L and HP_R pins in response to jack detect events.

wlf,gpio-cfg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Maximum number of items (maxItems): 2

A list of GPIO configuration register values. - gpio-cfg[0]: ALRCGPIO of R9 (Audio interface) - gpio-cfg[1]: {GPIOPOL:GPIOSEL[2:0]} of R48 (Additional Control 4).

wlf,hp-cfg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Maximum number of items (maxItems): 3

A list of headphone jack detect configuration register values: - hp-cfg[0]: HPSEL[1:0] of R48 (Additional Control 4). - hp-cfg[1]: {HPSWEN:HPSWPOL} of R24 (Additional Control 2). - hp-cfg[2]: {TOCLKSEL:TOEN} of R23 (Additional Control 1).

wlf,shared-lrclk — not listed as required here #

Value type (type): "boolean"

If present, the LRCM bit of R24 (Additional control 2) gets set, indicating that ADCLRC and DACLRC pins will be disabled only when ADC (Left and Right) and DAC (Left and Right) are disabled. When WM8960 works on synchronize mode and DACLRC pin is used to supply frame clock, it will no frame clock for captrue unless enable DAC to enable DACLRC pin. If shared-lrclk is present, no need to enable DAC for captrue.

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"

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) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    audio-codec@1a {
        compatible = "wlf,wm8960";
        reg = <0x1a>;
        clocks = <&clks 0>;
        clock-names = "mclk";
        #sound-dai-cells = <0>;
        wlf,hp-cfg = <3 2 3>;
        wlf,gpio-cfg = <1 3>;
        wlf,shared-lrclk;
        DCVDD-supply = <&reg_audio>;
        DBVDD-supply = <&reg_audio>;
        AVDD-supply = <&reg_audio>;
        SPKVDD1-supply = <&reg_audio>;
        SPKVDD2-supply = <&reg_audio>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Wolfson WM8962 Ultra-Low Power Stereo CODEC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/wlf,wm8962.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "patches@opensource.cirrus.com"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "wlf,wm8962"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — not listed as required here #

Exact value (const): 0

AVDD-supply — required here #

Analogue supply.

CPVDD-supply — required here #

Charge pump power supply.

DBVDD-supply — required here #

Digital Buffer Supply.

DCVDD-supply — required here #

Digital Core Supply.

MICVDD-supply — required here #

Microphone bias amp supply.

PLLVDD-supply — required here #

PLL Supply

SPKVDD1-supply — required here #

Supply for left speaker drivers.

SPKVDD2-supply — required here #

Supply for right speaker drivers.

spk-mono — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

If present, the SPK_MONO bit of R51 (Class D Control 2) gets set, indicating that the speaker is in mono mode.

mic-cfg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default register value for R48 (Additional Control 4). If absent, the default should be the register default.

gpio-cfg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 6

A list of GPIO configuration register values. If absent, no configuration of these registers is performed. Note that only values within [0x0, 0xffff] are valid. Any other value is regarded as setting the GPIO register to its reset value 0x0.

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", "AVDD-supply", "CPVDD-supply", "DBVDD-supply", "DCVDD-supply", "MICVDD-supply", "PLLVDD-supply", "SPKVDD1-supply", "SPKVDD2-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx6qdl-clock.h>

i2c {
      #address-cells = <1>;
      #size-cells = <0>;

      wm8962: codec@1a {
              compatible = "wlf,wm8962";
              reg = <0x1a>;
              clocks = <&clks IMX6QDL_CLK_CKO>;
              DCVDD-supply = <&reg_audio>;
              DBVDD-supply = <&reg_audio>;
              AVDD-supply = <&reg_audio>;
              CPVDD-supply = <&reg_audio>;
              MICVDD-supply = <&reg_audio>;
              PLLVDD-supply = <&reg_audio>;
              SPKVDD1-supply = <&reg_audio>;
              SPKVDD2-supply = <&reg_audio>;
              gpio-cfg = <
                      0x0000 /* 0:Default */
                      0x0000 /* 1:Default */
                      0x0013 /* 2:FN_DMICCLK */
                      0x0000 /* 3:Default */
                      0x8014 /* 4:FN_DMICCDAT */
                      0x0000 /* 5:Default */
              >;
      };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Wolfson WM8978 Codec

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/wlf,wm8978.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "patches@opensource.cirrus.com"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

#sound-dai-cells — required here #

Exact value (const): 0

compatible — required here #

Exact value (const): "wlf,wm8978"

reg — required here #

Maximum number of items (maxItems): 1

spi-max-frequency — not listed as required here #

Maximum value (maximum): 526000

Required in this object (required): "#sound-dai-cells", "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@0 {
        #sound-dai-cells = <0>;
        compatible = "wlf,wm8978";
        reg = <0>;
        spi-max-frequency = <500000>;
    };
};
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@1a {
        #sound-dai-cells = <0>;
        compatible = "wlf,wm8978";
        reg = <0x1a>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Wolfson WM1811/WM8994/WM8958 audio codecs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/wlf,wm8994.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "patches@opensource.cirrus.com"

These devices support both I2C and SPI (configured with pin strapping on the board).

Pins on the device (for linking into audio routes): IN1LN, IN1LP, IN2LN, IN2LP:VXRN, IN1RN, IN1RP, IN2RN, IN2RP:VXRP, SPKOUTLP, SPKOUTLN, SPKOUTRP, SPKOUTRN, HPOUT1L, HPOUT1R, HPOUT2P, HPOUT2N, LINEOUT1P, LINEOUT1N, LINEOUT2P, LINEOUT2N.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "wlf,wm1811", "wlf,wm8994", "wlf,wm8958"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "MCLK1"

Item 2

Exact value (const): "MCLK2"

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

#gpio-cells — not listed as required here #

Exact value (const): 2

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

The first cell is the IRQ number. The second cell is the flags, encoded as the trigger masks.

AVDD1-supply — not listed as required here #

true — No constraints added by this property rule.

AVDD2-supply — required here #

true — No constraints added by this property rule.

CPVDD-supply — required here #

true — No constraints added by this property rule.

DBVDD-supply — not listed as required here #

true — No constraints added by this property rule.

DBVDD1-supply — not listed as required here #

true — No constraints added by this property rule.

DBVDD2-supply — not listed as required here #

true — No constraints added by this property rule.

DBVDD3-supply — not listed as required here #

true — No constraints added by this property rule.

DCVDD-supply — not listed as required here #

true — No constraints added by this property rule.

LDO1VDD-supply — not listed as required here #

true — No constraints added by this property rule.

LDO2VDD-supply — not listed as required here #

true — No constraints added by this property rule.

SPKVDD1-supply — required here #

true — No constraints added by this property rule.

SPKVDD2-supply — required here #

true — No constraints added by this property rule.

#sound-dai-cells — not listed as required here #

Exact value (const): 0

wlf,gpio-cfg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Maximum number of items (maxItems): 11

A list of GPIO configuration register values. If absent, no configuration of these registers is performed. If any value is over 0xffff then the register will be left as default. If present 11 values must be supplied.

wlf,micbias-cfg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Maximum number of items (maxItems): 2

Two MICBIAS register values for WM1811 or WM8958. If absent the register defaults will be used.

wlf,ldo1ena-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Control of LDO1ENA input to device.

wlf,ldo2ena-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Control of LDO2ENA input to device.

wlf,lineout1-se — not listed as required here #

Value type (type): "boolean"

LINEOUT1 is in single ended mode.

wlf,lineout2-se — not listed as required here #

Value type (type): "boolean"

INEOUT2 is in single ended mode.

wlf,lineout1-feedback — not listed as required here #

Value type (type): "boolean"

LINEOUT1 has common mode feedback connected.

wlf,lineout2-feedback — not listed as required here #

Value type (type): "boolean"

LINEOUT2 has common mode feedback connected.

wlf,ldoena-always-driven — not listed as required here #

Value type (type): "boolean"

LDOENA is always driven.

wlf,spkmode-pu — not listed as required here #

Value type (type): "boolean"

Enable the internal pull-up resistor on the SPKMODE pin.

wlf,csnaddr-pd — not listed as required here #

Value type (type): "boolean"

Enable the internal pull-down resistor on the CS/ADDR pin.

Required in this object (required): "compatible", "reg", "AVDD2-supply", "CPVDD-supply", "SPKVDD1-supply", "SPKVDD2-supply"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "wlf,wm1811", "wlf,wm8958"

When the condition matches (then) #

Properties and child nodes (properties)

DBVDD-supply — not listed as required here

false — Not permitted by this property rule.

LDO2VDD-supply — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "DBVDD1-supply", "DBVDD2-supply", "DBVDD3-supply"

When the condition does not match (else) #

Properties and child nodes (properties)

DBVDD1-supply — not listed as required here

false — Not permitted by this property rule.

DBVDD2-supply — not listed as required here

false — Not permitted by this property rule.

DBVDD3-supply — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "DBVDD-supply"

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@1a {
        compatible = "wlf,wm1811";
        reg = <0x1a>;
        clocks = <&i2s0 0>;
        clock-names = "MCLK1";

        AVDD2-supply = <&main_dc_reg>;
        CPVDD-supply = <&main_dc_reg>;
        DBVDD1-supply = <&main_dc_reg>;
        DBVDD2-supply = <&main_dc_reg>;
        DBVDD3-supply = <&main_dc_reg>;
        LDO1VDD-supply = <&main_dc_reg>;
        SPKVDD1-supply = <&main_dc_reg>;
        SPKVDD2-supply = <&main_dc_reg>;

        wlf,ldo1ena-gpios = <&gpb0 0 GPIO_ACTIVE_HIGH>;
        wlf,ldo2ena-gpios = <&gpb0 1 GPIO_ACTIVE_HIGH>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Xilinx PL audio formatter

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/xlnx,audio-formatter.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The IP core supports DMA, data formatting(AES<->PCM conversion) of audio samples.

Maintainers (maintainers): "Vincenzo Frascino <vincenzo.frascino@arm.com>"

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): "xlnx,audio-formatter-1.0"

reg — required here #

Maximum number of items (maxItems): 1

interrupt-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "irq_mm2s"

Item 2

Exact value (const): "irq_s2mm"

interrupts — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

interrupt from MM2S block

Item 2

interrupt from S2MM block

clock-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "s_axi_lite_aclk"

Item 2

Exact value (const): "aud_mclk"

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

clock for the axi data stream

Item 2

clock for the MEMS microphone data stream

Required in this object (required): "compatible", "reg", "interrupt-names", "interrupts", "clock-names", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

audio_formatter@80010000 {
  compatible = "xlnx,audio-formatter-1.0";
  reg = <0x80010000 0x1000>;
  interrupt-names = "irq_mm2s", "irq_s2mm";
  interrupt-parent = <&gic>;
  interrupts = <0 104 4>, <0 105 4>;
  clock-names = "s_axi_lite_aclk", "aud_mclk";
  clocks = <&clk 71>, <&clk_wiz_1 0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Xilinx I2S PL block

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/xlnx,i2s.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The IP supports I2S based playback/capture audio.

Maintainers (maintainers): "Vincenzo Frascino <vincenzo.frascino@arm.com>"

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): "xlnx,i2s-receiver-1.0", "xlnx,i2s-transmitter-1.0"

reg — required here #

Maximum number of items (maxItems): 1

xlnx,dwidth — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 16, 24

Sample data width.

xlnx,num-channels — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 1

Maximum value (maximum): 4

Number of I2S streams.

Required in this object (required): "compatible", "reg", "xlnx,dwidth", "xlnx,num-channels"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2s@a0080000 {
  compatible = "xlnx,i2s-receiver-1.0";
  reg = <0xa0080000 0x10000>;
  xlnx,dwidth = <0x18>;
  xlnx,num-channels = <1>;
};
i2s@a0090000 {
  compatible = "xlnx,i2s-transmitter-1.0";
  reg = <0xa0090000 0x10000>;
  xlnx,dwidth = <0x18>;
  xlnx,num-channels = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Xilinx SPDIF IP

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/xlnx,spdif.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The IP supports playback and capture of SPDIF audio.

Maintainers (maintainers): "Vincenzo Frascino <vincenzo.frascino@arm.com>"

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): "xlnx,spdif-2.0"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

SPDIF audio interrupt

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "aud_clk_i"

Item 2

Exact value (const): "s_axi_aclk"

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

input audio clock

Item 2

clock for the AXI data stream

xlnx,spdif-mode — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

0 - receiver 1 - transmitter

xlnx,aud_clk_i — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Input audio clock frequency. It affects the sampling rate.

Required in this object (required): "compatible", "reg", "interrupts", "clock-names", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

spdif@80010000 {
  compatible = "xlnx,spdif-2.0";
  reg = <0x80010000 0x10000>;
  clock-names = "aud_clk_i", "s_axi_aclk";
  clocks = <&misc_clk_0>, <&clk 71>;
  interrupt-parent = <&gic>;
  interrupts = <0 91 4>;
  xlnx,spdif-mode = <1>;
  xlnx,aud_clk_i = <49152913>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

XMOS XVF3500 VocalFusion Voice Processor

Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings

Schema identifier ($id): "http://devicetree.org/schemas/sound/xmos,xvf3500.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Javier Carrasco <javier.carrasco@wolfvision.net>"

The XMOS XVF3500 VocalFusion Voice Processor is a low-latency, 32-bit multicore controller for voice processing. https://www.xmos.com/xvf3500/

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/usb/usb-device.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "usb20b1,0013"

reg — required here #

true — No constraints added by this property rule.

reset-gpios — required here #

Maximum number of items (maxItems): 1

vdd-supply — required here #

Regulator for the 1V0 supply.

vddio-supply — required here #

Regulator for the 3V3 supply.

Required in this object (required): "compatible", "reg", "reset-gpios", "vdd-supply", "vddio-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>

usb {
    #address-cells = <1>;
    #size-cells = <0>;

    voice_processor: voice-processor@1 {
        compatible = "usb20b1,0013";
        reg = <1>;
        reset-gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
        vdd-supply = <&vcc1v0>;
        vddio-supply = <&vcc3v3>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Peios Learn — documentation for Peios software.

Built with Trail.