LPASS(Low Power Audio Subsystem) VA Macro audio codec
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 hereRule for matching array elements (
contains)Exact value (
const):"qcom,sc7280-lpass-va-macro"When the condition matches (
then) #Condition (
if)When the condition matches (
then)Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required hereArray 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 hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
clock-names— not listed as required hereArray 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 hereRule 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 hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
clock-names— not listed as required hereArray 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 hereRule 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 hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
clock-names— not listed as required hereArray 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 hereRule 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 hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):4
clock-names— not listed as required hereArray 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 hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
clock-names— not listed as required hereArray 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)