1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Hardkernel Odroid XU3/XU3-Lite/XU4 boards c 4 * 5 * Copyright (c) 2013 Samsung Electronics Co., 6 * http://www.samsung.com 7 * Copyright (c) 2014 Collabora Ltd. 8 * Copyright (c) 2015 Lukasz Majewski <l.majews 9 * Anand Moon <linux.amoon@g 10 */ 11 12 #include <dt-bindings/input/input.h> 13 #include "exynos5422-odroid-core.dtsi" 14 15 / { 16 aliases { 17 mmc0 = &mmc_0; 18 }; 19 20 gpio-keys { 21 compatible = "gpio-keys"; 22 pinctrl-names = "default"; 23 pinctrl-0 = <&power_key>; 24 25 power-key { 26 /* 27 * The power button (S 28 * pin (active high) o 29 * as a 16ms debouce f 30 * output on ONOB pin 31 * then connected to X 32 */ 33 gpios = <&gpx0 3 GPIO_ 34 linux,code = <KEY_POWE 35 label = "power key"; 36 debounce-interval = <0 37 wakeup-source; 38 }; 39 }; 40 41 emmc_pwrseq: pwrseq { 42 pinctrl-0 = <&emmc_nrst_pin>; 43 pinctrl-names = "default"; 44 compatible = "mmc-pwrseq-emmc" 45 reset-gpios = <&gpd1 0 GPIO_AC 46 }; 47 48 fan0: pwm-fan { 49 compatible = "pwm-fan"; 50 pwms = <&pwm 0 20972 0>; 51 #cooling-cells = <2>; 52 cooling-levels = <0 130 170 23 53 }; 54 55 thermal-zones { 56 cpu0_thermal: cpu0-thermal { 57 thermal-sensors = <&tm 58 polling-delay-passive 59 polling-delay = <0>; 60 trips { 61 cpu0_alert0: c 62 temper 63 hyster 64 type = 65 }; 66 cpu0_alert1: c 67 temper 68 hyster 69 type = 70 }; 71 cpu0_alert2: c 72 temper 73 hyster 74 type = 75 }; 76 cpu0_crit0: cp 77 temper 78 hyster 79 type = 80 }; 81 cpu0_alert3: c 82 temper 83 hyster 84 type = 85 }; 86 cpu0_alert4: c 87 temper 88 hyster 89 type = 90 }; 91 }; 92 cooling-maps { 93 map0 { 94 trip = 95 coolin 96 }; 97 map1 { 98 trip = 99 coolin 100 }; 101 map2 { 102 trip = 103 coolin 104 }; 105 /* 106 * When reachi 107 * by 2 steps. 108 * (usually) b 109 */ 110 map3 { 111 trip = 112 coolin 113 114 115 116 117 118 119 120 }; 121 /* 122 * When reachi 123 * further, do 124 * 8 steps for 125 */ 126 cpu0_cooling_m 127 trip = 128 coolin 129 130 131 132 133 134 135 136 }; 137 }; 138 }; 139 cpu1_thermal: cpu1-thermal { 140 thermal-sensors = <&tm 141 polling-delay-passive 142 polling-delay = <0>; 143 trips { 144 cpu1_alert0: c 145 temper 146 hyster 147 type = 148 }; 149 cpu1_alert1: c 150 temper 151 hyster 152 type = 153 }; 154 cpu1_alert2: c 155 temper 156 hyster 157 type = 158 }; 159 cpu1_crit0: cp 160 temper 161 hyster 162 type = 163 }; 164 cpu1_alert3: c 165 temper 166 hyster 167 type = 168 }; 169 cpu1_alert4: c 170 temper 171 hyster 172 type = 173 }; 174 }; 175 cooling-maps { 176 map0 { 177 trip = 178 coolin 179 }; 180 map1 { 181 trip = 182 coolin 183 }; 184 map2 { 185 trip = 186 coolin 187 }; 188 map3 { 189 trip = 190 coolin 191 192 193 194 195 196 197 198 }; 199 cpu1_cooling_m 200 trip = 201 coolin 202 203 204 205 206 207 208 209 }; 210 }; 211 }; 212 cpu2_thermal: cpu2-thermal { 213 thermal-sensors = <&tm 214 polling-delay-passive 215 polling-delay = <0>; 216 trips { 217 cpu2_alert0: c 218 temper 219 hyster 220 type = 221 }; 222 cpu2_alert1: c 223 temper 224 hyster 225 type = 226 }; 227 cpu2_alert2: c 228 temper 229 hyster 230 type = 231 }; 232 cpu2_crit0: cp 233 temper 234 hyster 235 type = 236 }; 237 cpu2_alert3: c 238 temper 239 hyster 240 type = 241 }; 242 cpu2_alert4: c 243 temper 244 hyster 245 type = 246 }; 247 }; 248 cooling-maps { 249 map0 { 250 trip = 251 coolin 252 }; 253 map1 { 254 trip = 255 coolin 256 }; 257 map2 { 258 trip = 259 coolin 260 }; 261 map3 { 262 trip = 263 coolin 264 265 266 267 268 269 270 271 }; 272 cpu2_cooling_m 273 trip = 274 coolin 275 276 277 278 279 280 281 282 }; 283 }; 284 }; 285 cpu3_thermal: cpu3-thermal { 286 thermal-sensors = <&tm 287 polling-delay-passive 288 polling-delay = <0>; 289 trips { 290 cpu3_alert0: c 291 temper 292 hyster 293 type = 294 }; 295 cpu3_alert1: c 296 temper 297 hyster 298 type = 299 }; 300 cpu3_alert2: c 301 temper 302 hyster 303 type = 304 }; 305 cpu3_crit0: cp 306 temper 307 hyster 308 type = 309 }; 310 cpu3_alert3: c 311 temper 312 hyster 313 type = 314 }; 315 cpu3_alert4: c 316 temper 317 hyster 318 type = 319 }; 320 }; 321 cooling-maps { 322 map0 { 323 trip = 324 coolin 325 }; 326 map1 { 327 trip = 328 coolin 329 }; 330 map2 { 331 trip = 332 coolin 333 }; 334 map3 { 335 trip = 336 coolin 337 338 339 340 341 342 343 344 }; 345 cpu3_cooling_m 346 trip = 347 coolin 348 349 350 351 352 353 354 355 }; 356 }; 357 }; 358 gpu_thermal: gpu-thermal { 359 thermal-sensors = <&tm 360 polling-delay-passive 361 polling-delay = <0>; 362 trips { 363 gpu_alert0: gp 364 temper 365 hyster 366 type = 367 }; 368 gpu_alert1: gp 369 temper 370 hyster 371 type = 372 }; 373 gpu_alert2: gp 374 temper 375 hyster 376 type = 377 }; 378 gpu_crit0: gpu 379 temper 380 hyster 381 type = 382 }; 383 gpu_alert3: gp 384 temper 385 hyster 386 type = 387 }; 388 gpu_alert4: gp 389 temper 390 hyster 391 type = 392 }; 393 }; 394 cooling-maps { 395 map0 { 396 trip = 397 coolin 398 }; 399 map1 { 400 trip = 401 coolin 402 }; 403 map2 { 404 trip = 405 coolin 406 }; 407 map3 { 408 trip = 409 coolin 410 }; 411 map4 { 412 trip = 413 coolin 414 }; 415 }; 416 }; 417 }; 418 }; 419 420 &buck10_reg { 421 /* Supplies vmmc-supply of mmc_0 */ 422 regulator-always-on; 423 regulator-boot-on; 424 }; 425 426 &hdmi { 427 status = "okay"; 428 ddc = <&i2c_2>; 429 hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH> 430 pinctrl-names = "default"; 431 pinctrl-0 = <&hdmi_hpd_irq>; 432 433 vdd_osc-supply = <&ldo7_reg>; 434 vdd_pll-supply = <&ldo6_reg>; 435 vdd-supply = <&ldo6_reg>; 436 }; 437 438 &hdmicec { 439 status = "okay"; 440 needs-hpd; 441 }; 442 443 &i2c_2 { 444 samsung,i2c-sda-delay = <100>; 445 samsung,i2c-max-bus-freq = <66000>; 446 /* used by HDMI DDC */ 447 status = "okay"; 448 }; 449 450 &ldo26_reg { 451 regulator-min-microvolt = <3000000>; 452 regulator-max-microvolt = <3000000>; 453 regulator-always-on; 454 }; 455 456 &mixer { 457 status = "okay"; 458 }; 459 460 &mmc_0 { 461 status = "okay"; 462 mmc-pwrseq = <&emmc_pwrseq>; 463 card-detect-delay = <200>; 464 samsung,dw-mshc-ciu-div = <3>; 465 samsung,dw-mshc-sdr-timing = <0 4>; 466 samsung,dw-mshc-ddr-timing = <0 2>; 467 samsung,dw-mshc-hs400-timing = <0 2>; 468 samsung,read-strobe-delay = <90>; 469 pinctrl-names = "default"; 470 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bu 471 bus-width = <8>; 472 cap-mmc-highspeed; 473 mmc-ddr-1_8v; 474 mmc-hs200-1_8v; 475 mmc-hs400-1_8v; 476 max-frequency = <200000000>; 477 vmmc-supply = <&ldo18_reg>; 478 vqmmc-supply = <&ldo3_reg>; 479 }; 480 481 &pinctrl_0 { 482 power_key: power-key-pins { 483 samsung,pins = "gpx0-3"; 484 samsung,pin-function = <EXYNOS 485 samsung,pin-pud = <EXYNOS_PIN_ 486 samsung,pin-drv = <EXYNOS5420_ 487 }; 488 489 hdmi_hpd_irq: hdmi-hpd-irq-pins { 490 samsung,pins = "gpx3-7"; 491 samsung,pin-function = <EXYNOS 492 samsung,pin-pud = <EXYNOS_PIN_ 493 samsung,pin-drv = <EXYNOS5420_ 494 }; 495 }; 496 497 &pinctrl_1 { 498 emmc_nrst_pin: emmc-nrst-pins { 499 samsung,pins = "gpd1-0"; 500 samsung,pin-function = <EXYNOS 501 samsung,pin-pud = <EXYNOS_PIN_ 502 samsung,pin-drv = <EXYNOS5420_ 503 }; 504 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.