Qualcomm DSP LPASS(Low Power Audio SubSystem) Audio Ports

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

Edit this page