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 - Judy Hsiao <judyhsiao@chromium.org>
13 This binding describes the SC7280 sound card which uses LPASS for audio.
16 - $ref: sound-card-common.yaml#
21 - google,sc7280-herobrine
30 "^dai-link@[0-9a-f]$":
32 Each subnode represents a dai link. Subnodes of each dai links would be
39 description: Indicates dai-link name and PCM stream name.
40 $ref: /schemas/types.yaml#/definitions/string
45 description: dai link address.
48 description: Holds subnode which indicates cpu dai.
56 additionalProperties: false
59 description: Holds subnode which indicates codec dai.
67 additionalProperties: false
70 description: Holds subnode which includes the phandle of q6apm platform device.
79 additionalProperties: false
87 additionalProperties: false
94 unevaluatedProperties: false
99 #include <dt-bindings/sound/qcom,lpass.h>
101 compatible = "google,sc7280-herobrine";
102 model = "sc7280-wcd938x-max98360a-4dmic";
105 "IN1_HPHL", "HPHL_OUT",
106 "IN2_HPHR", "HPHR_OUT",
107 "AMIC1", "MIC BIAS1",
108 "AMIC2", "MIC BIAS2",
109 "VA DMIC0", "MIC BIAS3",
110 "VA DMIC1", "MIC BIAS3",
111 "VA DMIC2", "MIC BIAS4",
112 "VA DMIC3", "MIC BIAS4",
113 "TX SWR_ADC0", "ADC1_OUTPUT",
114 "TX SWR_ADC1", "ADC2_OUTPUT",
115 "TX SWR_ADC2", "ADC3_OUTPUT",
116 "TX SWR_DMIC0", "DMIC1_OUTPUT",
117 "TX SWR_DMIC1", "DMIC2_OUTPUT",
118 "TX SWR_DMIC2", "DMIC3_OUTPUT",
119 "TX SWR_DMIC3", "DMIC4_OUTPUT";
121 #address-cells = <1>;
125 link-name = "WCD Playback";
126 reg = <LPASS_CDC_DMA_RX0>;
128 sound-dai = <&lpass_cpu LPASS_CDC_DMA_RX0>;
132 sound-dai = <&wcd938x 0>, <&swr0 0>, <&rxmacro 0>;
136 link-name = "WCD Capture";
137 reg = <LPASS_CDC_DMA_TX3>;
139 sound-dai = <&lpass_cpu LPASS_CDC_DMA_TX3>;
143 sound-dai = <&wcd938x 1>, <&swr1 0>, <&txmacro 0>;
148 link-name = "MI2S Playback";
149 reg = <MI2S_SECONDARY>;
151 sound-dai = <&lpass_cpu MI2S_SECONDARY>;
155 sound-dai = <&max98360a>;
160 link-name = "DMIC Capture";
161 reg = <LPASS_CDC_DMA_VA_TX0>;
163 sound-dai = <&lpass_cpu LPASS_CDC_DMA_VA_TX0>;
167 sound-dai = <&vamacro 0>;
172 link-name = "DP Playback";
175 sound-dai = <&lpass_cpu LPASS_DP_RX>;
179 sound-dai = <&mdss_dp>;