forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm64/boot/dts/rockchip/rk3399-evb.dts
....@@ -9,8 +9,7 @@
99
1010 / {
1111 model = "Rockchip RK3399 Evaluation Board";
12
- compatible = "rockchip,rk3399-evb", "rockchip,rk3399",
13
- "google,rk3399evb-rev2";
12
+ compatible = "rockchip,rk3399-evb", "rockchip,rk3399";
1413
1514 backlight: backlight {
1615 compatible = "pwm-backlight";
....@@ -48,8 +47,20 @@
4847 240 241 242 243 244 245 246 247
4948 248 249 250 251 252 253 254 255>;
5049 default-brightness-level = <200>;
51
- enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
5250 pwms = <&pwm0 0 25000 0>;
51
+ };
52
+
53
+ edp_panel: edp-panel {
54
+ compatible ="lg,lp079qx1-sp0v";
55
+ backlight = <&backlight>;
56
+ enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
57
+ power-supply = <&vcc3v3_s0>;
58
+
59
+ port {
60
+ panel_in_edp: endpoint {
61
+ remote-endpoint = <&edp_out_panel>;
62
+ };
63
+ };
5364 };
5465
5566 clkin_gmac: external-gmac-clock {
....@@ -114,6 +125,24 @@
114125
115126 };
116127
128
+&edp {
129
+ status = "okay";
130
+ force-hpd;
131
+
132
+ ports {
133
+ edp_out: port@1 {
134
+ reg = <1>;
135
+ #address-cells = <1>;
136
+ #size-cells = <0>;
137
+
138
+ edp_out_panel: endpoint@0 {
139
+ reg = <0>;
140
+ remote-endpoint = <&panel_in_edp>;
141
+ };
142
+ };
143
+ };
144
+};
145
+
117146 &emmc_phy {
118147 status = "okay";
119148 };
....@@ -134,6 +163,228 @@
134163 status = "okay";
135164 };
136165
166
+&i2c0 {
167
+ status = "okay";
168
+
169
+ rk808: pmic@1b {
170
+ compatible = "rockchip,rk808";
171
+ reg = <0x1b>;
172
+ interrupt-parent = <&gpio1>;
173
+ interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
174
+ pinctrl-names = "default";
175
+ pinctrl-0 = <&pmic_int_l>;
176
+ rockchip,system-power-controller;
177
+ wakeup-source;
178
+ #clock-cells = <1>;
179
+ clock-output-names = "rk808-clkout1", "rk808-clkout2";
180
+
181
+ vcc1-supply = <&vcc3v3_sys>;
182
+ vcc2-supply = <&vcc3v3_sys>;
183
+ vcc3-supply = <&vcc3v3_sys>;
184
+ vcc4-supply = <&vcc3v3_sys>;
185
+ vcc6-supply = <&vcc3v3_sys>;
186
+ vcc7-supply = <&vcc3v3_sys>;
187
+ vcc8-supply = <&vcc3v3_sys>;
188
+ vcc9-supply = <&vcc3v3_sys>;
189
+ vcc10-supply = <&vcc3v3_sys>;
190
+ vcc11-supply = <&vcc3v3_sys>;
191
+ vcc12-supply = <&vcc3v3_sys>;
192
+ vddio-supply = <&vcc1v8_pmu>;
193
+
194
+ regulators {
195
+ vdd_log: DCDC_REG1 {
196
+ regulator-name = "vdd_log";
197
+ regulator-min-microvolt = <750000>;
198
+ regulator-max-microvolt = <1350000>;
199
+ regulator-ramp-delay = <6001>;
200
+ regulator-always-on;
201
+ regulator-boot-on;
202
+ regulator-state-mem {
203
+ regulator-on-in-suspend;
204
+ regulator-suspend-microvolt = <900000>;
205
+ };
206
+ };
207
+
208
+ vdd_cpu_l: DCDC_REG2 {
209
+ regulator-name = "vdd_cpu_l";
210
+ regulator-min-microvolt = <750000>;
211
+ regulator-max-microvolt = <1350000>;
212
+ regulator-ramp-delay = <6001>;
213
+ regulator-always-on;
214
+ regulator-boot-on;
215
+ regulator-state-mem {
216
+ regulator-off-in-suspend;
217
+ };
218
+ };
219
+
220
+ vcc_ddr: DCDC_REG3 {
221
+ regulator-name = "vcc_ddr";
222
+ regulator-always-on;
223
+ regulator-boot-on;
224
+ regulator-state-mem {
225
+ regulator-on-in-suspend;
226
+ };
227
+ };
228
+
229
+ vcc_1v8: DCDC_REG4 {
230
+ regulator-name = "vcc_1v8";
231
+ regulator-min-microvolt = <1800000>;
232
+ regulator-max-microvolt = <1800000>;
233
+ regulator-always-on;
234
+ regulator-boot-on;
235
+ regulator-state-mem {
236
+ regulator-on-in-suspend;
237
+ regulator-suspend-microvolt = <1800000>;
238
+ };
239
+ };
240
+
241
+ vcc1v8_dvp: LDO_REG1 {
242
+ regulator-name = "vcc1v8_dvp";
243
+ regulator-min-microvolt = <1800000>;
244
+ regulator-max-microvolt = <1800000>;
245
+ regulator-always-on;
246
+ regulator-boot-on;
247
+ regulator-state-mem {
248
+ regulator-off-in-suspend;
249
+ };
250
+ };
251
+
252
+ vcc3v0_tp: LDO_REG2 {
253
+ regulator-name = "vcc3v0_tp";
254
+ regulator-min-microvolt = <3000000>;
255
+ regulator-max-microvolt = <3000000>;
256
+ regulator-always-on;
257
+ regulator-boot-on;
258
+ regulator-state-mem {
259
+ regulator-off-in-suspend;
260
+ };
261
+ };
262
+
263
+ vcc1v8_pmu: LDO_REG3 {
264
+ regulator-name = "vcc1v8_pmu";
265
+ regulator-min-microvolt = <1800000>;
266
+ regulator-max-microvolt = <1800000>;
267
+ regulator-always-on;
268
+ regulator-boot-on;
269
+ regulator-state-mem {
270
+ regulator-on-in-suspend;
271
+ regulator-suspend-microvolt = <1800000>;
272
+ };
273
+ };
274
+
275
+ vcc_sd: LDO_REG4 {
276
+ regulator-name = "vcc_sd";
277
+ regulator-min-microvolt = <1800000>;
278
+ regulator-max-microvolt = <3000000>;
279
+ regulator-always-on;
280
+ regulator-boot-on;
281
+ regulator-state-mem {
282
+ regulator-on-in-suspend;
283
+ regulator-suspend-microvolt = <3000000>;
284
+ };
285
+ };
286
+
287
+ vcca3v0_codec: LDO_REG5 {
288
+ regulator-name = "vcca3v0_codec";
289
+ regulator-min-microvolt = <3000000>;
290
+ regulator-max-microvolt = <3000000>;
291
+ regulator-always-on;
292
+ regulator-boot-on;
293
+ regulator-state-mem {
294
+ regulator-off-in-suspend;
295
+ };
296
+ };
297
+
298
+ vcc_1v5: LDO_REG6 {
299
+ regulator-name = "vcc_1v5";
300
+ regulator-min-microvolt = <1500000>;
301
+ regulator-max-microvolt = <1500000>;
302
+ regulator-always-on;
303
+ regulator-boot-on;
304
+ regulator-state-mem {
305
+ regulator-on-in-suspend;
306
+ regulator-suspend-microvolt = <1500000>;
307
+ };
308
+ };
309
+
310
+ vcca1v8_codec: LDO_REG7 {
311
+ regulator-name = "vcca1v8_codec";
312
+ regulator-min-microvolt = <1800000>;
313
+ regulator-max-microvolt = <1800000>;
314
+ regulator-always-on;
315
+ regulator-boot-on;
316
+ regulator-state-mem {
317
+ regulator-off-in-suspend;
318
+ };
319
+ };
320
+
321
+ vcc_3v0: LDO_REG8 {
322
+ regulator-name = "vcc_3v0";
323
+ regulator-min-microvolt = <3000000>;
324
+ regulator-max-microvolt = <3000000>;
325
+ regulator-always-on;
326
+ regulator-boot-on;
327
+ regulator-state-mem {
328
+ regulator-on-in-suspend;
329
+ regulator-suspend-microvolt = <3000000>;
330
+ };
331
+ };
332
+
333
+ vcc3v3_s3: SWITCH_REG1 {
334
+ regulator-name = "vcc3v3_s3";
335
+ regulator-always-on;
336
+ regulator-boot-on;
337
+ regulator-state-mem {
338
+ regulator-on-in-suspend;
339
+ };
340
+ };
341
+
342
+ vcc3v3_s0: SWITCH_REG2 {
343
+ regulator-name = "vcc3v3_s0";
344
+ regulator-always-on;
345
+ regulator-boot-on;
346
+ regulator-state-mem {
347
+ regulator-off-in-suspend;
348
+ };
349
+ };
350
+ };
351
+ };
352
+
353
+ vdd_cpu_b: regulator@40 {
354
+ compatible = "silergy,syr827";
355
+ reg = <0x40>;
356
+ fcs,suspend-voltage-selector = <1>;
357
+ regulator-name = "vdd_cpu_b";
358
+ regulator-min-microvolt = <712500>;
359
+ regulator-max-microvolt = <1500000>;
360
+ regulator-ramp-delay = <1000>;
361
+ regulator-always-on;
362
+ regulator-boot-on;
363
+ vin-supply = <&vcc5v0_sys>;
364
+
365
+ regulator-state-mem {
366
+ regulator-off-in-suspend;
367
+ };
368
+ };
369
+
370
+ vdd_gpu: regulator@41 {
371
+ compatible = "silergy,syr828";
372
+ reg = <0x41>;
373
+ fcs,suspend-voltage-selector = <1>;
374
+ regulator-name = "vdd_gpu";
375
+ regulator-min-microvolt = <712500>;
376
+ regulator-max-microvolt = <1500000>;
377
+ regulator-ramp-delay = <1000>;
378
+ regulator-always-on;
379
+ regulator-boot-on;
380
+ vin-supply = <&vcc5v0_sys>;
381
+
382
+ regulator-state-mem {
383
+ regulator-off-in-suspend;
384
+ };
385
+ };
386
+};
387
+
137388 &pwm0 {
138389 status = "okay";
139390 };
....@@ -144,8 +395,6 @@
144395
145396 &pwm3 {
146397 status = "okay";
147
- pinctrl-names = "active";
148
- pinctrl-0 = <&pwm3a_pin_pull_down>;
149398 };
150399
151400 &sdhci {
....@@ -212,11 +461,6 @@
212461 rockchip,pins =
213462 <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
214463 };
215
-
216
- pmic_dvs2: pmic-dvs2 {
217
- rockchip,pins =
218
- <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
219
- };
220464 };
221465
222466 usb2 {
....@@ -226,3 +470,11 @@
226470 };
227471 };
228472 };
473
+
474
+&vopb {
475
+ status = "okay";
476
+};
477
+
478
+&vopb_mmu {
479
+ status = "okay";
480
+};