LPASS(Low Power Audio Subsystem) TX Macro audio codec

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

Edit this page