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.
19 - google,sc7280-herobrine
22 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
24 A list of the connections between audio components. Each entry is a
25 pair of strings, the first being the connection's sink, the second
26 being the connection's source.
29 $ref: /schemas/types.yaml#/definitions/string
30 description: User specified audio sound card name
39 "^dai-link@[0-9a-f]$":
41 Each subnode represents a dai link. Subnodes of each dai links would be
48 description: Indicates dai-link name and PCM stream name.
49 $ref: /schemas/types.yaml#/definitions/string
54 description: dai link address.
57 description: Holds subnode which indicates cpu dai.
65 additionalProperties: false
68 description: Holds subnode which indicates codec dai.
76 additionalProperties: false
84 additionalProperties: false
92 additionalProperties: false
97 #include <dt-bindings/sound/qcom,lpass.h>
99 compatible = "google,sc7280-herobrine";
100 model = "sc7280-wcd938x-max98360a-4dmic";
103 "IN1_HPHL", "HPHL_OUT",
104 "IN2_HPHR", "HPHR_OUT",
105 "AMIC1", "MIC BIAS1",
106 "AMIC2", "MIC BIAS2",
107 "VA DMIC0", "MIC BIAS3",
108 "VA DMIC1", "MIC BIAS3",
109 "VA DMIC2", "MIC BIAS4",
110 "VA DMIC3", "MIC BIAS4",
111 "TX SWR_ADC0", "ADC1_OUTPUT",
112 "TX SWR_ADC1", "ADC2_OUTPUT",
113 "TX SWR_ADC2", "ADC3_OUTPUT",
114 "TX SWR_DMIC0", "DMIC1_OUTPUT",
115 "TX SWR_DMIC1", "DMIC2_OUTPUT",
116 "TX SWR_DMIC2", "DMIC3_OUTPUT",
117 "TX SWR_DMIC3", "DMIC4_OUTPUT";
119 #address-cells = <1>;
123 link-name = "WCD Playback";
124 reg = <LPASS_CDC_DMA_RX0>;
126 sound-dai = <&lpass_cpu LPASS_CDC_DMA_RX0>;
130 sound-dai = <&wcd938x 0>, <&swr0 0>, <&rxmacro 0>;
134 link-name = "WCD Capture";
135 reg = <LPASS_CDC_DMA_TX3>;
137 sound-dai = <&lpass_cpu LPASS_CDC_DMA_TX3>;
141 sound-dai = <&wcd938x 1>, <&swr1 0>, <&txmacro 0>;
146 link-name = "MI2S Playback";
147 reg = <MI2S_SECONDARY>;
149 sound-dai = <&lpass_cpu MI2S_SECONDARY>;
153 sound-dai = <&max98360a>;
158 link-name = "DMIC Capture";
159 reg = <LPASS_CDC_DMA_VA_TX0>;
161 sound-dai = <&lpass_cpu LPASS_CDC_DMA_VA_TX0>;
165 sound-dai = <&vamacro 0>;
170 link-name = "DP Playback";
173 sound-dai = <&lpass_cpu LPASS_DP_RX>;
177 sound-dai = <&mdss_dp>;