| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (c) 2023 Ondřej Jirman <[email protected]> |
| 4 |
*/ |
| 5 |
|
| 6 |
/dts-v1/; |
| 7 |
|
| 8 |
#include <dt-bindings/gpio/gpio.h> |
| 9 |
#include <dt-bindings/leds/common.h> |
| 10 |
#include <dt-bindings/input/input.h> |
| 11 |
#include <dt-bindings/pinctrl/rockchip.h> |
| 12 |
#include <dt-bindings/usb/pd.h> |
| 13 |
#include "rk3588.dtsi" |
| 14 |
|
| 15 |
/ { |
| 16 |
aliases { |
| 17 |
mmc0 = &sdhci; |
| 18 |
mmc1 = &sdmmc; |
| 19 |
}; |
| 20 |
|
| 21 |
chosen { |
| 22 |
stdout-path = "serial2:1500000n8"; |
| 23 |
}; |
| 24 |
|
| 25 |
adc-keys-0 { |
| 26 |
compatible = "adc-keys"; |
| 27 |
io-channels = <&saradc 0>; |
| 28 |
io-channel-names = "buttons"; |
| 29 |
keyup-threshold-microvolt = <1800000>; |
| 30 |
poll-interval = <100>; |
| 31 |
|
| 32 |
button-maskrom { |
| 33 |
label = "Mask Rom"; |
| 34 |
linux,code = <KEY_SETUP>; |
| 35 |
press-threshold-microvolt = <2000>; |
| 36 |
}; |
| 37 |
}; |
| 38 |
|
| 39 |
recovery_button: adc-keys-1 { |
| 40 |
compatible = "adc-keys"; |
| 41 |
io-channels = <&saradc 1>; |
| 42 |
io-channel-names = "buttons"; |
| 43 |
keyup-threshold-microvolt = <1800000>; |
| 44 |
poll-interval = <100>; |
| 45 |
status = "disabled"; |
| 46 |
|
| 47 |
button-recovery { |
| 48 |
label = "Recovery"; |
| 49 |
linux,code = <KEY_VENDOR>; |
| 50 |
press-threshold-microvolt = <2000>; |
| 51 |
}; |
| 52 |
}; |
| 53 |
|
| 54 |
speaker_amp: speaker-audio-amplifier { |
| 55 |
compatible = "simple-audio-amplifier"; |
| 56 |
sound-name-prefix = "Speaker Amp"; |
| 57 |
status = "disabled"; |
| 58 |
}; |
| 59 |
|
| 60 |
headphone_amp: headphones-audio-amplifier { |
| 61 |
compatible = "simple-audio-amplifier"; |
| 62 |
sound-name-prefix = "Headphones Amp"; |
| 63 |
}; |
| 64 |
|
| 65 |
gpio-leds { |
| 66 |
compatible = "gpio-leds"; |
| 67 |
|
| 68 |
led_blue_gpio: led { |
| 69 |
color = <LED_COLOR_ID_BLUE>; |
| 70 |
function = LED_FUNCTION_INDICATOR; |
| 71 |
function-enumerator = <1>; |
| 72 |
status = "disabled"; |
| 73 |
}; |
| 74 |
}; |
| 75 |
|
| 76 |
fan: pwm-fan { |
| 77 |
compatible = "pwm-fan"; |
| 78 |
cooling-levels = <0 70 75 80 100>; |
| 79 |
fan-supply = <&vcc5v0_sys>; |
| 80 |
#cooling-cells = <2>; |
| 81 |
}; |
| 82 |
|
| 83 |
pwm-leds { |
| 84 |
compatible = "pwm-leds"; |
| 85 |
|
| 86 |
led_blue_pwm: led-1 { |
| 87 |
color = <LED_COLOR_ID_BLUE>; |
| 88 |
function = LED_FUNCTION_STATUS; |
| 89 |
linux,default-trigger = "heartbeat"; |
| 90 |
max-brightness = <255>; |
| 91 |
status = "disabled"; |
| 92 |
}; |
| 93 |
|
| 94 |
led_green_pwm: led-2 { |
| 95 |
color = <LED_COLOR_ID_GREEN>; |
| 96 |
function = LED_FUNCTION_INDICATOR; |
| 97 |
function-enumerator = <2>; |
| 98 |
max-brightness = <255>; |
| 99 |
}; |
| 100 |
}; |
| 101 |
|
| 102 |
rfkill { |
| 103 |
compatible = "rfkill-gpio"; |
| 104 |
label = "rfkill-pcie-wlan"; |
| 105 |
radio-type = "wlan"; |
| 106 |
shutdown-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; |
| 107 |
}; |
| 108 |
|
| 109 |
analog_sound: sound { |
| 110 |
compatible = "simple-audio-card"; |
| 111 |
simple-audio-card,name = "Analog"; |
| 112 |
simple-audio-card,format = "i2s"; |
| 113 |
simple-audio-card,mclk-fs = <256>; |
| 114 |
simple-audio-card,bitclock-master = <&daicpu>; |
| 115 |
simple-audio-card,frame-master = <&daicpu>; |
| 116 |
/*TODO: SARADC_IN3 is used as MIC detection / key input */ |
| 117 |
|
| 118 |
daicpu: simple-audio-card,cpu { |
| 119 |
sound-dai = <&i2s0_8ch>; |
| 120 |
system-clock-frequency = <12288000>; |
| 121 |
}; |
| 122 |
|
| 123 |
daicodec: simple-audio-card,codec { |
| 124 |
sound-dai = <&es8388>; |
| 125 |
system-clock-frequency = <12288000>; |
| 126 |
}; |
| 127 |
}; |
| 128 |
|
| 129 |
vcc3v3_pcie30: regulator-vcc3v3-pcie30 { |
| 130 |
compatible = "regulator-fixed"; |
| 131 |
enable-active-high; |
| 132 |
gpios = <&gpio2 RK_PB6 GPIO_ACTIVE_HIGH>; |
| 133 |
regulator-name = "vcc3v3_pcie30"; |
| 134 |
regulator-min-microvolt = <3300000>; |
| 135 |
regulator-max-microvolt = <3300000>; |
| 136 |
startup-delay-us = <5000>; |
| 137 |
vin-supply = <&vcc5v0_sys>; |
| 138 |
}; |
| 139 |
|
| 140 |
vcc3v3_pcie_eth: regulator-vcc3v3-pcie-eth { |
| 141 |
compatible = "regulator-fixed"; |
| 142 |
regulator-name = "vcc3v3_pcie_eth"; |
| 143 |
regulator-min-microvolt = <3300000>; |
| 144 |
regulator-max-microvolt = <3300000>; |
| 145 |
startup-delay-us = <50000>; |
| 146 |
vin-supply = <&vcc_3v3_s3>; |
| 147 |
}; |
| 148 |
|
| 149 |
vcc3v3_wf: regulator-vcc3v3-wf { |
| 150 |
compatible = "regulator-fixed"; |
| 151 |
enable-active-high; |
| 152 |
gpios = <&gpio2 RK_PC5 GPIO_ACTIVE_HIGH>; |
| 153 |
regulator-name = "vcc3v3_wf"; |
| 154 |
regulator-min-microvolt = <3300000>; |
| 155 |
regulator-max-microvolt = <3300000>; |
| 156 |
startup-delay-us = <50000>; |
| 157 |
vin-supply = <&vcc5v0_sys>; |
| 158 |
status = "disabled"; |
| 159 |
}; |
| 160 |
|
| 161 |
vcc5v0_sys: regulator-vcc5v0-sys { |
| 162 |
compatible = "regulator-fixed"; |
| 163 |
regulator-name = "vcc5v0_sys"; |
| 164 |
regulator-always-on; |
| 165 |
regulator-boot-on; |
| 166 |
regulator-min-microvolt = <5000000>; |
| 167 |
regulator-max-microvolt = <5000000>; |
| 168 |
}; |
| 169 |
|
| 170 |
vcc5v0_usb20: regulator-vcc5v0-usb20 { |
| 171 |
compatible = "regulator-fixed"; |
| 172 |
enable-active-high; |
| 173 |
regulator-name = "vcc5v0_usb20"; |
| 174 |
regulator-min-microvolt = <5000000>; |
| 175 |
regulator-max-microvolt = <5000000>; |
| 176 |
vin-supply = <&vcc5v0_sys>; |
| 177 |
}; |
| 178 |
}; |
| 179 |
|
| 180 |
&combphy2_psu { |
| 181 |
status = "okay"; |
| 182 |
}; |
| 183 |
|
| 184 |
&cpu_b0 { |
| 185 |
cpu-supply = <&vdd_cpu_big0_s0>; |
| 186 |
}; |
| 187 |
|
| 188 |
&cpu_b1 { |
| 189 |
cpu-supply = <&vdd_cpu_big0_s0>; |
| 190 |
}; |
| 191 |
|
| 192 |
&cpu_b2 { |
| 193 |
cpu-supply = <&vdd_cpu_big1_s0>; |
| 194 |
}; |
| 195 |
|
| 196 |
&cpu_b3 { |
| 197 |
cpu-supply = <&vdd_cpu_big1_s0>; |
| 198 |
}; |
| 199 |
|
| 200 |
&cpu_l0 { |
| 201 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 202 |
}; |
| 203 |
|
| 204 |
&cpu_l1 { |
| 205 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 206 |
}; |
| 207 |
|
| 208 |
&cpu_l2 { |
| 209 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 210 |
}; |
| 211 |
|
| 212 |
&cpu_l3 { |
| 213 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 214 |
}; |
| 215 |
|
| 216 |
&gpu { |
| 217 |
mali-supply = <&vdd_gpu_s0>; |
| 218 |
status = "okay"; |
| 219 |
}; |
| 220 |
|
| 221 |
&i2c0 { |
| 222 |
pinctrl-names = "default"; |
| 223 |
pinctrl-0 = <&i2c0m2_xfer>; |
| 224 |
status = "okay"; |
| 225 |
|
| 226 |
vdd_cpu_big0_s0: regulator@42 { |
| 227 |
compatible = "rockchip,rk8602"; |
| 228 |
reg = <0x42>; |
| 229 |
fcs,suspend-voltage-selector = <1>; |
| 230 |
regulator-name = "vdd_cpu_big0_s0"; |
| 231 |
regulator-always-on; |
| 232 |
regulator-boot-on; |
| 233 |
regulator-min-microvolt = <550000>; |
| 234 |
regulator-max-microvolt = <1050000>; |
| 235 |
regulator-ramp-delay = <2300>; |
| 236 |
vin-supply = <&vcc5v0_sys>; |
| 237 |
|
| 238 |
regulator-state-mem { |
| 239 |
regulator-off-in-suspend; |
| 240 |
}; |
| 241 |
}; |
| 242 |
|
| 243 |
vdd_cpu_big1_s0: regulator@43 { |
| 244 |
compatible = "rockchip,rk8603", "rockchip,rk8602"; |
| 245 |
reg = <0x43>; |
| 246 |
fcs,suspend-voltage-selector = <1>; |
| 247 |
regulator-name = "vdd_cpu_big1_s0"; |
| 248 |
regulator-always-on; |
| 249 |
regulator-boot-on; |
| 250 |
regulator-min-microvolt = <550000>; |
| 251 |
regulator-max-microvolt = <1050000>; |
| 252 |
regulator-ramp-delay = <2300>; |
| 253 |
vin-supply = <&vcc5v0_sys>; |
| 254 |
|
| 255 |
regulator-state-mem { |
| 256 |
regulator-off-in-suspend; |
| 257 |
}; |
| 258 |
}; |
| 259 |
}; |
| 260 |
|
| 261 |
&i2c1 { |
| 262 |
pinctrl-names = "default"; |
| 263 |
pinctrl-0 = <&i2c1m2_xfer>; |
| 264 |
status = "okay"; |
| 265 |
|
| 266 |
vdd_npu_s0: regulator@42 { |
| 267 |
compatible = "rockchip,rk8602"; |
| 268 |
reg = <0x42>; |
| 269 |
fcs,suspend-voltage-selector = <1>; |
| 270 |
regulator-name = "vdd_npu_s0"; |
| 271 |
regulator-boot-on; |
| 272 |
regulator-min-microvolt = <550000>; |
| 273 |
regulator-max-microvolt = <950000>; |
| 274 |
regulator-ramp-delay = <2300>; |
| 275 |
vin-supply = <&vcc5v0_sys>; |
| 276 |
|
| 277 |
regulator-state-mem { |
| 278 |
regulator-off-in-suspend; |
| 279 |
}; |
| 280 |
}; |
| 281 |
}; |
| 282 |
|
| 283 |
&i2c6 { |
| 284 |
clock-frequency = <400000>; |
| 285 |
status = "okay"; |
| 286 |
|
| 287 |
hym8563: rtc@51 { |
| 288 |
compatible = "haoyu,hym8563"; |
| 289 |
reg = <0x51>; |
| 290 |
#clock-cells = <0>; |
| 291 |
clock-output-names = "hym8563"; |
| 292 |
wakeup-source; |
| 293 |
}; |
| 294 |
}; |
| 295 |
|
| 296 |
&i2c7 { |
| 297 |
status = "okay"; |
| 298 |
|
| 299 |
/* PLDO2 vcca 1.8V, BUCK8 gated by PLDO2 being enabled */ |
| 300 |
es8388: audio-codec@11 { |
| 301 |
compatible = "everest,es8388", "everest,es8328"; |
| 302 |
reg = <0x11>; |
| 303 |
clocks = <&cru I2S0_8CH_MCLKOUT>; |
| 304 |
AVDD-supply = <&vcc_3v3_s0>; |
| 305 |
DVDD-supply = <&vcc_1v8_s0>; |
| 306 |
HPVDD-supply = <&vcc_3v3_s0>; |
| 307 |
PVDD-supply = <&vcc_1v8_s0>; |
| 308 |
assigned-clocks = <&cru I2S0_8CH_MCLKOUT>; |
| 309 |
assigned-clock-rates = <12288000>; |
| 310 |
#sound-dai-cells = <0>; |
| 311 |
}; |
| 312 |
}; |
| 313 |
|
| 314 |
&i2s0_8ch { |
| 315 |
pinctrl-names = "default"; |
| 316 |
pinctrl-0 = <&i2s0_lrck |
| 317 |
&i2s0_mclk |
| 318 |
&i2s0_sclk |
| 319 |
&i2s0_sdi0 |
| 320 |
&i2s0_sdo0>; |
| 321 |
status = "okay"; |
| 322 |
}; |
| 323 |
|
| 324 |
&i2s2_2ch { |
| 325 |
pinctrl-names = "default"; |
| 326 |
pinctrl-0 = <&i2s2m0_lrck |
| 327 |
&i2s2m0_sclk |
| 328 |
&i2s2m0_sdi |
| 329 |
&i2s2m0_sdo>; |
| 330 |
status = "okay"; |
| 331 |
}; |
| 332 |
|
| 333 |
&package_thermal { |
| 334 |
polling-delay = <1000>; |
| 335 |
|
| 336 |
cooling-maps { |
| 337 |
map0 { |
| 338 |
trip = <&package_fan0>; |
| 339 |
cooling-device = <&fan THERMAL_NO_LIMIT 1>; |
| 340 |
}; |
| 341 |
|
| 342 |
map1 { |
| 343 |
trip = <&package_fan1>; |
| 344 |
cooling-device = <&fan 2 THERMAL_NO_LIMIT>; |
| 345 |
}; |
| 346 |
}; |
| 347 |
|
| 348 |
trips { |
| 349 |
package_fan0: package-fan0 { |
| 350 |
temperature = <55000>; |
| 351 |
hysteresis = <2000>; |
| 352 |
type = "active"; |
| 353 |
}; |
| 354 |
|
| 355 |
package_fan1: package-fan1 { |
| 356 |
temperature = <65000>; |
| 357 |
hysteresis = <2000>; |
| 358 |
type = "active"; |
| 359 |
}; |
| 360 |
}; |
| 361 |
}; |
| 362 |
|
| 363 |
&pcie30phy { |
| 364 |
status = "okay"; |
| 365 |
}; |
| 366 |
|
| 367 |
&pcie3x4 { |
| 368 |
reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; |
| 369 |
vpcie3v3-supply = <&vcc3v3_pcie30>; |
| 370 |
status = "okay"; |
| 371 |
}; |
| 372 |
|
| 373 |
&pd_gpu { |
| 374 |
domain-supply = <&vdd_gpu_s0>; |
| 375 |
}; |
| 376 |
|
| 377 |
&pd_npu { |
| 378 |
domain-supply = <&vdd_npu_s0>; |
| 379 |
}; |
| 380 |
|
| 381 |
&rknn_core_0 { |
| 382 |
npu-supply = <&vdd_npu_s0>; |
| 383 |
sram-supply = <&vdd_npu_s0>; |
| 384 |
status = "okay"; |
| 385 |
}; |
| 386 |
|
| 387 |
&rknn_core_1 { |
| 388 |
npu-supply = <&vdd_npu_s0>; |
| 389 |
sram-supply = <&vdd_npu_s0>; |
| 390 |
status = "okay"; |
| 391 |
}; |
| 392 |
|
| 393 |
&rknn_core_2 { |
| 394 |
npu-supply = <&vdd_npu_s0>; |
| 395 |
sram-supply = <&vdd_npu_s0>; |
| 396 |
status = "okay"; |
| 397 |
}; |
| 398 |
|
| 399 |
&rknn_mmu_0 { |
| 400 |
status = "okay"; |
| 401 |
}; |
| 402 |
|
| 403 |
&rknn_mmu_1 { |
| 404 |
status = "okay"; |
| 405 |
}; |
| 406 |
|
| 407 |
&rknn_mmu_2 { |
| 408 |
status = "okay"; |
| 409 |
}; |
| 410 |
|
| 411 |
&saradc { |
| 412 |
vref-supply = <&vcc_1v8_s0>; |
| 413 |
status = "okay"; |
| 414 |
}; |
| 415 |
|
| 416 |
&sdhci { |
| 417 |
bus-width = <8>; |
| 418 |
no-sdio; |
| 419 |
no-sd; |
| 420 |
non-removable; |
| 421 |
max-frequency = <200000000>; |
| 422 |
mmc-hs400-1_8v; |
| 423 |
mmc-hs400-enhanced-strobe; |
| 424 |
vmmc-supply = <&vcc_3v3_s3>; |
| 425 |
vqmmc-supply = <&vcc_1v8_s3>; |
| 426 |
status = "okay"; |
| 427 |
}; |
| 428 |
|
| 429 |
&sdmmc { |
| 430 |
bus-width = <4>; |
| 431 |
cap-sd-highspeed; |
| 432 |
cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>; |
| 433 |
disable-wp; |
| 434 |
max-frequency = <150000000>; |
| 435 |
no-sdio; |
| 436 |
no-mmc; |
| 437 |
sd-uhs-sdr104; |
| 438 |
vmmc-supply = <&vcc_3v3_s3>; |
| 439 |
vqmmc-supply = <&vccio_sd_s0>; |
| 440 |
status = "okay"; |
| 441 |
}; |
| 442 |
|
| 443 |
&sfc { |
| 444 |
status = "okay"; |
| 445 |
|
| 446 |
spi_flash: flash@0 { |
| 447 |
compatible = "jedec,spi-nor"; |
| 448 |
reg = <0x0>; |
| 449 |
spi-max-frequency = <100000000>; |
| 450 |
spi-rx-bus-width = <4>; |
| 451 |
spi-tx-bus-width = <1>; |
| 452 |
}; |
| 453 |
}; |
| 454 |
|
| 455 |
&spi2 { |
| 456 |
assigned-clocks = <&cru CLK_SPI2>; |
| 457 |
assigned-clock-rates = <200000000>; |
| 458 |
num-cs = <1>; |
| 459 |
pinctrl-names = "default"; |
| 460 |
pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>; |
| 461 |
status = "okay"; |
| 462 |
|
| 463 |
pmic@0 { |
| 464 |
compatible = "rockchip,rk806"; |
| 465 |
reg = <0x0>; |
| 466 |
interrupt-parent = <&gpio0>; |
| 467 |
interrupts = <7 IRQ_TYPE_LEVEL_LOW>; |
| 468 |
pinctrl-names = "default"; |
| 469 |
pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, |
| 470 |
<&rk806_dvs2_null>, <&rk806_dvs3_null>; |
| 471 |
spi-max-frequency = <1000000>; |
| 472 |
system-power-controller; |
| 473 |
|
| 474 |
vcc1-supply = <&vcc5v0_sys>; |
| 475 |
vcc2-supply = <&vcc5v0_sys>; |
| 476 |
vcc3-supply = <&vcc5v0_sys>; |
| 477 |
vcc4-supply = <&vcc5v0_sys>; |
| 478 |
vcc5-supply = <&vcc5v0_sys>; |
| 479 |
vcc6-supply = <&vcc5v0_sys>; |
| 480 |
vcc7-supply = <&vcc5v0_sys>; |
| 481 |
vcc8-supply = <&vcc5v0_sys>; |
| 482 |
vcc9-supply = <&vcc5v0_sys>; |
| 483 |
vcc10-supply = <&vcc5v0_sys>; |
| 484 |
vcc11-supply = <&vcc_2v0_pldo_s3>; |
| 485 |
vcc12-supply = <&vcc5v0_sys>; |
| 486 |
vcc13-supply = <&vdd2_ddr_s3>; |
| 487 |
vcc14-supply = <&vdd2_ddr_s3>; |
| 488 |
vcca-supply = <&vcc5v0_sys>; |
| 489 |
|
| 490 |
gpio-controller; |
| 491 |
#gpio-cells = <2>; |
| 492 |
|
| 493 |
rk806_dvs1_null: dvs1-null-pins { |
| 494 |
pins = "gpio_pwrctrl1"; |
| 495 |
function = "pin_fun0"; |
| 496 |
}; |
| 497 |
|
| 498 |
rk806_dvs2_null: dvs2-null-pins { |
| 499 |
pins = "gpio_pwrctrl2"; |
| 500 |
function = "pin_fun0"; |
| 501 |
}; |
| 502 |
|
| 503 |
rk806_dvs3_null: dvs3-null-pins { |
| 504 |
pins = "gpio_pwrctrl3"; |
| 505 |
function = "pin_fun0"; |
| 506 |
}; |
| 507 |
|
| 508 |
regulators { |
| 509 |
vdd_gpu_s0: dcdc-reg1 { |
| 510 |
regulator-name = "vdd_gpu_s0"; |
| 511 |
regulator-boot-on; |
| 512 |
regulator-enable-ramp-delay = <400>; |
| 513 |
regulator-min-microvolt = <550000>; |
| 514 |
regulator-max-microvolt = <950000>; |
| 515 |
regulator-ramp-delay = <12500>; |
| 516 |
|
| 517 |
regulator-state-mem { |
| 518 |
regulator-off-in-suspend; |
| 519 |
}; |
| 520 |
}; |
| 521 |
|
| 522 |
vdd_cpu_lit_s0: dcdc-reg2 { |
| 523 |
regulator-name = "vdd_cpu_lit_s0"; |
| 524 |
regulator-always-on; |
| 525 |
regulator-boot-on; |
| 526 |
regulator-min-microvolt = <550000>; |
| 527 |
regulator-max-microvolt = <950000>; |
| 528 |
regulator-ramp-delay = <12500>; |
| 529 |
|
| 530 |
regulator-state-mem { |
| 531 |
regulator-off-in-suspend; |
| 532 |
}; |
| 533 |
}; |
| 534 |
|
| 535 |
vdd_log_s0: dcdc-reg3 { |
| 536 |
regulator-name = "vdd_log_s0"; |
| 537 |
regulator-always-on; |
| 538 |
regulator-boot-on; |
| 539 |
regulator-min-microvolt = <675000>; |
| 540 |
regulator-max-microvolt = <825000>; |
| 541 |
regulator-ramp-delay = <12500>; |
| 542 |
|
| 543 |
regulator-state-mem { |
| 544 |
regulator-off-in-suspend; |
| 545 |
regulator-suspend-microvolt = <750000>; |
| 546 |
}; |
| 547 |
}; |
| 548 |
|
| 549 |
vdd_vdenc_s0: dcdc-reg4 { |
| 550 |
regulator-name = "vdd_vdenc_s0"; |
| 551 |
regulator-always-on; |
| 552 |
regulator-boot-on; |
| 553 |
regulator-min-microvolt = <550000>; |
| 554 |
regulator-max-microvolt = <825000>; |
| 555 |
regulator-ramp-delay = <12500>; |
| 556 |
|
| 557 |
regulator-state-mem { |
| 558 |
regulator-off-in-suspend; |
| 559 |
}; |
| 560 |
}; |
| 561 |
|
| 562 |
vdd_ddr_s0: dcdc-reg5 { |
| 563 |
regulator-name = "vdd_ddr_s0"; |
| 564 |
regulator-always-on; |
| 565 |
regulator-boot-on; |
| 566 |
regulator-min-microvolt = <675000>; |
| 567 |
regulator-max-microvolt = <900000>; |
| 568 |
regulator-ramp-delay = <12500>; |
| 569 |
|
| 570 |
regulator-state-mem { |
| 571 |
regulator-off-in-suspend; |
| 572 |
regulator-suspend-microvolt = <850000>; |
| 573 |
}; |
| 574 |
}; |
| 575 |
|
| 576 |
vdd2_ddr_s3: dcdc-reg6 { |
| 577 |
regulator-name = "vdd2_ddr_s3"; |
| 578 |
regulator-always-on; |
| 579 |
regulator-boot-on; |
| 580 |
|
| 581 |
regulator-state-mem { |
| 582 |
regulator-on-in-suspend; |
| 583 |
}; |
| 584 |
}; |
| 585 |
|
| 586 |
vcc_2v0_pldo_s3: dcdc-reg7 { |
| 587 |
regulator-name = "vdd_2v0_pldo_s3"; |
| 588 |
regulator-always-on; |
| 589 |
regulator-boot-on; |
| 590 |
regulator-min-microvolt = <2000000>; |
| 591 |
regulator-max-microvolt = <2000000>; |
| 592 |
regulator-ramp-delay = <12500>; |
| 593 |
|
| 594 |
regulator-state-mem { |
| 595 |
regulator-on-in-suspend; |
| 596 |
regulator-suspend-microvolt = <2000000>; |
| 597 |
}; |
| 598 |
}; |
| 599 |
|
| 600 |
vcc_3v3_s3: dcdc-reg8 { |
| 601 |
regulator-name = "vcc_3v3_s3"; |
| 602 |
regulator-always-on; |
| 603 |
regulator-boot-on; |
| 604 |
regulator-min-microvolt = <3300000>; |
| 605 |
regulator-max-microvolt = <3300000>; |
| 606 |
|
| 607 |
regulator-state-mem { |
| 608 |
regulator-on-in-suspend; |
| 609 |
regulator-suspend-microvolt = <3300000>; |
| 610 |
}; |
| 611 |
}; |
| 612 |
|
| 613 |
vddq_ddr_s0: dcdc-reg9 { |
| 614 |
regulator-name = "vddq_ddr_s0"; |
| 615 |
regulator-always-on; |
| 616 |
regulator-boot-on; |
| 617 |
|
| 618 |
regulator-state-mem { |
| 619 |
regulator-off-in-suspend; |
| 620 |
}; |
| 621 |
}; |
| 622 |
|
| 623 |
vcc_1v8_s3: dcdc-reg10 { |
| 624 |
regulator-name = "vcc_1v8_s3"; |
| 625 |
regulator-always-on; |
| 626 |
regulator-boot-on; |
| 627 |
regulator-min-microvolt = <1800000>; |
| 628 |
regulator-max-microvolt = <1800000>; |
| 629 |
|
| 630 |
regulator-state-mem { |
| 631 |
regulator-on-in-suspend; |
| 632 |
regulator-suspend-microvolt = <1800000>; |
| 633 |
}; |
| 634 |
}; |
| 635 |
|
| 636 |
avcc_1v8_s0: pldo-reg1 { |
| 637 |
regulator-name = "avcc_1v8_s0"; |
| 638 |
regulator-always-on; |
| 639 |
regulator-boot-on; |
| 640 |
regulator-min-microvolt = <1800000>; |
| 641 |
regulator-max-microvolt = <1800000>; |
| 642 |
|
| 643 |
regulator-state-mem { |
| 644 |
regulator-off-in-suspend; |
| 645 |
regulator-suspend-microvolt = <1800000>; |
| 646 |
}; |
| 647 |
}; |
| 648 |
|
| 649 |
/* shorted to avcc_1v8_s0 on the board */ |
| 650 |
vcc_1v8_s0: pldo-reg2 { |
| 651 |
regulator-name = "vcc_1v8_s0"; |
| 652 |
regulator-always-on; |
| 653 |
regulator-boot-on; |
| 654 |
regulator-min-microvolt = <1800000>; |
| 655 |
regulator-max-microvolt = <1800000>; |
| 656 |
|
| 657 |
regulator-state-mem { |
| 658 |
regulator-off-in-suspend; |
| 659 |
regulator-suspend-microvolt = <1800000>; |
| 660 |
}; |
| 661 |
}; |
| 662 |
|
| 663 |
avdd_1v2_s0: pldo-reg3 { |
| 664 |
regulator-name = "avdd_1v2_s0"; |
| 665 |
regulator-always-on; |
| 666 |
regulator-boot-on; |
| 667 |
regulator-min-microvolt = <1200000>; |
| 668 |
regulator-max-microvolt = <1200000>; |
| 669 |
|
| 670 |
regulator-state-mem { |
| 671 |
regulator-off-in-suspend; |
| 672 |
}; |
| 673 |
}; |
| 674 |
|
| 675 |
vcc_3v3_s0: pldo-reg4 { |
| 676 |
regulator-name = "vcc_3v3_s0"; |
| 677 |
regulator-always-on; |
| 678 |
regulator-boot-on; |
| 679 |
regulator-min-microvolt = <3300000>; |
| 680 |
regulator-max-microvolt = <3300000>; |
| 681 |
regulator-ramp-delay = <12500>; |
| 682 |
|
| 683 |
regulator-state-mem { |
| 684 |
regulator-off-in-suspend; |
| 685 |
}; |
| 686 |
}; |
| 687 |
|
| 688 |
vccio_sd_s0: pldo-reg5 { |
| 689 |
regulator-name = "vccio_sd_s0"; |
| 690 |
regulator-always-on; |
| 691 |
regulator-boot-on; |
| 692 |
regulator-min-microvolt = <1800000>; |
| 693 |
regulator-max-microvolt = <3300000>; |
| 694 |
regulator-ramp-delay = <12500>; |
| 695 |
|
| 696 |
regulator-state-mem { |
| 697 |
regulator-off-in-suspend; |
| 698 |
}; |
| 699 |
}; |
| 700 |
|
| 701 |
pldo6_s3: pldo-reg6 { |
| 702 |
regulator-name = "pldo6_s3"; |
| 703 |
regulator-always-on; |
| 704 |
regulator-boot-on; |
| 705 |
regulator-min-microvolt = <1800000>; |
| 706 |
regulator-max-microvolt = <1800000>; |
| 707 |
|
| 708 |
regulator-state-mem { |
| 709 |
regulator-on-in-suspend; |
| 710 |
regulator-suspend-microvolt = <1800000>; |
| 711 |
}; |
| 712 |
}; |
| 713 |
|
| 714 |
vdd_0v75_s3: nldo-reg1 { |
| 715 |
regulator-name = "vdd_0v75_s3"; |
| 716 |
regulator-always-on; |
| 717 |
regulator-boot-on; |
| 718 |
regulator-min-microvolt = <750000>; |
| 719 |
regulator-max-microvolt = <750000>; |
| 720 |
|
| 721 |
regulator-state-mem { |
| 722 |
regulator-on-in-suspend; |
| 723 |
regulator-suspend-microvolt = <750000>; |
| 724 |
}; |
| 725 |
}; |
| 726 |
|
| 727 |
vdd_ddr_pll_s0: nldo-reg2 { |
| 728 |
regulator-name = "vdd_ddr_pll_s0"; |
| 729 |
regulator-always-on; |
| 730 |
regulator-boot-on; |
| 731 |
regulator-min-microvolt = <850000>; |
| 732 |
regulator-max-microvolt = <850000>; |
| 733 |
|
| 734 |
regulator-state-mem { |
| 735 |
regulator-off-in-suspend; |
| 736 |
regulator-suspend-microvolt = <850000>; |
| 737 |
}; |
| 738 |
}; |
| 739 |
|
| 740 |
avdd_0v75_s0: nldo-reg3 { |
| 741 |
regulator-name = "avdd_0v75_s0"; |
| 742 |
regulator-always-on; |
| 743 |
regulator-boot-on; |
| 744 |
/* |
| 745 |
* The schematic mentions that actual setting |
| 746 |
* should be 0.8375V. RK3588 datasheet specifies |
| 747 |
* maximum as 0.825V. So we set datasheet max |
| 748 |
* here. |
| 749 |
*/ |
| 750 |
regulator-min-microvolt = <825000>; |
| 751 |
regulator-max-microvolt = <825000>; |
| 752 |
|
| 753 |
regulator-state-mem { |
| 754 |
regulator-off-in-suspend; |
| 755 |
}; |
| 756 |
}; |
| 757 |
|
| 758 |
vdd_0v85_s0: nldo-reg4 { |
| 759 |
regulator-name = "vdd_0v85_s0"; |
| 760 |
regulator-always-on; |
| 761 |
regulator-boot-on; |
| 762 |
regulator-min-microvolt = <850000>; |
| 763 |
regulator-max-microvolt = <850000>; |
| 764 |
|
| 765 |
regulator-state-mem { |
| 766 |
regulator-off-in-suspend; |
| 767 |
}; |
| 768 |
}; |
| 769 |
|
| 770 |
vdd_0v75_s0: nldo-reg5 { |
| 771 |
regulator-name = "vdd_0v75_s0"; |
| 772 |
regulator-always-on; |
| 773 |
regulator-boot-on; |
| 774 |
regulator-min-microvolt = <750000>; |
| 775 |
regulator-max-microvolt = <750000>; |
| 776 |
|
| 777 |
regulator-state-mem { |
| 778 |
regulator-off-in-suspend; |
| 779 |
}; |
| 780 |
}; |
| 781 |
}; |
| 782 |
}; |
| 783 |
}; |
| 784 |
|
| 785 |
&tsadc { |
| 786 |
status = "okay"; |
| 787 |
}; |
| 788 |
|
| 789 |
&u2phy0 { |
| 790 |
status = "okay"; |
| 791 |
}; |
| 792 |
|
| 793 |
&u2phy0_otg { |
| 794 |
status = "okay"; |
| 795 |
}; |
| 796 |
|
| 797 |
&u2phy1 { |
| 798 |
status = "okay"; |
| 799 |
}; |
| 800 |
|
| 801 |
&u2phy1_otg { |
| 802 |
status = "okay"; |
| 803 |
}; |
| 804 |
|
| 805 |
&u2phy2 { |
| 806 |
status = "okay"; |
| 807 |
}; |
| 808 |
|
| 809 |
&u2phy3 { |
| 810 |
status = "okay"; |
| 811 |
}; |
| 812 |
|
| 813 |
&u2phy2_host { |
| 814 |
phy-supply = <&vcc5v0_usb20>; |
| 815 |
status = "okay"; |
| 816 |
}; |
| 817 |
|
| 818 |
&u2phy3_host { |
| 819 |
phy-supply = <&vcc5v0_usb20>; |
| 820 |
status = "okay"; |
| 821 |
}; |
| 822 |
|
| 823 |
&uart2 { |
| 824 |
pinctrl-0 = <&uart2m0_xfer>; |
| 825 |
status = "okay"; |
| 826 |
}; |
| 827 |
|
| 828 |
&usbdp_phy0 { |
| 829 |
status = "okay"; |
| 830 |
}; |
| 831 |
|
| 832 |
&usbdp_phy1 { |
| 833 |
status = "okay"; |
| 834 |
}; |
| 835 |
|
| 836 |
&usb_host0_ehci { |
| 837 |
status = "okay"; |
| 838 |
}; |
| 839 |
|
| 840 |
&usb_host0_ohci { |
| 841 |
status = "okay"; |
| 842 |
}; |
| 843 |
|
| 844 |
&usb_host0_xhci { |
| 845 |
status = "okay"; |
| 846 |
}; |
| 847 |
|
| 848 |
&usb_host1_ehci { |
| 849 |
status = "okay"; |
| 850 |
}; |
| 851 |
|
| 852 |
&usb_host1_ohci { |
| 853 |
status = "okay"; |
| 854 |
}; |
| 855 |
|
| 856 |
&usb_host1_xhci { |
| 857 |
dr_mode = "host"; |
| 858 |
status = "okay"; |
| 859 |
}; |
| 860 |
|
| 861 |
&vop_mmu { |
| 862 |
status = "okay"; |
| 863 |
}; |
| 864 |
|
| 865 |
&vop { |
| 866 |
status = "okay"; |
| 867 |
}; |