forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/arm/boot/dts/da850-lcdk.dts
....@@ -1,7 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2016 BayLibre, Inc.
3
- *
4
- * Licensed under GPLv2.
54 */
65 /dts-v1/;
76 #include "da850.dtsi"
....@@ -74,12 +73,16 @@
7473 simple-audio-card,name = "DA850-OMAPL138 LCDK";
7574 simple-audio-card,widgets =
7675 "Line", "Line In",
77
- "Line", "Line Out";
76
+ "Line", "Line Out",
77
+ "Microphone", "Mic Jack";
7878 simple-audio-card,routing =
7979 "LINE1L", "Line In",
8080 "LINE1R", "Line In",
8181 "Line Out", "LLOUT",
82
- "Line Out", "RLOUT";
82
+ "Line Out", "RLOUT",
83
+ "MIC3L", "Mic Jack",
84
+ "MIC3R", "Mic Jack",
85
+ "Mic Jack", "Mic Bias";
8386 simple-audio-card,format = "dsp_b";
8487 simple-audio-card,bitclock-master = <&link0_codec>;
8588 simple-audio-card,frame-master = <&link0_codec>;
....@@ -151,10 +154,46 @@
151154 };
152155 };
153156 };
157
+
158
+ cvdd: regulator0 {
159
+ compatible = "regulator-fixed";
160
+ regulator-name = "cvdd";
161
+ regulator-min-microvolt = <1300000>;
162
+ regulator-max-microvolt = <1300000>;
163
+ regulator-always-on;
164
+ regulator-boot-on;
165
+ };
154166 };
155167
156168 &ref_clk {
157169 clock-frequency = <24000000>;
170
+};
171
+
172
+&cpu {
173
+ cpu-supply = <&cvdd>;
174
+};
175
+
176
+/*
177
+ * LCDK has a fixed CVDD of 1.3V, so only operating points >= 300MHz are
178
+ * valid. Unfortunately due to a problem with the DA8XX OHCI controller, we
179
+ * can't enable more than one OPP by default, since the controller sometimes
180
+ * becomes unresponsive after a transition. Fix the frequency at 456 MHz.
181
+ */
182
+
183
+&opp_100 {
184
+ status = "disabled";
185
+};
186
+
187
+&opp_200 {
188
+ status = "disabled";
189
+};
190
+
191
+&opp_300 {
192
+ status = "disabled";
193
+};
194
+
195
+&opp_456 {
196
+ status = "okay";
158197 };
159198
160199 &pmx_core {
....@@ -250,6 +289,8 @@
250289 #sound-dai-cells = <0>;
251290 compatible = "ti,tlv320aic3106";
252291 reg = <0x18>;
292
+ adc-settle-ms = <40>;
293
+ ai3x-micbias-vg = <1>; /* 2.0V */
253294 status = "okay";
254295
255296 /* Regulators */