1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 3#include <dt-bindings/gpio/gpio.h> 4#include <dt-bindings/input/input.h> 5#include <dt-bindings/leds/common.h> 6#include "rk3588.dtsi" 7 8/ { 9 compatible = "forlinx,fet3588-c", "rockchip,rk3588"; 10 11 aliases { 12 mmc0 = &sdhci; 13 }; 14 15 chosen { 16 stdout-path = "serial2:1500000n8"; 17 }; 18 19 leds { 20 compatible = "gpio-leds"; 21 pinctrl-names = "default"; 22 pinctrl-0 = <&led_rgb_b>; 23 24 io-led { 25 function = LED_FUNCTION_STATUS; 26 color = <LED_COLOR_ID_BLUE>; 27 gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; 28 linux,default-trigger = "heartbeat"; 29 }; 30 }; 31 32 pcie20_avdd0v85: regulator-pcie20-avdd0v85 { 33 compatible = "regulator-fixed"; 34 regulator-name = "pcie20_avdd0v85"; 35 regulator-always-on; 36 regulator-boot-on; 37 regulator-min-microvolt = <850000>; 38 regulator-max-microvolt = <850000>; 39 vin-supply = <&vdd_0v85_s0>; 40 }; 41 42 pcie20_avdd1v8: regulator-pcie20-avdd1v8 { 43 compatible = "regulator-fixed"; 44 regulator-name = "pcie20_avdd1v8"; 45 regulator-always-on; 46 regulator-boot-on; 47 regulator-min-microvolt = <1800000>; 48 regulator-max-microvolt = <1800000>; 49 vin-supply = <&avcc_1v8_s0>; 50 }; 51 52 pcie30_avdd0v75: regulator-pcie30-avdd0v75 { 53 compatible = "regulator-fixed"; 54 regulator-name = "pcie30_avdd0v75"; 55 regulator-always-on; 56 regulator-boot-on; 57 regulator-min-microvolt = <750000>; 58 regulator-max-microvolt = <750000>; 59 vin-supply = <&avdd_0v75_s0>; 60 }; 61 62 pcie30_avdd1v8: regulator-pcie30-avdd1v8 { 63 compatible = "regulator-fixed"; 64 regulator-name = "pcie30_avdd1v8"; 65 regulator-always-on; 66 regulator-boot-on; 67 regulator-min-microvolt = <1800000>; 68 regulator-max-microvolt = <1800000>; 69 vin-supply = <&avcc_1v8_s0>; 70 }; 71 72 vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 { 73 compatible = "regulator-fixed"; 74 regulator-name = "vcc_1v1_nldo_s3"; 75 regulator-always-on; 76 regulator-boot-on; 77 regulator-min-microvolt = <1100000>; 78 regulator-max-microvolt = <1100000>; 79 vin-supply = <&vcc5v0_sys>; 80 }; 81 82 vcc4v0_sys: regulator-vcc4v0-sys { 83 compatible = "regulator-fixed"; 84 regulator-name = "vcc4v0_sys"; 85 regulator-always-on; 86 regulator-boot-on; 87 regulator-min-microvolt = <4000000>; 88 regulator-max-microvolt = <4000000>; 89 vin-supply = <&vcc12v_dcin>; 90 }; 91}; 92 93&combphy0_ps { 94 status = "okay"; 95}; 96 97&combphy1_ps { 98 status = "okay"; 99}; 100 101&combphy2_psu { 102 status = "okay"; 103}; 104 105&cpu_b0 { 106 cpu-supply = <&vdd_cpu_big0_s0>; 107 mem-supply = <&vdd_cpu_big0_s0>; 108}; 109 110&cpu_b1 { 111 cpu-supply = <&vdd_cpu_big0_s0>; 112 mem-supply = <&vdd_cpu_big0_s0>; 113}; 114 115&cpu_b2 { 116 cpu-supply = <&vdd_cpu_big1_s0>; 117 mem-supply = <&vdd_cpu_big1_s0>; 118}; 119 120&cpu_b3 { 121 cpu-supply = <&vdd_cpu_big1_s0>; 122 mem-supply = <&vdd_cpu_big1_s0>; 123}; 124 125&cpu_l0 { 126 cpu-supply = <&vdd_cpu_lit_s0>; 127 mem-supply = <&vdd_cpu_lit_mem_s0>; 128}; 129 130&cpu_l1 { 131 cpu-supply = <&vdd_cpu_lit_s0>; 132 mem-supply = <&vdd_cpu_lit_mem_s0>; 133}; 134 135&cpu_l2 { 136 cpu-supply = <&vdd_cpu_lit_s0>; 137 mem-supply = <&vdd_cpu_lit_mem_s0>; 138}; 139 140&cpu_l3 { 141 cpu-supply = <&vdd_cpu_lit_s0>; 142 mem-supply = <&vdd_cpu_lit_mem_s0>; 143}; 144 145&i2c0 { 146 pinctrl-names = "default"; 147 pinctrl-0 = <&i2c0m2_xfer>; 148 status = "okay"; 149 150 vdd_cpu_big0_s0: regulator@42 { 151 compatible = "rockchip,rk8602"; 152 reg = <0x42>; 153 fcs,suspend-voltage-selector = <1>; 154 regulator-name = "vdd_cpu_big0_s0"; 155 regulator-always-on; 156 regulator-boot-on; 157 regulator-min-microvolt = <550000>; 158 regulator-max-microvolt = <1050000>; 159 regulator-ramp-delay = <2300>; 160 vin-supply = <&vcc4v0_sys>; 161 162 regulator-state-mem { 163 regulator-off-in-suspend; 164 }; 165 }; 166 167 vdd_cpu_big1_s0: regulator@43 { 168 compatible = "rockchip,rk8603", "rockchip,rk8602"; 169 reg = <0x43>; 170 fcs,suspend-voltage-selector = <1>; 171 regulator-name = "vdd_cpu_big1_s0"; 172 regulator-always-on; 173 regulator-boot-on; 174 regulator-min-microvolt = <550000>; 175 regulator-max-microvolt = <1050000>; 176 regulator-ramp-delay = <2300>; 177 vin-supply = <&vcc4v0_sys>; 178 179 regulator-state-mem { 180 regulator-off-in-suspend; 181 }; 182 }; 183}; 184 185&i2c1 { 186 status = "okay"; 187 pinctrl-names = "default"; 188 pinctrl-0 = <&i2c1m2_xfer>; 189 190 vdd_npu_s0: regulator@42 { 191 compatible = "rockchip,rk8602"; 192 reg = <0x42>; 193 fcs,suspend-voltage-selector = <1>; 194 regulator-name = "vdd_npu_s0"; 195 regulator-always-on; 196 regulator-boot-on; 197 regulator-min-microvolt = <550000>; 198 regulator-max-microvolt = <950000>; 199 regulator-ramp-delay = <2300>; 200 vin-supply = <&vcc4v0_sys>; 201 202 regulator-state-mem { 203 regulator-off-in-suspend; 204 }; 205 }; 206}; 207 208&pd_gpu { 209 domain-supply = <&vdd_gpu_s0>; 210}; 211 212&pinctrl { 213 leds { 214 led_rgb_b: led-rgb-b { 215 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; 216 }; 217 }; 218}; 219 220&sdhci { 221 bus-width = <8>; 222 mmc-hs400-1_8v; 223 mmc-hs400-enhanced-strobe; 224 no-sdio; 225 no-sd; 226 non-removable; 227 status = "okay"; 228}; 229 230&spi2 { 231 status = "okay"; 232 assigned-clocks = <&cru CLK_SPI2>; 233 assigned-clock-rates = <200000000>; 234 pinctrl-names = "default"; 235 pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>; 236 num-cs = <1>; 237 238 pmic@0 { 239 compatible = "rockchip,rk806"; 240 spi-max-frequency = <1000000>; 241 reg = <0x0>; 242 243 interrupt-parent = <&gpio0>; 244 interrupts = <7 IRQ_TYPE_LEVEL_LOW>; 245 246 pinctrl-names = "default"; 247 pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, 248 <&rk806_dvs2_null>, <&rk806_dvs3_null>; 249 250 system-power-controller; 251 252 vcc1-supply = <&vcc5v0_sys>; 253 vcc2-supply = <&vcc5v0_sys>; 254 vcc3-supply = <&vcc5v0_sys>; 255 vcc4-supply = <&vcc5v0_sys>; 256 vcc5-supply = <&vcc5v0_sys>; 257 vcc6-supply = <&vcc5v0_sys>; 258 vcc7-supply = <&vcc5v0_sys>; 259 vcc8-supply = <&vcc5v0_sys>; 260 vcc9-supply = <&vcc5v0_sys>; 261 vcc10-supply = <&vcc5v0_sys>; 262 vcc11-supply = <&vcc_2v0_pldo_s3>; 263 vcc12-supply = <&vcc5v0_sys>; 264 vcc13-supply = <&vcc_1v1_nldo_s3>; 265 vcc14-supply = <&vcc_1v1_nldo_s3>; 266 vcca-supply = <&vcc5v0_sys>; 267 268 gpio-controller; 269 #gpio-cells = <2>; 270 271 rk806_dvs1_null: dvs1-null-pins { 272 pins = "gpio_pwrctrl1"; 273 function = "pin_fun0"; 274 }; 275 276 rk806_dvs2_null: dvs2-null-pins { 277 pins = "gpio_pwrctrl2"; 278 function = "pin_fun0"; 279 }; 280 281 rk806_dvs3_null: dvs3-null-pins { 282 pins = "gpio_pwrctrl3"; 283 function = "pin_fun0"; 284 }; 285 286 regulators { 287 vdd_gpu_s0: vdd_gpu_mem_s0: dcdc-reg1 { 288 regulator-boot-on; 289 regulator-min-microvolt = <550000>; 290 regulator-max-microvolt = <950000>; 291 regulator-ramp-delay = <12500>; 292 regulator-name = "vdd_gpu_s0"; 293 regulator-enable-ramp-delay = <400>; 294 295 regulator-state-mem { 296 regulator-off-in-suspend; 297 }; 298 }; 299 300 vdd_cpu_lit_s0: vdd_cpu_lit_mem_s0: dcdc-reg2 { 301 regulator-always-on; 302 regulator-boot-on; 303 regulator-min-microvolt = <550000>; 304 regulator-max-microvolt = <950000>; 305 regulator-ramp-delay = <12500>; 306 regulator-name = "vdd_cpu_lit_s0"; 307 308 regulator-state-mem { 309 regulator-off-in-suspend; 310 }; 311 }; 312 313 vdd_log_s0: dcdc-reg3 { 314 regulator-always-on; 315 regulator-boot-on; 316 regulator-min-microvolt = <675000>; 317 regulator-max-microvolt = <750000>; 318 regulator-ramp-delay = <12500>; 319 regulator-name = "vdd_log_s0"; 320 321 regulator-state-mem { 322 regulator-off-in-suspend; 323 regulator-suspend-microvolt = <750000>; 324 }; 325 }; 326 327 vdd_vdenc_s0: vdd_vdenc_mem_s0: dcdc-reg4 { 328 regulator-always-on; 329 regulator-boot-on; 330 regulator-min-microvolt = <550000>; 331 regulator-max-microvolt = <950000>; 332 regulator-ramp-delay = <12500>; 333 regulator-name = "vdd_vdenc_s0"; 334 335 regulator-state-mem { 336 regulator-off-in-suspend; 337 }; 338 }; 339 340 vdd_ddr_s0: dcdc-reg5 { 341 regulator-always-on; 342 regulator-boot-on; 343 regulator-min-microvolt = <675000>; 344 regulator-max-microvolt = <900000>; 345 regulator-ramp-delay = <12500>; 346 regulator-name = "vdd_ddr_s0"; 347 348 regulator-state-mem { 349 regulator-off-in-suspend; 350 regulator-suspend-microvolt = <850000>; 351 }; 352 }; 353 354 vdd2_ddr_s3: dcdc-reg6 { 355 regulator-always-on; 356 regulator-boot-on; 357 regulator-name = "vdd2_ddr_s3"; 358 359 regulator-state-mem { 360 regulator-on-in-suspend; 361 }; 362 }; 363 364 vcc_2v0_pldo_s3: dcdc-reg7 { 365 regulator-always-on; 366 regulator-boot-on; 367 regulator-min-microvolt = <2000000>; 368 regulator-max-microvolt = <2000000>; 369 regulator-ramp-delay = <12500>; 370 regulator-name = "vdd_2v0_pldo_s3"; 371 372 regulator-state-mem { 373 regulator-on-in-suspend; 374 regulator-suspend-microvolt = <2000000>; 375 }; 376 }; 377 378 vcc_3v3_s3: dcdc-reg8 { 379 regulator-always-on; 380 regulator-boot-on; 381 regulator-min-microvolt = <3300000>; 382 regulator-max-microvolt = <3300000>; 383 regulator-name = "vcc_3v3_s3"; 384 385 regulator-state-mem { 386 regulator-on-in-suspend; 387 regulator-suspend-microvolt = <3300000>; 388 }; 389 }; 390 391 vddq_ddr_s0: dcdc-reg9 { 392 regulator-always-on; 393 regulator-boot-on; 394 regulator-name = "vddq_ddr_s0"; 395 396 regulator-state-mem { 397 regulator-off-in-suspend; 398 }; 399 }; 400 401 vcc_1v8_s3: dcdc-reg10 { 402 regulator-always-on; 403 regulator-boot-on; 404 regulator-min-microvolt = <1800000>; 405 regulator-max-microvolt = <1800000>; 406 regulator-name = "vcc_1v8_s3"; 407 408 regulator-state-mem { 409 regulator-on-in-suspend; 410 regulator-suspend-microvolt = <1800000>; 411 }; 412 }; 413 414 avcc_1v8_s0: pldo-reg1 { 415 regulator-always-on; 416 regulator-boot-on; 417 regulator-min-microvolt = <1800000>; 418 regulator-max-microvolt = <1800000>; 419 regulator-name = "avcc_1v8_s0"; 420 421 regulator-state-mem { 422 regulator-off-in-suspend; 423 }; 424 }; 425 426 vcc_1v8_s0: pldo-reg2 { 427 regulator-always-on; 428 regulator-boot-on; 429 regulator-min-microvolt = <1800000>; 430 regulator-max-microvolt = <1800000>; 431 regulator-name = "vcc_1v8_s0"; 432 433 regulator-state-mem { 434 regulator-off-in-suspend; 435 regulator-suspend-microvolt = <1800000>; 436 }; 437 }; 438 439 avdd_1v2_s0: pldo-reg3 { 440 regulator-always-on; 441 regulator-boot-on; 442 regulator-min-microvolt = <1200000>; 443 regulator-max-microvolt = <1200000>; 444 regulator-name = "avdd_1v2_s0"; 445 446 regulator-state-mem { 447 regulator-off-in-suspend; 448 }; 449 }; 450 451 vcc_3v3_s0: pldo-reg4 { 452 regulator-always-on; 453 regulator-boot-on; 454 regulator-min-microvolt = <3300000>; 455 regulator-max-microvolt = <3300000>; 456 regulator-ramp-delay = <12500>; 457 regulator-name = "vcc_3v3_s0"; 458 459 regulator-state-mem { 460 regulator-off-in-suspend; 461 }; 462 }; 463 464 vccio_sd_s0: pldo-reg5 { 465 regulator-always-on; 466 regulator-boot-on; 467 regulator-min-microvolt = <1800000>; 468 regulator-max-microvolt = <3300000>; 469 regulator-ramp-delay = <12500>; 470 regulator-name = "vccio_sd_s0"; 471 472 regulator-state-mem { 473 regulator-off-in-suspend; 474 }; 475 }; 476 477 pldo6_s3: pldo-reg6 { 478 regulator-always-on; 479 regulator-boot-on; 480 regulator-min-microvolt = <1800000>; 481 regulator-max-microvolt = <1800000>; 482 regulator-name = "pldo6_s3"; 483 484 regulator-state-mem { 485 regulator-on-in-suspend; 486 regulator-suspend-microvolt = <1800000>; 487 }; 488 }; 489 490 vdd_0v75_s3: nldo-reg1 { 491 regulator-always-on; 492 regulator-boot-on; 493 regulator-min-microvolt = <750000>; 494 regulator-max-microvolt = <750000>; 495 regulator-name = "vdd_0v75_s3"; 496 497 regulator-state-mem { 498 regulator-on-in-suspend; 499 regulator-suspend-microvolt = <750000>; 500 }; 501 }; 502 503 vdd_ddr_pll_s0: nldo-reg2 { 504 regulator-always-on; 505 regulator-boot-on; 506 regulator-min-microvolt = <850000>; 507 regulator-max-microvolt = <850000>; 508 regulator-name = "vdd_ddr_pll_s0"; 509 510 regulator-state-mem { 511 regulator-off-in-suspend; 512 regulator-suspend-microvolt = <850000>; 513 }; 514 }; 515 516 avdd_0v75_s0: nldo-reg3 { 517 regulator-always-on; 518 regulator-boot-on; 519 regulator-min-microvolt = <750000>; 520 regulator-max-microvolt = <750000>; 521 regulator-name = "avdd_0v75_s0"; 522 523 regulator-state-mem { 524 regulator-off-in-suspend; 525 }; 526 }; 527 528 vdd_0v85_s0: nldo-reg4 { 529 regulator-always-on; 530 regulator-boot-on; 531 regulator-min-microvolt = <850000>; 532 regulator-max-microvolt = <850000>; 533 regulator-name = "vdd_0v85_s0"; 534 535 regulator-state-mem { 536 regulator-off-in-suspend; 537 }; 538 }; 539 540 vdd_0v75_s0: nldo-reg5 { 541 regulator-always-on; 542 regulator-boot-on; 543 regulator-min-microvolt = <750000>; 544 regulator-max-microvolt = <750000>; 545 regulator-name = "vdd_0v75_s0"; 546 547 regulator-state-mem { 548 regulator-off-in-suspend; 549 }; 550 }; 551 }; 552 }; 553}; 554 555&tsadc { 556 status = "okay"; 557}; 558 559&uart2 { 560 pinctrl-0 = <&uart2m0_xfer>; 561 status = "okay"; 562}; 563