Qualcomm Technologies Inc. ASoC sound card drivers
Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,sm8250.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"
This bindings describes Qualcomm SoC based sound cards which uses LPASS internal codec for audio.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"lenovo,yoga-c630-sndcard","qcom,db845c-sndcard"Item 2
Exact value (
const):"qcom,sdm845-sndcard"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,kaanapali-sndcard","qcom,sm8550-sndcard","qcom,sm8650-sndcard","qcom,sm8750-sndcard"Item 2
Exact value (
const):"qcom,sm8450-sndcard"
Rule 3
Allowed values (
enum):"fairphone,fp4-sndcard","fairphone,fp5-sndcard","qcom,apq8096-sndcard","qcom,glymur-sndcard","qcom,qcm6490-idp-sndcard","qcom,qcs615-sndcard","qcom,qcs6490-rb3gen2-sndcard","qcom,qcs8275-sndcard","qcom,qcs9075-sndcard","qcom,qcs9100-sndcard","qcom,qrb2210-sndcard","qcom,qrb4210-rb2-sndcard","qcom,qrb5165-rb5-sndcard","qcom,sc7180-qdsp6-sndcard","qcom,sc8280xp-sndcard","qcom,sdm845-sndcard","qcom,sm8250-sndcard","qcom,sm8450-sndcard","qcom,x1e80100-sndcard"
audio-routing — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array
A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names could be power supplies, MicBias of codec and the jacks on the board.
aux-devs — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
List of phandles pointing to auxiliary devices, such as amplifiers, to be added to the sound card.
model — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
User visible long sound card name
Properties matching a name pattern (patternProperties) #
.*-dai-link$ — name matches this regular expression #
Each subnode represents a dai link. Subnodes of each dai links would be cpu/codec dais.
Value type (type): "object"
Properties and child nodes (properties) #
link-name — required here
Indicates dai-link name and PCM stream name.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Maximum number of items (maxItems): 1
cpu — required here
Holds subnode which indicates cpu dai.
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
sound-dai — not listed as required here
Maximum number of items (maxItems): 1
platform — not listed as required here
Holds subnode which indicates platform dai.
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
sound-dai — not listed as required here
Maximum number of items (maxItems): 1
codec — not listed as required here
Holds subnode which indicates codec dai.
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
sound-dai — not listed as required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Required in this object (required): "link-name", "cpu"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "model"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/sound/qcom,q6afe.h>
#include <dt-bindings/sound/qcom,q6asm.h>
sound {
compatible = "qcom,qrb5165-rb5-sndcard";
model = "Qualcomm-qrb5165-RB5-WSA8815-Speakers-DMIC0";
audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT",
"SpkrRight IN", "WSA_SPK2 OUT",
"VA DMIC0", "vdd-micb",
"VA DMIC1", "vdd-micb";
mm1-dai-link {
link-name = "MultiMedia0";
cpu {
sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
};
};
mm2-dai-link {
link-name = "MultiMedia2";
cpu {
sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>;
};
};
mm3-dai-link {
link-name = "MultiMedia3";
cpu {
sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>;
};
};
hdmi-dai-link {
link-name = "HDMI Playback";
cpu {
sound-dai = <&q6afedai TERTIARY_MI2S_RX>;
};
platform {
sound-dai = <&q6routing>;
};
codec {
sound-dai = <<9611_codec 0>;
};
};
wsa-dai-link {
link-name = "WSA Playback";
cpu {
sound-dai = <&q6afedai WSA_CODEC_DMA_RX_0>;
};
platform {
sound-dai = <&q6routing>;
};
codec {
sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro>;
};
};
va-dai-link {
link-name = "VA Capture";
cpu {
sound-dai = <&q6afedai VA_CODEC_DMA_TX_0>;
};
platform {
sound-dai = <&q6routing>;
};
codec {
sound-dai = <&vamacro 0>;
};
};
usb-dai-link {
link-name = "USB Playback";
cpu {
sound-dai = <&q6afedai USB_RX>;
};
codec {
sound-dai = <&usbdai USB_RX>;
};
platform {
sound-dai = <&q6routing>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)