| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (c) 2021 Rockchip Electronics Co., Ltd. |
| 4 |
* Copyright (c) 2023 Thomas McKahan |
| 5 |
* |
| 6 |
*/ |
| 7 |
|
| 8 |
/dts-v1/; |
| 9 |
|
| 10 |
#include <dt-bindings/gpio/gpio.h> |
| 11 |
#include <dt-bindings/input/input.h> |
| 12 |
#include <dt-bindings/pinctrl/rockchip.h> |
| 13 |
#include <dt-bindings/soc/rockchip,vop2.h> |
| 14 |
#include <dt-bindings/usb/pd.h> |
| 15 |
#include "rk3588.dtsi" |
| 16 |
|
| 17 |
/ { |
| 18 |
model = "FriendlyElec NanoPC-T6"; |
| 19 |
compatible = "friendlyarm,nanopc-t6", "rockchip,rk3588"; |
| 20 |
|
| 21 |
aliases { |
| 22 |
mmc0 = &sdhci; |
| 23 |
mmc1 = &sdmmc; |
| 24 |
}; |
| 25 |
|
| 26 |
adc-keys-0 { |
| 27 |
compatible = "adc-keys"; |
| 28 |
io-channels = <&saradc 0>; |
| 29 |
io-channel-names = "buttons"; |
| 30 |
keyup-threshold-microvolt = <1800000>; |
| 31 |
poll-interval = <100>; |
| 32 |
|
| 33 |
button-maskrom { |
| 34 |
label = "Mask Rom"; |
| 35 |
linux,code = <KEY_SETUP>; |
| 36 |
press-threshold-microvolt = <2000>; |
| 37 |
}; |
| 38 |
}; |
| 39 |
|
| 40 |
chosen { |
| 41 |
stdout-path = "serial2:1500000n8"; |
| 42 |
}; |
| 43 |
|
| 44 |
hdmi0-con { |
| 45 |
compatible = "hdmi-connector"; |
| 46 |
type = "a"; |
| 47 |
|
| 48 |
port { |
| 49 |
hdmi0_con_in: endpoint { |
| 50 |
remote-endpoint = <&hdmi0_out_con>; |
| 51 |
}; |
| 52 |
}; |
| 53 |
}; |
| 54 |
|
| 55 |
hdmi1-con { |
| 56 |
compatible = "hdmi-connector"; |
| 57 |
type = "a"; |
| 58 |
|
| 59 |
port { |
| 60 |
hdmi1_con_in: endpoint { |
| 61 |
remote-endpoint = <&hdmi1_out_con>; |
| 62 |
}; |
| 63 |
}; |
| 64 |
}; |
| 65 |
|
| 66 |
ir-receiver { |
| 67 |
compatible = "gpio-ir-receiver"; |
| 68 |
gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_LOW>; |
| 69 |
pinctrl-names = "default"; |
| 70 |
pinctrl-0 = <&ir_receiver_pin>; |
| 71 |
}; |
| 72 |
|
| 73 |
leds { |
| 74 |
compatible = "gpio-leds"; |
| 75 |
|
| 76 |
sys_led: led-0 { |
| 77 |
gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; |
| 78 |
label = "system-led"; |
| 79 |
linux,default-trigger = "heartbeat"; |
| 80 |
pinctrl-names = "default"; |
| 81 |
pinctrl-0 = <&sys_led_pin>; |
| 82 |
}; |
| 83 |
|
| 84 |
usr_led: led-1 { |
| 85 |
gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>; |
| 86 |
label = "user-led"; |
| 87 |
pinctrl-names = "default"; |
| 88 |
pinctrl-0 = <&usr_led_pin>; |
| 89 |
}; |
| 90 |
}; |
| 91 |
|
| 92 |
sound { |
| 93 |
compatible = "simple-audio-card"; |
| 94 |
pinctrl-names = "default"; |
| 95 |
pinctrl-0 = <&hp_det>; |
| 96 |
|
| 97 |
simple-audio-card,name = "realtek,rt5616-codec"; |
| 98 |
simple-audio-card,format = "i2s"; |
| 99 |
simple-audio-card,mclk-fs = <256>; |
| 100 |
|
| 101 |
simple-audio-card,hp-det-gpios = <&gpio1 RK_PC4 GPIO_ACTIVE_LOW>; |
| 102 |
|
| 103 |
simple-audio-card,widgets = |
| 104 |
"Headphone", "Headphones", |
| 105 |
"Microphone", "Microphone Jack"; |
| 106 |
simple-audio-card,routing = |
| 107 |
"Headphones", "HPOL", |
| 108 |
"Headphones", "HPOR", |
| 109 |
"MIC1", "Microphone Jack", |
| 110 |
"Microphone Jack", "micbias1"; |
| 111 |
|
| 112 |
simple-audio-card,cpu { |
| 113 |
sound-dai = <&i2s0_8ch>; |
| 114 |
}; |
| 115 |
simple-audio-card,codec { |
| 116 |
sound-dai = <&rt5616>; |
| 117 |
}; |
| 118 |
}; |
| 119 |
|
| 120 |
vcc12v_dcin: regulator-vcc12v-dcin { |
| 121 |
compatible = "regulator-fixed"; |
| 122 |
regulator-name = "vcc12v_dcin"; |
| 123 |
regulator-always-on; |
| 124 |
regulator-boot-on; |
| 125 |
regulator-min-microvolt = <12000000>; |
| 126 |
regulator-max-microvolt = <12000000>; |
| 127 |
}; |
| 128 |
|
| 129 |
/* vcc5v0_sys powers peripherals */ |
| 130 |
vcc5v0_sys: regulator-vcc5v0-sys { |
| 131 |
compatible = "regulator-fixed"; |
| 132 |
regulator-name = "vcc5v0_sys"; |
| 133 |
regulator-always-on; |
| 134 |
regulator-boot-on; |
| 135 |
regulator-min-microvolt = <5000000>; |
| 136 |
regulator-max-microvolt = <5000000>; |
| 137 |
vin-supply = <&vcc12v_dcin>; |
| 138 |
}; |
| 139 |
|
| 140 |
/* vcc4v0_sys powers the RK806, RK860's */ |
| 141 |
vcc4v0_sys: regulator-vcc4v0-sys { |
| 142 |
compatible = "regulator-fixed"; |
| 143 |
regulator-name = "vcc4v0_sys"; |
| 144 |
regulator-always-on; |
| 145 |
regulator-boot-on; |
| 146 |
regulator-min-microvolt = <4000000>; |
| 147 |
regulator-max-microvolt = <4000000>; |
| 148 |
vin-supply = <&vcc12v_dcin>; |
| 149 |
}; |
| 150 |
|
| 151 |
vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 { |
| 152 |
compatible = "regulator-fixed"; |
| 153 |
regulator-name = "vcc-1v1-nldo-s3"; |
| 154 |
regulator-always-on; |
| 155 |
regulator-boot-on; |
| 156 |
regulator-min-microvolt = <1100000>; |
| 157 |
regulator-max-microvolt = <1100000>; |
| 158 |
vin-supply = <&vcc4v0_sys>; |
| 159 |
}; |
| 160 |
|
| 161 |
vcc_3v3_pcie20: regulator-vcc3v3-pcie20 { |
| 162 |
compatible = "regulator-fixed"; |
| 163 |
regulator-name = "vcc_3v3_pcie20"; |
| 164 |
regulator-always-on; |
| 165 |
regulator-boot-on; |
| 166 |
regulator-min-microvolt = <3300000>; |
| 167 |
regulator-max-microvolt = <3300000>; |
| 168 |
vin-supply = <&vcc_3v3_s3>; |
| 169 |
}; |
| 170 |
|
| 171 |
vbus5v0_typec: regulator-vbus5v0-typec { |
| 172 |
compatible = "regulator-fixed"; |
| 173 |
enable-active-high; |
| 174 |
gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>; |
| 175 |
pinctrl-names = "default"; |
| 176 |
pinctrl-0 = <&typec5v_pwren>; |
| 177 |
regulator-name = "vbus5v0_typec"; |
| 178 |
regulator-min-microvolt = <5000000>; |
| 179 |
regulator-max-microvolt = <5000000>; |
| 180 |
vin-supply = <&vcc5v0_sys>; |
| 181 |
}; |
| 182 |
|
| 183 |
vbus5v0_usb: regulator-vbus5v0-usb { |
| 184 |
compatible = "regulator-fixed"; |
| 185 |
enable-active-high; |
| 186 |
gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; |
| 187 |
pinctrl-names = "default"; |
| 188 |
pinctrl-0 = <&usb5v_pwren>; |
| 189 |
regulator-name = "vbus5v0_usb"; |
| 190 |
regulator-min-microvolt = <5000000>; |
| 191 |
regulator-max-microvolt = <5000000>; |
| 192 |
vin-supply = <&vcc5v0_sys>; |
| 193 |
}; |
| 194 |
|
| 195 |
vcc3v3_pcie2x1l0: regulator-vcc3v3-pcie2x1l0 { |
| 196 |
compatible = "regulator-fixed"; |
| 197 |
enable-active-high; |
| 198 |
gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>; |
| 199 |
pinctrl-names = "default"; |
| 200 |
pinctrl-0 = <&pcie_m2_1_pwren>; |
| 201 |
regulator-name = "vcc3v3_pcie2x1l0"; |
| 202 |
regulator-min-microvolt = <3300000>; |
| 203 |
regulator-max-microvolt = <3300000>; |
| 204 |
vin-supply = <&vcc5v0_sys>; |
| 205 |
}; |
| 206 |
|
| 207 |
vcc3v3_pcie30: regulator-vcc3v3-pcie30 { |
| 208 |
compatible = "regulator-fixed"; |
| 209 |
enable-active-high; |
| 210 |
gpios = <&gpio2 RK_PC5 GPIO_ACTIVE_HIGH>; |
| 211 |
pinctrl-names = "default"; |
| 212 |
pinctrl-0 = <&pcie_m2_0_pwren>; |
| 213 |
regulator-name = "vcc3v3_pcie30"; |
| 214 |
regulator-min-microvolt = <3300000>; |
| 215 |
regulator-max-microvolt = <3300000>; |
| 216 |
vin-supply = <&vcc5v0_sys>; |
| 217 |
}; |
| 218 |
|
| 219 |
vcc3v3_sd_s0: regulator-vcc3v3-sd-s0 { |
| 220 |
compatible = "regulator-fixed"; |
| 221 |
gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_LOW>; |
| 222 |
regulator-boot-on; |
| 223 |
regulator-max-microvolt = <3300000>; |
| 224 |
regulator-min-microvolt = <3300000>; |
| 225 |
regulator-name = "vcc3v3_sd_s0"; |
| 226 |
vin-supply = <&vcc_3v3_s3>; |
| 227 |
}; |
| 228 |
}; |
| 229 |
|
| 230 |
&combphy0_ps { |
| 231 |
status = "okay"; |
| 232 |
}; |
| 233 |
|
| 234 |
&combphy1_ps { |
| 235 |
status = "okay"; |
| 236 |
}; |
| 237 |
|
| 238 |
&combphy2_psu { |
| 239 |
status = "okay"; |
| 240 |
}; |
| 241 |
|
| 242 |
&cpu_l0 { |
| 243 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 244 |
}; |
| 245 |
|
| 246 |
&cpu_l1 { |
| 247 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 248 |
}; |
| 249 |
|
| 250 |
&cpu_l2 { |
| 251 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 252 |
}; |
| 253 |
|
| 254 |
&cpu_l3 { |
| 255 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 256 |
}; |
| 257 |
|
| 258 |
&cpu_b0 { |
| 259 |
cpu-supply = <&vdd_cpu_big0_s0>; |
| 260 |
}; |
| 261 |
|
| 262 |
&cpu_b1 { |
| 263 |
cpu-supply = <&vdd_cpu_big0_s0>; |
| 264 |
}; |
| 265 |
|
| 266 |
&cpu_b2 { |
| 267 |
cpu-supply = <&vdd_cpu_big1_s0>; |
| 268 |
}; |
| 269 |
|
| 270 |
&cpu_b3 { |
| 271 |
cpu-supply = <&vdd_cpu_big1_s0>; |
| 272 |
}; |
| 273 |
|
| 274 |
&gpio0 { |
| 275 |
gpio-line-names = /* GPIO0 A0-A7 */ |
| 276 |
"", "", "", "", |
| 277 |
"", "", "", "", |
| 278 |
/* GPIO0 B0-B7 */ |
| 279 |
"", "", "", "", |
| 280 |
"", "", "", "", |
| 281 |
/* GPIO0 C0-C7 */ |
| 282 |
"", "", "", "", |
| 283 |
"HEADER_10", "HEADER_08", "HEADER_32", "", |
| 284 |
/* GPIO0 D0-D7 */ |
| 285 |
"", "", "", "", |
| 286 |
"IR receiver [PWM3_IR_M0]", "", "", ""; |
| 287 |
}; |
| 288 |
|
| 289 |
&gpio1 { |
| 290 |
gpio-line-names = /* GPIO1 A0-A7 */ |
| 291 |
"HEADER_27", "HEADER_28", "", "", |
| 292 |
"", "", "", "HEADER_15", |
| 293 |
/* GPIO1 B0-B7 */ |
| 294 |
"HEADER_26", "HEADER_21", "HEADER_19", "HEADER_23", |
| 295 |
"HEADER_24", "HEADER_22", "", "", |
| 296 |
/* GPIO1 C0-C7 */ |
| 297 |
"", "", "", "", |
| 298 |
"", "", "", "", |
| 299 |
/* GPIO1 D0-D7 */ |
| 300 |
"", "", "", "", |
| 301 |
"", "", "HEADER_05", "HEADER_03"; |
| 302 |
}; |
| 303 |
|
| 304 |
&gpio2 { |
| 305 |
gpio-line-names = /* GPIO2 A0-A7 */ |
| 306 |
"", "", "", "", |
| 307 |
"", "", "", "", |
| 308 |
/* GPIO2 B0-B7 */ |
| 309 |
"", "", "", "", |
| 310 |
"", "", "", "", |
| 311 |
/* GPIO2 C0-C7 */ |
| 312 |
"", "CSI1_11", "CSI1_12", "", |
| 313 |
"", "", "", "", |
| 314 |
/* GPIO2 D0-D7 */ |
| 315 |
"", "", "", "", |
| 316 |
"", "", "", ""; |
| 317 |
}; |
| 318 |
|
| 319 |
&gpio3 { |
| 320 |
gpio-line-names = /* GPIO3 A0-A7 */ |
| 321 |
"HEADER_35", "HEADER_38", "HEADER_40", "HEADER_36", |
| 322 |
"HEADER_37", "", "DSI0_12", "", |
| 323 |
/* GPIO3 B0-B7 */ |
| 324 |
"HEADER_33", "DSI0_10", "HEADER_07", "HEADER_16", |
| 325 |
"HEADER_18", "HEADER_29", "HEADER_31", "HEADER_12", |
| 326 |
/* GPIO3 C0-C7 */ |
| 327 |
"DSI0_08", "DSI0_14", "HEADER_11", "HEADER_13", |
| 328 |
"", "", "", "", |
| 329 |
/* GPIO3 D0-D7 */ |
| 330 |
"", "", "", "", |
| 331 |
"", "DSI1_10", "", ""; |
| 332 |
}; |
| 333 |
|
| 334 |
&gpio4 { |
| 335 |
gpio-line-names = /* GPIO4 A0-A7 */ |
| 336 |
"DSI1_08", "DSI1_14", "", "DSI1_12", |
| 337 |
"", "", "", "", |
| 338 |
/* GPIO4 B0-B7 */ |
| 339 |
"", "", "", "", |
| 340 |
"", "", "", "", |
| 341 |
/* GPIO4 C0-C7 */ |
| 342 |
"", "", "", "", |
| 343 |
"CSI0_11", "CSI0_12", "", "", |
| 344 |
/* GPIO4 D0-D7 */ |
| 345 |
"", "", "", "", |
| 346 |
"", "", "", ""; |
| 347 |
}; |
| 348 |
|
| 349 |
&gpu { |
| 350 |
mali-supply = <&vdd_gpu_s0>; |
| 351 |
status = "okay"; |
| 352 |
}; |
| 353 |
|
| 354 |
&hdmi0 { |
| 355 |
status = "okay"; |
| 356 |
}; |
| 357 |
|
| 358 |
&hdmi0_in { |
| 359 |
hdmi0_in_vp0: endpoint { |
| 360 |
remote-endpoint = <&vp0_out_hdmi0>; |
| 361 |
}; |
| 362 |
}; |
| 363 |
|
| 364 |
&hdmi0_out { |
| 365 |
hdmi0_out_con: endpoint { |
| 366 |
remote-endpoint = <&hdmi0_con_in>; |
| 367 |
}; |
| 368 |
}; |
| 369 |
|
| 370 |
&hdmi0_sound { |
| 371 |
status = "okay"; |
| 372 |
}; |
| 373 |
|
| 374 |
&hdmi1 { |
| 375 |
status = "okay"; |
| 376 |
}; |
| 377 |
|
| 378 |
&hdmi1_in { |
| 379 |
hdmi1_in_vp1: endpoint { |
| 380 |
remote-endpoint = <&vp1_out_hdmi1>; |
| 381 |
}; |
| 382 |
}; |
| 383 |
|
| 384 |
&hdmi1_out { |
| 385 |
hdmi1_out_con: endpoint { |
| 386 |
remote-endpoint = <&hdmi1_con_in>; |
| 387 |
}; |
| 388 |
}; |
| 389 |
|
| 390 |
&hdmi1_sound { |
| 391 |
status = "okay"; |
| 392 |
}; |
| 393 |
|
| 394 |
&hdmi_receiver_cma { |
| 395 |
status = "okay"; |
| 396 |
}; |
| 397 |
|
| 398 |
&hdmi_receiver { |
| 399 |
hpd-gpios = <&gpio1 RK_PD5 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 |
&i2c0 { |
| 414 |
pinctrl-names = "default"; |
| 415 |
pinctrl-0 = <&i2c0m2_xfer>; |
| 416 |
status = "okay"; |
| 417 |
|
| 418 |
vdd_cpu_big0_s0: regulator@42 { |
| 419 |
compatible = "rockchip,rk8602"; |
| 420 |
reg = <0x42>; |
| 421 |
fcs,suspend-voltage-selector = <1>; |
| 422 |
regulator-name = "vdd_cpu_big0_s0"; |
| 423 |
regulator-always-on; |
| 424 |
regulator-boot-on; |
| 425 |
regulator-min-microvolt = <550000>; |
| 426 |
regulator-max-microvolt = <1050000>; |
| 427 |
regulator-ramp-delay = <2300>; |
| 428 |
vin-supply = <&vcc4v0_sys>; |
| 429 |
|
| 430 |
regulator-state-mem { |
| 431 |
regulator-off-in-suspend; |
| 432 |
}; |
| 433 |
}; |
| 434 |
|
| 435 |
vdd_cpu_big1_s0: regulator@43 { |
| 436 |
compatible = "rockchip,rk8603", "rockchip,rk8602"; |
| 437 |
reg = <0x43>; |
| 438 |
fcs,suspend-voltage-selector = <1>; |
| 439 |
regulator-name = "vdd_cpu_big1_s0"; |
| 440 |
regulator-always-on; |
| 441 |
regulator-boot-on; |
| 442 |
regulator-min-microvolt = <550000>; |
| 443 |
regulator-max-microvolt = <1050000>; |
| 444 |
regulator-ramp-delay = <2300>; |
| 445 |
vin-supply = <&vcc4v0_sys>; |
| 446 |
|
| 447 |
regulator-state-mem { |
| 448 |
regulator-off-in-suspend; |
| 449 |
}; |
| 450 |
}; |
| 451 |
}; |
| 452 |
|
| 453 |
&i2c2 { |
| 454 |
status = "okay"; |
| 455 |
|
| 456 |
vdd_npu_s0: regulator@42 { |
| 457 |
compatible = "rockchip,rk8602"; |
| 458 |
reg = <0x42>; |
| 459 |
fcs,suspend-voltage-selector = <1>; |
| 460 |
regulator-name = "vdd_npu_s0"; |
| 461 |
regulator-boot-on; |
| 462 |
regulator-min-microvolt = <550000>; |
| 463 |
regulator-max-microvolt = <950000>; |
| 464 |
regulator-ramp-delay = <2300>; |
| 465 |
vin-supply = <&vcc4v0_sys>; |
| 466 |
|
| 467 |
regulator-state-mem { |
| 468 |
regulator-off-in-suspend; |
| 469 |
}; |
| 470 |
}; |
| 471 |
}; |
| 472 |
|
| 473 |
&i2c6 { |
| 474 |
status = "okay"; |
| 475 |
|
| 476 |
usbc0: usb-typec@22 { |
| 477 |
compatible = "fcs,fusb302"; |
| 478 |
reg = <0x22>; |
| 479 |
interrupt-parent = <&gpio0>; |
| 480 |
interrupts = <RK_PD3 IRQ_TYPE_LEVEL_LOW>; |
| 481 |
pinctrl-names = "default"; |
| 482 |
pinctrl-0 = <&usbc0_int>; |
| 483 |
vbus-supply = <&vbus5v0_typec>; |
| 484 |
status = "okay"; |
| 485 |
|
| 486 |
connector { |
| 487 |
compatible = "usb-c-connector"; |
| 488 |
data-role = "dual"; |
| 489 |
label = "USB-C"; |
| 490 |
op-sink-microwatt = <1000000>; |
| 491 |
/* fusb302 supports PD Rev 2.0 Ver 1.2 */ |
| 492 |
pd-revision = /bits/ 8 <0x2 0x0 0x1 0x2>; |
| 493 |
power-role = "dual"; |
| 494 |
sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; |
| 495 |
source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>; |
| 496 |
try-power-role = "source"; |
| 497 |
typec-power-opmode = "1.5A"; |
| 498 |
|
| 499 |
ports { |
| 500 |
#address-cells = <1>; |
| 501 |
#size-cells = <0>; |
| 502 |
|
| 503 |
port@0 { |
| 504 |
reg = <0>; |
| 505 |
usbc0_hs: endpoint { |
| 506 |
remote-endpoint = <&usb_host0_xhci_drd_sw>; |
| 507 |
}; |
| 508 |
}; |
| 509 |
|
| 510 |
port@1 { |
| 511 |
reg = <1>; |
| 512 |
usbc0_ss: endpoint { |
| 513 |
remote-endpoint = <&usbdp_phy0_typec_ss>; |
| 514 |
}; |
| 515 |
}; |
| 516 |
|
| 517 |
port@2 { |
| 518 |
reg = <2>; |
| 519 |
usbc0_sbu: endpoint { |
| 520 |
remote-endpoint = <&usbdp_phy0_typec_sbu>; |
| 521 |
}; |
| 522 |
}; |
| 523 |
}; |
| 524 |
}; |
| 525 |
}; |
| 526 |
|
| 527 |
hym8563: rtc@51 { |
| 528 |
compatible = "haoyu,hym8563"; |
| 529 |
reg = <0x51>; |
| 530 |
#clock-cells = <0>; |
| 531 |
clock-output-names = "hym8563"; |
| 532 |
pinctrl-names = "default"; |
| 533 |
pinctrl-0 = <&hym8563_int>; |
| 534 |
interrupt-parent = <&gpio0>; |
| 535 |
interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>; |
| 536 |
wakeup-source; |
| 537 |
}; |
| 538 |
}; |
| 539 |
|
| 540 |
&i2c7 { |
| 541 |
clock-frequency = <200000>; |
| 542 |
status = "okay"; |
| 543 |
|
| 544 |
rt5616: codec@1b { |
| 545 |
compatible = "realtek,rt5616"; |
| 546 |
reg = <0x1b>; |
| 547 |
clocks = <&cru I2S0_8CH_MCLKOUT>; |
| 548 |
clock-names = "mclk"; |
| 549 |
#sound-dai-cells = <0>; |
| 550 |
assigned-clocks = <&cru I2S0_8CH_MCLKOUT>; |
| 551 |
assigned-clock-rates = <12288000>; |
| 552 |
|
| 553 |
port { |
| 554 |
rt5616_p0_0: endpoint { |
| 555 |
remote-endpoint = <&i2s0_8ch_p0_0>; |
| 556 |
}; |
| 557 |
}; |
| 558 |
}; |
| 559 |
|
| 560 |
/* connected with MIPI-CSI1 */ |
| 561 |
}; |
| 562 |
|
| 563 |
&i2c8 { |
| 564 |
pinctrl-0 = <&i2c8m2_xfer>; |
| 565 |
}; |
| 566 |
|
| 567 |
&i2s0_8ch { |
| 568 |
pinctrl-names = "default"; |
| 569 |
pinctrl-0 = <&i2s0_lrck |
| 570 |
&i2s0_mclk |
| 571 |
&i2s0_sclk |
| 572 |
&i2s0_sdi0 |
| 573 |
&i2s0_sdo0>; |
| 574 |
status = "okay"; |
| 575 |
|
| 576 |
i2s0_8ch_p0: port { |
| 577 |
i2s0_8ch_p0_0: endpoint { |
| 578 |
dai-format = "i2s"; |
| 579 |
mclk-fs = <256>; |
| 580 |
remote-endpoint = <&rt5616_p0_0>; |
| 581 |
}; |
| 582 |
}; |
| 583 |
}; |
| 584 |
|
| 585 |
&i2s5_8ch { |
| 586 |
status = "okay"; |
| 587 |
}; |
| 588 |
|
| 589 |
&i2s6_8ch { |
| 590 |
status = "okay"; |
| 591 |
}; |
| 592 |
|
| 593 |
&pcie2x1l0 { |
| 594 |
reset-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>; |
| 595 |
vpcie3v3-supply = <&vcc_3v3_pcie20>; |
| 596 |
pinctrl-names = "default"; |
| 597 |
pinctrl-0 = <&pcie2_0_rst>; |
| 598 |
status = "okay"; |
| 599 |
}; |
| 600 |
|
| 601 |
&pcie2x1l1 { |
| 602 |
reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>; |
| 603 |
vpcie3v3-supply = <&vcc3v3_pcie2x1l0>; |
| 604 |
pinctrl-names = "default"; |
| 605 |
pinctrl-0 = <&pcie2_1_rst>; |
| 606 |
status = "okay"; |
| 607 |
}; |
| 608 |
|
| 609 |
&pcie2x1l2 { |
| 610 |
reset-gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>; |
| 611 |
vpcie3v3-supply = <&vcc_3v3_pcie20>; |
| 612 |
pinctrl-names = "default"; |
| 613 |
pinctrl-0 = <&pcie2_2_rst>; |
| 614 |
status = "okay"; |
| 615 |
}; |
| 616 |
|
| 617 |
&pcie30phy { |
| 618 |
status = "okay"; |
| 619 |
}; |
| 620 |
|
| 621 |
&pcie3x4 { |
| 622 |
reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; |
| 623 |
vpcie3v3-supply = <&vcc3v3_pcie30>; |
| 624 |
status = "okay"; |
| 625 |
}; |
| 626 |
|
| 627 |
&pd_gpu { |
| 628 |
domain-supply = <&vdd_gpu_s0>; |
| 629 |
}; |
| 630 |
|
| 631 |
&pd_npu { |
| 632 |
domain-supply = <&vdd_npu_s0>; |
| 633 |
}; |
| 634 |
|
| 635 |
&pinctrl { |
| 636 |
gpio-leds { |
| 637 |
sys_led_pin: sys-led-pin { |
| 638 |
rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; |
| 639 |
}; |
| 640 |
|
| 641 |
usr_led_pin: usr-led-pin { |
| 642 |
rockchip,pins = <2 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 643 |
}; |
| 644 |
}; |
| 645 |
|
| 646 |
hdmirx { |
| 647 |
hdmirx_hpd: hdmirx-5v-detection { |
| 648 |
rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 649 |
}; |
| 650 |
}; |
| 651 |
|
| 652 |
headphone { |
| 653 |
hp_det: hp-det { |
| 654 |
rockchip,pins = <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 655 |
}; |
| 656 |
}; |
| 657 |
|
| 658 |
hym8563 { |
| 659 |
hym8563_int: hym8563-int { |
| 660 |
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>; |
| 661 |
}; |
| 662 |
}; |
| 663 |
|
| 664 |
ir-receiver { |
| 665 |
ir_receiver_pin: ir-receiver-pin { |
| 666 |
rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 667 |
}; |
| 668 |
}; |
| 669 |
|
| 670 |
pcie { |
| 671 |
pcie2_0_rst: pcie2-0-rst { |
| 672 |
rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; |
| 673 |
}; |
| 674 |
|
| 675 |
pcie2_1_rst: pcie2-1-rst { |
| 676 |
rockchip,pins = <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 677 |
}; |
| 678 |
|
| 679 |
pcie2_2_rst: pcie2-2-rst { |
| 680 |
rockchip,pins = <4 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 681 |
}; |
| 682 |
|
| 683 |
pcie_m2_0_pwren: pcie-m20-pwren { |
| 684 |
rockchip,pins = <2 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 685 |
}; |
| 686 |
|
| 687 |
pcie_m2_1_pwren: pcie-m21-pwren { |
| 688 |
rockchip,pins = <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 689 |
}; |
| 690 |
}; |
| 691 |
|
| 692 |
usb { |
| 693 |
typec5v_pwren: typec5v-pwren { |
| 694 |
rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 695 |
}; |
| 696 |
|
| 697 |
usb5v_pwren: usb5v_pwren { |
| 698 |
rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 699 |
}; |
| 700 |
|
| 701 |
usbc0_int: usbc0-int { |
| 702 |
rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>; |
| 703 |
}; |
| 704 |
}; |
| 705 |
}; |
| 706 |
|
| 707 |
&pwm1 { |
| 708 |
pinctrl-0 = <&pwm1m1_pins>; |
| 709 |
status = "okay"; |
| 710 |
}; |
| 711 |
|
| 712 |
&rknn_core_0 { |
| 713 |
npu-supply = <&vdd_npu_s0>; |
| 714 |
sram-supply = <&vdd_npu_s0>; |
| 715 |
status = "okay"; |
| 716 |
}; |
| 717 |
|
| 718 |
&rknn_core_1 { |
| 719 |
npu-supply = <&vdd_npu_s0>; |
| 720 |
sram-supply = <&vdd_npu_s0>; |
| 721 |
status = "okay"; |
| 722 |
}; |
| 723 |
|
| 724 |
&rknn_core_2 { |
| 725 |
npu-supply = <&vdd_npu_s0>; |
| 726 |
sram-supply = <&vdd_npu_s0>; |
| 727 |
status = "okay"; |
| 728 |
}; |
| 729 |
|
| 730 |
&rknn_mmu_0 { |
| 731 |
status = "okay"; |
| 732 |
}; |
| 733 |
|
| 734 |
&rknn_mmu_1 { |
| 735 |
status = "okay"; |
| 736 |
}; |
| 737 |
|
| 738 |
&rknn_mmu_2 { |
| 739 |
status = "okay"; |
| 740 |
}; |
| 741 |
|
| 742 |
|
| 743 |
&saradc { |
| 744 |
vref-supply = <&avcc_1v8_s0>; |
| 745 |
status = "okay"; |
| 746 |
}; |
| 747 |
|
| 748 |
&sdhci { |
| 749 |
bus-width = <8>; |
| 750 |
no-sdio; |
| 751 |
no-sd; |
| 752 |
non-removable; |
| 753 |
max-frequency = <200000000>; |
| 754 |
mmc-hs400-1_8v; |
| 755 |
mmc-hs400-enhanced-strobe; |
| 756 |
status = "okay"; |
| 757 |
}; |
| 758 |
|
| 759 |
&sdmmc { |
| 760 |
bus-width = <4>; |
| 761 |
cap-mmc-highspeed; |
| 762 |
cap-sd-highspeed; |
| 763 |
cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>; |
| 764 |
disable-wp; |
| 765 |
no-mmc; |
| 766 |
no-sdio; |
| 767 |
sd-uhs-sdr104; |
| 768 |
vmmc-supply = <&vcc3v3_sd_s0>; |
| 769 |
vqmmc-supply = <&vccio_sd_s0>; |
| 770 |
status = "okay"; |
| 771 |
}; |
| 772 |
|
| 773 |
/* optional on non-LTS, populated on LTS version */ |
| 774 |
&sfc { |
| 775 |
pinctrl-names = "default"; |
| 776 |
pinctrl-0 = <&fspim1_pins>; |
| 777 |
status = "okay"; |
| 778 |
|
| 779 |
flash@0 { |
| 780 |
compatible = "jedec,spi-nor"; |
| 781 |
reg = <0>; |
| 782 |
spi-max-frequency = <104000000>; |
| 783 |
spi-rx-bus-width = <4>; |
| 784 |
spi-tx-bus-width = <1>; |
| 785 |
vcc-supply = <&vcc_1v8_s3>; |
| 786 |
}; |
| 787 |
}; |
| 788 |
|
| 789 |
&spi2 { |
| 790 |
status = "okay"; |
| 791 |
assigned-clocks = <&cru CLK_SPI2>; |
| 792 |
assigned-clock-rates = <200000000>; |
| 793 |
pinctrl-names = "default"; |
| 794 |
pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>; |
| 795 |
num-cs = <1>; |
| 796 |
|
| 797 |
pmic@0 { |
| 798 |
compatible = "rockchip,rk806"; |
| 799 |
spi-max-frequency = <1000000>; |
| 800 |
reg = <0x0>; |
| 801 |
|
| 802 |
interrupt-parent = <&gpio0>; |
| 803 |
interrupts = <7 IRQ_TYPE_LEVEL_LOW>; |
| 804 |
|
| 805 |
pinctrl-names = "default"; |
| 806 |
pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, |
| 807 |
<&rk806_dvs2_null>, <&rk806_dvs3_null>; |
| 808 |
|
| 809 |
system-power-controller; |
| 810 |
|
| 811 |
vcc1-supply = <&vcc4v0_sys>; |
| 812 |
vcc2-supply = <&vcc4v0_sys>; |
| 813 |
vcc3-supply = <&vcc4v0_sys>; |
| 814 |
vcc4-supply = <&vcc4v0_sys>; |
| 815 |
vcc5-supply = <&vcc4v0_sys>; |
| 816 |
vcc6-supply = <&vcc4v0_sys>; |
| 817 |
vcc7-supply = <&vcc4v0_sys>; |
| 818 |
vcc8-supply = <&vcc4v0_sys>; |
| 819 |
vcc9-supply = <&vcc4v0_sys>; |
| 820 |
vcc10-supply = <&vcc4v0_sys>; |
| 821 |
vcc11-supply = <&vcc_2v0_pldo_s3>; |
| 822 |
vcc12-supply = <&vcc4v0_sys>; |
| 823 |
vcc13-supply = <&vcc_1v1_nldo_s3>; |
| 824 |
vcc14-supply = <&vcc_1v1_nldo_s3>; |
| 825 |
vcca-supply = <&vcc4v0_sys>; |
| 826 |
|
| 827 |
gpio-controller; |
| 828 |
#gpio-cells = <2>; |
| 829 |
|
| 830 |
rk806_dvs1_null: dvs1-null-pins { |
| 831 |
pins = "gpio_pwrctrl1"; |
| 832 |
function = "pin_fun0"; |
| 833 |
}; |
| 834 |
|
| 835 |
rk806_dvs2_null: dvs2-null-pins { |
| 836 |
pins = "gpio_pwrctrl2"; |
| 837 |
function = "pin_fun0"; |
| 838 |
}; |
| 839 |
|
| 840 |
rk806_dvs3_null: dvs3-null-pins { |
| 841 |
pins = "gpio_pwrctrl3"; |
| 842 |
function = "pin_fun0"; |
| 843 |
}; |
| 844 |
|
| 845 |
regulators { |
| 846 |
vdd_gpu_s0: vdd_gpu_mem_s0: dcdc-reg1 { |
| 847 |
regulator-boot-on; |
| 848 |
regulator-min-microvolt = <550000>; |
| 849 |
regulator-max-microvolt = <950000>; |
| 850 |
regulator-ramp-delay = <12500>; |
| 851 |
regulator-name = "vdd_gpu_s0"; |
| 852 |
regulator-enable-ramp-delay = <400>; |
| 853 |
|
| 854 |
regulator-state-mem { |
| 855 |
regulator-off-in-suspend; |
| 856 |
}; |
| 857 |
}; |
| 858 |
|
| 859 |
vdd_cpu_lit_s0: vdd_cpu_lit_mem_s0: dcdc-reg2 { |
| 860 |
regulator-always-on; |
| 861 |
regulator-boot-on; |
| 862 |
regulator-min-microvolt = <550000>; |
| 863 |
regulator-max-microvolt = <950000>; |
| 864 |
regulator-ramp-delay = <12500>; |
| 865 |
regulator-name = "vdd_cpu_lit_s0"; |
| 866 |
|
| 867 |
regulator-state-mem { |
| 868 |
regulator-off-in-suspend; |
| 869 |
}; |
| 870 |
}; |
| 871 |
|
| 872 |
vdd_log_s0: dcdc-reg3 { |
| 873 |
regulator-always-on; |
| 874 |
regulator-boot-on; |
| 875 |
regulator-min-microvolt = <675000>; |
| 876 |
regulator-max-microvolt = <750000>; |
| 877 |
regulator-ramp-delay = <12500>; |
| 878 |
regulator-name = "vdd_log_s0"; |
| 879 |
|
| 880 |
regulator-state-mem { |
| 881 |
regulator-off-in-suspend; |
| 882 |
regulator-suspend-microvolt = <750000>; |
| 883 |
}; |
| 884 |
}; |
| 885 |
|
| 886 |
vdd_vdenc_s0: vdd_vdenc_mem_s0: dcdc-reg4 { |
| 887 |
regulator-always-on; |
| 888 |
regulator-boot-on; |
| 889 |
regulator-min-microvolt = <550000>; |
| 890 |
regulator-max-microvolt = <950000>; |
| 891 |
regulator-ramp-delay = <12500>; |
| 892 |
regulator-name = "vdd_vdenc_s0"; |
| 893 |
|
| 894 |
regulator-state-mem { |
| 895 |
regulator-off-in-suspend; |
| 896 |
}; |
| 897 |
}; |
| 898 |
|
| 899 |
vdd_ddr_s0: dcdc-reg5 { |
| 900 |
regulator-always-on; |
| 901 |
regulator-boot-on; |
| 902 |
regulator-min-microvolt = <675000>; |
| 903 |
regulator-max-microvolt = <900000>; |
| 904 |
regulator-ramp-delay = <12500>; |
| 905 |
regulator-name = "vdd_ddr_s0"; |
| 906 |
|
| 907 |
regulator-state-mem { |
| 908 |
regulator-off-in-suspend; |
| 909 |
regulator-suspend-microvolt = <850000>; |
| 910 |
}; |
| 911 |
}; |
| 912 |
|
| 913 |
vdd2_ddr_s3: dcdc-reg6 { |
| 914 |
regulator-always-on; |
| 915 |
regulator-boot-on; |
| 916 |
regulator-name = "vdd2_ddr_s3"; |
| 917 |
|
| 918 |
regulator-state-mem { |
| 919 |
regulator-on-in-suspend; |
| 920 |
}; |
| 921 |
}; |
| 922 |
|
| 923 |
vcc_2v0_pldo_s3: dcdc-reg7 { |
| 924 |
regulator-always-on; |
| 925 |
regulator-boot-on; |
| 926 |
regulator-min-microvolt = <2000000>; |
| 927 |
regulator-max-microvolt = <2000000>; |
| 928 |
regulator-ramp-delay = <12500>; |
| 929 |
regulator-name = "vdd_2v0_pldo_s3"; |
| 930 |
|
| 931 |
regulator-state-mem { |
| 932 |
regulator-on-in-suspend; |
| 933 |
regulator-suspend-microvolt = <2000000>; |
| 934 |
}; |
| 935 |
}; |
| 936 |
|
| 937 |
vcc_3v3_s3: dcdc-reg8 { |
| 938 |
regulator-always-on; |
| 939 |
regulator-boot-on; |
| 940 |
regulator-min-microvolt = <3300000>; |
| 941 |
regulator-max-microvolt = <3300000>; |
| 942 |
regulator-name = "vcc_3v3_s3"; |
| 943 |
|
| 944 |
regulator-state-mem { |
| 945 |
regulator-on-in-suspend; |
| 946 |
regulator-suspend-microvolt = <3300000>; |
| 947 |
}; |
| 948 |
}; |
| 949 |
|
| 950 |
vddq_ddr_s0: dcdc-reg9 { |
| 951 |
regulator-always-on; |
| 952 |
regulator-boot-on; |
| 953 |
regulator-name = "vddq_ddr_s0"; |
| 954 |
|
| 955 |
regulator-state-mem { |
| 956 |
regulator-off-in-suspend; |
| 957 |
}; |
| 958 |
}; |
| 959 |
|
| 960 |
vcc_1v8_s3: dcdc-reg10 { |
| 961 |
regulator-always-on; |
| 962 |
regulator-boot-on; |
| 963 |
regulator-min-microvolt = <1800000>; |
| 964 |
regulator-max-microvolt = <1800000>; |
| 965 |
regulator-name = "vcc_1v8_s3"; |
| 966 |
|
| 967 |
regulator-state-mem { |
| 968 |
regulator-on-in-suspend; |
| 969 |
regulator-suspend-microvolt = <1800000>; |
| 970 |
}; |
| 971 |
}; |
| 972 |
|
| 973 |
avcc_1v8_s0: pldo-reg1 { |
| 974 |
regulator-always-on; |
| 975 |
regulator-boot-on; |
| 976 |
regulator-min-microvolt = <1800000>; |
| 977 |
regulator-max-microvolt = <1800000>; |
| 978 |
regulator-name = "avcc_1v8_s0"; |
| 979 |
|
| 980 |
regulator-state-mem { |
| 981 |
regulator-off-in-suspend; |
| 982 |
}; |
| 983 |
}; |
| 984 |
|
| 985 |
vcc_1v8_s0: pldo-reg2 { |
| 986 |
regulator-always-on; |
| 987 |
regulator-boot-on; |
| 988 |
regulator-min-microvolt = <1800000>; |
| 989 |
regulator-max-microvolt = <1800000>; |
| 990 |
regulator-name = "vcc_1v8_s0"; |
| 991 |
|
| 992 |
regulator-state-mem { |
| 993 |
regulator-off-in-suspend; |
| 994 |
regulator-suspend-microvolt = <1800000>; |
| 995 |
}; |
| 996 |
}; |
| 997 |
|
| 998 |
avdd_1v2_s0: pldo-reg3 { |
| 999 |
regulator-always-on; |
| 1000 |
regulator-boot-on; |
| 1001 |
regulator-min-microvolt = <1200000>; |
| 1002 |
regulator-max-microvolt = <1200000>; |
| 1003 |
regulator-name = "avdd_1v2_s0"; |
| 1004 |
|
| 1005 |
regulator-state-mem { |
| 1006 |
regulator-off-in-suspend; |
| 1007 |
}; |
| 1008 |
}; |
| 1009 |
|
| 1010 |
vcc_3v3_s0: pldo-reg4 { |
| 1011 |
regulator-always-on; |
| 1012 |
regulator-boot-on; |
| 1013 |
regulator-min-microvolt = <3300000>; |
| 1014 |
regulator-max-microvolt = <3300000>; |
| 1015 |
regulator-ramp-delay = <12500>; |
| 1016 |
regulator-name = "vcc_3v3_s0"; |
| 1017 |
|
| 1018 |
regulator-state-mem { |
| 1019 |
regulator-off-in-suspend; |
| 1020 |
}; |
| 1021 |
}; |
| 1022 |
|
| 1023 |
vccio_sd_s0: pldo-reg5 { |
| 1024 |
regulator-always-on; |
| 1025 |
regulator-boot-on; |
| 1026 |
regulator-min-microvolt = <1800000>; |
| 1027 |
regulator-max-microvolt = <3300000>; |
| 1028 |
regulator-ramp-delay = <12500>; |
| 1029 |
regulator-name = "vccio_sd_s0"; |
| 1030 |
|
| 1031 |
regulator-state-mem { |
| 1032 |
regulator-off-in-suspend; |
| 1033 |
}; |
| 1034 |
}; |
| 1035 |
|
| 1036 |
pldo6_s3: pldo-reg6 { |
| 1037 |
regulator-always-on; |
| 1038 |
regulator-boot-on; |
| 1039 |
regulator-min-microvolt = <1800000>; |
| 1040 |
regulator-max-microvolt = <1800000>; |
| 1041 |
regulator-name = "pldo6_s3"; |
| 1042 |
|
| 1043 |
regulator-state-mem { |
| 1044 |
regulator-on-in-suspend; |
| 1045 |
regulator-suspend-microvolt = <1800000>; |
| 1046 |
}; |
| 1047 |
}; |
| 1048 |
|
| 1049 |
vdd_0v75_s3: nldo-reg1 { |
| 1050 |
regulator-always-on; |
| 1051 |
regulator-boot-on; |
| 1052 |
regulator-min-microvolt = <750000>; |
| 1053 |
regulator-max-microvolt = <750000>; |
| 1054 |
regulator-name = "vdd_0v75_s3"; |
| 1055 |
|
| 1056 |
regulator-state-mem { |
| 1057 |
regulator-on-in-suspend; |
| 1058 |
regulator-suspend-microvolt = <750000>; |
| 1059 |
}; |
| 1060 |
}; |
| 1061 |
|
| 1062 |
vdd_ddr_pll_s0: nldo-reg2 { |
| 1063 |
regulator-always-on; |
| 1064 |
regulator-boot-on; |
| 1065 |
regulator-min-microvolt = <850000>; |
| 1066 |
regulator-max-microvolt = <850000>; |
| 1067 |
regulator-name = "vdd_ddr_pll_s0"; |
| 1068 |
|
| 1069 |
regulator-state-mem { |
| 1070 |
regulator-off-in-suspend; |
| 1071 |
regulator-suspend-microvolt = <850000>; |
| 1072 |
}; |
| 1073 |
}; |
| 1074 |
|
| 1075 |
avdd_0v75_s0: nldo-reg3 { |
| 1076 |
regulator-always-on; |
| 1077 |
regulator-boot-on; |
| 1078 |
regulator-min-microvolt = <750000>; |
| 1079 |
regulator-max-microvolt = <750000>; |
| 1080 |
regulator-name = "avdd_0v75_s0"; |
| 1081 |
|
| 1082 |
regulator-state-mem { |
| 1083 |
regulator-off-in-suspend; |
| 1084 |
}; |
| 1085 |
}; |
| 1086 |
|
| 1087 |
vdd_0v85_s0: nldo-reg4 { |
| 1088 |
regulator-always-on; |
| 1089 |
regulator-boot-on; |
| 1090 |
regulator-min-microvolt = <850000>; |
| 1091 |
regulator-max-microvolt = <850000>; |
| 1092 |
regulator-name = "vdd_0v85_s0"; |
| 1093 |
|
| 1094 |
regulator-state-mem { |
| 1095 |
regulator-off-in-suspend; |
| 1096 |
}; |
| 1097 |
}; |
| 1098 |
|
| 1099 |
vdd_0v75_s0: nldo-reg5 { |
| 1100 |
regulator-always-on; |
| 1101 |
regulator-boot-on; |
| 1102 |
regulator-min-microvolt = <750000>; |
| 1103 |
regulator-max-microvolt = <750000>; |
| 1104 |
regulator-name = "vdd_0v75_s0"; |
| 1105 |
|
| 1106 |
regulator-state-mem { |
| 1107 |
regulator-off-in-suspend; |
| 1108 |
}; |
| 1109 |
}; |
| 1110 |
}; |
| 1111 |
}; |
| 1112 |
}; |
| 1113 |
|
| 1114 |
&tsadc { |
| 1115 |
status = "okay"; |
| 1116 |
}; |
| 1117 |
|
| 1118 |
&uart2 { |
| 1119 |
pinctrl-0 = <&uart2m0_xfer>; |
| 1120 |
status = "okay"; |
| 1121 |
}; |
| 1122 |
|
| 1123 |
&u2phy0 { |
| 1124 |
status = "okay"; |
| 1125 |
}; |
| 1126 |
|
| 1127 |
&u2phy0_otg { |
| 1128 |
status = "okay"; |
| 1129 |
}; |
| 1130 |
|
| 1131 |
&u2phy1 { |
| 1132 |
status = "okay"; |
| 1133 |
}; |
| 1134 |
|
| 1135 |
&u2phy1_otg { |
| 1136 |
status = "okay"; |
| 1137 |
}; |
| 1138 |
|
| 1139 |
&u2phy2_host { |
| 1140 |
status = "okay"; |
| 1141 |
}; |
| 1142 |
|
| 1143 |
&u2phy3_host { |
| 1144 |
status = "okay"; |
| 1145 |
}; |
| 1146 |
|
| 1147 |
&u2phy2 { |
| 1148 |
status = "okay"; |
| 1149 |
}; |
| 1150 |
|
| 1151 |
&u2phy3 { |
| 1152 |
status = "okay"; |
| 1153 |
}; |
| 1154 |
|
| 1155 |
&usbdp_phy0 { |
| 1156 |
mode-switch; |
| 1157 |
orientation-switch; |
| 1158 |
sbu1-dc-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>; |
| 1159 |
sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; |
| 1160 |
status = "okay"; |
| 1161 |
|
| 1162 |
port { |
| 1163 |
#address-cells = <1>; |
| 1164 |
#size-cells = <0>; |
| 1165 |
|
| 1166 |
usbdp_phy0_typec_ss: endpoint@0 { |
| 1167 |
reg = <0>; |
| 1168 |
remote-endpoint = <&usbc0_ss>; |
| 1169 |
}; |
| 1170 |
|
| 1171 |
usbdp_phy0_typec_sbu: endpoint@1 { |
| 1172 |
reg = <1>; |
| 1173 |
remote-endpoint = <&usbc0_sbu>; |
| 1174 |
}; |
| 1175 |
}; |
| 1176 |
}; |
| 1177 |
|
| 1178 |
&usbdp_phy1 { |
| 1179 |
phy-supply = <&vbus5v0_usb>; |
| 1180 |
status = "okay"; |
| 1181 |
}; |
| 1182 |
|
| 1183 |
&usb_host0_ehci { |
| 1184 |
status = "okay"; |
| 1185 |
}; |
| 1186 |
|
| 1187 |
&usb_host0_ohci { |
| 1188 |
status = "okay"; |
| 1189 |
}; |
| 1190 |
|
| 1191 |
&usb_host0_xhci { |
| 1192 |
usb-role-switch; |
| 1193 |
status = "okay"; |
| 1194 |
|
| 1195 |
port { |
| 1196 |
usb_host0_xhci_drd_sw: endpoint { |
| 1197 |
remote-endpoint = <&usbc0_hs>; |
| 1198 |
}; |
| 1199 |
}; |
| 1200 |
}; |
| 1201 |
|
| 1202 |
&usb_host1_xhci { |
| 1203 |
dr_mode = "host"; |
| 1204 |
status = "okay"; |
| 1205 |
}; |
| 1206 |
|
| 1207 |
&usb_host1_ehci { |
| 1208 |
status = "okay"; |
| 1209 |
}; |
| 1210 |
|
| 1211 |
&usb_host1_ohci { |
| 1212 |
status = "okay"; |
| 1213 |
}; |
| 1214 |
|
| 1215 |
&vop_mmu { |
| 1216 |
status = "okay"; |
| 1217 |
}; |
| 1218 |
|
| 1219 |
&vop { |
| 1220 |
status = "okay"; |
| 1221 |
}; |
| 1222 |
|
| 1223 |
&vp0 { |
| 1224 |
vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { |
| 1225 |
reg = <ROCKCHIP_VOP2_EP_HDMI0>; |
| 1226 |
remote-endpoint = <&hdmi0_in_vp0>; |
| 1227 |
}; |
| 1228 |
}; |
| 1229 |
|
| 1230 |
&vp1 { |
| 1231 |
vp1_out_hdmi1: endpoint@ROCKCHIP_VOP2_EP_HDMI1 { |
| 1232 |
reg = <ROCKCHIP_VOP2_EP_HDMI1>; |
| 1233 |
remote-endpoint = <&hdmi1_in_vp1>; |
| 1234 |
}; |
| 1235 |
}; |