| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
|
| 3 |
/dts-v1/; |
| 4 |
|
| 5 |
#include <dt-bindings/gpio/gpio.h> |
| 6 |
#include <dt-bindings/input/linux-event-codes.h> |
| 7 |
#include <dt-bindings/pinctrl/rockchip.h> |
| 8 |
#include <dt-bindings/soc/rockchip,vop2.h> |
| 9 |
#include <dt-bindings/usb/pd.h> |
| 10 |
#include "rk3588s.dtsi" |
| 11 |
|
| 12 |
/ { |
| 13 |
model = "Indiedroid Nova"; |
| 14 |
chassis-type = "embedded"; |
| 15 |
compatible = "indiedroid,nova", "rockchip,rk3588s"; |
| 16 |
|
| 17 |
adc-keys-0 { |
| 18 |
compatible = "adc-keys"; |
| 19 |
io-channel-names = "buttons"; |
| 20 |
io-channels = <&saradc 0>; |
| 21 |
keyup-threshold-microvolt = <1800000>; |
| 22 |
poll-interval = <100>; |
| 23 |
|
| 24 |
button-boot { |
| 25 |
label = "boot"; |
| 26 |
linux,code = <KEY_PROG1>; |
| 27 |
press-threshold-microvolt = <18000>; |
| 28 |
}; |
| 29 |
}; |
| 30 |
|
| 31 |
adc-keys-1 { |
| 32 |
compatible = "adc-keys"; |
| 33 |
io-channel-names = "buttons"; |
| 34 |
io-channels = <&saradc 1>; |
| 35 |
keyup-threshold-microvolt = <1800000>; |
| 36 |
poll-interval = <100>; |
| 37 |
|
| 38 |
button-recovery { |
| 39 |
label = "recovery"; |
| 40 |
linux,code = <KEY_PROG2>; |
| 41 |
press-threshold-microvolt = <18000>; |
| 42 |
}; |
| 43 |
}; |
| 44 |
|
| 45 |
aliases { |
| 46 |
mmc0 = &sdhci; |
| 47 |
mmc1 = &sdmmc; |
| 48 |
mmc2 = &sdio; |
| 49 |
}; |
| 50 |
|
| 51 |
chosen { |
| 52 |
stdout-path = "serial2:1500000n8"; |
| 53 |
}; |
| 54 |
|
| 55 |
hdmi0-con { |
| 56 |
compatible = "hdmi-connector"; |
| 57 |
type = "d"; |
| 58 |
|
| 59 |
port { |
| 60 |
hdmi0_con_in: endpoint { |
| 61 |
remote-endpoint = <&hdmi0_out_con>; |
| 62 |
}; |
| 63 |
}; |
| 64 |
}; |
| 65 |
|
| 66 |
sdio_pwrseq: sdio-pwrseq { |
| 67 |
compatible = "mmc-pwrseq-simple"; |
| 68 |
clock-names = "ext_clock"; |
| 69 |
clocks = <&rtc_hym8563>; |
| 70 |
pinctrl-0 = <&wifi_enable_h>; |
| 71 |
pinctrl-names = "default"; |
| 72 |
post-power-on-delay-ms = <200>; |
| 73 |
reset-gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_LOW>; |
| 74 |
}; |
| 75 |
|
| 76 |
sound { |
| 77 |
compatible = "audio-graph-card"; |
| 78 |
label = "rockchip,es8388"; |
| 79 |
widgets = "Microphone", "Mic Jack", |
| 80 |
"Headphone", "Headphones"; |
| 81 |
routing = "LINPUT2", "Mic Jack", |
| 82 |
"Headphones", "LOUT1", |
| 83 |
"Headphones", "ROUT1"; |
| 84 |
dais = <&i2s0_8ch_p0>; |
| 85 |
}; |
| 86 |
|
| 87 |
vbus5v0_typec: regulator-vbus5v0-typec { |
| 88 |
compatible = "regulator-fixed"; |
| 89 |
enable-active-high; |
| 90 |
gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; |
| 91 |
pinctrl-0 = <&typec5v_pwren>; |
| 92 |
pinctrl-names = "default"; |
| 93 |
regulator-name = "vbus5v0_typec"; |
| 94 |
regulator-min-microvolt = <5000000>; |
| 95 |
regulator-max-microvolt = <5000000>; |
| 96 |
vin-supply = <&vcc5v0_usb>; |
| 97 |
}; |
| 98 |
|
| 99 |
vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 { |
| 100 |
compatible = "regulator-fixed"; |
| 101 |
regulator-always-on; |
| 102 |
regulator-boot-on; |
| 103 |
regulator-max-microvolt = <1100000>; |
| 104 |
regulator-min-microvolt = <1100000>; |
| 105 |
regulator-name = "vcc_1v1_nldo_s3"; |
| 106 |
vin-supply = <&vcc5v0_sys>; |
| 107 |
}; |
| 108 |
|
| 109 |
/* Regulator is enabled whenever vcc_1v8_s0 is above 1.6v */ |
| 110 |
vcc_3v3_s0: regulator-vcc-3v3-s0 { |
| 111 |
compatible = "regulator-fixed"; |
| 112 |
regulator-always-on; |
| 113 |
regulator-boot-on; |
| 114 |
regulator-max-microvolt = <3300000>; |
| 115 |
regulator-min-microvolt = <3300000>; |
| 116 |
regulator-name = "vcc_3v3_s0"; |
| 117 |
vin-supply = <&vcc_3v3_s3>; |
| 118 |
|
| 119 |
regulator-state-mem { |
| 120 |
regulator-off-in-suspend; |
| 121 |
}; |
| 122 |
}; |
| 123 |
|
| 124 |
vcc5v0_sys: regulator-vcc5v0-sys { |
| 125 |
compatible = "regulator-fixed"; |
| 126 |
regulator-always-on; |
| 127 |
regulator-boot-on; |
| 128 |
regulator-max-microvolt = <5000000>; |
| 129 |
regulator-min-microvolt = <5000000>; |
| 130 |
regulator-name = "vcc5v0_sys"; |
| 131 |
}; |
| 132 |
|
| 133 |
vcc5v0_usb: regulator-vcc5v0-usb { |
| 134 |
compatible = "regulator-fixed"; |
| 135 |
regulator-always-on; |
| 136 |
regulator-boot-on; |
| 137 |
regulator-max-microvolt = <5000000>; |
| 138 |
regulator-min-microvolt = <5000000>; |
| 139 |
regulator-name = "vcc5v0_usb"; |
| 140 |
vin-supply = <&vcc5v0_usbdcin>; |
| 141 |
}; |
| 142 |
|
| 143 |
vcc5v0_usbdcin: regulator-vcc5v0-usbdcin { |
| 144 |
compatible = "regulator-fixed"; |
| 145 |
regulator-always-on; |
| 146 |
regulator-boot-on; |
| 147 |
regulator-max-microvolt = <5000000>; |
| 148 |
regulator-min-microvolt = <5000000>; |
| 149 |
regulator-name = "vcc5v0_usbdcin"; |
| 150 |
}; |
| 151 |
}; |
| 152 |
|
| 153 |
&combphy0_ps { |
| 154 |
status = "okay"; |
| 155 |
}; |
| 156 |
|
| 157 |
&combphy2_psu { |
| 158 |
status = "okay"; |
| 159 |
}; |
| 160 |
|
| 161 |
&cpu_l0 { |
| 162 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 163 |
}; |
| 164 |
|
| 165 |
&cpu_l1 { |
| 166 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 167 |
}; |
| 168 |
|
| 169 |
&cpu_l2 { |
| 170 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 171 |
}; |
| 172 |
|
| 173 |
&cpu_l3 { |
| 174 |
cpu-supply = <&vdd_cpu_lit_s0>; |
| 175 |
}; |
| 176 |
|
| 177 |
&cpu_b0 { |
| 178 |
cpu-supply = <&vdd_cpu_big0_s0>; |
| 179 |
}; |
| 180 |
|
| 181 |
&cpu_b1 { |
| 182 |
cpu-supply = <&vdd_cpu_big0_s0>; |
| 183 |
}; |
| 184 |
|
| 185 |
&cpu_b2 { |
| 186 |
cpu-supply = <&vdd_cpu_big1_s0>; |
| 187 |
}; |
| 188 |
|
| 189 |
&cpu_b3 { |
| 190 |
cpu-supply = <&vdd_cpu_big1_s0>; |
| 191 |
}; |
| 192 |
|
| 193 |
&dp0 { |
| 194 |
status = "okay"; |
| 195 |
}; |
| 196 |
|
| 197 |
&dp0_in { |
| 198 |
dp0_in_vp1: endpoint { |
| 199 |
remote-endpoint = <&vp1_out_dp0>; |
| 200 |
}; |
| 201 |
}; |
| 202 |
|
| 203 |
&dp0_out { |
| 204 |
dp0_out_con: endpoint { |
| 205 |
remote-endpoint = <&usbdp_phy0_dp_in>; |
| 206 |
}; |
| 207 |
}; |
| 208 |
|
| 209 |
/* |
| 210 |
* Add labels for each GPIO pin exposed on the 40 pin header. Note that |
| 211 |
* voltage of each GPIO pin could be either 3.3v or 1.8v (as noted by |
| 212 |
* label). |
| 213 |
*/ |
| 214 |
&gpio0 { |
| 215 |
gpio-line-names = /* GPIO0 A0-A7 */ |
| 216 |
"", "", "", "", |
| 217 |
"", "", "", "", |
| 218 |
/* GPIO0 B0-B7 */ |
| 219 |
"", "", "", "", |
| 220 |
"", "", "", "", |
| 221 |
/* GPIO0 C0-C7 */ |
| 222 |
"", "", "", "", |
| 223 |
"", "", "", "", |
| 224 |
/* GPIO0 D0-D7 */ |
| 225 |
"HEADER_12_1v8", "", "", "HEADER_24_1v8", |
| 226 |
"", "", "", ""; |
| 227 |
}; |
| 228 |
|
| 229 |
&gpio1 { |
| 230 |
gpio-line-names = /* GPIO1 A0-A7 */ |
| 231 |
"HEADER_27_3v3", "", "", "", |
| 232 |
"HEADER_29_1v8", "", "HEADER_7_1v8", "", |
| 233 |
/* GPIO1 B0-B7 */ |
| 234 |
"", "HEADER_31_1v8", "HEADER_33_1v8", "", |
| 235 |
"HEADER_11_1v8", "HEADER_13_1v8", "", "", |
| 236 |
/* GPIO1 C0-C7 */ |
| 237 |
"", "HEADER_28_3v3", "", "", |
| 238 |
"", "", "", "", |
| 239 |
/* GPIO1 D0-D7 */ |
| 240 |
"", "", "", "", |
| 241 |
"", "", "HEADER_5_3v3", "HEADER_3_3v3"; |
| 242 |
}; |
| 243 |
|
| 244 |
&gpio3 { |
| 245 |
gpio-line-names = /* GPIO3 A0-A7 */ |
| 246 |
"", "", "", "", |
| 247 |
"", "", "", "", |
| 248 |
/* GPIO3 B0-B7 */ |
| 249 |
"HEADER_16_1v8", "HEADER_18_1v8", "", "", |
| 250 |
"", "", "", "HEADER_19_1v8", |
| 251 |
/* GPIO3 C0-C7 */ |
| 252 |
"HEADER_21_1v8", "HEADER_23_1v8", "", "HEADER_26_1v8", |
| 253 |
"HEADER_15_1v8", "HEADER_22_1v8", "", "", |
| 254 |
/* GPIO3 D0-D7 */ |
| 255 |
"", "", "", "", |
| 256 |
"", "", "", ""; |
| 257 |
}; |
| 258 |
|
| 259 |
&gpio4 { |
| 260 |
gpio-line-names = /* GPIO4 A0-A7 */ |
| 261 |
"", "", "HEADER_37_3v3", "HEADER_8_3v3", |
| 262 |
"HEADER_10_3v3", "", "HEADER_32_3v3", "HEADER_35_3v3", |
| 263 |
/* GPIO4 B0-B7 */ |
| 264 |
"", "", "", "HEADER_40_3v3", |
| 265 |
"HEADER_38_3v3", "HEADER_36_3v3", "", "", |
| 266 |
/* GPIO4 C0-C7 */ |
| 267 |
"", "", "", "", |
| 268 |
"", "", "", "", |
| 269 |
/* GPIO4 D0-D7 */ |
| 270 |
"", "", "", "", |
| 271 |
"", "", "", ""; |
| 272 |
}; |
| 273 |
|
| 274 |
&gpu { |
| 275 |
mali-supply = <&vdd_gpu_s0>; |
| 276 |
status = "okay"; |
| 277 |
}; |
| 278 |
|
| 279 |
&hdmi0 { |
| 280 |
pinctrl-0 = <&hdmim0_tx0_scl>, <&hdmim0_tx0_sda>, |
| 281 |
<&hdmim0_tx0_hpd>, <&hdmim0_tx0_cec>; |
| 282 |
pinctrl-names = "default"; |
| 283 |
status = "okay"; |
| 284 |
}; |
| 285 |
|
| 286 |
&hdmi0_in { |
| 287 |
hdmi0_in_vp0: endpoint { |
| 288 |
remote-endpoint = <&vp0_out_hdmi0>; |
| 289 |
}; |
| 290 |
}; |
| 291 |
|
| 292 |
&hdmi0_out { |
| 293 |
hdmi0_out_con: endpoint { |
| 294 |
remote-endpoint = <&hdmi0_con_in>; |
| 295 |
}; |
| 296 |
}; |
| 297 |
|
| 298 |
&hdmi0_sound { |
| 299 |
status = "okay"; |
| 300 |
}; |
| 301 |
|
| 302 |
&hdptxphy0 { |
| 303 |
status = "okay"; |
| 304 |
}; |
| 305 |
|
| 306 |
&i2c0 { |
| 307 |
pinctrl-0 = <&i2c0m2_xfer>; |
| 308 |
pinctrl-names = "default"; |
| 309 |
status = "okay"; |
| 310 |
|
| 311 |
vdd_cpu_big0_s0: regulator@42 { |
| 312 |
compatible = "rockchip,rk8602"; |
| 313 |
reg = <0x42>; |
| 314 |
regulator-always-on; |
| 315 |
regulator-boot-on; |
| 316 |
regulator-max-microvolt = <1050000>; |
| 317 |
regulator-min-microvolt = <550000>; |
| 318 |
regulator-name = "vdd_cpu_big0_s0"; |
| 319 |
regulator-ramp-delay = <2300>; |
| 320 |
fcs,suspend-voltage-selector = <1>; |
| 321 |
vin-supply = <&vcc5v0_sys>; |
| 322 |
|
| 323 |
regulator-state-mem { |
| 324 |
regulator-off-in-suspend; |
| 325 |
}; |
| 326 |
}; |
| 327 |
|
| 328 |
vdd_cpu_big1_s0: regulator@43 { |
| 329 |
compatible = "rockchip,rk8603", "rockchip,rk8602"; |
| 330 |
reg = <0x43>; |
| 331 |
regulator-always-on; |
| 332 |
regulator-boot-on; |
| 333 |
regulator-max-microvolt = <1050000>; |
| 334 |
regulator-min-microvolt = <550000>; |
| 335 |
regulator-name = "vdd_cpu_big1_s0"; |
| 336 |
regulator-ramp-delay = <2300>; |
| 337 |
fcs,suspend-voltage-selector = <1>; |
| 338 |
vin-supply = <&vcc5v0_sys>; |
| 339 |
|
| 340 |
regulator-state-mem { |
| 341 |
regulator-off-in-suspend; |
| 342 |
}; |
| 343 |
}; |
| 344 |
}; |
| 345 |
|
| 346 |
&i2c2 { |
| 347 |
status = "okay"; |
| 348 |
|
| 349 |
vdd_npu_s0: regulator@42 { |
| 350 |
compatible = "rockchip,rk8602"; |
| 351 |
reg = <0x42>; |
| 352 |
regulator-always-on; |
| 353 |
regulator-boot-on; |
| 354 |
regulator-max-microvolt = <950000>; |
| 355 |
regulator-min-microvolt = <550000>; |
| 356 |
regulator-name = "vdd_npu_s0"; |
| 357 |
regulator-ramp-delay = <2300>; |
| 358 |
fcs,suspend-voltage-selector = <1>; |
| 359 |
vin-supply = <&vcc5v0_sys>; |
| 360 |
|
| 361 |
regulator-state-mem { |
| 362 |
regulator-off-in-suspend; |
| 363 |
}; |
| 364 |
}; |
| 365 |
}; |
| 366 |
|
| 367 |
&i2c6 { |
| 368 |
pinctrl-0 = <&i2c6m3_xfer>; |
| 369 |
status = "okay"; |
| 370 |
|
| 371 |
fusb302: typec-portc@22 { |
| 372 |
compatible = "fcs,fusb302"; |
| 373 |
reg = <0x22>; |
| 374 |
interrupt-parent = <&gpio0>; |
| 375 |
interrupts = <RK_PC4 IRQ_TYPE_LEVEL_LOW>; |
| 376 |
pinctrl-0 = <&usbc0_int>; |
| 377 |
pinctrl-names = "default"; |
| 378 |
vbus-supply = <&vbus5v0_typec>; |
| 379 |
|
| 380 |
usb_con: connector { |
| 381 |
compatible = "usb-c-connector"; |
| 382 |
data-role = "dual"; |
| 383 |
label = "USB-C"; |
| 384 |
power-role = "dual"; |
| 385 |
try-power-role = "sink"; |
| 386 |
source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; |
| 387 |
sink-pdos = <PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>; |
| 388 |
op-sink-microwatt = <1000000>; |
| 389 |
|
| 390 |
altmodes { |
| 391 |
displayport { |
| 392 |
svid = /bits/ 16 <0xff01>; |
| 393 |
vdo = <0xffffffff>; |
| 394 |
}; |
| 395 |
}; |
| 396 |
|
| 397 |
|
| 398 |
ports { |
| 399 |
#address-cells = <1>; |
| 400 |
#size-cells = <0>; |
| 401 |
|
| 402 |
port@0 { |
| 403 |
reg = <0>; |
| 404 |
usbc0_hs: endpoint { |
| 405 |
remote-endpoint = <&usb_host0_xhci_hs>; |
| 406 |
}; |
| 407 |
}; |
| 408 |
|
| 409 |
port@1 { |
| 410 |
reg = <1>; |
| 411 |
usbc0_ss: endpoint { |
| 412 |
remote-endpoint = <&usbdp_phy0_ss_out>; |
| 413 |
}; |
| 414 |
}; |
| 415 |
|
| 416 |
port@2 { |
| 417 |
reg = <2>; |
| 418 |
usbc0_sbu: endpoint { |
| 419 |
remote-endpoint = <&usbdp_phy0_dp_out>; |
| 420 |
}; |
| 421 |
}; |
| 422 |
}; |
| 423 |
}; |
| 424 |
}; |
| 425 |
|
| 426 |
rtc_hym8563: rtc@51 { |
| 427 |
compatible = "haoyu,hym8563"; |
| 428 |
reg = <0x51>; |
| 429 |
#clock-cells = <0>; |
| 430 |
clock-output-names = "hym8563"; |
| 431 |
interrupt-parent = <&gpio0>; |
| 432 |
interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>; |
| 433 |
pinctrl-0 = <&hym8563_int>, <&clk32k_in>; |
| 434 |
pinctrl-names = "default"; |
| 435 |
wakeup-source; |
| 436 |
}; |
| 437 |
}; |
| 438 |
|
| 439 |
&i2c7 { |
| 440 |
pinctrl-0 = <&i2c7m0_xfer>; |
| 441 |
status = "okay"; |
| 442 |
|
| 443 |
es8388: audio-codec@11 { |
| 444 |
compatible = "everest,es8388", "everest,es8328"; |
| 445 |
reg = <0x11>; |
| 446 |
assigned-clock-rates = <12288000>; |
| 447 |
assigned-clocks = <&cru I2S0_8CH_MCLKOUT>; |
| 448 |
AVDD-supply = <&vcc_3v3_s3>; |
| 449 |
clocks = <&cru I2S0_8CH_MCLKOUT>; |
| 450 |
DVDD-supply = <&vcc_1v8_s3>; |
| 451 |
HPVDD-supply = <&vcc_3v3_s3>; |
| 452 |
PVDD-supply = <&vcc_1v8_s3>; |
| 453 |
#sound-dai-cells = <0>; |
| 454 |
|
| 455 |
port { |
| 456 |
es8388_p0_0: endpoint { |
| 457 |
remote-endpoint = <&i2s0_8ch_p0_0>; |
| 458 |
}; |
| 459 |
}; |
| 460 |
}; |
| 461 |
}; |
| 462 |
|
| 463 |
&i2s0_8ch { |
| 464 |
pinctrl-names = "default"; |
| 465 |
pinctrl-0 = <&i2s0_lrck |
| 466 |
&i2s0_mclk |
| 467 |
&i2s0_sclk |
| 468 |
&i2s0_sdi0 |
| 469 |
&i2s0_sdo0>; |
| 470 |
status = "okay"; |
| 471 |
|
| 472 |
i2s0_8ch_p0: port { |
| 473 |
i2s0_8ch_p0_0: endpoint { |
| 474 |
dai-format = "i2s"; |
| 475 |
mclk-fs = <256>; |
| 476 |
remote-endpoint = <&es8388_p0_0>; |
| 477 |
}; |
| 478 |
}; |
| 479 |
}; |
| 480 |
|
| 481 |
&i2s5_8ch { |
| 482 |
status = "okay"; |
| 483 |
}; |
| 484 |
|
| 485 |
&pcie2x1l2 { |
| 486 |
pinctrl-0 = <&pcie20x1m0_perstn>, <&pcie20x1m0_clkreqn>, |
| 487 |
<&pcie20x1m0_waken>; |
| 488 |
pinctrl-names = "default"; |
| 489 |
reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>; |
| 490 |
vpcie3v3-supply = <&vcc_3v3_s3>; |
| 491 |
status = "okay"; |
| 492 |
}; |
| 493 |
|
| 494 |
&pd_gpu { |
| 495 |
domain-supply = <&vdd_gpu_s0>; |
| 496 |
}; |
| 497 |
|
| 498 |
&pd_npu { |
| 499 |
domain-supply = <&vdd_npu_s0>; |
| 500 |
}; |
| 501 |
|
| 502 |
&pinctrl { |
| 503 |
bluetooth-pins { |
| 504 |
bt_reset: bt-reset { |
| 505 |
rockchip,pins = |
| 506 |
<0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 507 |
}; |
| 508 |
|
| 509 |
bt_wake_dev: bt-wake-dev { |
| 510 |
rockchip,pins = |
| 511 |
<0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; |
| 512 |
}; |
| 513 |
|
| 514 |
bt_wake_host: bt-wake-host { |
| 515 |
rockchip,pins = |
| 516 |
<0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_down>; |
| 517 |
}; |
| 518 |
}; |
| 519 |
|
| 520 |
hym8563 { |
| 521 |
|
| 522 |
hym8563_int: hym8563-int { |
| 523 |
rockchip,pins = |
| 524 |
<0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 525 |
}; |
| 526 |
}; |
| 527 |
|
| 528 |
usb-typec { |
| 529 |
usbc0_int: usbc0-int { |
| 530 |
rockchip,pins = |
| 531 |
<0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>; |
| 532 |
}; |
| 533 |
|
| 534 |
typec5v_pwren: typec5v-pwren { |
| 535 |
rockchip,pins = |
| 536 |
<4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 537 |
}; |
| 538 |
}; |
| 539 |
|
| 540 |
wifi { |
| 541 |
wifi_enable_h: wifi-enable-h { |
| 542 |
rockchip,pins = |
| 543 |
<0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>; |
| 544 |
}; |
| 545 |
|
| 546 |
wifi_host_wake_irq: wifi-host-wake-irq { |
| 547 |
rockchip,pins = |
| 548 |
<0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>; |
| 549 |
}; |
| 550 |
}; |
| 551 |
}; |
| 552 |
|
| 553 |
&rknn_core_0 { |
| 554 |
npu-supply = <&vdd_npu_s0>; |
| 555 |
sram-supply = <&vdd_npu_s0>; |
| 556 |
status = "okay"; |
| 557 |
}; |
| 558 |
|
| 559 |
&rknn_core_1 { |
| 560 |
npu-supply = <&vdd_npu_s0>; |
| 561 |
sram-supply = <&vdd_npu_s0>; |
| 562 |
status = "okay"; |
| 563 |
}; |
| 564 |
|
| 565 |
&rknn_core_2 { |
| 566 |
npu-supply = <&vdd_npu_s0>; |
| 567 |
sram-supply = <&vdd_npu_s0>; |
| 568 |
status = "okay"; |
| 569 |
}; |
| 570 |
|
| 571 |
&rknn_mmu_0 { |
| 572 |
status = "okay"; |
| 573 |
}; |
| 574 |
|
| 575 |
&rknn_mmu_1 { |
| 576 |
status = "okay"; |
| 577 |
}; |
| 578 |
|
| 579 |
&rknn_mmu_2 { |
| 580 |
status = "okay"; |
| 581 |
}; |
| 582 |
|
| 583 |
&saradc { |
| 584 |
vref-supply = <&vcca_1v8_s0>; |
| 585 |
status = "okay"; |
| 586 |
}; |
| 587 |
|
| 588 |
&sdhci { |
| 589 |
bus-width = <8>; |
| 590 |
mmc-hs400-1_8v; |
| 591 |
mmc-hs400-enhanced-strobe; |
| 592 |
no-sd; |
| 593 |
no-sdio; |
| 594 |
non-removable; |
| 595 |
vmmc-supply = <&vcc_3v3_s0>; |
| 596 |
vqmmc-supply = <&vcc_1v8_s3>; |
| 597 |
status = "okay"; |
| 598 |
}; |
| 599 |
|
| 600 |
&sdio { |
| 601 |
#address-cells = <1>; |
| 602 |
bus-width = <4>; |
| 603 |
cap-sd-highspeed; |
| 604 |
cap-sdio-irq; |
| 605 |
disable-wp; |
| 606 |
keep-power-in-suspend; |
| 607 |
max-frequency = <100000000>; |
| 608 |
mmc-pwrseq = <&sdio_pwrseq>; |
| 609 |
no-mmc; |
| 610 |
no-sd; |
| 611 |
non-removable; |
| 612 |
sd-uhs-sdr104; |
| 613 |
#size-cells = <0>; |
| 614 |
vmmc-supply = <&vcc_3v3_s3>; |
| 615 |
vqmmc-supply = <&vcc_1v8_s3>; |
| 616 |
status = "okay"; |
| 617 |
|
| 618 |
sdio_wifi: wifi@1 { |
| 619 |
reg = <1>; |
| 620 |
interrupt-parent = <&gpio0>; |
| 621 |
interrupts = <RK_PA0 IRQ_TYPE_LEVEL_LOW>; |
| 622 |
interrupt-names = "host-wake"; |
| 623 |
pinctrl-0 = <&wifi_host_wake_irq>; |
| 624 |
pinctrl-names = "default"; |
| 625 |
}; |
| 626 |
}; |
| 627 |
|
| 628 |
&sdmmc { |
| 629 |
bus-width = <4>; |
| 630 |
cap-mmc-highspeed; |
| 631 |
cap-sd-highspeed; |
| 632 |
disable-wp; |
| 633 |
no-sdio; |
| 634 |
no-mmc; |
| 635 |
sd-uhs-sdr104; |
| 636 |
vmmc-supply = <&vcc_3v3_s3>; |
| 637 |
vqmmc-supply = <&vccio_sd_s0>; |
| 638 |
status = "okay"; |
| 639 |
}; |
| 640 |
|
| 641 |
&spi2 { |
| 642 |
#address-cells = <1>; |
| 643 |
assigned-clocks = <&cru CLK_SPI2>; |
| 644 |
assigned-clock-rates = <200000000>; |
| 645 |
num-cs = <1>; |
| 646 |
pinctrl-0 = <&spi2m2_pins>, <&spi2m2_cs0>; |
| 647 |
pinctrl-names = "default"; |
| 648 |
#size-cells = <0>; |
| 649 |
status = "okay"; |
| 650 |
|
| 651 |
pmic@0 { |
| 652 |
compatible = "rockchip,rk806"; |
| 653 |
reg = <0x0>; |
| 654 |
#gpio-cells = <2>; |
| 655 |
gpio-controller; |
| 656 |
interrupt-parent = <&gpio0>; |
| 657 |
interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>; |
| 658 |
pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, |
| 659 |
<&rk806_dvs2_null>, <&rk806_dvs3_null>; |
| 660 |
pinctrl-names = "default"; |
| 661 |
spi-max-frequency = <1000000>; |
| 662 |
|
| 663 |
vcc1-supply = <&vcc5v0_sys>; |
| 664 |
vcc2-supply = <&vcc5v0_sys>; |
| 665 |
vcc3-supply = <&vcc5v0_sys>; |
| 666 |
vcc4-supply = <&vcc5v0_sys>; |
| 667 |
vcc5-supply = <&vcc5v0_sys>; |
| 668 |
vcc6-supply = <&vcc5v0_sys>; |
| 669 |
vcc7-supply = <&vcc5v0_sys>; |
| 670 |
vcc8-supply = <&vcc5v0_sys>; |
| 671 |
vcc9-supply = <&vcc5v0_sys>; |
| 672 |
vcc10-supply = <&vcc5v0_sys>; |
| 673 |
vcc11-supply = <&vcc_2v0_pldo_s3>; |
| 674 |
vcc12-supply = <&vcc5v0_sys>; |
| 675 |
vcc13-supply = <&vcc_1v1_nldo_s3>; |
| 676 |
vcc14-supply = <&vcc_1v1_nldo_s3>; |
| 677 |
vcca-supply = <&vcc5v0_sys>; |
| 678 |
|
| 679 |
rk806_dvs1_null: dvs1-null-pins { |
| 680 |
pins = "gpio_pwrctrl1"; |
| 681 |
function = "pin_fun0"; |
| 682 |
}; |
| 683 |
|
| 684 |
rk806_dvs2_null: dvs2-null-pins { |
| 685 |
pins = "gpio_pwrctrl2"; |
| 686 |
function = "pin_fun0"; |
| 687 |
}; |
| 688 |
|
| 689 |
rk806_dvs3_null: dvs3-null-pins { |
| 690 |
pins = "gpio_pwrctrl3"; |
| 691 |
function = "pin_fun0"; |
| 692 |
}; |
| 693 |
|
| 694 |
regulators { |
| 695 |
vdd_gpu_s0: dcdc-reg1 { |
| 696 |
regulator-boot-on; |
| 697 |
regulator-enable-ramp-delay = <400>; |
| 698 |
regulator-max-microvolt = <950000>; |
| 699 |
regulator-min-microvolt = <550000>; |
| 700 |
regulator-name = "vdd_gpu_s0"; |
| 701 |
regulator-ramp-delay = <12500>; |
| 702 |
regulator-state-mem { |
| 703 |
regulator-off-in-suspend; |
| 704 |
}; |
| 705 |
}; |
| 706 |
|
| 707 |
vdd_cpu_lit_s0: dcdc-reg2 { |
| 708 |
regulator-always-on; |
| 709 |
regulator-boot-on; |
| 710 |
regulator-max-microvolt = <950000>; |
| 711 |
regulator-min-microvolt = <550000>; |
| 712 |
regulator-ramp-delay = <12500>; |
| 713 |
regulator-name = "vdd_cpu_lit_s0"; |
| 714 |
regulator-state-mem { |
| 715 |
regulator-off-in-suspend; |
| 716 |
}; |
| 717 |
}; |
| 718 |
|
| 719 |
vdd_logic_s0: dcdc-reg3 { |
| 720 |
regulator-always-on; |
| 721 |
regulator-boot-on; |
| 722 |
regulator-max-microvolt = <750000>; |
| 723 |
regulator-min-microvolt = <675000>; |
| 724 |
regulator-name = "vdd_logic_s0"; |
| 725 |
regulator-ramp-delay = <12500>; |
| 726 |
regulator-state-mem { |
| 727 |
regulator-on-in-suspend; |
| 728 |
regulator-suspend-microvolt = <750000>; |
| 729 |
}; |
| 730 |
}; |
| 731 |
|
| 732 |
vdd_vdenc_s0: dcdc-reg4 { |
| 733 |
regulator-always-on; |
| 734 |
regulator-boot-on; |
| 735 |
regulator-max-microvolt = <950000>; |
| 736 |
regulator-min-microvolt = <550000>; |
| 737 |
regulator-name = "vdd_vdenc_s0"; |
| 738 |
regulator-ramp-delay = <12500>; |
| 739 |
regulator-state-mem { |
| 740 |
regulator-off-in-suspend; |
| 741 |
}; |
| 742 |
}; |
| 743 |
|
| 744 |
vdd_ddr_s0: dcdc-reg5 { |
| 745 |
regulator-always-on; |
| 746 |
regulator-boot-on; |
| 747 |
regulator-min-microvolt = <750000>; |
| 748 |
regulator-max-microvolt = <850000>; |
| 749 |
regulator-ramp-delay = <12500>; |
| 750 |
regulator-name = "vdd_ddr_s0"; |
| 751 |
regulator-state-mem { |
| 752 |
regulator-off-in-suspend; |
| 753 |
regulator-suspend-microvolt = <850000>; |
| 754 |
}; |
| 755 |
}; |
| 756 |
|
| 757 |
vdd2_ddr_s3: dcdc-reg6 { |
| 758 |
regulator-always-on; |
| 759 |
regulator-boot-on; |
| 760 |
regulator-max-microvolt = <1100000>; |
| 761 |
regulator-min-microvolt = <1100000>; |
| 762 |
regulator-name = "vdd2_ddr_s3"; |
| 763 |
regulator-state-mem { |
| 764 |
regulator-on-in-suspend; |
| 765 |
}; |
| 766 |
}; |
| 767 |
|
| 768 |
vcc_2v0_pldo_s3: dcdc-reg7 { |
| 769 |
regulator-always-on; |
| 770 |
regulator-boot-on; |
| 771 |
regulator-max-microvolt = <2000000>; |
| 772 |
regulator-min-microvolt = <2000000>; |
| 773 |
regulator-name = "vdd_2v0_pldo_s3"; |
| 774 |
regulator-state-mem { |
| 775 |
regulator-on-in-suspend; |
| 776 |
regulator-suspend-microvolt = <2000000>; |
| 777 |
}; |
| 778 |
}; |
| 779 |
|
| 780 |
vcc_3v3_s3: dcdc-reg8 { |
| 781 |
regulator-always-on; |
| 782 |
regulator-boot-on; |
| 783 |
regulator-max-microvolt = <3300000>; |
| 784 |
regulator-min-microvolt = <3300000>; |
| 785 |
regulator-name = "vcc_3v3_s3"; |
| 786 |
regulator-state-mem { |
| 787 |
regulator-on-in-suspend; |
| 788 |
regulator-suspend-microvolt = <3300000>; |
| 789 |
}; |
| 790 |
}; |
| 791 |
|
| 792 |
vddq_ddr_s0: dcdc-reg9 { |
| 793 |
regulator-always-on; |
| 794 |
regulator-boot-on; |
| 795 |
regulator-max-microvolt = <600000>; |
| 796 |
regulator-min-microvolt = <600000>; |
| 797 |
regulator-name = "vddq_ddr_s0"; |
| 798 |
regulator-state-mem { |
| 799 |
regulator-off-in-suspend; |
| 800 |
}; |
| 801 |
}; |
| 802 |
|
| 803 |
vcc_1v8_s3: dcdc-reg10 { |
| 804 |
regulator-always-on; |
| 805 |
regulator-boot-on; |
| 806 |
regulator-max-microvolt = <1800000>; |
| 807 |
regulator-min-microvolt = <1800000>; |
| 808 |
regulator-name = "vcc_1v8_s3"; |
| 809 |
regulator-state-mem { |
| 810 |
regulator-on-in-suspend; |
| 811 |
regulator-suspend-microvolt = <1800000>; |
| 812 |
}; |
| 813 |
}; |
| 814 |
|
| 815 |
vcc_1v8_s0: pldo-reg1 { |
| 816 |
regulator-always-on; |
| 817 |
regulator-boot-on; |
| 818 |
regulator-max-microvolt = <1800000>; |
| 819 |
regulator-min-microvolt = <1800000>; |
| 820 |
regulator-name = "vcc_1v8_s0"; |
| 821 |
regulator-state-mem { |
| 822 |
regulator-off-in-suspend; |
| 823 |
}; |
| 824 |
}; |
| 825 |
|
| 826 |
vcca_1v8_s0: pldo-reg2 { |
| 827 |
regulator-always-on; |
| 828 |
regulator-boot-on; |
| 829 |
regulator-max-microvolt = <1800000>; |
| 830 |
regulator-min-microvolt = <1800000>; |
| 831 |
regulator-name = "vcca_1v8_s0"; |
| 832 |
regulator-state-mem { |
| 833 |
regulator-off-in-suspend; |
| 834 |
regulator-suspend-microvolt = <1800000>; |
| 835 |
}; |
| 836 |
}; |
| 837 |
|
| 838 |
vdda_1v2_s0: pldo-reg3 { |
| 839 |
regulator-always-on; |
| 840 |
regulator-boot-on; |
| 841 |
regulator-max-microvolt = <1200000>; |
| 842 |
regulator-min-microvolt = <1200000>; |
| 843 |
regulator-name = "vdda_1v2_s0"; |
| 844 |
regulator-state-mem { |
| 845 |
regulator-off-in-suspend; |
| 846 |
}; |
| 847 |
}; |
| 848 |
|
| 849 |
vcca_3v3_s0: pldo-reg4 { |
| 850 |
regulator-always-on; |
| 851 |
regulator-boot-on; |
| 852 |
regulator-max-microvolt = <3300000>; |
| 853 |
regulator-min-microvolt = <3300000>; |
| 854 |
regulator-name = "vcca_3v3_s0"; |
| 855 |
regulator-state-mem { |
| 856 |
regulator-off-in-suspend; |
| 857 |
}; |
| 858 |
}; |
| 859 |
|
| 860 |
vccio_sd_s0: pldo-reg5 { |
| 861 |
regulator-always-on; |
| 862 |
regulator-boot-on; |
| 863 |
regulator-max-microvolt = <3300000>; |
| 864 |
regulator-min-microvolt = <1800000>; |
| 865 |
regulator-name = "vccio_sd_s0"; |
| 866 |
regulator-state-mem { |
| 867 |
regulator-off-in-suspend; |
| 868 |
}; |
| 869 |
}; |
| 870 |
|
| 871 |
vcc_1v8_s3_pldo6: pldo-reg6 { |
| 872 |
regulator-always-on; |
| 873 |
regulator-boot-on; |
| 874 |
regulator-max-microvolt = <1800000>; |
| 875 |
regulator-min-microvolt = <1800000>; |
| 876 |
regulator-name = "vcc_1v8_s3_pldo6"; |
| 877 |
regulator-state-mem { |
| 878 |
regulator-on-in-suspend; |
| 879 |
regulator-suspend-microvolt = <1800000>; |
| 880 |
}; |
| 881 |
}; |
| 882 |
|
| 883 |
vdd_0v75_s3: nldo-reg1 { |
| 884 |
regulator-always-on; |
| 885 |
regulator-boot-on; |
| 886 |
regulator-max-microvolt = <750000>; |
| 887 |
regulator-min-microvolt = <750000>; |
| 888 |
regulator-name = "vdd_0v75_s3"; |
| 889 |
regulator-state-mem { |
| 890 |
regulator-on-in-suspend; |
| 891 |
regulator-suspend-microvolt = <750000>; |
| 892 |
}; |
| 893 |
}; |
| 894 |
|
| 895 |
vdda_ddr_pll_s0: nldo-reg2 { |
| 896 |
regulator-always-on; |
| 897 |
regulator-boot-on; |
| 898 |
regulator-max-microvolt = <850000>; |
| 899 |
regulator-min-microvolt = <850000>; |
| 900 |
regulator-name = "vdda_ddr_pll_s0"; |
| 901 |
regulator-state-mem { |
| 902 |
regulator-off-in-suspend; |
| 903 |
regulator-suspend-microvolt = <850000>; |
| 904 |
}; |
| 905 |
}; |
| 906 |
|
| 907 |
avdd_0v75_s0: nldo-reg3 { |
| 908 |
regulator-always-on; |
| 909 |
regulator-boot-on; |
| 910 |
regulator-max-microvolt = <750000>; |
| 911 |
regulator-min-microvolt = <750000>; |
| 912 |
regulator-name = "avdd_0v75_s0"; |
| 913 |
regulator-state-mem { |
| 914 |
regulator-off-in-suspend; |
| 915 |
}; |
| 916 |
}; |
| 917 |
|
| 918 |
vdda_0v85_s0: nldo-reg4 { |
| 919 |
regulator-always-on; |
| 920 |
regulator-boot-on; |
| 921 |
regulator-min-microvolt = <850000>; |
| 922 |
regulator-max-microvolt = <850000>; |
| 923 |
regulator-name = "vdda_0v85_s0"; |
| 924 |
regulator-state-mem { |
| 925 |
regulator-off-in-suspend; |
| 926 |
}; |
| 927 |
}; |
| 928 |
|
| 929 |
/* Schematics show not in use */ |
| 930 |
nldo-reg5 { |
| 931 |
}; |
| 932 |
}; |
| 933 |
}; |
| 934 |
}; |
| 935 |
|
| 936 |
&tsadc { |
| 937 |
status = "okay"; |
| 938 |
}; |
| 939 |
|
| 940 |
&u2phy0 { |
| 941 |
status = "okay"; |
| 942 |
}; |
| 943 |
|
| 944 |
&u2phy0_otg { |
| 945 |
status = "okay"; |
| 946 |
}; |
| 947 |
|
| 948 |
&u2phy2 { |
| 949 |
status = "okay"; |
| 950 |
}; |
| 951 |
|
| 952 |
&u2phy2_host { |
| 953 |
phy-supply = <&vcc5v0_usb>; |
| 954 |
status = "okay"; |
| 955 |
}; |
| 956 |
|
| 957 |
&u2phy3 { |
| 958 |
status = "okay"; |
| 959 |
}; |
| 960 |
|
| 961 |
&u2phy3_host { |
| 962 |
phy-supply = <&vcc5v0_usb>; |
| 963 |
status = "okay"; |
| 964 |
}; |
| 965 |
|
| 966 |
&uart2 { |
| 967 |
pinctrl-0 = <&uart2m0_xfer>; |
| 968 |
status = "okay"; |
| 969 |
}; |
| 970 |
|
| 971 |
&uart9 { |
| 972 |
pinctrl-0 = <&uart9m2_xfer>, <&uart9m2_ctsn>, <&uart9m2_rtsn>; |
| 973 |
pinctrl-names = "default"; |
| 974 |
uart-has-rtscts; |
| 975 |
status = "okay"; |
| 976 |
|
| 977 |
bluetooth { |
| 978 |
compatible = "realtek,rtl8821cs-bt", |
| 979 |
"realtek,rtl8723bs-bt"; |
| 980 |
device-wake-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; |
| 981 |
enable-gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; |
| 982 |
host-wake-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; |
| 983 |
pinctrl-0 = <&bt_reset>, <&bt_wake_dev>, <&bt_wake_host>; |
| 984 |
pinctrl-names = "default"; |
| 985 |
}; |
| 986 |
}; |
| 987 |
|
| 988 |
&usb_host0_ehci { |
| 989 |
status = "okay"; |
| 990 |
}; |
| 991 |
|
| 992 |
&usb_host0_ohci { |
| 993 |
status = "okay"; |
| 994 |
}; |
| 995 |
|
| 996 |
&usb_host0_xhci { |
| 997 |
usb-role-switch; |
| 998 |
status = "okay"; |
| 999 |
|
| 1000 |
ports { |
| 1001 |
#address-cells = <1>; |
| 1002 |
#size-cells = <0>; |
| 1003 |
|
| 1004 |
port@0 { |
| 1005 |
reg = <0>; |
| 1006 |
usb_host0_xhci_hs: endpoint { |
| 1007 |
remote-endpoint = <&usbc0_hs>; |
| 1008 |
}; |
| 1009 |
}; |
| 1010 |
|
| 1011 |
port@1 { |
| 1012 |
reg = <1>; |
| 1013 |
usb_host0_xhci_ss: endpoint { |
| 1014 |
remote-endpoint = <&usbdp_phy0_ss_in>; |
| 1015 |
}; |
| 1016 |
}; |
| 1017 |
}; |
| 1018 |
}; |
| 1019 |
|
| 1020 |
&usb_host1_ehci { |
| 1021 |
status = "okay"; |
| 1022 |
}; |
| 1023 |
|
| 1024 |
&usb_host1_ohci { |
| 1025 |
status = "okay"; |
| 1026 |
}; |
| 1027 |
|
| 1028 |
&usb_host2_xhci { |
| 1029 |
status = "okay"; |
| 1030 |
}; |
| 1031 |
|
| 1032 |
&usbdp_phy0 { |
| 1033 |
orientation-switch; |
| 1034 |
mode-switch; |
| 1035 |
sbu1-dc-gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_HIGH>; |
| 1036 |
sbu2-dc-gpios = <&gpio4 RK_PA1 GPIO_ACTIVE_HIGH>; |
| 1037 |
rockchip,dp-lane-mux = <2 3>; |
| 1038 |
status = "okay"; |
| 1039 |
|
| 1040 |
port { |
| 1041 |
#address-cells = <1>; |
| 1042 |
#size-cells = <0>; |
| 1043 |
|
| 1044 |
usbdp_phy0_ss_out: endpoint@0 { |
| 1045 |
reg = <0>; |
| 1046 |
remote-endpoint = <&usbc0_ss>; |
| 1047 |
}; |
| 1048 |
|
| 1049 |
usbdp_phy0_ss_in: endpoint@1 { |
| 1050 |
reg = <1>; |
| 1051 |
remote-endpoint = <&usb_host0_xhci_ss>; |
| 1052 |
}; |
| 1053 |
|
| 1054 |
usbdp_phy0_dp_in: endpoint@2 { |
| 1055 |
reg = <2>; |
| 1056 |
remote-endpoint = <&dp0_out_con>; |
| 1057 |
}; |
| 1058 |
|
| 1059 |
usbdp_phy0_dp_out: endpoint@3 { |
| 1060 |
reg = <3>; |
| 1061 |
remote-endpoint = <&usbc0_sbu>; |
| 1062 |
}; |
| 1063 |
}; |
| 1064 |
}; |
| 1065 |
|
| 1066 |
&vop { |
| 1067 |
status = "okay"; |
| 1068 |
}; |
| 1069 |
|
| 1070 |
&vop_mmu { |
| 1071 |
status = "okay"; |
| 1072 |
}; |
| 1073 |
|
| 1074 |
&vp0 { |
| 1075 |
vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { |
| 1076 |
reg = <ROCKCHIP_VOP2_EP_HDMI0>; |
| 1077 |
remote-endpoint = <&hdmi0_in_vp0>; |
| 1078 |
}; |
| 1079 |
}; |
| 1080 |
|
| 1081 |
&vp1 { |
| 1082 |
vp1_out_dp0: endpoint@a { |
| 1083 |
reg = <ROCKCHIP_VOP2_EP_DP0>; |
| 1084 |
remote-endpoint = <&dp0_in_vp1>; |
| 1085 |
}; |
| 1086 |
}; |