LPASS(Low Power Audio Subsystem) VA Macro audio codec

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)

Edit this page