| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Device tree definitions for the Turing RK1 SoM. |
| 4 |
* |
| 5 |
* Copyright (c) 2023 Sam Edwards <[email protected]> |
| 6 |
* |
| 7 |
* Based on RK3588-EVB1 devicetree |
| 8 |
* Copyright (c) 2021 Rockchip Electronics Co., Ltd. |
| 9 |
*/ |
| 10 |
|
| 11 |
/dts-v1/; |
| 12 |
#include <dt-bindings/gpio/gpio.h> |
| 13 |
#include <dt-bindings/pinctrl/rockchip.h> |
| 14 |
#include "rk3588.dtsi" |
| 15 |
|
| 16 |
/ { |
| 17 |
compatible = "turing,rk1", "rockchip,rk3588"; |
| 18 |
|
| 19 |
aliases { |
| 20 |
ethernet0 = &gmac1; |
| 21 |
mmc0 = &sdhci; |
| 22 |
}; |
| 23 |
|
| 24 |
fan: pwm-fan { |
| 25 |
compatible = "pwm-fan"; |
| 26 |
cooling-levels = <0 25 95 145 195 255>; |
| 27 |
fan-supply = <&vcc5v0_sys>; |
| 28 |
pinctrl-names = "default"; |
| 29 |
pinctrl-0 = <&pwm0m2_pins &fan_int>; |
| 30 |
interrupt-parent = <&gpio0>; |
| 31 |
interrupts = <RK_PA4 IRQ_TYPE_EDGE_FALLING>; |
| 32 |
pwms = <&pwm0 0 50000 0>; |
| 33 |
#cooling-cells = <2>; |
| 34 |
}; |
| 35 |
|
| 36 |
vcc3v3_pcie30: regulator-vcc3v3-pcie30 { |
| 37 |
compatible = "regulator-fixed"; |
| 38 |
regulator-name = "vcc3v3_pcie30"; |
| 39 |
regulator-min-microvolt = <3300000>; |
| 40 |
regulator-max-microvolt = <3300000>; |
| 41 |
enable-active-high; |
| 42 |
gpios = <&gpio2 RK_PC5 GPIO_ACTIVE_HIGH>; |
| 43 |
pinctrl-names = "default"; |
| 44 |
pinctrl-0 = <&vcc3v3_pcie30_en>; |
| 45 |
startup-delay-us = <5000>; |
| 46 |
}; |
| 47 |
|
| 48 |
vcc5v0_sys: regulator-vcc5v0-sys { |
| 49 |
compatible = "regulator-fixed"; |
| 50 |
regulator-name = "vcc5v0_sys"; |
| 51 |
regulator-always-on; |
| 52 |
regulator-boot-on; |
| 53 |
regulator-min-microvolt = <5000000>; |
| 54 |
regulator-max-microvolt = <5000000>; |
| 55 |
}; |
| 56 |
|
| 57 |
vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 { |
| 58 |
compatible = "regulator-fixed"; |
| 59 |
regulator-name = "vcc_1v1_nldo_s3"; |
| 60 |
regulator-always-on; |
| 61 |
regulator-boot-on; |
| 62 |
regulator-min-microvolt = <1100000>; |
| 63 |
regulator-max-microvolt = <1100000>; |
| 64 |
vin-supply = <&vcc5v0_sys>; |
| 65 |
}; |
| 66 |
}; |
| 67 |
|
| 68 |
&combphy2_psu { |
| 69 |
status = "okay"; |
| 70 |
}; |
| 71 |
|
| 72 |
&cpu_b0 { |
| 73 |
cpu-supply = <&vdd_cpu_big0_s0>; |
| 74 |
}; |
| 75 |
|
| 76 |
&cpu_b1 { |
| 77 |
cpu-supply = <&vdd_cpu_big0_s0>; |
| 78 |
}; |
| 79 |
|
| 80 |
&cpu_b2 { |
| 81 |
cpu-supply = <&vdd_cpu_big1_s0>; |
| 82 |
}; |
| 83 |
|
| 84 |
&cpu_b3 { |
| 85 |
cpu-supply = <&vdd_cpu_big1_s0>; |
| 86 |
}; |
| 87 |
|
| 88 |
&cpu_l0 { |
| 89 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 90 |
}; |
| 91 |
|
| 92 |
&cpu_l1 { |
| 93 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 94 |
}; |
| 95 |
|
| 96 |
&cpu_l2 { |
| 97 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 98 |
}; |
| 99 |
|
| 100 |
&cpu_l3 { |
| 101 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 102 |
}; |
| 103 |
|
| 104 |
&gmac1 { |
| 105 |
clock_in_out = "output"; |
| 106 |
phy-handle = <&rgmii_phy>; |
| 107 |
phy-mode = "rgmii-rxid"; |
| 108 |
pinctrl-0 = <&gmac1_miim |
| 109 |
&gmac1_tx_bus2 |
| 110 |
&gmac1_rx_bus2 |
| 111 |
&gmac1_rgmii_clk |
| 112 |
&gmac1_rgmii_bus>; |
| 113 |
pinctrl-names = "default"; |
| 114 |
rx_delay = <0x00>; |
| 115 |
tx_delay = <0x43>; |
| 116 |
status = "okay"; |
| 117 |
}; |
| 118 |
|
| 119 |
&gpu { |
| 120 |
mali-supply = <&vdd_gpu_s0>; |
| 121 |
status = "okay"; |
| 122 |
}; |
| 123 |
|
| 124 |
&i2c0 { |
| 125 |
pinctrl-names = "default"; |
| 126 |
pinctrl-0 = <&i2c0m2_xfer>; |
| 127 |
status = "okay"; |
| 128 |
|
| 129 |
vdd_cpu_big0_s0: regulator@42 { |
| 130 |
compatible = "rockchip,rk8602"; |
| 131 |
reg = <0x42>; |
| 132 |
fcs,suspend-voltage-selector = <1>; |
| 133 |
regulator-name = "vdd_cpu_big0_s0"; |
| 134 |
regulator-always-on; |
| 135 |
regulator-boot-on; |
| 136 |
regulator-min-microvolt = <550000>; |
| 137 |
regulator-max-microvolt = <1050000>; |
| 138 |
regulator-ramp-delay = <2300>; |
| 139 |
vin-supply = <&vcc5v0_sys>; |
| 140 |
|
| 141 |
regulator-state-mem { |
| 142 |
regulator-off-in-suspend; |
| 143 |
}; |
| 144 |
}; |
| 145 |
|
| 146 |
vdd_cpu_big1_s0: regulator@43 { |
| 147 |
compatible = "rockchip,rk8603", "rockchip,rk8602"; |
| 148 |
reg = <0x43>; |
| 149 |
fcs,suspend-voltage-selector = <1>; |
| 150 |
regulator-name = "vdd_cpu_big1_s0"; |
| 151 |
regulator-always-on; |
| 152 |
regulator-boot-on; |
| 153 |
regulator-min-microvolt = <550000>; |
| 154 |
regulator-max-microvolt = <1050000>; |
| 155 |
regulator-ramp-delay = <2300>; |
| 156 |
vin-supply = <&vcc5v0_sys>; |
| 157 |
|
| 158 |
regulator-state-mem { |
| 159 |
regulator-off-in-suspend; |
| 160 |
}; |
| 161 |
}; |
| 162 |
}; |
| 163 |
|
| 164 |
&i2c1 { |
| 165 |
pinctrl-names = "default"; |
| 166 |
pinctrl-0 = <&i2c1m2_xfer>; |
| 167 |
status = "okay"; |
| 168 |
|
| 169 |
vdd_npu_s0: regulator@42 { |
| 170 |
compatible = "rockchip,rk8602"; |
| 171 |
reg = <0x42>; |
| 172 |
fcs,suspend-voltage-selector = <1>; |
| 173 |
regulator-name = "vdd_npu_s0"; |
| 174 |
regulator-boot-on; |
| 175 |
regulator-min-microvolt = <550000>; |
| 176 |
regulator-max-microvolt = <950000>; |
| 177 |
regulator-ramp-delay = <2300>; |
| 178 |
vin-supply = <&vcc5v0_sys>; |
| 179 |
|
| 180 |
regulator-state-mem { |
| 181 |
regulator-off-in-suspend; |
| 182 |
}; |
| 183 |
}; |
| 184 |
}; |
| 185 |
|
| 186 |
&i2c6 { |
| 187 |
status = "okay"; |
| 188 |
|
| 189 |
hym8563: rtc@51 { |
| 190 |
compatible = "haoyu,hym8563"; |
| 191 |
reg = <0x51>; |
| 192 |
#clock-cells = <0>; |
| 193 |
clock-output-names = "hym8563"; |
| 194 |
pinctrl-names = "default"; |
| 195 |
pinctrl-0 = <&hym8563_int>; |
| 196 |
interrupt-parent = <&gpio0>; |
| 197 |
interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>; |
| 198 |
wakeup-source; |
| 199 |
}; |
| 200 |
}; |
| 201 |
|
| 202 |
&mdio1 { |
| 203 |
rgmii_phy: ethernet-phy@1 { |
| 204 |
/* RTL8211F */ |
| 205 |
compatible = "ethernet-phy-id001c.c916"; |
| 206 |
reg = <0x1>; |
| 207 |
pinctrl-names = "default"; |
| 208 |
pinctrl-0 = <&rtl8211f_rst>; |
| 209 |
reset-assert-us = <15000>; |
| 210 |
reset-deassert-us = <50000>; |
| 211 |
reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; |
| 212 |
}; |
| 213 |
}; |
| 214 |
|
| 215 |
&package_thermal { |
| 216 |
polling-delay = <1000>; |
| 217 |
|
| 218 |
trips { |
| 219 |
package_active1: trip-active1 { |
| 220 |
temperature = <45000>; |
| 221 |
hysteresis = <5000>; |
| 222 |
type = "active"; |
| 223 |
}; |
| 224 |
package_active2: trip-active2 { |
| 225 |
temperature = <50000>; |
| 226 |
hysteresis = <5000>; |
| 227 |
type = "active"; |
| 228 |
}; |
| 229 |
package_active3: trip-active3 { |
| 230 |
temperature = <60000>; |
| 231 |
hysteresis = <5000>; |
| 232 |
type = "active"; |
| 233 |
}; |
| 234 |
package_active4: trip-active4 { |
| 235 |
temperature = <70000>; |
| 236 |
hysteresis = <5000>; |
| 237 |
type = "active"; |
| 238 |
}; |
| 239 |
package_active5: trip-active5 { |
| 240 |
temperature = <80000>; |
| 241 |
hysteresis = <5000>; |
| 242 |
type = "active"; |
| 243 |
}; |
| 244 |
}; |
| 245 |
|
| 246 |
cooling-maps { |
| 247 |
map1 { |
| 248 |
trip = <&package_active1>; |
| 249 |
cooling-device = <&fan 1 1>; |
| 250 |
}; |
| 251 |
map2 { |
| 252 |
trip = <&package_active2>; |
| 253 |
cooling-device = <&fan 2 2>; |
| 254 |
}; |
| 255 |
map3 { |
| 256 |
trip = <&package_active3>; |
| 257 |
cooling-device = <&fan 3 3>; |
| 258 |
}; |
| 259 |
map4 { |
| 260 |
trip = <&package_active4>; |
| 261 |
cooling-device = <&fan 4 4>; |
| 262 |
}; |
| 263 |
map5 { |
| 264 |
trip = <&package_active5>; |
| 265 |
cooling-device = <&fan 5 5>; |
| 266 |
}; |
| 267 |
}; |
| 268 |
}; |
| 269 |
|
| 270 |
&pcie2x1l1 { |
| 271 |
linux,pci-domain = <1>; |
| 272 |
pinctrl-names = "default"; |
| 273 |
pinctrl-0 = <&pcie2_reset>, <&pcie30x1m1_0_clkreqn>, <&pcie30x1m1_0_waken>; |
| 274 |
reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>; |
| 275 |
status = "okay"; |
| 276 |
}; |
| 277 |
|
| 278 |
&pcie30phy { |
| 279 |
status = "okay"; |
| 280 |
}; |
| 281 |
|
| 282 |
&pcie3x4 { |
| 283 |
linux,pci-domain = <0>; |
| 284 |
pinctrl-names = "default"; |
| 285 |
pinctrl-0 = <&pcie3_reset>, <&pcie30x4m1_clkreqn>, <&pcie30x4m1_waken>; |
| 286 |
reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; |
| 287 |
vpcie3v3-supply = <&vcc3v3_pcie30>; |
| 288 |
status = "okay"; |
| 289 |
}; |
| 290 |
|
| 291 |
&pd_gpu { |
| 292 |
domain-supply = <&vdd_gpu_s0>; |
| 293 |
}; |
| 294 |
|
| 295 |
&pd_npu { |
| 296 |
domain-supply = <&vdd_npu_s0>; |
| 297 |
}; |
| 298 |
|
| 299 |
&pinctrl { |
| 300 |
fan { |
| 301 |
fan_int: fan-int { |
| 302 |
rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>; |
| 303 |
}; |
| 304 |
}; |
| 305 |
|
| 306 |
hym8563 { |
| 307 |
hym8563_int: hym8563-int { |
| 308 |
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>; |
| 309 |
}; |
| 310 |
}; |
| 311 |
|
| 312 |
pcie2 { |
| 313 |
pcie2_reset: pcie2-reset { |
| 314 |
rockchip,pins = <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 315 |
}; |
| 316 |
}; |
| 317 |
|
| 318 |
pcie3 { |
| 319 |
pcie3_reset: pcie3-reset { |
| 320 |
rockchip,pins = <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; |
| 321 |
}; |
| 322 |
|
| 323 |
vcc3v3_pcie30_en: pcie3-reg { |
| 324 |
rockchip,pins = <2 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 325 |
}; |
| 326 |
}; |
| 327 |
|
| 328 |
rtl8211f { |
| 329 |
rtl8211f_rst: rtl8211f-rst { |
| 330 |
rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; |
| 331 |
}; |
| 332 |
}; |
| 333 |
}; |
| 334 |
|
| 335 |
&pwm0 { |
| 336 |
status = "okay"; |
| 337 |
}; |
| 338 |
|
| 339 |
&rknn_core_0 { |
| 340 |
npu-supply = <&vdd_npu_s0>; |
| 341 |
sram-supply = <&vdd_npu_s0>; |
| 342 |
status = "okay"; |
| 343 |
}; |
| 344 |
|
| 345 |
&rknn_core_1 { |
| 346 |
npu-supply = <&vdd_npu_s0>; |
| 347 |
sram-supply = <&vdd_npu_s0>; |
| 348 |
status = "okay"; |
| 349 |
}; |
| 350 |
|
| 351 |
&rknn_core_2 { |
| 352 |
npu-supply = <&vdd_npu_s0>; |
| 353 |
sram-supply = <&vdd_npu_s0>; |
| 354 |
status = "okay"; |
| 355 |
}; |
| 356 |
|
| 357 |
&rknn_mmu_0 { |
| 358 |
status = "okay"; |
| 359 |
}; |
| 360 |
|
| 361 |
&rknn_mmu_1 { |
| 362 |
status = "okay"; |
| 363 |
}; |
| 364 |
|
| 365 |
&rknn_mmu_2 { |
| 366 |
status = "okay"; |
| 367 |
}; |
| 368 |
|
| 369 |
&sdhci { |
| 370 |
bus-width = <8>; |
| 371 |
no-sdio; |
| 372 |
no-sd; |
| 373 |
non-removable; |
| 374 |
mmc-hs400-1_8v; |
| 375 |
mmc-hs400-enhanced-strobe; |
| 376 |
status = "okay"; |
| 377 |
}; |
| 378 |
|
| 379 |
&spi2 { |
| 380 |
status = "okay"; |
| 381 |
pinctrl-names = "default"; |
| 382 |
pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>; |
| 383 |
num-cs = <1>; |
| 384 |
|
| 385 |
pmic@0 { |
| 386 |
compatible = "rockchip,rk806"; |
| 387 |
spi-max-frequency = <1000000>; |
| 388 |
reg = <0x0>; |
| 389 |
|
| 390 |
interrupt-parent = <&gpio0>; |
| 391 |
interrupts = <7 IRQ_TYPE_LEVEL_LOW>; |
| 392 |
|
| 393 |
pinctrl-names = "default"; |
| 394 |
pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, |
| 395 |
<&rk806_dvs2_null>, <&rk806_dvs3_null>; |
| 396 |
system-power-controller; |
| 397 |
|
| 398 |
vcc1-supply = <&vcc5v0_sys>; |
| 399 |
vcc2-supply = <&vcc5v0_sys>; |
| 400 |
vcc3-supply = <&vcc5v0_sys>; |
| 401 |
vcc4-supply = <&vcc5v0_sys>; |
| 402 |
vcc5-supply = <&vcc5v0_sys>; |
| 403 |
vcc6-supply = <&vcc5v0_sys>; |
| 404 |
vcc7-supply = <&vcc5v0_sys>; |
| 405 |
vcc8-supply = <&vcc5v0_sys>; |
| 406 |
vcc9-supply = <&vcc5v0_sys>; |
| 407 |
vcc10-supply = <&vcc5v0_sys>; |
| 408 |
vcc11-supply = <&vcc_2v0_pldo_s3>; |
| 409 |
vcc12-supply = <&vcc5v0_sys>; |
| 410 |
vcc13-supply = <&vcc_1v1_nldo_s3>; |
| 411 |
vcc14-supply = <&vcc_1v1_nldo_s3>; |
| 412 |
vcca-supply = <&vcc5v0_sys>; |
| 413 |
|
| 414 |
gpio-controller; |
| 415 |
#gpio-cells = <2>; |
| 416 |
|
| 417 |
rk806_dvs1_null: dvs1-null-pins { |
| 418 |
pins = "gpio_pwrctrl1"; |
| 419 |
function = "pin_fun0"; |
| 420 |
}; |
| 421 |
|
| 422 |
rk806_dvs2_null: dvs2-null-pins { |
| 423 |
pins = "gpio_pwrctrl2"; |
| 424 |
function = "pin_fun0"; |
| 425 |
}; |
| 426 |
|
| 427 |
rk806_dvs3_null: dvs3-null-pins { |
| 428 |
pins = "gpio_pwrctrl3"; |
| 429 |
function = "pin_fun0"; |
| 430 |
}; |
| 431 |
|
| 432 |
regulators { |
| 433 |
vdd_gpu_s0: vdd_gpu_mem_s0: dcdc-reg1 { |
| 434 |
regulator-boot-on; |
| 435 |
regulator-min-microvolt = <550000>; |
| 436 |
regulator-max-microvolt = <950000>; |
| 437 |
regulator-ramp-delay = <12500>; |
| 438 |
regulator-name = "vdd_gpu_s0"; |
| 439 |
regulator-enable-ramp-delay = <400>; |
| 440 |
|
| 441 |
regulator-state-mem { |
| 442 |
regulator-off-in-suspend; |
| 443 |
}; |
| 444 |
}; |
| 445 |
|
| 446 |
vdd_cpu_lit_s0: vdd_cpu_lit_mem_s0: dcdc-reg2 { |
| 447 |
regulator-always-on; |
| 448 |
regulator-boot-on; |
| 449 |
regulator-min-microvolt = <550000>; |
| 450 |
regulator-max-microvolt = <950000>; |
| 451 |
regulator-ramp-delay = <12500>; |
| 452 |
regulator-name = "vdd_cpu_lit_s0"; |
| 453 |
|
| 454 |
regulator-state-mem { |
| 455 |
regulator-off-in-suspend; |
| 456 |
}; |
| 457 |
}; |
| 458 |
|
| 459 |
vdd_log_s0: dcdc-reg3 { |
| 460 |
regulator-always-on; |
| 461 |
regulator-boot-on; |
| 462 |
regulator-min-microvolt = <675000>; |
| 463 |
regulator-max-microvolt = <750000>; |
| 464 |
regulator-ramp-delay = <12500>; |
| 465 |
regulator-name = "vdd_log_s0"; |
| 466 |
|
| 467 |
regulator-state-mem { |
| 468 |
regulator-off-in-suspend; |
| 469 |
regulator-suspend-microvolt = <750000>; |
| 470 |
}; |
| 471 |
}; |
| 472 |
|
| 473 |
vdd_vdenc_s0: vdd_vdenc_mem_s0: dcdc-reg4 { |
| 474 |
regulator-always-on; |
| 475 |
regulator-boot-on; |
| 476 |
regulator-min-microvolt = <550000>; |
| 477 |
regulator-max-microvolt = <950000>; |
| 478 |
regulator-ramp-delay = <12500>; |
| 479 |
regulator-name = "vdd_vdenc_s0"; |
| 480 |
|
| 481 |
regulator-state-mem { |
| 482 |
regulator-off-in-suspend; |
| 483 |
}; |
| 484 |
}; |
| 485 |
|
| 486 |
vdd_ddr_s0: dcdc-reg5 { |
| 487 |
regulator-always-on; |
| 488 |
regulator-boot-on; |
| 489 |
regulator-min-microvolt = <675000>; |
| 490 |
regulator-max-microvolt = <900000>; |
| 491 |
regulator-ramp-delay = <12500>; |
| 492 |
regulator-name = "vdd_ddr_s0"; |
| 493 |
|
| 494 |
regulator-state-mem { |
| 495 |
regulator-off-in-suspend; |
| 496 |
regulator-suspend-microvolt = <850000>; |
| 497 |
}; |
| 498 |
}; |
| 499 |
|
| 500 |
vdd2_ddr_s3: dcdc-reg6 { |
| 501 |
regulator-always-on; |
| 502 |
regulator-boot-on; |
| 503 |
regulator-name = "vdd2_ddr_s3"; |
| 504 |
|
| 505 |
regulator-state-mem { |
| 506 |
regulator-on-in-suspend; |
| 507 |
}; |
| 508 |
}; |
| 509 |
|
| 510 |
vcc_2v0_pldo_s3: dcdc-reg7 { |
| 511 |
regulator-always-on; |
| 512 |
regulator-boot-on; |
| 513 |
regulator-min-microvolt = <2000000>; |
| 514 |
regulator-max-microvolt = <2000000>; |
| 515 |
regulator-ramp-delay = <12500>; |
| 516 |
regulator-name = "vdd_2v0_pldo_s3"; |
| 517 |
|
| 518 |
regulator-state-mem { |
| 519 |
regulator-on-in-suspend; |
| 520 |
regulator-suspend-microvolt = <2000000>; |
| 521 |
}; |
| 522 |
}; |
| 523 |
|
| 524 |
vcc_3v3_s3: dcdc-reg8 { |
| 525 |
regulator-always-on; |
| 526 |
regulator-boot-on; |
| 527 |
regulator-min-microvolt = <3300000>; |
| 528 |
regulator-max-microvolt = <3300000>; |
| 529 |
regulator-name = "vcc_3v3_s3"; |
| 530 |
|
| 531 |
regulator-state-mem { |
| 532 |
regulator-on-in-suspend; |
| 533 |
regulator-suspend-microvolt = <3300000>; |
| 534 |
}; |
| 535 |
}; |
| 536 |
|
| 537 |
vddq_ddr_s0: dcdc-reg9 { |
| 538 |
regulator-always-on; |
| 539 |
regulator-boot-on; |
| 540 |
regulator-name = "vddq_ddr_s0"; |
| 541 |
|
| 542 |
regulator-state-mem { |
| 543 |
regulator-off-in-suspend; |
| 544 |
}; |
| 545 |
}; |
| 546 |
|
| 547 |
vcc_1v8_s3: dcdc-reg10 { |
| 548 |
regulator-always-on; |
| 549 |
regulator-boot-on; |
| 550 |
regulator-min-microvolt = <1800000>; |
| 551 |
regulator-max-microvolt = <1800000>; |
| 552 |
regulator-name = "vcc_1v8_s3"; |
| 553 |
|
| 554 |
regulator-state-mem { |
| 555 |
regulator-on-in-suspend; |
| 556 |
regulator-suspend-microvolt = <1800000>; |
| 557 |
}; |
| 558 |
}; |
| 559 |
|
| 560 |
avcc_1v8_s0: pldo-reg1 { |
| 561 |
regulator-always-on; |
| 562 |
regulator-boot-on; |
| 563 |
regulator-min-microvolt = <1800000>; |
| 564 |
regulator-max-microvolt = <1800000>; |
| 565 |
regulator-name = "avcc_1v8_s0"; |
| 566 |
|
| 567 |
regulator-state-mem { |
| 568 |
regulator-off-in-suspend; |
| 569 |
}; |
| 570 |
}; |
| 571 |
|
| 572 |
vcc_1v8_s0: pldo-reg2 { |
| 573 |
regulator-always-on; |
| 574 |
regulator-boot-on; |
| 575 |
regulator-min-microvolt = <1800000>; |
| 576 |
regulator-max-microvolt = <1800000>; |
| 577 |
regulator-name = "vcc_1v8_s0"; |
| 578 |
|
| 579 |
regulator-state-mem { |
| 580 |
regulator-off-in-suspend; |
| 581 |
regulator-suspend-microvolt = <1800000>; |
| 582 |
}; |
| 583 |
}; |
| 584 |
|
| 585 |
avdd_1v2_s0: pldo-reg3 { |
| 586 |
regulator-always-on; |
| 587 |
regulator-boot-on; |
| 588 |
regulator-min-microvolt = <1200000>; |
| 589 |
regulator-max-microvolt = <1200000>; |
| 590 |
regulator-name = "avdd_1v2_s0"; |
| 591 |
|
| 592 |
regulator-state-mem { |
| 593 |
regulator-off-in-suspend; |
| 594 |
}; |
| 595 |
}; |
| 596 |
|
| 597 |
vcc_3v3_s0: pldo-reg4 { |
| 598 |
regulator-always-on; |
| 599 |
regulator-boot-on; |
| 600 |
regulator-min-microvolt = <3300000>; |
| 601 |
regulator-max-microvolt = <3300000>; |
| 602 |
regulator-ramp-delay = <12500>; |
| 603 |
regulator-name = "vcc_3v3_s0"; |
| 604 |
|
| 605 |
regulator-state-mem { |
| 606 |
regulator-off-in-suspend; |
| 607 |
}; |
| 608 |
}; |
| 609 |
|
| 610 |
vccio_sd_s0: pldo-reg5 { |
| 611 |
regulator-always-on; |
| 612 |
regulator-boot-on; |
| 613 |
regulator-min-microvolt = <1800000>; |
| 614 |
regulator-max-microvolt = <3300000>; |
| 615 |
regulator-ramp-delay = <12500>; |
| 616 |
regulator-name = "vccio_sd_s0"; |
| 617 |
|
| 618 |
regulator-state-mem { |
| 619 |
regulator-off-in-suspend; |
| 620 |
}; |
| 621 |
}; |
| 622 |
|
| 623 |
pldo6_s3: pldo-reg6 { |
| 624 |
regulator-always-on; |
| 625 |
regulator-boot-on; |
| 626 |
regulator-min-microvolt = <1800000>; |
| 627 |
regulator-max-microvolt = <1800000>; |
| 628 |
regulator-name = "pldo6_s3"; |
| 629 |
|
| 630 |
regulator-state-mem { |
| 631 |
regulator-on-in-suspend; |
| 632 |
regulator-suspend-microvolt = <1800000>; |
| 633 |
}; |
| 634 |
}; |
| 635 |
|
| 636 |
vdd_0v75_s3: nldo-reg1 { |
| 637 |
regulator-always-on; |
| 638 |
regulator-boot-on; |
| 639 |
regulator-min-microvolt = <750000>; |
| 640 |
regulator-max-microvolt = <750000>; |
| 641 |
regulator-name = "vdd_0v75_s3"; |
| 642 |
|
| 643 |
regulator-state-mem { |
| 644 |
regulator-on-in-suspend; |
| 645 |
regulator-suspend-microvolt = <750000>; |
| 646 |
}; |
| 647 |
}; |
| 648 |
|
| 649 |
vdd_ddr_pll_s0: nldo-reg2 { |
| 650 |
regulator-always-on; |
| 651 |
regulator-boot-on; |
| 652 |
regulator-min-microvolt = <850000>; |
| 653 |
regulator-max-microvolt = <850000>; |
| 654 |
regulator-name = "vdd_ddr_pll_s0"; |
| 655 |
|
| 656 |
regulator-state-mem { |
| 657 |
regulator-off-in-suspend; |
| 658 |
regulator-suspend-microvolt = <850000>; |
| 659 |
}; |
| 660 |
}; |
| 661 |
|
| 662 |
avdd_0v75_s0: nldo-reg3 { |
| 663 |
regulator-always-on; |
| 664 |
regulator-boot-on; |
| 665 |
regulator-min-microvolt = <750000>; |
| 666 |
regulator-max-microvolt = <750000>; |
| 667 |
regulator-name = "avdd_0v75_s0"; |
| 668 |
|
| 669 |
regulator-state-mem { |
| 670 |
regulator-off-in-suspend; |
| 671 |
}; |
| 672 |
}; |
| 673 |
|
| 674 |
vdd_0v85_s0: nldo-reg4 { |
| 675 |
regulator-always-on; |
| 676 |
regulator-boot-on; |
| 677 |
regulator-min-microvolt = <850000>; |
| 678 |
regulator-max-microvolt = <850000>; |
| 679 |
regulator-name = "vdd_0v85_s0"; |
| 680 |
|
| 681 |
regulator-state-mem { |
| 682 |
regulator-off-in-suspend; |
| 683 |
}; |
| 684 |
}; |
| 685 |
|
| 686 |
vdd_0v75_s0: nldo-reg5 { |
| 687 |
regulator-always-on; |
| 688 |
regulator-boot-on; |
| 689 |
regulator-min-microvolt = <750000>; |
| 690 |
regulator-max-microvolt = <750000>; |
| 691 |
regulator-name = "vdd_0v75_s0"; |
| 692 |
|
| 693 |
regulator-state-mem { |
| 694 |
regulator-off-in-suspend; |
| 695 |
}; |
| 696 |
}; |
| 697 |
}; |
| 698 |
}; |
| 699 |
}; |
| 700 |
|
| 701 |
&tsadc { |
| 702 |
status = "okay"; |
| 703 |
}; |
| 704 |
|
| 705 |
&uart2 { |
| 706 |
pinctrl-0 = <&uart2m0_xfer>; |
| 707 |
status = "okay"; |
| 708 |
}; |
| 709 |
|
| 710 |
&uart9 { |
| 711 |
pinctrl-0 = <&uart9m0_xfer>; |
| 712 |
status = "okay"; |
| 713 |
}; |
| 714 |
|
| 715 |
/* USB 0: USB 2.0 only, OTG-capable */ |
| 716 |
&u2phy0 { |
| 717 |
status = "okay"; |
| 718 |
}; |
| 719 |
|
| 720 |
&u2phy0_otg { |
| 721 |
status = "okay"; |
| 722 |
}; |
| 723 |
|
| 724 |
&usbdp_phy0 { |
| 725 |
/* |
| 726 |
* TODO: On the RK1, USBDP0 drives the DisplayPort pins and is not |
| 727 |
* involved in this USB2-only bus. The bus controller (below) needs to |
| 728 |
* know that it doesn't have a USB3 port so it can ignore any |
| 729 |
* USB3-related signals. This is handled in hardware by updating the |
| 730 |
* GRFs corresponding to that bus controller. Alas, Linux currently |
| 731 |
* puts the code to do that in the USBDP driver, so USBDP0 must be |
| 732 |
* enabled for now. |
| 733 |
*/ |
| 734 |
rockchip,dp-lane-mux = <0 1 2 3>; /* "No USB lanes" */ |
| 735 |
status = "okay"; |
| 736 |
}; |
| 737 |
|
| 738 |
&usb_host0_xhci { |
| 739 |
extcon = <&u2phy0>; |
| 740 |
maximum-speed = "high-speed"; |
| 741 |
status = "okay"; |
| 742 |
}; |
| 743 |
|
| 744 |
/* USB 1: USB 3.0, host only */ |
| 745 |
&u2phy1 { |
| 746 |
status = "okay"; |
| 747 |
}; |
| 748 |
|
| 749 |
&u2phy1_otg { |
| 750 |
status = "okay"; |
| 751 |
}; |
| 752 |
|
| 753 |
&usbdp_phy1 { |
| 754 |
status = "okay"; |
| 755 |
}; |
| 756 |
|
| 757 |
&usb_host1_xhci { |
| 758 |
dr_mode = "host"; |
| 759 |
extcon = <&u2phy1>; |
| 760 |
status = "okay"; |
| 761 |
}; |
| 762 |
|
| 763 |
/* USB 2: USB 2.0, host only */ |
| 764 |
&u2phy2 { |
| 765 |
status = "okay"; |
| 766 |
}; |
| 767 |
|
| 768 |
&u2phy2_host { |
| 769 |
status = "okay"; |
| 770 |
}; |
| 771 |
|
| 772 |
&usb_host0_ehci { |
| 773 |
status = "okay"; |
| 774 |
}; |
| 775 |
|
| 776 |
&usb_host0_ohci { |
| 777 |
status = "okay"; |
| 778 |
}; |