.. | .. |
---|
1 | 1 | // SPDX-License-Identifier: GPL-2.0 |
---|
2 | 2 | /* |
---|
3 | | - * Hardkernel Odroid XU3 board device tree source |
---|
| 3 | + * Hardkernel Odroid XU3/XU3-Lite/XU4 boards common device tree source |
---|
4 | 4 | * |
---|
5 | 5 | * Copyright (c) 2013 Samsung Electronics Co., Ltd. |
---|
6 | 6 | * http://www.samsung.com |
---|
.. | .. |
---|
44 | 44 | fan0: pwm-fan { |
---|
45 | 45 | compatible = "pwm-fan"; |
---|
46 | 46 | pwms = <&pwm 0 20972 0>; |
---|
47 | | - cooling-min-state = <0>; |
---|
48 | | - cooling-max-state = <3>; |
---|
49 | 47 | #cooling-cells = <2>; |
---|
50 | 48 | cooling-levels = <0 130 170 230>; |
---|
51 | 49 | }; |
---|
52 | 50 | |
---|
53 | 51 | thermal-zones { |
---|
54 | 52 | cpu0_thermal: cpu0-thermal { |
---|
55 | | - thermal-sensors = <&tmu_cpu0 0>; |
---|
| 53 | + thermal-sensors = <&tmu_cpu0>; |
---|
56 | 54 | polling-delay-passive = <250>; |
---|
57 | 55 | polling-delay = <0>; |
---|
58 | 56 | trips { |
---|
.. | .. |
---|
109 | 107 | /* |
---|
110 | 108 | * When reaching cpu0_alert3, reduce CPU |
---|
111 | 109 | * by 2 steps. On Exynos5422/5800 that would |
---|
112 | | - * be: 1600 MHz and 1100 MHz. |
---|
| 110 | + * (usually) be: 1800 MHz and 1200 MHz. |
---|
113 | 111 | */ |
---|
114 | 112 | map3 { |
---|
115 | 113 | 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>; |
---|
121 | 122 | }; |
---|
122 | 123 | /* |
---|
123 | 124 | * 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). |
---|
126 | 127 | */ |
---|
127 | | - map5 { |
---|
| 128 | + cpu0_cooling_map4: map4 { |
---|
128 | 129 | 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>; |
---|
134 | 138 | }; |
---|
135 | 139 | }; |
---|
136 | 140 | }; |
---|
137 | 141 | cpu1_thermal: cpu1-thermal { |
---|
138 | | - thermal-sensors = <&tmu_cpu1 0>; |
---|
| 142 | + thermal-sensors = <&tmu_cpu1>; |
---|
139 | 143 | polling-delay-passive = <250>; |
---|
140 | 144 | polling-delay = <0>; |
---|
141 | 145 | trips { |
---|
.. | .. |
---|
185 | 189 | }; |
---|
186 | 190 | map3 { |
---|
187 | 191 | 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>; |
---|
189 | 200 | }; |
---|
190 | | - map4 { |
---|
191 | | - trip = <&cpu1_alert3>; |
---|
192 | | - cooling-device = <&cpu4 0 2>; |
---|
193 | | - }; |
---|
194 | | - map5 { |
---|
| 201 | + cpu1_cooling_map4: map4 { |
---|
195 | 202 | 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>; |
---|
201 | 211 | }; |
---|
202 | 212 | }; |
---|
203 | 213 | }; |
---|
204 | 214 | cpu2_thermal: cpu2-thermal { |
---|
205 | | - thermal-sensors = <&tmu_cpu2 0>; |
---|
| 215 | + thermal-sensors = <&tmu_cpu2>; |
---|
206 | 216 | polling-delay-passive = <250>; |
---|
207 | 217 | polling-delay = <0>; |
---|
208 | 218 | trips { |
---|
.. | .. |
---|
252 | 262 | }; |
---|
253 | 263 | map3 { |
---|
254 | 264 | 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>; |
---|
256 | 273 | }; |
---|
257 | | - map4 { |
---|
258 | | - trip = <&cpu2_alert3>; |
---|
259 | | - cooling-device = <&cpu4 0 2>; |
---|
260 | | - }; |
---|
261 | | - map5 { |
---|
| 274 | + cpu2_cooling_map4: map4 { |
---|
262 | 275 | 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>; |
---|
268 | 284 | }; |
---|
269 | 285 | }; |
---|
270 | 286 | }; |
---|
271 | 287 | cpu3_thermal: cpu3-thermal { |
---|
272 | | - thermal-sensors = <&tmu_cpu3 0>; |
---|
| 288 | + thermal-sensors = <&tmu_cpu3>; |
---|
273 | 289 | polling-delay-passive = <250>; |
---|
274 | 290 | polling-delay = <0>; |
---|
275 | 291 | trips { |
---|
.. | .. |
---|
319 | 335 | }; |
---|
320 | 336 | map3 { |
---|
321 | 337 | 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>; |
---|
323 | 412 | }; |
---|
324 | 413 | 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>; |
---|
335 | 416 | }; |
---|
336 | 417 | }; |
---|
337 | 418 | }; |
---|
338 | 419 | }; |
---|
339 | 420 | }; |
---|
340 | 421 | |
---|
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; |
---|
344 | 426 | }; |
---|
345 | 427 | |
---|
346 | 428 | &hdmi { |
---|
.. | .. |
---|
367 | 449 | status = "okay"; |
---|
368 | 450 | }; |
---|
369 | 451 | |
---|
| 452 | +&ldo26_reg { |
---|
| 453 | + regulator-min-microvolt = <3000000>; |
---|
| 454 | + regulator-max-microvolt = <3000000>; |
---|
| 455 | + regulator-always-on; |
---|
| 456 | +}; |
---|
| 457 | + |
---|
370 | 458 | &mixer { |
---|
371 | 459 | status = "okay"; |
---|
372 | 460 | }; |
---|
.. | .. |
---|
386 | 474 | cap-mmc-highspeed; |
---|
387 | 475 | mmc-hs200-1_8v; |
---|
388 | 476 | mmc-hs400-1_8v; |
---|
| 477 | + max-frequency = <200000000>; |
---|
389 | 478 | vmmc-supply = <&ldo18_reg>; |
---|
390 | 479 | vqmmc-supply = <&ldo3_reg>; |
---|
391 | 480 | }; |
---|