LPASS(Low Power Audio Subsystem) RX Macro audio codec

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

Edit this page