| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (c) 2021 Rockchip Electronics Co., Ltd. |
| 4 |
* |
| 5 |
*/ |
| 6 |
|
| 7 |
/dts-v1/; |
| 8 |
|
| 9 |
#include <dt-bindings/gpio/gpio.h> |
| 10 |
#include <dt-bindings/input/input.h> |
| 11 |
#include <dt-bindings/pinctrl/rockchip.h> |
| 12 |
#include <dt-bindings/soc/rockchip,vop2.h> |
| 13 |
#include <dt-bindings/usb/pd.h> |
| 14 |
#include "rk3588.dtsi" |
| 15 |
|
| 16 |
/ { |
| 17 |
model = "Rockchip RK3588 EVB1 V10 Board"; |
| 18 |
compatible = "rockchip,rk3588-evb1-v10", "rockchip,rk3588"; |
| 19 |
|
| 20 |
aliases { |
| 21 |
ethernet0 = &gmac0; |
| 22 |
mmc0 = &sdhci; |
| 23 |
}; |
| 24 |
|
| 25 |
chosen { |
| 26 |
stdout-path = "serial2:1500000n8"; |
| 27 |
}; |
| 28 |
|
| 29 |
adc-keys { |
| 30 |
compatible = "adc-keys"; |
| 31 |
io-channels = <&saradc 1>; |
| 32 |
io-channel-names = "buttons"; |
| 33 |
keyup-threshold-microvolt = <1800000>; |
| 34 |
poll-interval = <100>; |
| 35 |
|
| 36 |
button-vol-up { |
| 37 |
label = "Volume Up"; |
| 38 |
linux,code = <KEY_VOLUMEUP>; |
| 39 |
press-threshold-microvolt = <17000>; |
| 40 |
}; |
| 41 |
|
| 42 |
button-vol-down { |
| 43 |
label = "Volume Down"; |
| 44 |
linux,code = <KEY_VOLUMEDOWN>; |
| 45 |
press-threshold-microvolt = <417000>; |
| 46 |
}; |
| 47 |
|
| 48 |
button-menu { |
| 49 |
label = "Menu"; |
| 50 |
linux,code = <KEY_MENU>; |
| 51 |
press-threshold-microvolt = <890000>; |
| 52 |
}; |
| 53 |
|
| 54 |
button-escape { |
| 55 |
label = "Escape"; |
| 56 |
linux,code = <KEY_ESC>; |
| 57 |
press-threshold-microvolt = <1235000>; |
| 58 |
}; |
| 59 |
}; |
| 60 |
|
| 61 |
analog-sound { |
| 62 |
compatible = "simple-audio-card"; |
| 63 |
pinctrl-names = "default"; |
| 64 |
pinctrl-0 = <&hp_detect>; |
| 65 |
simple-audio-card,name = "RK3588 EVB1 Audio"; |
| 66 |
simple-audio-card,aux-devs = <&_headphone>, <&_speaker>; |
| 67 |
simple-audio-card,bitclock-master = <&masterdai>; |
| 68 |
simple-audio-card,format = "i2s"; |
| 69 |
simple-audio-card,frame-master = <&masterdai>; |
| 70 |
simple-audio-card,hp-det-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>; |
| 71 |
simple-audio-card,mclk-fs = <256>; |
| 72 |
simple-audio-card,pin-switches = "Headphones", "Speaker"; |
| 73 |
simple-audio-card,routing = |
| 74 |
"Speaker Amplifier INL", "LOUT2", |
| 75 |
"Speaker Amplifier INR", "ROUT2", |
| 76 |
"Speaker", "Speaker Amplifier OUTL", |
| 77 |
"Speaker", "Speaker Amplifier OUTR", |
| 78 |
"Headphones Amplifier INL", "LOUT1", |
| 79 |
"Headphones Amplifier INR", "ROUT1", |
| 80 |
"Headphones", "Headphones Amplifier OUTL", |
| 81 |
"Headphones", "Headphones Amplifier OUTR", |
| 82 |
"LINPUT1", "Onboard Microphone", |
| 83 |
"RINPUT1", "Onboard Microphone", |
| 84 |
"LINPUT2", "Microphone Jack", |
| 85 |
"RINPUT2", "Microphone Jack"; |
| 86 |
simple-audio-card,widgets = |
| 87 |
"Microphone", "Microphone Jack", |
| 88 |
"Microphone", "Onboard Microphone", |
| 89 |
"Headphone", "Headphones", |
| 90 |
"Speaker", "Speaker"; |
| 91 |
|
| 92 |
simple-audio-card,cpu { |
| 93 |
sound-dai = <&i2s0_8ch>; |
| 94 |
}; |
| 95 |
|
| 96 |
masterdai: simple-audio-card,codec { |
| 97 |
sound-dai = <&es8388>; |
| 98 |
system-clock-frequency = <12288000>; |
| 99 |
}; |
| 100 |
}; |
| 101 |
|
| 102 |
amp_headphone: headphone-amplifier { |
| 103 |
compatible = "simple-audio-amplifier"; |
| 104 |
enable-gpios = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>; |
| 105 |
pinctrl-names = "default"; |
| 106 |
pinctrl-0 = <&headphone_amplifier_en>; |
| 107 |
sound-name-prefix = "Headphones Amplifier"; |
| 108 |
}; |
| 109 |
|
| 110 |
amp_speaker: speaker-amplifier { |
| 111 |
compatible = "simple-audio-amplifier"; |
| 112 |
enable-gpios = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>; |
| 113 |
pinctrl-names = "default"; |
| 114 |
pinctrl-0 = <&speaker_amplifier_en>; |
| 115 |
sound-name-prefix = "Speaker Amplifier"; |
| 116 |
}; |
| 117 |
|
| 118 |
backlight: backlight { |
| 119 |
compatible = "pwm-backlight"; |
| 120 |
power-supply = <&vcc12v_dcin>; |
| 121 |
pwms = <&pwm2 0 25000 0>; |
| 122 |
}; |
| 123 |
|
| 124 |
hdmi0-con { |
| 125 |
compatible = "hdmi-connector"; |
| 126 |
type = "a"; |
| 127 |
|
| 128 |
port { |
| 129 |
hdmi0_con_in: endpoint { |
| 130 |
remote-endpoint = <&hdmi0_out_con>; |
| 131 |
}; |
| 132 |
}; |
| 133 |
}; |
| 134 |
|
| 135 |
hdmi1-con { |
| 136 |
compatible = "hdmi-connector"; |
| 137 |
type = "a"; |
| 138 |
|
| 139 |
port { |
| 140 |
hdmi1_con_in: endpoint { |
| 141 |
remote-endpoint = <&hdmi1_out_con>; |
| 142 |
}; |
| 143 |
}; |
| 144 |
}; |
| 145 |
|
| 146 |
pcie20_avdd0v85: regulator-pcie20-avdd0v85 { |
| 147 |
compatible = "regulator-fixed"; |
| 148 |
regulator-name = "pcie20_avdd0v85"; |
| 149 |
regulator-always-on; |
| 150 |
regulator-boot-on; |
| 151 |
regulator-min-microvolt = <850000>; |
| 152 |
regulator-max-microvolt = <850000>; |
| 153 |
vin-supply = <&avdd_0v85_s0>; |
| 154 |
}; |
| 155 |
|
| 156 |
pcie20_avdd1v8: regulator-pcie20-avdd1v8 { |
| 157 |
compatible = "regulator-fixed"; |
| 158 |
regulator-name = "pcie20_avdd1v8"; |
| 159 |
regulator-always-on; |
| 160 |
regulator-boot-on; |
| 161 |
regulator-min-microvolt = <1800000>; |
| 162 |
regulator-max-microvolt = <1800000>; |
| 163 |
vin-supply = <&avcc_1v8_s0>; |
| 164 |
}; |
| 165 |
|
| 166 |
pcie30_avdd0v75: regulator-pcie30-avdd0v75 { |
| 167 |
compatible = "regulator-fixed"; |
| 168 |
regulator-name = "pcie30_avdd0v75"; |
| 169 |
regulator-always-on; |
| 170 |
regulator-boot-on; |
| 171 |
regulator-min-microvolt = <750000>; |
| 172 |
regulator-max-microvolt = <750000>; |
| 173 |
vin-supply = <&avdd_0v75_s0>; |
| 174 |
}; |
| 175 |
|
| 176 |
pcie30_avdd1v8: regulator-pcie30-avdd1v8 { |
| 177 |
compatible = "regulator-fixed"; |
| 178 |
regulator-name = "pcie30_avdd1v8"; |
| 179 |
regulator-always-on; |
| 180 |
regulator-boot-on; |
| 181 |
regulator-min-microvolt = <1800000>; |
| 182 |
regulator-max-microvolt = <1800000>; |
| 183 |
vin-supply = <&avcc_1v8_s0>; |
| 184 |
}; |
| 185 |
|
| 186 |
vbus5v0_typec: regulator-vbus5v0-typec { |
| 187 |
compatible = "regulator-fixed"; |
| 188 |
enable-active-high; |
| 189 |
gpio = <&gpio4 RK_PD0 GPIO_ACTIVE_HIGH>; |
| 190 |
pinctrl-names = "default"; |
| 191 |
pinctrl-0 = <&typec5v_pwren>; |
| 192 |
regulator-name = "vbus5v0_typec"; |
| 193 |
regulator-min-microvolt = <5000000>; |
| 194 |
regulator-max-microvolt = <5000000>; |
| 195 |
vin-supply = <&vcc5v0_usb>; |
| 196 |
}; |
| 197 |
|
| 198 |
vcc12v_dcin: regulator-vcc12v-dcin { |
| 199 |
compatible = "regulator-fixed"; |
| 200 |
regulator-name = "vcc12v_dcin"; |
| 201 |
regulator-always-on; |
| 202 |
regulator-boot-on; |
| 203 |
regulator-min-microvolt = <12000000>; |
| 204 |
regulator-max-microvolt = <12000000>; |
| 205 |
}; |
| 206 |
|
| 207 |
vcc3v3_pcie30: regulator-vcc3v3-pcie30 { |
| 208 |
compatible = "regulator-fixed"; |
| 209 |
regulator-name = "vcc3v3_pcie30"; |
| 210 |
regulator-min-microvolt = <3300000>; |
| 211 |
regulator-max-microvolt = <3300000>; |
| 212 |
enable-active-high; |
| 213 |
gpios = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>; |
| 214 |
startup-delay-us = <5000>; |
| 215 |
vin-supply = <&vcc12v_dcin>; |
| 216 |
pinctrl-names = "default"; |
| 217 |
pinctrl-0 = <&vcc3v3_pcie30_en>; |
| 218 |
}; |
| 219 |
|
| 220 |
vcc3v3_pciewl_vbat: regulator-vcc3v3-pciewl-vbat { |
| 221 |
compatible = "regulator-fixed"; |
| 222 |
regulator-always-on; |
| 223 |
regulator-boot-on; |
| 224 |
regulator-min-microvolt = <3300000>; |
| 225 |
regulator-max-microvolt = <3300000>; |
| 226 |
regulator-name = "wlan-vbat"; |
| 227 |
vin-supply = <&vcc_3v3_s0>; |
| 228 |
}; |
| 229 |
|
| 230 |
vcc3v3_wlan: regulator-vcc3v3-wlan { |
| 231 |
compatible = "regulator-fixed"; |
| 232 |
enable-active-high; |
| 233 |
gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>; |
| 234 |
pinctrl-names = "default"; |
| 235 |
pinctrl-0 = <&wifi_pwren>; |
| 236 |
regulator-min-microvolt = <3300000>; |
| 237 |
regulator-max-microvolt = <3300000>; |
| 238 |
regulator-name = "wlan-en"; |
| 239 |
vin-supply = <&vcc3v3_pciewl_vbat>; |
| 240 |
}; |
| 241 |
|
| 242 |
vcc5v0_host: regulator-vcc5v0-host { |
| 243 |
compatible = "regulator-fixed"; |
| 244 |
regulator-name = "vcc5v0_host"; |
| 245 |
regulator-boot-on; |
| 246 |
regulator-always-on; |
| 247 |
regulator-min-microvolt = <5000000>; |
| 248 |
regulator-max-microvolt = <5000000>; |
| 249 |
enable-active-high; |
| 250 |
gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; |
| 251 |
pinctrl-names = "default"; |
| 252 |
pinctrl-0 = <&vcc5v0_host_en>; |
| 253 |
vin-supply = <&vcc5v0_usb>; |
| 254 |
}; |
| 255 |
|
| 256 |
vcc5v0_sys: regulator-vcc5v0-sys { |
| 257 |
compatible = "regulator-fixed"; |
| 258 |
regulator-name = "vcc5v0_sys"; |
| 259 |
regulator-always-on; |
| 260 |
regulator-boot-on; |
| 261 |
regulator-min-microvolt = <5000000>; |
| 262 |
regulator-max-microvolt = <5000000>; |
| 263 |
vin-supply = <&vcc12v_dcin>; |
| 264 |
}; |
| 265 |
|
| 266 |
vcc5v0_usbdcin: regulator-vcc5v0-usbdcin { |
| 267 |
compatible = "regulator-fixed"; |
| 268 |
regulator-name = "vcc5v0_usbdcin"; |
| 269 |
regulator-always-on; |
| 270 |
regulator-boot-on; |
| 271 |
regulator-min-microvolt = <5000000>; |
| 272 |
regulator-max-microvolt = <5000000>; |
| 273 |
vin-supply = <&vcc12v_dcin>; |
| 274 |
}; |
| 275 |
|
| 276 |
vcc5v0_usb: regulator-vcc5v0-usb { |
| 277 |
compatible = "regulator-fixed"; |
| 278 |
regulator-name = "vcc5v0_usb"; |
| 279 |
regulator-always-on; |
| 280 |
regulator-boot-on; |
| 281 |
regulator-min-microvolt = <5000000>; |
| 282 |
regulator-max-microvolt = <5000000>; |
| 283 |
vin-supply = <&vcc5v0_usbdcin>; |
| 284 |
}; |
| 285 |
|
| 286 |
vccio_wl: regulator-vccio-wl { |
| 287 |
compatible = "regulator-fixed"; |
| 288 |
regulator-always-on; |
| 289 |
regulator-boot-on; |
| 290 |
regulator-min-microvolt = <1800000>; |
| 291 |
regulator-max-microvolt = <1800000>; |
| 292 |
regulator-name = "wlan-vddio"; |
| 293 |
vin-supply = <&vcc_1v8_s0>; |
| 294 |
}; |
| 295 |
}; |
| 296 |
|
| 297 |
&combphy0_ps { |
| 298 |
status = "okay"; |
| 299 |
}; |
| 300 |
|
| 301 |
&combphy1_ps { |
| 302 |
status = "okay"; |
| 303 |
}; |
| 304 |
|
| 305 |
&combphy2_psu { |
| 306 |
status = "okay"; |
| 307 |
}; |
| 308 |
|
| 309 |
&cpu_b0 { |
| 310 |
cpu-supply = <&vdd_cpu_big0_s0>; |
| 311 |
}; |
| 312 |
|
| 313 |
&cpu_b1 { |
| 314 |
cpu-supply = <&vdd_cpu_big0_s0>; |
| 315 |
}; |
| 316 |
|
| 317 |
&cpu_b2 { |
| 318 |
cpu-supply = <&vdd_cpu_big1_s0>; |
| 319 |
}; |
| 320 |
|
| 321 |
&cpu_b3 { |
| 322 |
cpu-supply = <&vdd_cpu_big1_s0>; |
| 323 |
}; |
| 324 |
|
| 325 |
&cpu_l0 { |
| 326 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 327 |
}; |
| 328 |
|
| 329 |
&cpu_l1 { |
| 330 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 331 |
}; |
| 332 |
|
| 333 |
&cpu_l2 { |
| 334 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 335 |
}; |
| 336 |
|
| 337 |
&cpu_l3 { |
| 338 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 339 |
}; |
| 340 |
|
| 341 |
&gmac0 { |
| 342 |
clock_in_out = "output"; |
| 343 |
phy-handle = <&rgmii_phy>; |
| 344 |
phy-mode = "rgmii-rxid"; |
| 345 |
pinctrl-0 = <&gmac0_miim |
| 346 |
&gmac0_tx_bus2 |
| 347 |
&gmac0_rx_bus2 |
| 348 |
&gmac0_rgmii_clk |
| 349 |
&gmac0_rgmii_bus>; |
| 350 |
pinctrl-names = "default"; |
| 351 |
rx_delay = <0x00>; |
| 352 |
tx_delay = <0x43>; |
| 353 |
status = "okay"; |
| 354 |
}; |
| 355 |
|
| 356 |
&gpu { |
| 357 |
mali-supply = <&vdd_gpu_s0>; |
| 358 |
sram-supply = <&vdd_gpu_mem_s0>; |
| 359 |
status = "okay"; |
| 360 |
}; |
| 361 |
|
| 362 |
&hdmi0 { |
| 363 |
status = "okay"; |
| 364 |
}; |
| 365 |
|
| 366 |
&hdmi0_in { |
| 367 |
hdmi0_in_vp0: endpoint { |
| 368 |
remote-endpoint = <&vp0_out_hdmi0>; |
| 369 |
}; |
| 370 |
}; |
| 371 |
|
| 372 |
&hdmi0_out { |
| 373 |
hdmi0_out_con: endpoint { |
| 374 |
remote-endpoint = <&hdmi0_con_in>; |
| 375 |
}; |
| 376 |
}; |
| 377 |
|
| 378 |
&hdmi1 { |
| 379 |
status = "okay"; |
| 380 |
}; |
| 381 |
|
| 382 |
&hdmi1_in { |
| 383 |
hdmi1_in_vp1: endpoint { |
| 384 |
remote-endpoint = <&vp1_out_hdmi1>; |
| 385 |
}; |
| 386 |
}; |
| 387 |
|
| 388 |
&hdmi1_out { |
| 389 |
hdmi1_out_con: endpoint { |
| 390 |
remote-endpoint = <&hdmi1_con_in>; |
| 391 |
}; |
| 392 |
}; |
| 393 |
|
| 394 |
&hdmi_receiver_cma { |
| 395 |
status = "okay"; |
| 396 |
}; |
| 397 |
|
| 398 |
&hdmi_receiver { |
| 399 |
hpd-gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>; |
| 400 |
pinctrl-0 = <&hdmim1_rx_cec &hdmim1_rx_hpdin &hdmim1_rx_scl &hdmim1_rx_sda &hdmirx_hpd>; |
| 401 |
pinctrl-names = "default"; |
| 402 |
status = "okay"; |
| 403 |
}; |
| 404 |
|
| 405 |
&hdptxphy0 { |
| 406 |
status = "okay"; |
| 407 |
}; |
| 408 |
|
| 409 |
&hdptxphy1 { |
| 410 |
status = "okay"; |
| 411 |
}; |
| 412 |
|
| 413 |
&i2c2 { |
| 414 |
status = "okay"; |
| 415 |
|
| 416 |
usbc0: usb-typec@22 { |
| 417 |
compatible = "fcs,fusb302"; |
| 418 |
reg = <0x22>; |
| 419 |
interrupt-parent = <&gpio3>; |
| 420 |
interrupts = <RK_PB4 IRQ_TYPE_LEVEL_LOW>; |
| 421 |
pinctrl-names = "default"; |
| 422 |
pinctrl-0 = <&usbc0_int>; |
| 423 |
vbus-supply = <&vbus5v0_typec>; |
| 424 |
status = "okay"; |
| 425 |
|
| 426 |
usb_con: connector { |
| 427 |
compatible = "usb-c-connector"; |
| 428 |
label = "USB-C"; |
| 429 |
data-role = "dual"; |
| 430 |
op-sink-microwatt = <1000000>; |
| 431 |
power-role = "dual"; |
| 432 |
sink-pdos = |
| 433 |
<PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>; |
| 434 |
source-pdos = |
| 435 |
<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; |
| 436 |
try-power-role = "source"; |
| 437 |
|
| 438 |
ports { |
| 439 |
#address-cells = <1>; |
| 440 |
#size-cells = <0>; |
| 441 |
|
| 442 |
port@0 { |
| 443 |
reg = <0>; |
| 444 |
|
| 445 |
usbc0_orien_sw: endpoint { |
| 446 |
remote-endpoint = <&usbdp_phy0_orientation_switch>; |
| 447 |
}; |
| 448 |
}; |
| 449 |
|
| 450 |
port@1 { |
| 451 |
reg = <1>; |
| 452 |
|
| 453 |
usbc0_role_sw: endpoint { |
| 454 |
remote-endpoint = <&dwc3_0_role_switch>; |
| 455 |
}; |
| 456 |
}; |
| 457 |
|
| 458 |
port@2 { |
| 459 |
reg = <2>; |
| 460 |
|
| 461 |
dp_altmode_mux: endpoint { |
| 462 |
remote-endpoint = <&usbdp_phy0_dp_altmode_mux>; |
| 463 |
}; |
| 464 |
}; |
| 465 |
}; |
| 466 |
}; |
| 467 |
}; |
| 468 |
|
| 469 |
hym8563: rtc@51 { |
| 470 |
compatible = "haoyu,hym8563"; |
| 471 |
reg = <0x51>; |
| 472 |
#clock-cells = <0>; |
| 473 |
clock-output-names = "hym8563"; |
| 474 |
pinctrl-names = "default"; |
| 475 |
pinctrl-0 = <&hym8563_int>; |
| 476 |
interrupt-parent = <&gpio0>; |
| 477 |
interrupts = <RK_PD4 IRQ_TYPE_LEVEL_LOW>; |
| 478 |
wakeup-source; |
| 479 |
}; |
| 480 |
}; |
| 481 |
|
| 482 |
&i2c7 { |
| 483 |
status = "okay"; |
| 484 |
|
| 485 |
es8388: audio-codec@11 { |
| 486 |
compatible = "everest,es8388", "everest,es8328"; |
| 487 |
reg = <0x11>; |
| 488 |
clocks = <&cru I2S0_8CH_MCLKOUT>; |
| 489 |
assigned-clocks = <&cru I2S0_8CH_MCLKOUT>; |
| 490 |
assigned-clock-rates = <12288000>; |
| 491 |
AVDD-supply = <&avcc_1v8_codec_s0>; |
| 492 |
DVDD-supply = <&avcc_1v8_codec_s0>; |
| 493 |
HPVDD-supply = <&vcc_3v3_s0>; |
| 494 |
PVDD-supply = <&vcc_3v3_s0>; |
| 495 |
#sound-dai-cells = <0>; |
| 496 |
}; |
| 497 |
}; |
| 498 |
|
| 499 |
&i2s0_8ch { |
| 500 |
pinctrl-0 = <&i2s0_lrck |
| 501 |
&i2s0_mclk |
| 502 |
&i2s0_sclk |
| 503 |
&i2s0_sdi0 |
| 504 |
&i2s0_sdo0>; |
| 505 |
status = "okay"; |
| 506 |
}; |
| 507 |
|
| 508 |
&mdio0 { |
| 509 |
rgmii_phy: ethernet-phy@1 { |
| 510 |
/* RTL8211F */ |
| 511 |
compatible = "ethernet-phy-id001c.c916"; |
| 512 |
reg = <0x1>; |
| 513 |
pinctrl-names = "default"; |
| 514 |
pinctrl-0 = <&rtl8211f_rst>; |
| 515 |
reset-assert-us = <20000>; |
| 516 |
reset-deassert-us = <100000>; |
| 517 |
reset-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_LOW>; |
| 518 |
}; |
| 519 |
}; |
| 520 |
|
| 521 |
&pcie2x1l0 { |
| 522 |
pinctrl-names = "default"; |
| 523 |
pinctrl-0 = <&pcie2_0_rst>, <&pcie2_0_wake>, <&pcie2_0_clkreq>, <&wifi_host_wake_irq>; |
| 524 |
reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; |
| 525 |
supports-clkreq; |
| 526 |
vpcie3v3-supply = <&vcc3v3_wlan>; |
| 527 |
status = "okay"; |
| 528 |
|
| 529 |
pcie@0,0 { |
| 530 |
reg = <0x200000 0 0 0 0>; |
| 531 |
#address-cells = <3>; |
| 532 |
#size-cells = <2>; |
| 533 |
ranges; |
| 534 |
device_type = "pci"; |
| 535 |
bus-range = <0x20 0x2f>; |
| 536 |
|
| 537 |
wifi: wifi@0,0 { |
| 538 |
compatible = "pci14e4,449d"; |
| 539 |
reg = <0x210000 0 0 0 0>; |
| 540 |
clocks = <&hym8563>; |
| 541 |
clock-names = "lpo"; |
| 542 |
}; |
| 543 |
}; |
| 544 |
}; |
| 545 |
|
| 546 |
&pcie2x1l1 { |
| 547 |
reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>; |
| 548 |
pinctrl-names = "default"; |
| 549 |
pinctrl-0 = <&pcie2_1_rst>, <&rtl8111_isolate>, <&pcie30x1m1_1_clkreqn>; |
| 550 |
supports-clkreq; |
| 551 |
status = "okay"; |
| 552 |
}; |
| 553 |
|
| 554 |
&pcie30phy { |
| 555 |
status = "okay"; |
| 556 |
}; |
| 557 |
|
| 558 |
&pcie3x4 { |
| 559 |
pinctrl-names = "default"; |
| 560 |
pinctrl-0 = <&pcie3_reset>, <&pcie30x4m1_clkreqn>; |
| 561 |
supports-clkreq; |
| 562 |
reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; |
| 563 |
vpcie3v3-supply = <&vcc3v3_pcie30>; |
| 564 |
status = "okay"; |
| 565 |
}; |
| 566 |
|
| 567 |
&pd_gpu { |
| 568 |
domain-supply = <&vdd_gpu_s0>; |
| 569 |
}; |
| 570 |
|
| 571 |
&pinctrl { |
| 572 |
audio { |
| 573 |
hp_detect: headphone-detect { |
| 574 |
rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 575 |
}; |
| 576 |
|
| 577 |
headphone_amplifier_en: headphone-amplifier-en { |
| 578 |
rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 579 |
}; |
| 580 |
|
| 581 |
speaker_amplifier_en: speaker-amplifier-en { |
| 582 |
rockchip,pins = <1 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; |
| 583 |
}; |
| 584 |
}; |
| 585 |
|
| 586 |
rtl8111 { |
| 587 |
rtl8111_isolate: rtl8111-isolate { |
| 588 |
rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>; |
| 589 |
}; |
| 590 |
}; |
| 591 |
|
| 592 |
rtl8211f { |
| 593 |
rtl8211f_rst: rtl8211f-rst { |
| 594 |
rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; |
| 595 |
}; |
| 596 |
|
| 597 |
}; |
| 598 |
|
| 599 |
hdmirx { |
| 600 |
hdmirx_hpd: hdmirx-5v-detection { |
| 601 |
rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 602 |
}; |
| 603 |
}; |
| 604 |
|
| 605 |
hym8563 { |
| 606 |
hym8563_int: hym8563-int { |
| 607 |
rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up>; |
| 608 |
}; |
| 609 |
}; |
| 610 |
|
| 611 |
pcie2 { |
| 612 |
pcie2_0_rst: pcie2-0-rst { |
| 613 |
rockchip,pins = <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 614 |
}; |
| 615 |
|
| 616 |
pcie2_0_wake: pcie2-0-wake { |
| 617 |
rockchip,pins = <4 RK_PA4 4 &pcfg_pull_none>; |
| 618 |
}; |
| 619 |
|
| 620 |
pcie2_0_clkreq: pcie2-0-clkreq { |
| 621 |
rockchip,pins = <4 RK_PA3 4 &pcfg_pull_none>; |
| 622 |
}; |
| 623 |
|
| 624 |
pcie2_1_rst: pcie2-1-rst { |
| 625 |
rockchip,pins = <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 626 |
}; |
| 627 |
}; |
| 628 |
|
| 629 |
pcie3 { |
| 630 |
pcie3_reset: pcie3-reset { |
| 631 |
rockchip,pins = <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; |
| 632 |
}; |
| 633 |
|
| 634 |
vcc3v3_pcie30_en: vcc3v3-pcie30-en { |
| 635 |
rockchip,pins = <3 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>; |
| 636 |
}; |
| 637 |
}; |
| 638 |
|
| 639 |
usb { |
| 640 |
vcc5v0_host_en: vcc5v0-host-en { |
| 641 |
rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 642 |
}; |
| 643 |
}; |
| 644 |
|
| 645 |
usb-typec { |
| 646 |
typec5v_pwren: typec5v-pwren { |
| 647 |
rockchip,pins = <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 648 |
}; |
| 649 |
|
| 650 |
usbc0_int: usbc0-int { |
| 651 |
rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>; |
| 652 |
}; |
| 653 |
}; |
| 654 |
|
| 655 |
wlan { |
| 656 |
wifi_host_wake_irq: wifi-host-wake-irq { |
| 657 |
rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_down>; |
| 658 |
}; |
| 659 |
|
| 660 |
wifi_pwren: wifi-pwren { |
| 661 |
rockchip,pins = <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>; |
| 662 |
}; |
| 663 |
}; |
| 664 |
}; |
| 665 |
|
| 666 |
&pwm2 { |
| 667 |
status = "okay"; |
| 668 |
}; |
| 669 |
|
| 670 |
&saradc { |
| 671 |
vref-supply = <&vcc_1v8_s0>; |
| 672 |
status = "okay"; |
| 673 |
}; |
| 674 |
|
| 675 |
&sdhci { |
| 676 |
bus-width = <8>; |
| 677 |
no-sdio; |
| 678 |
no-sd; |
| 679 |
non-removable; |
| 680 |
mmc-hs400-1_8v; |
| 681 |
mmc-hs400-enhanced-strobe; |
| 682 |
status = "okay"; |
| 683 |
}; |
| 684 |
|
| 685 |
&spi2 { |
| 686 |
status = "okay"; |
| 687 |
assigned-clocks = <&cru CLK_SPI2>; |
| 688 |
assigned-clock-rates = <200000000>; |
| 689 |
num-cs = <2>; |
| 690 |
|
| 691 |
pmic@0 { |
| 692 |
compatible = "rockchip,rk806"; |
| 693 |
reg = <0x0>; |
| 694 |
#gpio-cells = <2>; |
| 695 |
gpio-controller; |
| 696 |
interrupt-parent = <&gpio0>; |
| 697 |
interrupts = <7 IRQ_TYPE_LEVEL_LOW>; |
| 698 |
pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, |
| 699 |
<&rk806_dvs2_null>, <&rk806_dvs3_null>; |
| 700 |
pinctrl-names = "default"; |
| 701 |
spi-max-frequency = <1000000>; |
| 702 |
system-power-controller; |
| 703 |
|
| 704 |
vcc1-supply = <&vcc5v0_sys>; |
| 705 |
vcc2-supply = <&vcc5v0_sys>; |
| 706 |
vcc3-supply = <&vcc5v0_sys>; |
| 707 |
vcc4-supply = <&vcc5v0_sys>; |
| 708 |
vcc5-supply = <&vcc5v0_sys>; |
| 709 |
vcc6-supply = <&vcc5v0_sys>; |
| 710 |
vcc7-supply = <&vcc5v0_sys>; |
| 711 |
vcc8-supply = <&vcc5v0_sys>; |
| 712 |
vcc9-supply = <&vcc5v0_sys>; |
| 713 |
vcc10-supply = <&vcc5v0_sys>; |
| 714 |
vcc11-supply = <&vcc_2v0_pldo_s3>; |
| 715 |
vcc12-supply = <&vcc5v0_sys>; |
| 716 |
vcc13-supply = <&vcc5v0_sys>; |
| 717 |
vcc14-supply = <&vcc_1v1_nldo_s3>; |
| 718 |
vcca-supply = <&vcc5v0_sys>; |
| 719 |
|
| 720 |
rk806_dvs1_null: dvs1-null-pins { |
| 721 |
pins = "gpio_pwrctrl1"; |
| 722 |
function = "pin_fun0"; |
| 723 |
}; |
| 724 |
|
| 725 |
rk806_dvs2_null: dvs2-null-pins { |
| 726 |
pins = "gpio_pwrctrl2"; |
| 727 |
function = "pin_fun0"; |
| 728 |
}; |
| 729 |
|
| 730 |
rk806_dvs3_null: dvs3-null-pins { |
| 731 |
pins = "gpio_pwrctrl3"; |
| 732 |
function = "pin_fun0"; |
| 733 |
}; |
| 734 |
|
| 735 |
|
| 736 |
regulators { |
| 737 |
vdd_gpu_s0: dcdc-reg1 { |
| 738 |
/* regulator coupling requires always-on */ |
| 739 |
regulator-always-on; |
| 740 |
regulator-boot-on; |
| 741 |
regulator-min-microvolt = <550000>; |
| 742 |
regulator-max-microvolt = <950000>; |
| 743 |
regulator-ramp-delay = <12500>; |
| 744 |
regulator-name = "vdd_gpu_s0"; |
| 745 |
regulator-enable-ramp-delay = <400>; |
| 746 |
regulator-coupled-with = <&vdd_gpu_mem_s0>; |
| 747 |
regulator-coupled-max-spread = <10000>; |
| 748 |
regulator-state-mem { |
| 749 |
regulator-off-in-suspend; |
| 750 |
}; |
| 751 |
}; |
| 752 |
|
| 753 |
vdd_npu_s0: dcdc-reg2 { |
| 754 |
regulator-always-on; |
| 755 |
regulator-boot-on; |
| 756 |
regulator-min-microvolt = <550000>; |
| 757 |
regulator-max-microvolt = <950000>; |
| 758 |
regulator-ramp-delay = <12500>; |
| 759 |
regulator-name = "vdd_npu_s0"; |
| 760 |
regulator-state-mem { |
| 761 |
regulator-off-in-suspend; |
| 762 |
}; |
| 763 |
}; |
| 764 |
|
| 765 |
vdd_log_s0: dcdc-reg3 { |
| 766 |
regulator-always-on; |
| 767 |
regulator-boot-on; |
| 768 |
regulator-min-microvolt = <675000>; |
| 769 |
regulator-max-microvolt = <750000>; |
| 770 |
regulator-ramp-delay = <12500>; |
| 771 |
regulator-name = "vdd_log_s0"; |
| 772 |
regulator-state-mem { |
| 773 |
regulator-off-in-suspend; |
| 774 |
regulator-suspend-microvolt = <750000>; |
| 775 |
}; |
| 776 |
}; |
| 777 |
|
| 778 |
vdd_vdenc_s0: dcdc-reg4 { |
| 779 |
regulator-always-on; |
| 780 |
regulator-boot-on; |
| 781 |
regulator-min-microvolt = <550000>; |
| 782 |
regulator-max-microvolt = <950000>; |
| 783 |
regulator-ramp-delay = <12500>; |
| 784 |
regulator-name = "vdd_vdenc_s0"; |
| 785 |
regulator-state-mem { |
| 786 |
regulator-off-in-suspend; |
| 787 |
}; |
| 788 |
|
| 789 |
}; |
| 790 |
|
| 791 |
vdd_gpu_mem_s0: dcdc-reg5 { |
| 792 |
/* regulator coupling requires always-on */ |
| 793 |
regulator-always-on; |
| 794 |
regulator-boot-on; |
| 795 |
regulator-min-microvolt = <675000>; |
| 796 |
regulator-max-microvolt = <950000>; |
| 797 |
regulator-ramp-delay = <12500>; |
| 798 |
regulator-enable-ramp-delay = <400>; |
| 799 |
regulator-name = "vdd_gpu_mem_s0"; |
| 800 |
regulator-coupled-with = <&vdd_gpu_s0>; |
| 801 |
regulator-coupled-max-spread = <10000>; |
| 802 |
regulator-state-mem { |
| 803 |
regulator-off-in-suspend; |
| 804 |
}; |
| 805 |
|
| 806 |
}; |
| 807 |
|
| 808 |
vdd_npu_mem_s0: dcdc-reg6 { |
| 809 |
regulator-always-on; |
| 810 |
regulator-boot-on; |
| 811 |
regulator-min-microvolt = <675000>; |
| 812 |
regulator-max-microvolt = <950000>; |
| 813 |
regulator-ramp-delay = <12500>; |
| 814 |
regulator-name = "vdd_npu_mem_s0"; |
| 815 |
regulator-state-mem { |
| 816 |
regulator-off-in-suspend; |
| 817 |
}; |
| 818 |
|
| 819 |
}; |
| 820 |
|
| 821 |
vcc_2v0_pldo_s3: dcdc-reg7 { |
| 822 |
regulator-always-on; |
| 823 |
regulator-boot-on; |
| 824 |
regulator-min-microvolt = <2000000>; |
| 825 |
regulator-max-microvolt = <2000000>; |
| 826 |
regulator-ramp-delay = <12500>; |
| 827 |
regulator-name = "vdd_2v0_pldo_s3"; |
| 828 |
regulator-state-mem { |
| 829 |
regulator-on-in-suspend; |
| 830 |
regulator-suspend-microvolt = <2000000>; |
| 831 |
}; |
| 832 |
}; |
| 833 |
|
| 834 |
vdd_vdenc_mem_s0: dcdc-reg8 { |
| 835 |
regulator-always-on; |
| 836 |
regulator-boot-on; |
| 837 |
regulator-min-microvolt = <675000>; |
| 838 |
regulator-max-microvolt = <950000>; |
| 839 |
regulator-ramp-delay = <12500>; |
| 840 |
regulator-name = "vdd_vdenc_mem_s0"; |
| 841 |
regulator-state-mem { |
| 842 |
regulator-off-in-suspend; |
| 843 |
}; |
| 844 |
}; |
| 845 |
|
| 846 |
vdd2_ddr_s3: dcdc-reg9 { |
| 847 |
regulator-always-on; |
| 848 |
regulator-boot-on; |
| 849 |
regulator-name = "vdd2_ddr_s3"; |
| 850 |
regulator-state-mem { |
| 851 |
regulator-on-in-suspend; |
| 852 |
}; |
| 853 |
}; |
| 854 |
|
| 855 |
vcc_1v1_nldo_s3: dcdc-reg10 { |
| 856 |
regulator-always-on; |
| 857 |
regulator-boot-on; |
| 858 |
regulator-min-microvolt = <1100000>; |
| 859 |
regulator-max-microvolt = <1100000>; |
| 860 |
regulator-ramp-delay = <12500>; |
| 861 |
regulator-name = "vcc_1v1_nldo_s3"; |
| 862 |
regulator-state-mem { |
| 863 |
regulator-on-in-suspend; |
| 864 |
regulator-suspend-microvolt = <1100000>; |
| 865 |
}; |
| 866 |
}; |
| 867 |
|
| 868 |
avcc_1v8_s0: pldo-reg1 { |
| 869 |
regulator-always-on; |
| 870 |
regulator-boot-on; |
| 871 |
regulator-min-microvolt = <1800000>; |
| 872 |
regulator-max-microvolt = <1800000>; |
| 873 |
regulator-ramp-delay = <12500>; |
| 874 |
regulator-name = "avcc_1v8_s0"; |
| 875 |
regulator-state-mem { |
| 876 |
regulator-off-in-suspend; |
| 877 |
}; |
| 878 |
}; |
| 879 |
|
| 880 |
vdd1_1v8_ddr_s3: pldo-reg2 { |
| 881 |
regulator-always-on; |
| 882 |
regulator-boot-on; |
| 883 |
regulator-min-microvolt = <1800000>; |
| 884 |
regulator-max-microvolt = <1800000>; |
| 885 |
regulator-ramp-delay = <12500>; |
| 886 |
regulator-name = "vdd1_1v8_ddr_s3"; |
| 887 |
regulator-state-mem { |
| 888 |
regulator-on-in-suspend; |
| 889 |
regulator-suspend-microvolt = <1800000>; |
| 890 |
}; |
| 891 |
}; |
| 892 |
|
| 893 |
avcc_1v8_codec_s0: pldo-reg3 { |
| 894 |
regulator-always-on; |
| 895 |
regulator-boot-on; |
| 896 |
regulator-min-microvolt = <1800000>; |
| 897 |
regulator-max-microvolt = <1800000>; |
| 898 |
regulator-ramp-delay = <12500>; |
| 899 |
regulator-name = "avcc_1v8_codec_s0"; |
| 900 |
regulator-state-mem { |
| 901 |
regulator-off-in-suspend; |
| 902 |
}; |
| 903 |
}; |
| 904 |
|
| 905 |
vcc_3v3_s3: pldo-reg4 { |
| 906 |
regulator-always-on; |
| 907 |
regulator-boot-on; |
| 908 |
regulator-min-microvolt = <3300000>; |
| 909 |
regulator-max-microvolt = <3300000>; |
| 910 |
regulator-ramp-delay = <12500>; |
| 911 |
regulator-name = "vcc_3v3_s3"; |
| 912 |
regulator-state-mem { |
| 913 |
regulator-on-in-suspend; |
| 914 |
regulator-suspend-microvolt = <3300000>; |
| 915 |
}; |
| 916 |
}; |
| 917 |
|
| 918 |
vccio_sd_s0: pldo-reg5 { |
| 919 |
regulator-always-on; |
| 920 |
regulator-boot-on; |
| 921 |
regulator-min-microvolt = <1800000>; |
| 922 |
regulator-max-microvolt = <3300000>; |
| 923 |
regulator-ramp-delay = <12500>; |
| 924 |
regulator-name = "vccio_sd_s0"; |
| 925 |
regulator-state-mem { |
| 926 |
regulator-off-in-suspend; |
| 927 |
}; |
| 928 |
}; |
| 929 |
|
| 930 |
vccio_1v8_s3: pldo-reg6 { |
| 931 |
regulator-always-on; |
| 932 |
regulator-boot-on; |
| 933 |
regulator-min-microvolt = <1800000>; |
| 934 |
regulator-max-microvolt = <1800000>; |
| 935 |
regulator-ramp-delay = <12500>; |
| 936 |
regulator-name = "vccio_1v8_s3"; |
| 937 |
regulator-state-mem { |
| 938 |
regulator-on-in-suspend; |
| 939 |
regulator-suspend-microvolt = <1800000>; |
| 940 |
}; |
| 941 |
}; |
| 942 |
|
| 943 |
vdd_0v75_s3: nldo-reg1 { |
| 944 |
regulator-always-on; |
| 945 |
regulator-boot-on; |
| 946 |
regulator-min-microvolt = <750000>; |
| 947 |
regulator-max-microvolt = <750000>; |
| 948 |
regulator-ramp-delay = <12500>; |
| 949 |
regulator-name = "vdd_0v75_s3"; |
| 950 |
regulator-state-mem { |
| 951 |
regulator-on-in-suspend; |
| 952 |
regulator-suspend-microvolt = <750000>; |
| 953 |
}; |
| 954 |
}; |
| 955 |
|
| 956 |
vdd2l_0v9_ddr_s3: nldo-reg2 { |
| 957 |
regulator-always-on; |
| 958 |
regulator-boot-on; |
| 959 |
regulator-min-microvolt = <900000>; |
| 960 |
regulator-max-microvolt = <900000>; |
| 961 |
regulator-name = "vdd2l_0v9_ddr_s3"; |
| 962 |
regulator-state-mem { |
| 963 |
regulator-on-in-suspend; |
| 964 |
regulator-suspend-microvolt = <900000>; |
| 965 |
}; |
| 966 |
}; |
| 967 |
|
| 968 |
vdd_0v75_hdmi_edp_s0: nldo-reg3 { |
| 969 |
regulator-always-on; |
| 970 |
regulator-boot-on; |
| 971 |
regulator-min-microvolt = <750000>; |
| 972 |
regulator-max-microvolt = <750000>; |
| 973 |
regulator-name = "vdd_0v75_hdmi_edp_s0"; |
| 974 |
regulator-state-mem { |
| 975 |
regulator-off-in-suspend; |
| 976 |
}; |
| 977 |
}; |
| 978 |
|
| 979 |
avdd_0v75_s0: nldo-reg4 { |
| 980 |
regulator-always-on; |
| 981 |
regulator-boot-on; |
| 982 |
regulator-min-microvolt = <750000>; |
| 983 |
regulator-max-microvolt = <750000>; |
| 984 |
regulator-name = "avdd_0v75_s0"; |
| 985 |
regulator-state-mem { |
| 986 |
regulator-off-in-suspend; |
| 987 |
}; |
| 988 |
}; |
| 989 |
|
| 990 |
vdd_0v85_s0: nldo-reg5 { |
| 991 |
regulator-always-on; |
| 992 |
regulator-boot-on; |
| 993 |
regulator-min-microvolt = <850000>; |
| 994 |
regulator-max-microvolt = <850000>; |
| 995 |
regulator-name = "vdd_0v85_s0"; |
| 996 |
regulator-state-mem { |
| 997 |
regulator-off-in-suspend; |
| 998 |
}; |
| 999 |
}; |
| 1000 |
}; |
| 1001 |
}; |
| 1002 |
|
| 1003 |
pmic@1 { |
| 1004 |
compatible = "rockchip,rk806"; |
| 1005 |
reg = <0x01>; |
| 1006 |
#gpio-cells = <2>; |
| 1007 |
gpio-controller; |
| 1008 |
interrupt-parent = <&gpio0>; |
| 1009 |
interrupts = <7 IRQ_TYPE_LEVEL_LOW>; |
| 1010 |
pinctrl-0 = <&rk806_slave_dvs1_null>, <&rk806_slave_dvs2_null>, |
| 1011 |
<&rk806_slave_dvs3_null>; |
| 1012 |
pinctrl-names = "default"; |
| 1013 |
spi-max-frequency = <1000000>; |
| 1014 |
|
| 1015 |
vcc1-supply = <&vcc5v0_sys>; |
| 1016 |
vcc2-supply = <&vcc5v0_sys>; |
| 1017 |
vcc3-supply = <&vcc5v0_sys>; |
| 1018 |
vcc4-supply = <&vcc5v0_sys>; |
| 1019 |
vcc5-supply = <&vcc5v0_sys>; |
| 1020 |
vcc6-supply = <&vcc5v0_sys>; |
| 1021 |
vcc7-supply = <&vcc5v0_sys>; |
| 1022 |
vcc8-supply = <&vcc5v0_sys>; |
| 1023 |
vcc9-supply = <&vcc5v0_sys>; |
| 1024 |
vcc10-supply = <&vcc5v0_sys>; |
| 1025 |
vcc11-supply = <&vcc_2v0_pldo_s3>; |
| 1026 |
vcc12-supply = <&vcc5v0_sys>; |
| 1027 |
vcc13-supply = <&vcc_1v1_nldo_s3>; |
| 1028 |
vcc14-supply = <&vcc_2v0_pldo_s3>; |
| 1029 |
vcca-supply = <&vcc5v0_sys>; |
| 1030 |
|
| 1031 |
rk806_slave_dvs1_null: dvs1-null-pins { |
| 1032 |
pins = "gpio_pwrctrl1"; |
| 1033 |
function = "pin_fun0"; |
| 1034 |
}; |
| 1035 |
|
| 1036 |
rk806_slave_dvs2_null: dvs2-null-pins { |
| 1037 |
pins = "gpio_pwrctrl2"; |
| 1038 |
function = "pin_fun0"; |
| 1039 |
}; |
| 1040 |
|
| 1041 |
rk806_slave_dvs3_null: dvs3-null-pins { |
| 1042 |
pins = "gpio_pwrctrl3"; |
| 1043 |
function = "pin_fun0"; |
| 1044 |
}; |
| 1045 |
|
| 1046 |
regulators { |
| 1047 |
vdd_cpu_big1_s0: dcdc-reg1 { |
| 1048 |
regulator-always-on; |
| 1049 |
regulator-boot-on; |
| 1050 |
regulator-coupled-with = <&vdd_cpu_big1_mem_s0>; |
| 1051 |
regulator-coupled-max-spread = <10000>; |
| 1052 |
regulator-min-microvolt = <550000>; |
| 1053 |
regulator-max-microvolt = <1050000>; |
| 1054 |
regulator-ramp-delay = <12500>; |
| 1055 |
regulator-name = "vdd_cpu_big1_s0"; |
| 1056 |
regulator-state-mem { |
| 1057 |
regulator-off-in-suspend; |
| 1058 |
}; |
| 1059 |
}; |
| 1060 |
|
| 1061 |
vdd_cpu_big0_s0: dcdc-reg2 { |
| 1062 |
regulator-always-on; |
| 1063 |
regulator-boot-on; |
| 1064 |
regulator-coupled-with = <&vdd_cpu_big0_mem_s0>; |
| 1065 |
regulator-coupled-max-spread = <10000>; |
| 1066 |
regulator-min-microvolt = <550000>; |
| 1067 |
regulator-max-microvolt = <1050000>; |
| 1068 |
regulator-ramp-delay = <12500>; |
| 1069 |
regulator-name = "vdd_cpu_big0_s0"; |
| 1070 |
regulator-state-mem { |
| 1071 |
regulator-off-in-suspend; |
| 1072 |
}; |
| 1073 |
}; |
| 1074 |
|
| 1075 |
vdd_cpu_lit_s0: dcdc-reg3 { |
| 1076 |
regulator-always-on; |
| 1077 |
regulator-boot-on; |
| 1078 |
regulator-coupled-with = <&vdd_cpu_lit_mem_s0>; |
| 1079 |
regulator-coupled-max-spread = <10000>; |
| 1080 |
regulator-min-microvolt = <550000>; |
| 1081 |
regulator-max-microvolt = <950000>; |
| 1082 |
regulator-ramp-delay = <12500>; |
| 1083 |
regulator-name = "vdd_cpu_lit_s0"; |
| 1084 |
regulator-state-mem { |
| 1085 |
regulator-off-in-suspend; |
| 1086 |
}; |
| 1087 |
}; |
| 1088 |
|
| 1089 |
vcc_3v3_s0: dcdc-reg4 { |
| 1090 |
regulator-always-on; |
| 1091 |
regulator-boot-on; |
| 1092 |
regulator-min-microvolt = <3300000>; |
| 1093 |
regulator-max-microvolt = <3300000>; |
| 1094 |
regulator-ramp-delay = <12500>; |
| 1095 |
regulator-name = "vcc_3v3_s0"; |
| 1096 |
regulator-state-mem { |
| 1097 |
regulator-off-in-suspend; |
| 1098 |
}; |
| 1099 |
}; |
| 1100 |
|
| 1101 |
vdd_cpu_big1_mem_s0: dcdc-reg5 { |
| 1102 |
regulator-always-on; |
| 1103 |
regulator-boot-on; |
| 1104 |
regulator-coupled-with = <&vdd_cpu_big1_s0>; |
| 1105 |
regulator-coupled-max-spread = <10000>; |
| 1106 |
regulator-min-microvolt = <675000>; |
| 1107 |
regulator-max-microvolt = <1050000>; |
| 1108 |
regulator-ramp-delay = <12500>; |
| 1109 |
regulator-name = "vdd_cpu_big1_mem_s0"; |
| 1110 |
regulator-state-mem { |
| 1111 |
regulator-off-in-suspend; |
| 1112 |
}; |
| 1113 |
}; |
| 1114 |
|
| 1115 |
|
| 1116 |
vdd_cpu_big0_mem_s0: dcdc-reg6 { |
| 1117 |
regulator-always-on; |
| 1118 |
regulator-boot-on; |
| 1119 |
regulator-coupled-with = <&vdd_cpu_big0_s0>; |
| 1120 |
regulator-coupled-max-spread = <10000>; |
| 1121 |
regulator-min-microvolt = <675000>; |
| 1122 |
regulator-max-microvolt = <1050000>; |
| 1123 |
regulator-ramp-delay = <12500>; |
| 1124 |
regulator-name = "vdd_cpu_big0_mem_s0"; |
| 1125 |
regulator-state-mem { |
| 1126 |
regulator-off-in-suspend; |
| 1127 |
}; |
| 1128 |
}; |
| 1129 |
|
| 1130 |
vcc_1v8_s0: dcdc-reg7 { |
| 1131 |
regulator-always-on; |
| 1132 |
regulator-boot-on; |
| 1133 |
regulator-min-microvolt = <1800000>; |
| 1134 |
regulator-max-microvolt = <1800000>; |
| 1135 |
regulator-ramp-delay = <12500>; |
| 1136 |
regulator-name = "vcc_1v8_s0"; |
| 1137 |
regulator-state-mem { |
| 1138 |
regulator-off-in-suspend; |
| 1139 |
}; |
| 1140 |
}; |
| 1141 |
|
| 1142 |
vdd_cpu_lit_mem_s0: dcdc-reg8 { |
| 1143 |
regulator-always-on; |
| 1144 |
regulator-boot-on; |
| 1145 |
regulator-coupled-with = <&vdd_cpu_lit_s0>; |
| 1146 |
regulator-coupled-max-spread = <10000>; |
| 1147 |
regulator-min-microvolt = <675000>; |
| 1148 |
regulator-max-microvolt = <950000>; |
| 1149 |
regulator-ramp-delay = <12500>; |
| 1150 |
regulator-name = "vdd_cpu_lit_mem_s0"; |
| 1151 |
regulator-state-mem { |
| 1152 |
regulator-off-in-suspend; |
| 1153 |
}; |
| 1154 |
}; |
| 1155 |
|
| 1156 |
vddq_ddr_s0: dcdc-reg9 { |
| 1157 |
regulator-always-on; |
| 1158 |
regulator-boot-on; |
| 1159 |
regulator-name = "vddq_ddr_s0"; |
| 1160 |
regulator-state-mem { |
| 1161 |
regulator-off-in-suspend; |
| 1162 |
}; |
| 1163 |
}; |
| 1164 |
|
| 1165 |
vdd_ddr_s0: dcdc-reg10 { |
| 1166 |
regulator-always-on; |
| 1167 |
regulator-boot-on; |
| 1168 |
regulator-min-microvolt = <675000>; |
| 1169 |
regulator-max-microvolt = <900000>; |
| 1170 |
regulator-ramp-delay = <12500>; |
| 1171 |
regulator-name = "vdd_ddr_s0"; |
| 1172 |
regulator-state-mem { |
| 1173 |
regulator-off-in-suspend; |
| 1174 |
}; |
| 1175 |
}; |
| 1176 |
|
| 1177 |
vcc_1v8_cam_s0: pldo-reg1 { |
| 1178 |
regulator-always-on; |
| 1179 |
regulator-boot-on; |
| 1180 |
regulator-min-microvolt = <1800000>; |
| 1181 |
regulator-max-microvolt = <1800000>; |
| 1182 |
regulator-ramp-delay = <12500>; |
| 1183 |
regulator-name = "vcc_1v8_cam_s0"; |
| 1184 |
regulator-state-mem { |
| 1185 |
regulator-off-in-suspend; |
| 1186 |
}; |
| 1187 |
}; |
| 1188 |
|
| 1189 |
avdd1v8_ddr_pll_s0: pldo-reg2 { |
| 1190 |
regulator-always-on; |
| 1191 |
regulator-boot-on; |
| 1192 |
regulator-min-microvolt = <1800000>; |
| 1193 |
regulator-max-microvolt = <1800000>; |
| 1194 |
regulator-ramp-delay = <12500>; |
| 1195 |
regulator-name = "avdd1v8_ddr_pll_s0"; |
| 1196 |
regulator-state-mem { |
| 1197 |
regulator-off-in-suspend; |
| 1198 |
}; |
| 1199 |
}; |
| 1200 |
|
| 1201 |
vdd_1v8_pll_s0: pldo-reg3 { |
| 1202 |
regulator-always-on; |
| 1203 |
regulator-boot-on; |
| 1204 |
regulator-min-microvolt = <1800000>; |
| 1205 |
regulator-max-microvolt = <1800000>; |
| 1206 |
regulator-ramp-delay = <12500>; |
| 1207 |
regulator-name = "vdd_1v8_pll_s0"; |
| 1208 |
regulator-state-mem { |
| 1209 |
regulator-off-in-suspend; |
| 1210 |
}; |
| 1211 |
}; |
| 1212 |
|
| 1213 |
vcc_3v3_sd_s0: pldo-reg4 { |
| 1214 |
regulator-always-on; |
| 1215 |
regulator-boot-on; |
| 1216 |
regulator-min-microvolt = <3300000>; |
| 1217 |
regulator-max-microvolt = <3300000>; |
| 1218 |
regulator-ramp-delay = <12500>; |
| 1219 |
regulator-name = "vcc_3v3_sd_s0"; |
| 1220 |
regulator-state-mem { |
| 1221 |
regulator-off-in-suspend; |
| 1222 |
}; |
| 1223 |
}; |
| 1224 |
|
| 1225 |
vcc_2v8_cam_s0: pldo-reg5 { |
| 1226 |
regulator-always-on; |
| 1227 |
regulator-boot-on; |
| 1228 |
regulator-min-microvolt = <2800000>; |
| 1229 |
regulator-max-microvolt = <2800000>; |
| 1230 |
regulator-ramp-delay = <12500>; |
| 1231 |
regulator-name = "vcc_2v8_cam_s0"; |
| 1232 |
regulator-state-mem { |
| 1233 |
regulator-off-in-suspend; |
| 1234 |
}; |
| 1235 |
}; |
| 1236 |
|
| 1237 |
pldo6_s3: pldo-reg6 { |
| 1238 |
regulator-always-on; |
| 1239 |
regulator-boot-on; |
| 1240 |
regulator-min-microvolt = <1800000>; |
| 1241 |
regulator-max-microvolt = <1800000>; |
| 1242 |
regulator-name = "pldo6_s3"; |
| 1243 |
regulator-state-mem { |
| 1244 |
regulator-on-in-suspend; |
| 1245 |
regulator-suspend-microvolt = <1800000>; |
| 1246 |
}; |
| 1247 |
}; |
| 1248 |
|
| 1249 |
vdd_0v75_pll_s0: nldo-reg1 { |
| 1250 |
regulator-always-on; |
| 1251 |
regulator-boot-on; |
| 1252 |
regulator-min-microvolt = <750000>; |
| 1253 |
regulator-max-microvolt = <750000>; |
| 1254 |
regulator-ramp-delay = <12500>; |
| 1255 |
regulator-name = "vdd_0v75_pll_s0"; |
| 1256 |
regulator-state-mem { |
| 1257 |
regulator-off-in-suspend; |
| 1258 |
}; |
| 1259 |
}; |
| 1260 |
|
| 1261 |
vdd_ddr_pll_s0: nldo-reg2 { |
| 1262 |
regulator-always-on; |
| 1263 |
regulator-boot-on; |
| 1264 |
regulator-min-microvolt = <850000>; |
| 1265 |
regulator-max-microvolt = <850000>; |
| 1266 |
regulator-name = "vdd_ddr_pll_s0"; |
| 1267 |
regulator-state-mem { |
| 1268 |
regulator-off-in-suspend; |
| 1269 |
}; |
| 1270 |
}; |
| 1271 |
|
| 1272 |
avdd_0v85_s0: nldo-reg3 { |
| 1273 |
regulator-always-on; |
| 1274 |
regulator-boot-on; |
| 1275 |
regulator-min-microvolt = <850000>; |
| 1276 |
regulator-max-microvolt = <850000>; |
| 1277 |
regulator-ramp-delay = <12500>; |
| 1278 |
regulator-name = "avdd_0v85_s0"; |
| 1279 |
regulator-state-mem { |
| 1280 |
regulator-off-in-suspend; |
| 1281 |
}; |
| 1282 |
}; |
| 1283 |
|
| 1284 |
avdd_1v2_cam_s0: nldo-reg4 { |
| 1285 |
regulator-always-on; |
| 1286 |
regulator-boot-on; |
| 1287 |
regulator-min-microvolt = <1200000>; |
| 1288 |
regulator-max-microvolt = <1200000>; |
| 1289 |
regulator-ramp-delay = <12500>; |
| 1290 |
regulator-name = "avdd_1v2_cam_s0"; |
| 1291 |
regulator-state-mem { |
| 1292 |
regulator-off-in-suspend; |
| 1293 |
}; |
| 1294 |
}; |
| 1295 |
|
| 1296 |
avdd_1v2_s0: nldo-reg5 { |
| 1297 |
regulator-always-on; |
| 1298 |
regulator-boot-on; |
| 1299 |
regulator-min-microvolt = <1200000>; |
| 1300 |
regulator-max-microvolt = <1200000>; |
| 1301 |
regulator-ramp-delay = <12500>; |
| 1302 |
regulator-name = "avdd_1v2_s0"; |
| 1303 |
regulator-state-mem { |
| 1304 |
regulator-off-in-suspend; |
| 1305 |
}; |
| 1306 |
}; |
| 1307 |
}; |
| 1308 |
}; |
| 1309 |
}; |
| 1310 |
|
| 1311 |
&sata0 { |
| 1312 |
status = "okay"; |
| 1313 |
}; |
| 1314 |
|
| 1315 |
&tsadc { |
| 1316 |
status = "okay"; |
| 1317 |
}; |
| 1318 |
|
| 1319 |
&u2phy0 { |
| 1320 |
status = "okay"; |
| 1321 |
}; |
| 1322 |
|
| 1323 |
&u2phy0_otg { |
| 1324 |
status = "okay"; |
| 1325 |
}; |
| 1326 |
|
| 1327 |
&u2phy1 { |
| 1328 |
status = "okay"; |
| 1329 |
}; |
| 1330 |
|
| 1331 |
&u2phy1_otg { |
| 1332 |
status = "okay"; |
| 1333 |
}; |
| 1334 |
|
| 1335 |
&u2phy2 { |
| 1336 |
status = "okay"; |
| 1337 |
}; |
| 1338 |
|
| 1339 |
&u2phy2_host { |
| 1340 |
phy-supply = <&vcc5v0_host>; |
| 1341 |
status = "okay"; |
| 1342 |
}; |
| 1343 |
|
| 1344 |
&u2phy3 { |
| 1345 |
status = "okay"; |
| 1346 |
}; |
| 1347 |
|
| 1348 |
&u2phy3_host { |
| 1349 |
phy-supply = <&vcc5v0_host>; |
| 1350 |
status = "okay"; |
| 1351 |
}; |
| 1352 |
|
| 1353 |
&uart2 { |
| 1354 |
pinctrl-0 = <&uart2m0_xfer>; |
| 1355 |
status = "okay"; |
| 1356 |
}; |
| 1357 |
|
| 1358 |
&usb_host0_ehci { |
| 1359 |
status = "okay"; |
| 1360 |
}; |
| 1361 |
|
| 1362 |
&usb_host0_ohci { |
| 1363 |
status = "okay"; |
| 1364 |
}; |
| 1365 |
|
| 1366 |
&usb_host1_ehci { |
| 1367 |
status = "okay"; |
| 1368 |
}; |
| 1369 |
|
| 1370 |
&usb_host1_ohci { |
| 1371 |
status = "okay"; |
| 1372 |
}; |
| 1373 |
|
| 1374 |
&usbdp_phy0 { |
| 1375 |
mode-switch; |
| 1376 |
orientation-switch; |
| 1377 |
sbu1-dc-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>; |
| 1378 |
sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; |
| 1379 |
status = "okay"; |
| 1380 |
|
| 1381 |
port { |
| 1382 |
#address-cells = <1>; |
| 1383 |
#size-cells = <0>; |
| 1384 |
|
| 1385 |
usbdp_phy0_orientation_switch: endpoint@0 { |
| 1386 |
reg = <0>; |
| 1387 |
remote-endpoint = <&usbc0_orien_sw>; |
| 1388 |
}; |
| 1389 |
|
| 1390 |
usbdp_phy0_dp_altmode_mux: endpoint@1 { |
| 1391 |
reg = <1>; |
| 1392 |
remote-endpoint = <&dp_altmode_mux>; |
| 1393 |
}; |
| 1394 |
}; |
| 1395 |
}; |
| 1396 |
|
| 1397 |
&usbdp_phy1 { |
| 1398 |
/* |
| 1399 |
* USBDP PHY1 is wired to a female USB3 Type-A connector. Additionally |
| 1400 |
* the differential pairs 2+3 and the aux channel are wired to a RTD2166, |
| 1401 |
* which converts the DP signal into VGA. This is exposed on the |
| 1402 |
* board via a female VGA connector. |
| 1403 |
*/ |
| 1404 |
rockchip,dp-lane-mux = <2 3>; |
| 1405 |
status = "okay"; |
| 1406 |
}; |
| 1407 |
|
| 1408 |
&usb_host0_xhci { |
| 1409 |
dr_mode = "otg"; |
| 1410 |
usb-role-switch; |
| 1411 |
status = "okay"; |
| 1412 |
|
| 1413 |
port { |
| 1414 |
#address-cells = <1>; |
| 1415 |
#size-cells = <0>; |
| 1416 |
|
| 1417 |
dwc3_0_role_switch: endpoint@0 { |
| 1418 |
reg = <0>; |
| 1419 |
remote-endpoint = <&usbc0_role_sw>; |
| 1420 |
}; |
| 1421 |
}; |
| 1422 |
}; |
| 1423 |
|
| 1424 |
&usb_host1_xhci { |
| 1425 |
dr_mode = "host"; |
| 1426 |
status = "okay"; |
| 1427 |
}; |
| 1428 |
|
| 1429 |
&vop { |
| 1430 |
status = "okay"; |
| 1431 |
}; |
| 1432 |
|
| 1433 |
&vop_mmu { |
| 1434 |
status = "okay"; |
| 1435 |
}; |
| 1436 |
|
| 1437 |
&vp0 { |
| 1438 |
vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { |
| 1439 |
reg = <ROCKCHIP_VOP2_EP_HDMI0>; |
| 1440 |
remote-endpoint = <&hdmi0_in_vp0>; |
| 1441 |
}; |
| 1442 |
}; |
| 1443 |
|
| 1444 |
&vp1 { |
| 1445 |
vp1_out_hdmi1: endpoint@ROCKCHIP_VOP2_EP_HDMI1 { |
| 1446 |
reg = <ROCKCHIP_VOP2_EP_HDMI1>; |
| 1447 |
remote-endpoint = <&hdmi1_in_vp1>; |
| 1448 |
}; |
| 1449 |
}; |