forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi
....@@ -1,6 +1,6 @@
11 // SPDX-License-Identifier: GPL-2.0
22 /*
3
- * Hardkernel Odroid XU3 board device tree source
3
+ * Hardkernel Odroid XU3/XU3-Lite/XU4 boards common device tree source
44 *
55 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
66 * http://www.samsung.com
....@@ -44,15 +44,13 @@
4444 fan0: pwm-fan {
4545 compatible = "pwm-fan";
4646 pwms = <&pwm 0 20972 0>;
47
- cooling-min-state = <0>;
48
- cooling-max-state = <3>;
4947 #cooling-cells = <2>;
5048 cooling-levels = <0 130 170 230>;
5149 };
5250
5351 thermal-zones {
5452 cpu0_thermal: cpu0-thermal {
55
- thermal-sensors = <&tmu_cpu0 0>;
53
+ thermal-sensors = <&tmu_cpu0>;
5654 polling-delay-passive = <250>;
5755 polling-delay = <0>;
5856 trips {
....@@ -109,33 +107,39 @@
109107 /*
110108 * When reaching cpu0_alert3, reduce CPU
111109 * by 2 steps. On Exynos5422/5800 that would
112
- * be: 1600 MHz and 1100 MHz.
110
+ * (usually) be: 1800 MHz and 1200 MHz.
113111 */
114112 map3 {
115113 trip = <&cpu0_alert3>;
116
- cooling-device = <&cpu0 0 2>;
117
- };
118
- map4 {
119
- trip = <&cpu0_alert3>;
120
- cooling-device = <&cpu4 0 2>;
114
+ cooling-device = <&cpu0 0 2>,
115
+ <&cpu1 0 2>,
116
+ <&cpu2 0 2>,
117
+ <&cpu3 0 2>,
118
+ <&cpu4 0 2>,
119
+ <&cpu5 0 2>,
120
+ <&cpu6 0 2>,
121
+ <&cpu7 0 2>;
121122 };
122123 /*
123124 * When reaching cpu0_alert4, reduce CPU
124
- * further, down to 600 MHz (12 steps for big,
125
- * 7 steps for LITTLE).
125
+ * further, down to 600 MHz (14 steps for big,
126
+ * 8 steps for LITTLE).
126127 */
127
- map5 {
128
+ cpu0_cooling_map4: map4 {
128129 trip = <&cpu0_alert4>;
129
- cooling-device = <&cpu0 3 7>;
130
- };
131
- map6 {
132
- trip = <&cpu0_alert4>;
133
- cooling-device = <&cpu4 3 12>;
130
+ cooling-device = <&cpu0 3 8>,
131
+ <&cpu1 3 8>,
132
+ <&cpu2 3 8>,
133
+ <&cpu3 3 8>,
134
+ <&cpu4 3 14>,
135
+ <&cpu5 3 14>,
136
+ <&cpu6 3 14>,
137
+ <&cpu7 3 14>;
134138 };
135139 };
136140 };
137141 cpu1_thermal: cpu1-thermal {
138
- thermal-sensors = <&tmu_cpu1 0>;
142
+ thermal-sensors = <&tmu_cpu1>;
139143 polling-delay-passive = <250>;
140144 polling-delay = <0>;
141145 trips {
....@@ -185,24 +189,30 @@
185189 };
186190 map3 {
187191 trip = <&cpu1_alert3>;
188
- cooling-device = <&cpu0 0 2>;
192
+ cooling-device = <&cpu0 0 2>,
193
+ <&cpu1 0 2>,
194
+ <&cpu2 0 2>,
195
+ <&cpu3 0 2>,
196
+ <&cpu4 0 2>,
197
+ <&cpu5 0 2>,
198
+ <&cpu6 0 2>,
199
+ <&cpu7 0 2>;
189200 };
190
- map4 {
191
- trip = <&cpu1_alert3>;
192
- cooling-device = <&cpu4 0 2>;
193
- };
194
- map5 {
201
+ cpu1_cooling_map4: map4 {
195202 trip = <&cpu1_alert4>;
196
- cooling-device = <&cpu0 3 7>;
197
- };
198
- map6 {
199
- trip = <&cpu1_alert4>;
200
- cooling-device = <&cpu4 3 12>;
203
+ cooling-device = <&cpu0 3 8>,
204
+ <&cpu1 3 8>,
205
+ <&cpu2 3 8>,
206
+ <&cpu3 3 8>,
207
+ <&cpu4 3 14>,
208
+ <&cpu5 3 14>,
209
+ <&cpu6 3 14>,
210
+ <&cpu7 3 14>;
201211 };
202212 };
203213 };
204214 cpu2_thermal: cpu2-thermal {
205
- thermal-sensors = <&tmu_cpu2 0>;
215
+ thermal-sensors = <&tmu_cpu2>;
206216 polling-delay-passive = <250>;
207217 polling-delay = <0>;
208218 trips {
....@@ -252,24 +262,30 @@
252262 };
253263 map3 {
254264 trip = <&cpu2_alert3>;
255
- cooling-device = <&cpu0 0 2>;
265
+ cooling-device = <&cpu0 0 2>,
266
+ <&cpu1 0 2>,
267
+ <&cpu2 0 2>,
268
+ <&cpu3 0 2>,
269
+ <&cpu4 0 2>,
270
+ <&cpu5 0 2>,
271
+ <&cpu6 0 2>,
272
+ <&cpu7 0 2>;
256273 };
257
- map4 {
258
- trip = <&cpu2_alert3>;
259
- cooling-device = <&cpu4 0 2>;
260
- };
261
- map5 {
274
+ cpu2_cooling_map4: map4 {
262275 trip = <&cpu2_alert4>;
263
- cooling-device = <&cpu0 3 7>;
264
- };
265
- map6 {
266
- trip = <&cpu2_alert4>;
267
- cooling-device = <&cpu4 3 12>;
276
+ cooling-device = <&cpu0 3 8>,
277
+ <&cpu1 3 8>,
278
+ <&cpu2 3 8>,
279
+ <&cpu3 3 8>,
280
+ <&cpu4 3 14>,
281
+ <&cpu5 3 14>,
282
+ <&cpu6 3 14>,
283
+ <&cpu7 3 14>;
268284 };
269285 };
270286 };
271287 cpu3_thermal: cpu3-thermal {
272
- thermal-sensors = <&tmu_cpu3 0>;
288
+ thermal-sensors = <&tmu_cpu3>;
273289 polling-delay-passive = <250>;
274290 polling-delay = <0>;
275291 trips {
....@@ -319,28 +335,94 @@
319335 };
320336 map3 {
321337 trip = <&cpu3_alert3>;
322
- cooling-device = <&cpu0 0 2>;
338
+ cooling-device = <&cpu0 0 2>,
339
+ <&cpu1 0 2>,
340
+ <&cpu2 0 2>,
341
+ <&cpu3 0 2>,
342
+ <&cpu4 0 2>,
343
+ <&cpu5 0 2>,
344
+ <&cpu6 0 2>,
345
+ <&cpu7 0 2>;
346
+ };
347
+ cpu3_cooling_map4: map4 {
348
+ trip = <&cpu3_alert4>;
349
+ cooling-device = <&cpu0 3 8>,
350
+ <&cpu1 3 8>,
351
+ <&cpu2 3 8>,
352
+ <&cpu3 3 8>,
353
+ <&cpu4 3 14>,
354
+ <&cpu5 3 14>,
355
+ <&cpu6 3 14>,
356
+ <&cpu7 3 14>;
357
+ };
358
+ };
359
+ };
360
+ gpu_thermal: gpu-thermal {
361
+ thermal-sensors = <&tmu_gpu>;
362
+ polling-delay-passive = <250>;
363
+ polling-delay = <0>;
364
+ trips {
365
+ gpu_alert0: gpu-alert-0 {
366
+ temperature = <50000>;
367
+ hysteresis = <5000>;
368
+ type = "active";
369
+ };
370
+ gpu_alert1: gpu-alert-1 {
371
+ temperature = <60000>;
372
+ hysteresis = <5000>;
373
+ type = "active";
374
+ };
375
+ gpu_alert2: gpu-alert-2 {
376
+ temperature = <70000>;
377
+ hysteresis = <5000>;
378
+ type = "active";
379
+ };
380
+ gpu_crit0: gpu-crit-0 {
381
+ temperature = <120000>;
382
+ hysteresis = <0>;
383
+ type = "critical";
384
+ };
385
+ gpu_alert3: gpu-alert-3 {
386
+ temperature = <70000>;
387
+ hysteresis = <10000>;
388
+ type = "passive";
389
+ };
390
+ gpu_alert4: gpu-alert-4 {
391
+ temperature = <85000>;
392
+ hysteresis = <10000>;
393
+ type = "passive";
394
+ };
395
+ };
396
+ cooling-maps {
397
+ map0 {
398
+ trip = <&gpu_alert0>;
399
+ cooling-device = <&fan0 0 1>;
400
+ };
401
+ map1 {
402
+ trip = <&gpu_alert1>;
403
+ cooling-device = <&fan0 1 2>;
404
+ };
405
+ map2 {
406
+ trip = <&gpu_alert2>;
407
+ cooling-device = <&fan0 2 3>;
408
+ };
409
+ map3 {
410
+ trip = <&gpu_alert3>;
411
+ cooling-device = <&gpu 0 2>;
323412 };
324413 map4 {
325
- trip = <&cpu3_alert3>;
326
- cooling-device = <&cpu4 0 2>;
327
- };
328
- map5 {
329
- trip = <&cpu3_alert4>;
330
- cooling-device = <&cpu0 3 7>;
331
- };
332
- map6 {
333
- trip = <&cpu3_alert4>;
334
- cooling-device = <&cpu4 3 12>;
414
+ trip = <&gpu_alert4>;
415
+ cooling-device = <&gpu 3 6>;
335416 };
336417 };
337418 };
338419 };
339420 };
340421
341
-&adc {
342
- vdd-supply = <&ldo4_reg>;
343
- status = "okay";
422
+&buck10_reg {
423
+ /* Supplies vmmc-supply of mmc_0 */
424
+ regulator-always-on;
425
+ regulator-boot-on;
344426 };
345427
346428 &hdmi {
....@@ -367,6 +449,12 @@
367449 status = "okay";
368450 };
369451
452
+&ldo26_reg {
453
+ regulator-min-microvolt = <3000000>;
454
+ regulator-max-microvolt = <3000000>;
455
+ regulator-always-on;
456
+};
457
+
370458 &mixer {
371459 status = "okay";
372460 };
....@@ -386,6 +474,7 @@
386474 cap-mmc-highspeed;
387475 mmc-hs200-1_8v;
388476 mmc-hs400-1_8v;
477
+ max-frequency = <200000000>;
389478 vmmc-supply = <&ldo18_reg>;
390479 vqmmc-supply = <&ldo3_reg>;
391480 };