1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/google,sc7280-herobrine.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Google SC7280-Herobrine ASoC sound card driver
10 - Srinivasa Rao Mandadapu <srivasam@codeaurora.org>
11 - Judy Hsiao <judyhsiao@chromium.org>
14 This binding describes the SC7280 sound card which uses LPASS for audio.
17 - $ref: sound-card-common.yaml#
22 - google,sc7280-herobrine
31 "^dai-link@[0-9a-f]$":
33 Each subnode represents a dai link. Subnodes of each dai links would be
40 description: Indicates dai-link name and PCM stream name.
41 $ref: /schemas/types.yaml#/definitions/string
46 description: dai link address.
49 description: Holds subnode which indicates cpu dai.
57 additionalProperties: false
60 description: Holds subnode which indicates codec dai.
68 additionalProperties: false
71 description: Holds subnode which includes the phandle of q6apm platform device.
80 additionalProperties: false
88 additionalProperties: false
95 unevaluatedProperties: false
100 #include <dt-bindings/sound/qcom,lpass.h>
102 compatible = "google,sc7280-herobrine";
103 model = "sc7280-wcd938x-max98360a-4dmic";
106 "IN1_HPHL", "HPHL_OUT",
107 "IN2_HPHR", "HPHR_OUT",
108 "AMIC1", "MIC BIAS1",
109 "AMIC2", "MIC BIAS2",
110 "VA DMIC0", "MIC BIAS3",
111 "VA DMIC1", "MIC BIAS3",
112 "VA DMIC2", "MIC BIAS4",
113 "VA DMIC3", "MIC BIAS4",
114 "TX SWR_ADC0", "ADC1_OUTPUT",
115 "TX SWR_ADC1", "ADC2_OUTPUT",
116 "TX SWR_ADC2", "ADC3_OUTPUT",
117 "TX SWR_DMIC0", "DMIC1_OUTPUT",
118 "TX SWR_DMIC1", "DMIC2_OUTPUT",
119 "TX SWR_DMIC2", "DMIC3_OUTPUT",
120 "TX SWR_DMIC3", "DMIC4_OUTPUT";
122 #address-cells = <1>;
126 link-name = "WCD Playback";
127 reg = <LPASS_CDC_DMA_RX0>;
129 sound-dai = <&lpass_cpu LPASS_CDC_DMA_RX0>;
133 sound-dai = <&wcd938x 0>, <&swr0 0>, <&rxmacro 0>;
137 link-name = "WCD Capture";
138 reg = <LPASS_CDC_DMA_TX3>;
140 sound-dai = <&lpass_cpu LPASS_CDC_DMA_TX3>;
144 sound-dai = <&wcd938x 1>, <&swr1 0>, <&txmacro 0>;
149 link-name = "MI2S Playback";
150 reg = <MI2S_SECONDARY>;
152 sound-dai = <&lpass_cpu MI2S_SECONDARY>;
156 sound-dai = <&max98360a>;
161 link-name = "DMIC Capture";
162 reg = <LPASS_CDC_DMA_VA_TX0>;
164 sound-dai = <&lpass_cpu LPASS_CDC_DMA_VA_TX0>;
168 sound-dai = <&vamacro 0>;
173 link-name = "DP Playback";
176 sound-dai = <&lpass_cpu LPASS_DP_RX>;
180 sound-dai = <&mdss_dp>;