1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2021 Rockchip Electronics Co., Ltd. 4 * 5 */ 6 7#include <dt-bindings/gpio/gpio.h> 8#include <dt-bindings/pwm/pwm.h> 9#include <dt-bindings/pinctrl/rockchip.h> 10#include <dt-bindings/input/rk-input.h> 11#include <dt-bindings/display/drm_mipi_dsi.h> 12#include <dt-bindings/display/rockchip_vop.h> 13#include <dt-bindings/sensor-dev.h> 14#include <dt-bindings/usb/pd.h> 15#include "rk3588s.dtsi" 16#include "rk3588-android.dtsi" 17#include "rk3588-rk806-single.dtsi" 18 19/ { 20 adc_keys: adc-keys { 21 compatible = "adc-keys"; 22 io-channels = <&saradc 1>; 23 io-channel-names = "buttons"; 24 keyup-threshold-microvolt = <1800000>; 25 poll-interval = <100>; 26 27 vol-up-key { 28 label = "volume up"; 29 linux,code = <KEY_VOLUMEUP>; 30 press-threshold-microvolt = <17000>; 31 }; 32 33 vol-down-key { 34 label = "volume down"; 35 linux,code = <KEY_VOLUMEDOWN>; 36 press-threshold-microvolt = <890000>; 37 }; 38 }; 39 40 backlight: backlight { 41 compatible = "pwm-backlight"; 42 pwms = <&pwm13 0 25000 0>; 43 brightness-levels = < 44 0 20 20 21 21 22 22 23 45 23 24 24 25 25 26 26 27 46 27 28 28 29 29 30 30 31 47 31 32 32 33 33 34 34 35 48 35 36 36 37 37 38 38 39 49 40 41 42 43 44 45 46 47 50 48 49 50 51 52 53 54 55 51 56 57 58 59 60 61 62 63 52 64 65 66 67 68 69 70 71 53 72 73 74 75 76 77 78 79 54 80 81 82 83 84 85 86 87 55 88 89 90 91 92 93 94 95 56 96 97 98 99 100 101 102 103 57 104 105 106 107 108 109 110 111 58 112 113 114 115 116 117 118 119 59 120 121 122 123 124 125 126 127 60 128 129 130 131 132 133 134 135 61 136 137 138 139 140 141 142 143 62 144 145 146 147 148 149 150 151 63 152 153 154 155 156 157 158 159 64 160 161 162 163 164 165 166 167 65 168 169 170 171 172 173 174 175 66 176 177 178 179 180 181 182 183 67 184 185 186 187 188 189 190 191 68 192 193 194 195 196 197 198 199 69 200 201 202 203 204 205 206 207 70 208 209 210 211 212 213 214 215 71 216 217 218 219 220 221 222 223 72 224 225 226 227 228 229 230 231 73 232 233 234 235 236 237 238 239 74 240 241 242 243 244 245 246 247 75 248 249 250 251 252 253 254 255 76 >; 77 default-brightness-level = <200>; 78 }; 79 80 combophy_avdd0v85: combophy-avdd0v85 { 81 compatible = "regulator-fixed"; 82 regulator-name = "combophy_avdd0v85"; 83 regulator-boot-on; 84 regulator-min-microvolt = <850000>; 85 regulator-max-microvolt = <850000>; 86 vin-supply = <&vdd_0v85_s0>; 87 }; 88 89 combophy_avdd1v8: combophy-avdd1v8 { 90 compatible = "regulator-fixed"; 91 regulator-name = "combophy_avdd1v8"; 92 regulator-boot-on; 93 regulator-min-microvolt = <1800000>; 94 regulator-max-microvolt = <1800000>; 95 vin-supply = <&avcc_1v8_s0>; 96 }; 97 98 charge-animation { 99 compatible = "rockchip,uboot-charge"; 100 rockchip,uboot-charge-on = <0>; 101 rockchip,android-charge-on = <1>; 102 rockchip,uboot-low-power-voltage = <3350>; 103 rockchip,screen-on-voltage = <3400>; 104 status = "okay"; 105 }; 106 107 es8388_sound: es8388-sound { 108 status = "okay"; 109 compatible = "simple-audio-card"; 110 simple-audio-card,format = "i2s"; 111 simple-audio-card,mclk-fs = <256>; 112 simple-audio-card,name = "rockchip,es8388-codec"; 113 simple-audio-card,aux-devs = <&aw87xxx_pa1 &aw87xxx_pa2>; 114 simple-audio-card,dai-link@0 { 115 format = "i2s"; 116 cpu { 117 sound-dai = <&i2s0_8ch>; 118 }; 119 codec { 120 sound-dai = <&es8388>; 121 }; 122 }; 123 }; 124 125 vcc3v3_lcd_n: vcc3v3-lcd0-n { 126 compatible = "regulator-fixed"; 127 regulator-name = "vcc3v3_lcd0_n"; 128 regulator-boot-on; 129 enable-active-high; 130 gpio = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; 131 vin-supply = <&vcc_3v3_s0>; 132 }; 133 134 VDD5V8_LCD: vcc5v0-host { 135 compatible = "regulator-fixed"; 136 regulator-name = "vcc5v0_host"; 137 regulator-boot-on; 138 regulator-always-on; 139 regulator-min-microvolt = <5000000>; 140 regulator-max-microvolt = <5000000>; 141 enable-active-high; 142 gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>; 143 /*vin-supply = <&vcc5v0_usb>;*/ 144 pinctrl-names = "default"; 145 pinctrl-0 = <&vcc5v0_host_en>; 146 }; 147 148 VEE5V8_LCD: vcc5v0-host1 { 149 compatible = "regulator-fixed"; 150 regulator-name = "vcc5v0_host1"; 151 regulator-boot-on; 152 regulator-always-on; 153 regulator-min-microvolt = <5000000>; 154 regulator-max-microvolt = <5000000>; 155 enable-active-high; 156 gpio = <&gpio1 RK_PA5 GPIO_ACTIVE_HIGH>; 157 /*vin-supply = <&vcc5v0_usb>;*/ 158 pinctrl-names = "default"; 159 pinctrl-0 = <&vcc5v0_host_en1>; 160 }; 161 162 vcc5v0_sys: vcc5v0-sys { 163 compatible = "regulator-fixed"; 164 regulator-name = "vcc5v0_sys"; 165 regulator-always-on; 166 regulator-boot-on; 167 regulator-min-microvolt = <5000000>; 168 regulator-max-microvolt = <5000000>; 169 }; 170 171 vcc_1v1_nldo_s3: vcc-1v1-nldo-s3 { 172 compatible = "regulator-fixed"; 173 regulator-name = "vcc_1v1_nldo_s3"; 174 regulator-always-on; 175 regulator-boot-on; 176 regulator-min-microvolt = <1100000>; 177 regulator-max-microvolt = <1100000>; 178 vin-supply = <&vcc5v0_sys>; 179 }; 180 181 wireless_bluetooth: wireless-bluetooth { 182 compatible = "bluetooth-platdata"; 183 clocks = <&hym8563>; 184 clock-names = "ext_clock"; 185 uart_rts_gpios = <&gpio3 RK_PA4 GPIO_ACTIVE_LOW>; 186 pinctrl-names = "default", "rts_gpio"; 187 pinctrl-0 = <&uart8m1_rtsn>, <&bt_reset_gpio>, <&bt_wake_gpio>, <&bt_wake_host_irq>; 188 pinctrl-1 = <&uart8_gpios>; 189 BT,reset_gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>; 190 BT,wake_gpio = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; 191 BT,wake_host_irq = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>; 192 status = "okay"; 193 }; 194 195 wireless_wlan: wireless-wlan { 196 compatible = "wlan-platdata"; 197 wifi_chip_type = "ap6255"; 198 pinctrl-names = "default"; 199 pinctrl-0 = <&wifi_host_wake_irq>, <&wifi_poweren_gpio>; 200 WIFI,host_wake_irq = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; 201 WIFI,poweren_gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; 202 status = "okay"; 203 }; 204}; 205 206&combphy0_ps { 207 status = "okay"; 208}; 209 210&combphy2_psu { 211 status = "okay"; 212}; 213 214&cpu_l0 { 215 cpu-supply = <&vdd_cpu_lit_s0>; 216 mem-supply = <&vdd_cpu_lit_mem_s0>; 217}; 218 219&cpu_b0 { 220 cpu-supply = <&vdd_cpu_big0_s0>; 221 mem-supply = <&vdd_cpu_big0_mem_s0>; 222}; 223 224&cpu_b2 { 225 cpu-supply = <&vdd_cpu_big1_s0>; 226 mem-supply = <&vdd_cpu_big1_mem_s0>; 227}; 228 229&dmc { 230 system-status-level = < 231 /*system status freq level*/ 232 SYS_STATUS_NORMAL DMC_FREQ_LEVEL_MID_HIGH 233 SYS_STATUS_REBOOT DMC_FREQ_LEVEL_HIGH 234 SYS_STATUS_SUSPEND DMC_FREQ_LEVEL_LOW 235 SYS_STATUS_BOOST DMC_FREQ_LEVEL_HIGH 236 SYS_STATUS_ISP DMC_FREQ_LEVEL_HIGH 237 SYS_STATUS_PERFORMANCE DMC_FREQ_LEVEL_HIGH 238 SYS_STATUS_DUALVIEW DMC_FREQ_LEVEL_HIGH 239 >; 240}; 241 242&dp0 { 243 status = "disabled"; 244}; 245 246&dp0_in_vp1 { 247 status = "okay"; 248}; 249 250&dsi0_in_vp2 { 251 status = "okay"; 252}; 253 254&dsi0_in_vp3 { 255 status = "disabled"; 256}; 257 258/* 259 * mipi_dcphy0 needs to be enabled 260 * when dsi0 is enabled 261 */ 262&dsi0 { 263 status = "okay"; 264 rockchip,dual-channel = <&dsi1>; 265 //rockchip,lane-rate = <1000>; 266 dsi0_panel: panel@0 { 267 status = "okay"; 268 compatible = "simple-panel-dsi"; 269 reg = <0>; 270 backlight = <&backlight>; 271 reset-delay-ms = <60>; 272 enable-delay-ms = <60>; 273 prepare-delay-ms = <60>; 274 unprepare-delay-ms = <60>; 275 disable-delay-ms = <60>; 276 dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | 277 MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>; 278 dsi,format = <MIPI_DSI_FMT_RGB888>; 279 dsi,lanes = <4>; 280 panel-init-sequence = [ 281 23 00 02 FE 21 282 23 00 02 04 00 283 23 00 02 00 64 284 23 00 02 2A 00 285 23 00 02 26 64 286 23 00 02 54 00 287 23 00 02 50 64 288 23 00 02 7B 00 289 23 00 02 77 64 290 23 00 02 A2 00 291 23 00 02 9D 64 292 23 00 02 C9 00 293 23 00 02 C5 64 294 23 00 02 01 71 295 23 00 02 27 71 296 23 00 02 51 71 297 23 00 02 78 71 298 23 00 02 9E 71 299 23 00 02 C6 71 300 23 00 02 02 89 301 23 00 02 28 89 302 23 00 02 52 89 303 23 00 02 79 89 304 23 00 02 9F 89 305 23 00 02 C7 89 306 23 00 02 03 9E 307 23 00 02 29 9E 308 23 00 02 53 9E 309 23 00 02 7A 9E 310 23 00 02 A0 9E 311 23 00 02 C8 9E 312 23 00 02 09 00 313 23 00 02 05 B0 314 23 00 02 31 00 315 23 00 02 2B B0 316 23 00 02 5A 00 317 23 00 02 55 B0 318 23 00 02 80 00 319 23 00 02 7C B0 320 23 00 02 A7 00 321 23 00 02 A3 B0 322 23 00 02 CE 00 323 23 00 02 CA B0 324 23 00 02 06 C0 325 23 00 02 2D C0 326 23 00 02 56 C0 327 23 00 02 7D C0 328 23 00 02 A4 C0 329 23 00 02 CB C0 330 23 00 02 07 CF 331 23 00 02 2F CF 332 23 00 02 58 CF 333 23 00 02 7E CF 334 23 00 02 A5 CF 335 23 00 02 CC CF 336 23 00 02 08 DD 337 23 00 02 30 DD 338 23 00 02 59 DD 339 23 00 02 7F DD 340 23 00 02 A6 DD 341 23 00 02 CD DD 342 23 00 02 0E 15 343 23 00 02 0A E9 344 23 00 02 36 15 345 23 00 02 32 E9 346 23 00 02 5F 15 347 23 00 02 5B E9 348 23 00 02 85 15 349 23 00 02 81 E9 350 23 00 02 AD 15 351 23 00 02 A9 E9 352 23 00 02 D3 15 353 23 00 02 CF E9 354 23 00 02 0B 14 355 23 00 02 33 14 356 23 00 02 5C 14 357 23 00 02 82 14 358 23 00 02 AA 14 359 23 00 02 D0 14 360 23 00 02 0C 36 361 23 00 02 34 36 362 23 00 02 5D 36 363 23 00 02 83 36 364 23 00 02 AB 36 365 23 00 02 D1 36 366 23 00 02 0D 6B 367 23 00 02 35 6B 368 23 00 02 5E 6B 369 23 00 02 84 6B 370 23 00 02 AC 6B 371 23 00 02 D2 6B 372 23 00 02 13 5A 373 23 00 02 0F 94 374 23 00 02 3B 5A 375 23 00 02 37 94 376 23 00 02 64 5A 377 23 00 02 60 94 378 23 00 02 8A 5A 379 23 00 02 86 94 380 23 00 02 B2 5A 381 23 00 02 AE 94 382 23 00 02 D8 5A 383 23 00 02 D4 94 384 23 00 02 10 D1 385 23 00 02 38 D1 386 23 00 02 61 D1 387 23 00 02 87 D1 388 23 00 02 AF D1 389 23 00 02 D5 D1 390 23 00 02 11 04 391 23 00 02 39 04 392 23 00 02 62 04 393 23 00 02 88 04 394 23 00 02 B0 04 395 23 00 02 D6 04 396 23 00 02 12 05 397 23 00 02 3A 05 398 23 00 02 63 05 399 23 00 02 89 05 400 23 00 02 B1 05 401 23 00 02 D7 05 402 23 00 02 18 AA 403 23 00 02 14 36 404 23 00 02 42 AA 405 23 00 02 3D 36 406 23 00 02 69 AA 407 23 00 02 65 36 408 23 00 02 8F AA 409 23 00 02 8B 36 410 23 00 02 B7 AA 411 23 00 02 B3 36 412 23 00 02 DD AA 413 23 00 02 D9 36 414 23 00 02 15 74 415 23 00 02 3F 74 416 23 00 02 66 74 417 23 00 02 8C 74 418 23 00 02 B4 74 419 23 00 02 DA 74 420 23 00 02 16 9F 421 23 00 02 40 9F 422 23 00 02 67 9F 423 23 00 02 8D 9F 424 23 00 02 B5 9F 425 23 00 02 DB 9F 426 23 00 02 17 DC 427 23 00 02 41 DC 428 23 00 02 68 DC 429 23 00 02 8E DC 430 23 00 02 B6 DC 431 23 00 02 DC DC 432 23 00 02 1D FF 433 23 00 02 19 03 434 23 00 02 47 FF 435 23 00 02 43 03 436 23 00 02 6E FF 437 23 00 02 6A 03 438 23 00 02 94 FF 439 23 00 02 90 03 440 23 00 02 BC FF 441 23 00 02 B8 03 442 23 00 02 E2 FF 443 23 00 02 DE 03 444 23 00 02 1A 35 445 23 00 02 44 35 446 23 00 02 6B 35 447 23 00 02 91 35 448 23 00 02 B9 35 449 23 00 02 DF 35 450 23 00 02 1B 45 451 23 00 02 45 45 452 23 00 02 6C 45 453 23 00 02 92 45 454 23 00 02 BA 45 455 23 00 02 E0 45 456 23 00 02 1C 55 457 23 00 02 46 55 458 23 00 02 6D 55 459 23 00 02 93 55 460 23 00 02 BB 55 461 23 00 02 E1 55 462 23 00 02 22 FF 463 23 00 02 1E 68 464 23 00 02 4C FF 465 23 00 02 48 68 466 23 00 02 73 FF 467 23 00 02 6F 68 468 23 00 02 99 FF 469 23 00 02 95 68 470 23 00 02 C1 FF 471 23 00 02 BD 68 472 23 00 02 E7 FF 473 23 00 02 E3 68 474 23 00 02 1F 7E 475 23 00 02 49 7E 476 23 00 02 70 7E 477 23 00 02 96 7E 478 23 00 02 BE 7E 479 23 00 02 E4 7E 480 23 00 02 20 97 481 23 00 02 4A 97 482 23 00 02 71 97 483 23 00 02 97 97 484 23 00 02 BF 97 485 23 00 02 E5 97 486 23 00 02 21 B5 487 23 00 02 4B B5 488 23 00 02 72 B5 489 23 00 02 98 B5 490 23 00 02 C0 B5 491 23 00 02 E6 B5 492 23 00 02 25 F0 493 23 00 02 23 E8 494 23 00 02 4F F0 495 23 00 02 4D E8 496 23 00 02 76 F0 497 23 00 02 74 E8 498 23 00 02 9C F0 499 23 00 02 9A E8 500 23 00 02 C4 F0 501 23 00 02 C2 E8 502 23 00 02 EA F0 503 23 00 02 E8 E8 504 23 00 02 24 FF 505 23 00 02 4E FF 506 23 00 02 75 FF 507 23 00 02 9B FF 508 23 00 02 C3 FF 509 23 00 02 E9 FF 510 23 00 02 FE 3D 511 23 00 02 00 04 512 23 00 02 FE 23 513 23 00 02 08 82 514 23 00 02 0A 00 515 23 00 02 0B 00 516 23 00 02 0C 01 517 23 00 02 16 00 518 23 00 02 18 02 519 23 00 02 1B 04 520 23 00 02 19 04 521 23 00 02 1C 81 522 23 00 02 1F 00 523 23 00 02 20 03 524 23 00 02 23 04 525 23 00 02 21 01 526 23 00 02 54 63 527 23 00 02 55 54 528 23 00 02 6E 45 529 23 00 02 6D 36 530 23 00 02 FE 3D 531 23 00 02 55 78 532 23 00 02 FE 20 533 23 00 02 26 30 534 23 00 02 FE 3D 535 23 00 02 20 71 536 23 00 02 50 8F 537 23 00 02 51 8F 538 23 00 02 FE 00 539 23 00 02 35 00 540 05 78 01 11 541 05 1E 01 29 542 ]; 543 544 panel-exit-sequence = [ 545 05 00 01 28 546 05 00 01 10 547 ]; 548 549 disp_timings0: display-timings { 550 native-mode = <&dsi0_timing0>; 551 dsi0_timing0: timing0 { 552 clock-frequency = <132000000>; 553 hactive = <1080>; 554 vactive = <1920>; 555 hfront-porch = <15>; 556 hsync-len = <4>; 557 hback-porch = <30>; 558 vfront-porch = <15>; 559 vsync-len = <2>; 560 vback-porch = <15>; 561 hsync-active = <0>; 562 vsync-active = <0>; 563 de-active = <0>; 564 pixelclk-active = <0>; 565 }; 566 }; 567 568 ports { 569 #address-cells = <1>; 570 #size-cells = <0>; 571 572 port@0 { 573 reg = <0>; 574 panel_in_dsi: endpoint { 575 remote-endpoint = <&dsi_out_panel>; 576 }; 577 }; 578 }; 579 }; 580 581 ports { 582 #address-cells = <1>; 583 #size-cells = <0>; 584 585 port@1 { 586 reg = <1>; 587 dsi_out_panel: endpoint { 588 remote-endpoint = <&panel_in_dsi>; 589 }; 590 }; 591 }; 592 593}; 594 595&dsi1 { 596 status = "okay"; 597 //rockchip,lane-rate = <1000>; 598 dsi1_panel: panel@0 { 599 status = "okay"; 600 compatible = "simple-panel-dsi"; 601 reg = <0>; 602 backlight = <&backlight>; 603 reset-delay-ms = <60>; 604 enable-delay-ms = <60>; 605 prepare-delay-ms = <60>; 606 unprepare-delay-ms = <60>; 607 disable-delay-ms = <60>; 608 dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | 609 MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>; 610 dsi,format = <MIPI_DSI_FMT_RGB888>; 611 dsi,lanes = <4>; 612 panel-init-sequence = [ 613 23 00 02 FE 21 614 23 00 02 04 00 615 23 00 02 00 64 616 23 00 02 2A 00 617 23 00 02 26 64 618 23 00 02 54 00 619 23 00 02 50 64 620 23 00 02 7B 00 621 23 00 02 77 64 622 23 00 02 A2 00 623 23 00 02 9D 64 624 23 00 02 C9 00 625 23 00 02 C5 64 626 23 00 02 01 71 627 23 00 02 27 71 628 23 00 02 51 71 629 23 00 02 78 71 630 23 00 02 9E 71 631 23 00 02 C6 71 632 23 00 02 02 89 633 23 00 02 28 89 634 23 00 02 52 89 635 23 00 02 79 89 636 23 00 02 9F 89 637 23 00 02 C7 89 638 23 00 02 03 9E 639 23 00 02 29 9E 640 23 00 02 53 9E 641 23 00 02 7A 9E 642 23 00 02 A0 9E 643 23 00 02 C8 9E 644 23 00 02 09 00 645 23 00 02 05 B0 646 23 00 02 31 00 647 23 00 02 2B B0 648 23 00 02 5A 00 649 23 00 02 55 B0 650 23 00 02 80 00 651 23 00 02 7C B0 652 23 00 02 A7 00 653 23 00 02 A3 B0 654 23 00 02 CE 00 655 23 00 02 CA B0 656 23 00 02 06 C0 657 23 00 02 2D C0 658 23 00 02 56 C0 659 23 00 02 7D C0 660 23 00 02 A4 C0 661 23 00 02 CB C0 662 23 00 02 07 CF 663 23 00 02 2F CF 664 23 00 02 58 CF 665 23 00 02 7E CF 666 23 00 02 A5 CF 667 23 00 02 CC CF 668 23 00 02 08 DD 669 23 00 02 30 DD 670 23 00 02 59 DD 671 23 00 02 7F DD 672 23 00 02 A6 DD 673 23 00 02 CD DD 674 23 00 02 0E 15 675 23 00 02 0A E9 676 23 00 02 36 15 677 23 00 02 32 E9 678 23 00 02 5F 15 679 23 00 02 5B E9 680 23 00 02 85 15 681 23 00 02 81 E9 682 23 00 02 AD 15 683 23 00 02 A9 E9 684 23 00 02 D3 15 685 23 00 02 CF E9 686 23 00 02 0B 14 687 23 00 02 33 14 688 23 00 02 5C 14 689 23 00 02 82 14 690 23 00 02 AA 14 691 23 00 02 D0 14 692 23 00 02 0C 36 693 23 00 02 34 36 694 23 00 02 5D 36 695 23 00 02 83 36 696 23 00 02 AB 36 697 23 00 02 D1 36 698 23 00 02 0D 6B 699 23 00 02 35 6B 700 23 00 02 5E 6B 701 23 00 02 84 6B 702 23 00 02 AC 6B 703 23 00 02 D2 6B 704 23 00 02 13 5A 705 23 00 02 0F 94 706 23 00 02 3B 5A 707 23 00 02 37 94 708 23 00 02 64 5A 709 23 00 02 60 94 710 23 00 02 8A 5A 711 23 00 02 86 94 712 23 00 02 B2 5A 713 23 00 02 AE 94 714 23 00 02 D8 5A 715 23 00 02 D4 94 716 23 00 02 10 D1 717 23 00 02 38 D1 718 23 00 02 61 D1 719 23 00 02 87 D1 720 23 00 02 AF D1 721 23 00 02 D5 D1 722 23 00 02 11 04 723 23 00 02 39 04 724 23 00 02 62 04 725 23 00 02 88 04 726 23 00 02 B0 04 727 23 00 02 D6 04 728 23 00 02 12 05 729 23 00 02 3A 05 730 23 00 02 63 05 731 23 00 02 89 05 732 23 00 02 B1 05 733 23 00 02 D7 05 734 23 00 02 18 AA 735 23 00 02 14 36 736 23 00 02 42 AA 737 23 00 02 3D 36 738 23 00 02 69 AA 739 23 00 02 65 36 740 23 00 02 8F AA 741 23 00 02 8B 36 742 23 00 02 B7 AA 743 23 00 02 B3 36 744 23 00 02 DD AA 745 23 00 02 D9 36 746 23 00 02 15 74 747 23 00 02 3F 74 748 23 00 02 66 74 749 23 00 02 8C 74 750 23 00 02 B4 74 751 23 00 02 DA 74 752 23 00 02 16 9F 753 23 00 02 40 9F 754 23 00 02 67 9F 755 23 00 02 8D 9F 756 23 00 02 B5 9F 757 23 00 02 DB 9F 758 23 00 02 17 DC 759 23 00 02 41 DC 760 23 00 02 68 DC 761 23 00 02 8E DC 762 23 00 02 B6 DC 763 23 00 02 DC DC 764 23 00 02 1D FF 765 23 00 02 19 03 766 23 00 02 47 FF 767 23 00 02 43 03 768 23 00 02 6E FF 769 23 00 02 6A 03 770 23 00 02 94 FF 771 23 00 02 90 03 772 23 00 02 BC FF 773 23 00 02 B8 03 774 23 00 02 E2 FF 775 23 00 02 DE 03 776 23 00 02 1A 35 777 23 00 02 44 35 778 23 00 02 6B 35 779 23 00 02 91 35 780 23 00 02 B9 35 781 23 00 02 DF 35 782 23 00 02 1B 45 783 23 00 02 45 45 784 23 00 02 6C 45 785 23 00 02 92 45 786 23 00 02 BA 45 787 23 00 02 E0 45 788 23 00 02 1C 55 789 23 00 02 46 55 790 23 00 02 6D 55 791 23 00 02 93 55 792 23 00 02 BB 55 793 23 00 02 E1 55 794 23 00 02 22 FF 795 23 00 02 1E 68 796 23 00 02 4C FF 797 23 00 02 48 68 798 23 00 02 73 FF 799 23 00 02 6F 68 800 23 00 02 99 FF 801 23 00 02 95 68 802 23 00 02 C1 FF 803 23 00 02 BD 68 804 23 00 02 E7 FF 805 23 00 02 E3 68 806 23 00 02 1F 7E 807 23 00 02 49 7E 808 23 00 02 70 7E 809 23 00 02 96 7E 810 23 00 02 BE 7E 811 23 00 02 E4 7E 812 23 00 02 20 97 813 23 00 02 4A 97 814 23 00 02 71 97 815 23 00 02 97 97 816 23 00 02 BF 97 817 23 00 02 E5 97 818 23 00 02 21 B5 819 23 00 02 4B B5 820 23 00 02 72 B5 821 23 00 02 98 B5 822 23 00 02 C0 B5 823 23 00 02 E6 B5 824 23 00 02 25 F0 825 23 00 02 23 E8 826 23 00 02 4F F0 827 23 00 02 4D E8 828 23 00 02 76 F0 829 23 00 02 74 E8 830 23 00 02 9C F0 831 23 00 02 9A E8 832 23 00 02 C4 F0 833 23 00 02 C2 E8 834 23 00 02 EA F0 835 23 00 02 E8 E8 836 23 00 02 24 FF 837 23 00 02 4E FF 838 23 00 02 75 FF 839 23 00 02 9B FF 840 23 00 02 C3 FF 841 23 00 02 E9 FF 842 23 00 02 FE 3D 843 23 00 02 00 04 844 23 00 02 FE 23 845 23 00 02 08 82 846 23 00 02 0A 00 847 23 00 02 0B 00 848 23 00 02 0C 01 849 23 00 02 16 00 850 23 00 02 18 02 851 23 00 02 1B 04 852 23 00 02 19 04 853 23 00 02 1C 81 854 23 00 02 1F 00 855 23 00 02 20 03 856 23 00 02 23 04 857 23 00 02 21 01 858 23 00 02 54 63 859 23 00 02 55 54 860 23 00 02 6E 45 861 23 00 02 6D 36 862 23 00 02 FE 3D 863 23 00 02 55 78 864 23 00 02 FE 20 865 23 00 02 26 30 866 23 00 02 FE 3D 867 23 00 02 20 71 868 23 00 02 50 8F 869 23 00 02 51 8F 870 23 00 02 FE 00 871 23 00 02 35 00 872 05 78 01 11 873 05 1E 01 29 874 ]; 875 876 panel-exit-sequence = [ 877 05 00 01 28 878 05 00 01 10 879 ]; 880 881 disp_timings1: display-timings { 882 native-mode = <&dsi1_timing0>; 883 dsi1_timing0: timing0 { 884 clock-frequency = <132000000>; 885 hactive = <1080>; 886 vactive = <1920>; 887 hfront-porch = <15>; 888 hsync-len = <4>; 889 hback-porch = <30>; 890 vfront-porch = <15>; 891 vsync-len = <2>; 892 vback-porch = <15>; 893 hsync-active = <0>; 894 vsync-active = <0>; 895 de-active = <0>; 896 pixelclk-active = <0>; 897 }; 898 }; 899 900 ports { 901 #address-cells = <1>; 902 #size-cells = <0>; 903 904 port@0 { 905 reg = <0>; 906 panel_in_dsi1: endpoint { 907 remote-endpoint = <&dsi1_out_panel>; 908 }; 909 }; 910 }; 911 }; 912 913 ports { 914 #address-cells = <1>; 915 #size-cells = <0>; 916 917 port@1 { 918 reg = <1>; 919 dsi1_out_panel: endpoint { 920 remote-endpoint = <&panel_in_dsi1>; 921 }; 922 }; 923 }; 924 925}; 926 927&dsi0_panel { 928 power-supply = <&vcc3v3_lcd_n>; 929 reset-gpios = <&gpio1 RK_PA4 GPIO_ACTIVE_LOW>; 930 pinctrl-names = "default"; 931 pinctrl-0 = <&lcd_rst_gpio>; 932 dsi,lanes = <8>; 933 panel-init-sequence = [ 934 29 02 02 00 00 935 29 02 03 99 95 27 936 05 78 01 11 937 05 01 01 29 938 29 00 02 00 00 939 29 01 03 99 00 00 940 ]; 941 942 panel-exit-sequence = [ 943 29 00 02 00 00 944 29 00 03 99 95 27 945 05 01 01 28 946 05 01 01 10 947 ]; 948 949 disp_timings0: display-timings { 950 native-mode = <&dsi0_timing0>; 951 dsi0_timing0: timing0 { 952 clock-frequency = <246000000>; 953 hactive = <1600>; 954 vactive = <2176>; 955 hfront-porch = <18>; 956 hsync-len = <8>; 957 hback-porch = <32>; 958 vfront-porch = <255>; 959 vsync-len = <6>; 960 vback-porch = <34>; 961 hsync-active = <0>; 962 vsync-active = <0>; 963 de-active = <0>; 964 pixelclk-active = <0>; 965 }; 966 }; 967}; 968 969&dsi1_in_vp2 { 970 status = "disabled"; 971}; 972 973&dsi1_in_vp3 { 974 status = "disabled"; 975}; 976 977&dsi1_panel { 978 power-supply = <&vcc3v3_lcd_n>; 979 compressed-data; 980 /* 981 * because in hardware, the two screens share the reset pin, 982 * so reset-gpios need only in dsi1 enable and dsi0 disabled 983 * case. 984 */ 985 986 //reset-gpios = <&gpio1 RK_PA4 GPIO_ACTIVE_LOW>; 987 //pinctrl-names = "default"; 988 //pinctrl-0 = <&lcd_rst_gpio>; 989 990 dsi,flags = <(MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>; 991 992 slice-width = <720>; 993 slice-height = <65>; 994 version-major = <1>; 995 version-minor = <1>; 996 997 panel-init-sequence = [ 998 29 10 03 f0 5a 5a 999 /* Dsc Setting */ 1000 /* Compression Enable */ 1001 07 10 01 01 1002 /* Scaler Disable */ 1003 15 10 02 c3 00 1004 /* PPS Setting */ 1005 0a 31 59 10 00 00 89 30 80 0c 30 05 a0 00 41 02 d0 02 d0 02 00 02 c2 00 20 06 58 00 0a 00 0f 01 e0 01 2d 18 00 10 f0 03 0c 20 00 06 0b 0b 33 0e 1c 2a 38 46 54 62 69 70 77 79 7b 7d 7e 01 02 01 00 09 40 09 be 19 fc 19 fa 19 f8 1a 38 1a 78 1a b6 2a b6 2a f4 2a f4 4b 34 63 74 00 1006 29 10 03 f0 a5 a5 1007 /** Sleep Out */ 1008 05 00 01 11 1009 /* 4. Common Setting */ 1010 /* 4.1 TE(Vync) ON/OFF */ 1011 15 00 02 35 00 1012 /* 4.2 CASET/PASET Setting */ 1013 39 00 05 2a 00 00 05 9F 1014 39 00 05 2b 00 00 0c 2f 1015 /* 4.3 TSP SYNC Setting */ 1016 39 00 03 f0 5a 5a 1017 39 00 0a B9 01 c0 3c 0b 00 00 00 11 03 1018 39 00 03 f0 a5 a5 1019 /* FD(Fast Discharge) Setting */ 1020 39 00 03 f0 5a 5a 1021 15 00 02 b0 45 1022 15 00 02 b5 48 1023 39 00 03 f0 a5 a5 1024 /* 4.6 FFC Setting (MIPI CLK 529MHz) */ 1025 39 00 03 f0 5a 5a 1026 39 00 03 fc 5a 5a 1027 15 00 02 b0 1E 1028 39 00 06 c5 09 10 b4 24 fb 1029 39 00 03 f0 a5 a5 1030 39 00 03 fc a5 a5 1031 /* OSC Spread Setting */ 1032 39 00 03 f0 5a 5a 1033 39 00 03 fc 5a 5a 1034 15 00 02 b0 37 1035 /* FFC Setting; 0x04 : Disable */ 1036 39 00 06 c5 04 ff 00 01 64 1037 39 00 03 f0 a5 a5 1038 39 00 03 fc a5 a5 1039 /* Dither IP Setting */ 1040 39 00 03 FC 5A 5A 1041 15 00 02 b0 86 1042 15 00 02 eb 01 1043 39 00 03 FC a5 a5 1044 /* 5 Brightness Control */ 1045 /* 5.1 Dimming Setting */ 1046 39 10 03 f0 5a 5a 1047 15 10 02 b0 05 1048 15 10 02 b1 01 1049 15 10 02 b0 02 1050 15 10 02 b5 d3 1051 15 10 02 53 20 1052 39 10 03 f0 a5 a5 1053 39 10 03 51 02 ff 1054 05 32 01 29 1055 ]; 1056 1057 panel-exit-sequence = [ 1058 /* Display off */ 1059 05 14 01 28 1060 /* Sleep In */ 1061 05 00 01 10 1062 /* VCI stabilization setting */ 1063 39 00 03 f0 5a 5a 1064 15 00 02 b0 05 1065 15 00 02 f4 01 1066 39 a0 03 f0 a5 a5 1067 ]; 1068 1069 disp_timings1: display-timings { 1070 native-mode = <&dsi1_timing0>; 1071 dsi1_timing0: timing0 { 1072 clock-frequency = <280000000>; 1073 hactive = <1140>; 1074 vactive = <3120>; 1075 hfront-porch = <16>; 1076 hsync-len = <8>; 1077 hback-porch = <8>; 1078 vfront-porch = <4>; 1079 vsync-len = <2>; 1080 vback-porch = <16>; 1081 hsync-active = <0>; 1082 vsync-active = <0>; 1083 de-active = <0>; 1084 pixelclk-active = <0>; 1085 }; 1086 }; 1087}; 1088 1089&gpu { 1090 mali-supply = <&vdd_gpu_s0>; 1091 mem-supply = <&vdd_gpu_mem_s0>; 1092 upthreshold = <60>; 1093 downdifferential = <30>; 1094 status = "okay"; 1095}; 1096 1097&i2c0 { 1098 status = "okay"; 1099 pinctrl-names = "default"; 1100 pinctrl-0 = <&i2c0m2_xfer>; 1101 1102 vdd_cpu_big0_s0: vdd_cpu_big0_mem_s0: rk8602@42 { 1103 compatible = "rockchip,rk8602"; 1104 reg = <0x42>; 1105 vin-supply = <&vcc5v0_sys>; 1106 regulator-compatible = "rk860x-reg"; 1107 regulator-name = "vdd_cpu_big0_s0"; 1108 regulator-min-microvolt = <550000>; 1109 regulator-max-microvolt = <1050000>; 1110 regulator-ramp-delay = <2300>; 1111 rockchip,suspend-voltage-selector = <1>; 1112 regulator-boot-on; 1113 regulator-always-on; 1114 regulator-state-mem { 1115 regulator-off-in-suspend; 1116 }; 1117 }; 1118 1119 vdd_cpu_big1_s0: vdd_cpu_big1_mem_s0: rk8603@43 { 1120 compatible = "rockchip,rk8603"; 1121 reg = <0x43>; 1122 vin-supply = <&vcc5v0_sys>; 1123 regulator-compatible = "rk860x-reg"; 1124 regulator-name = "vdd_cpu_big1_s0"; 1125 regulator-min-microvolt = <550000>; 1126 regulator-max-microvolt = <1050000>; 1127 regulator-ramp-delay = <2300>; 1128 rockchip,suspend-voltage-selector = <1>; 1129 regulator-boot-on; 1130 regulator-always-on; 1131 regulator-state-mem { 1132 regulator-off-in-suspend; 1133 }; 1134 }; 1135}; 1136 1137&i2c2 { 1138 status = "okay"; 1139 1140 cw2015@62 { 1141 status = "okay"; 1142 compatible = "cellwise,cw2015"; 1143 reg = <0x62>; 1144 cellwise,battery-profile = /bits/ 8 1145 <0x17 0x67 0x6C 0x66 0x65 0x64 0x61 0x5B 1146 0x5F 0x75 0x49 0x52 0x50 0x51 0x48 0x3D 1147 0x34 0x2C 0x29 0x21 0x23 0x2D 0x40 0x49 1148 0x25 0x5C 0x0B 0x85 0x10 0x1F 0x31 0x49 1149 0x58 0x5E 0x63 0x6C 0x3E 0x1D 0x9A 0x35 1150 0x0A 0x33 0x15 0x3B 0x70 0x99 0xAB 0x17 1151 0x40 0x75 0x99 0xC4 0x80 0xB5 0xDE 0xCB 1152 0x2F 0x00 0x64 0xA5 0xB5 0x00 0xF8 0x39>; 1153 cellwise,monitor-interval-ms = <5000>; 1154 power-supplies = <&bq25895>; 1155 }; 1156 1157 bq25895: charger@6a { 1158 compatible = "ti,bq25895", "ti,bq25890"; 1159 reg = <0x6a>; 1160 pinctrl-names = "default"; 1161 pinctrl-0 = <&charger_ok>; 1162 interrupt-parent = <&gpio3>; 1163 interrupts = <RK_PC3 IRQ_TYPE_EDGE_FALLING>; 1164 otg-mode-en-gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>; 1165 ti,usb-charger-detection = <&usbc0>; 1166 1167 ti,battery-regulation-voltage = <4400000>; /* 4.4V */ 1168 ti,charge-current = <1600000>; /* 1.6A */ 1169 ti,termination-current = <66000>; /* 66mA */ 1170 ti,precharge-current = <130000>; /* 130mA */ 1171 ti,minimum-sys-voltage = <3000000>; /* 3V */ 1172 ti,boost-voltage = <5000000>; /* 5V */ 1173 ti,boost-max-current = <1600000>; /* 1600mA */ 1174 regulators { 1175 vbus5v0_typec: vbus5v0-typec { 1176 regulator-compatible = "otg-vbus"; 1177 regulator-name = "vbus5v0_typec"; 1178 }; 1179 }; 1180 }; 1181 1182 vdd_npu_s0: vdd_npu_mem_s0: rk8602@42 { 1183 compatible = "rockchip,rk8602"; 1184 reg = <0x42>; 1185 vin-supply = <&vcc5v0_sys>; 1186 regulator-compatible = "rk860x-reg"; 1187 regulator-name = "vdd_npu_s0"; 1188 regulator-min-microvolt = <550000>; 1189 regulator-max-microvolt = <950000>; 1190 regulator-ramp-delay = <2300>; 1191 rockchip,suspend-voltage-selector = <1>; 1192 regulator-boot-on; 1193 regulator-always-on; 1194 regulator-state-mem { 1195 regulator-off-in-suspend; 1196 }; 1197 }; 1198}; 1199 1200&i2c3 { 1201 status = "okay"; 1202 1203 es8388: es8388@11 { 1204 status = "okay"; 1205 #sound-dai-cells = <0>; 1206 compatible = "everest,es8388", "everest,es8323"; 1207 reg = <0x11>; 1208 clocks = <&mclkout_i2s0>; 1209 clock-names = "mclk"; 1210 pinctrl-names = "default"; 1211 pinctrl-0 = <&i2s0_mclk>; 1212 }; 1213 1214 aw87xxx_pa1: aw87xxx_pa1@58 { 1215 compatible = "awinic,aw87xxx_pa"; 1216 #sound-dai-cells = <0>; 1217 reg = <0x58>; 1218 dev_index = < 0 >; 1219 status = "okay"; 1220 }; 1221 1222 aw87xxx_pa2: aw87xxx_pa2@59 { 1223 compatible = "awinic,aw87xxx_pa"; 1224 #sound-dai-cells = <0>; 1225 reg = <0x59>; 1226 dev_index = < 1 >; 1227 status = "okay"; 1228 }; 1229}; 1230 1231&i2c4 { 1232 status = "okay"; 1233 pinctrl-names = "default"; 1234 pinctrl-0 = <&i2c4m3_xfer>; 1235 1236 focaltech: focaltech@38 { 1237 status = "okay"; 1238 compatible = "focaltech,fts"; 1239 reg = <0x38>; 1240 power-supply = <&vcc3v3_lcd_n>; 1241 pinctrl-names = "default"; 1242 pinctrl-0 = <&touch_gpio>; 1243 focaltech,irq-gpio = <&gpio1 RK_PB5 IRQ_TYPE_LEVEL_LOW>; 1244 focaltech,reset-gpio = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>; 1245 focaltech,have-key = <0>; 1246 focaltech,key-number = <3>; 1247 focaltech,keys = <256 1068 64 64 128 1068 64 64 192 1068 64 64>; 1248 focaltech,key-x-coord = <1600>; 1249 focaltech,key-y-coord = <2176>; 1250 focaltech,max-touch-number = <5>; 1251 }; 1252}; 1253 1254&i2c5 { 1255 status = "okay"; 1256 pinctrl-names = "default"; 1257 //pinctrl-0 = <&i2c5m3_xfer>; 1258 pinctrl-0 = <&i2c5m0_xfer>; 1259 1260 ls_ucs14620: light@38 { 1261 compatible = "ls_ucs14620"; 1262 status = "okay"; 1263 reg = <0x38>; 1264 type = <SENSOR_TYPE_LIGHT>; 1265 irq_enable = <0>; 1266 als_threshold_high = <100>; 1267 als_threshold_low = <10>; 1268 als_ctrl_gain = <3>;/* 0:x1 1:x4 2:x16 3:x64 */ 1269 als_ctrl_time = <0x9f>; 1270 poll_delay_ms = <100>; 1271 }; 1272 1273 ps_ucs14620: proximity@38 { 1274 status = "okay"; 1275 compatible = "ps_ucs14620"; 1276 reg = <0x38>; 1277 type = <SENSOR_TYPE_PROXIMITY>; 1278 //pinctrl-names = "default"; 1279 //pinctrl-0 = <&gpio3_c6>; 1280 irq-gpio = <&gpio3 RK_PC6 IRQ_TYPE_LEVEL_LOW>; 1281 irq_enable = <0>; 1282 ps_threshold_high = <0x20>; 1283 ps_threshold_low = <0x1d>; 1284 ps_ctrl_gain = <3>; /* 0:x1 1:x2 2:x5 3:x8 */ 1285 ps_led_current = <3>; /* 0:12.5mA 1:100mA 2:150mA 3:200mA*/ 1286 poll_delay_ms = <100>; 1287 }; 1288 1289 regulator@3e { 1290 compatible = "tps65132"; 1291 reg = <0x3e>; 1292 1293 outp { 1294 regulator-name = "LCD_AVDD"; //P 1295 vin-supply = <&vcc5v0_sys>; 1296 /*pinctrl-names = "default";*/ 1297 /*pinctrl-0 = <&pinctrl_dsibiasen>;*/ 1298 /*enable = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;*/ 1299 /*enable-active-high;*/ 1300 }; 1301 1302 outn { 1303 regulator-name = "LCD_AVEE"; 1304 vin-supply = <&vcc5v0_sys>; 1305 /*enable = <&gpio1 RK_PA5 GPIO_ACTIVE_HIGH>;*/ 1306 }; 1307 }; 1308}; 1309 1310&i2c8 { 1311 status = "okay"; 1312 pinctrl-names = "default"; 1313 pinctrl-0 = <&i2c8m2_xfer>; 1314 1315 usbc0: fusb302@22 { 1316 compatible = "fcs,fusb302"; 1317 reg = <0x22>; 1318 interrupt-parent = <&gpio0>; 1319 interrupts = <RK_PC4 IRQ_TYPE_LEVEL_LOW>; 1320 int-n-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>; 1321 pinctrl-names = "default"; 1322 pinctrl-0 = <&usbc0_int>; 1323 vbus-supply = <&vbus5v0_typec>; 1324 status = "okay"; 1325 1326 ports { 1327 #address-cells = <1>; 1328 #size-cells = <0>; 1329 1330 port@0 { 1331 reg = <0>; 1332 usbc0_role_sw: endpoint@0 { 1333 remote-endpoint = <&dwc3_0_role_switch>; 1334 }; 1335 }; 1336 }; 1337 1338 usb_con: connector { 1339 compatible = "usb-c-connector"; 1340 label = "USB-C"; 1341 data-role = "dual"; 1342 power-role = "dual"; 1343 try-power-role = "sink"; 1344 op-sink-microwatt = <1000000>; 1345 sink-pdos = 1346 <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM) 1347 PDO_FIXED(9000, 3000, PDO_FIXED_USB_COMM) 1348 PDO_FIXED(12000, 3000, PDO_FIXED_USB_COMM)>; 1349 source-pdos = 1350 <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; 1351 1352 ports { 1353 #address-cells = <1>; 1354 #size-cells = <0>; 1355 1356 port@0 { 1357 reg = <0>; 1358 usbc0_orien_sw: endpoint { 1359 remote-endpoint = <&u2phy0_orientation_switch>; 1360 }; 1361 }; 1362 }; 1363 1364 }; 1365 }; 1366 1367 hym8563: hym8563@51 { 1368 compatible = "haoyu,hym8563"; 1369 reg = <0x51>; 1370 #clock-cells = <0>; 1371 clock-frequency = <32768>; 1372 clock-output-names = "hym8563"; 1373 pinctrl-names = "default"; 1374 pinctrl-0 = <&hym8563_int>; 1375 interrupt-parent = <&gpio0>; 1376 interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>; 1377 wakeup-source; 1378 status = "okay"; 1379 }; 1380}; 1381 1382&i2s0_8ch { 1383 status = "okay"; 1384 pinctrl-0 = <&i2s0_lrck 1385 &i2s0_sclk 1386 &i2s0_sdi0 1387 &i2s0_sdo0>; 1388}; 1389 1390&iep { 1391 status = "okay"; 1392}; 1393 1394&iep_mmu { 1395 status = "okay"; 1396}; 1397 1398&jpegd { 1399 status = "okay"; 1400}; 1401 1402&jpegd_mmu { 1403 status = "okay"; 1404}; 1405 1406&jpege0 { 1407 status = "okay"; 1408}; 1409 1410&jpege0_mmu { 1411 status = "okay"; 1412}; 1413 1414&mipi_dcphy0 { 1415 status = "okay"; 1416}; 1417 1418&mipi_dcphy1 { 1419 status = "okay"; 1420}; 1421 1422&mpp_srv { 1423 status = "okay"; 1424}; 1425 1426&pcie2x1l2 { 1427 reset-gpios = <&gpio4 RK_PC1 GPIO_ACTIVE_HIGH>; 1428 rockchip,skip-scan-in-resume; 1429 status = "okay"; 1430}; 1431 1432&pdm0 { 1433 status = "okay"; 1434}; 1435 1436&pinctrl { 1437 charger { 1438 charger_ok: charger_ok { 1439 rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>, 1440 <3 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up>; 1441 }; 1442 }; 1443 1444 hym8563 { 1445 hym8563_int: hym8563-int { 1446 rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>; 1447 }; 1448 }; 1449 1450 lcd { 1451 lcd_rst_gpio: lcd-rst-gpio { 1452 rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; 1453 }; 1454 }; 1455 1456 touch { 1457 touch_gpio: touch-gpio { 1458 rockchip,pins = 1459 <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>, 1460 <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>; 1461 }; 1462 }; 1463 1464 usb { 1465 vcc5v0_host_en: vcc5v0-host-en { 1466 rockchip,pins = <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; 1467 }; 1468 1469 vcc5v0_host_en1: vcc5v0-host-en1 { 1470 rockchip,pins = <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 1471 }; 1472 }; 1473 1474 usb-typec { 1475 usbc0_int: usbc0-int { 1476 rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>; 1477 }; 1478 1479 /* 1480 *typec5v_pwren: typec5v-pwren { 1481 * rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; 1482 *}; 1483 */ 1484 }; 1485 1486 wireless-bluetooth { 1487 uart8_gpios: uart8-gpios { 1488 rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; 1489 }; 1490 1491 bt_reset_gpio: bt-reset-gpio { 1492 rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; 1493 }; 1494 1495 bt_wake_gpio: bt-wake-gpio { 1496 rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; 1497 }; 1498 1499 bt_wake_host_irq: bt-wake-host-irq { 1500 rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_down>; 1501 }; 1502 }; 1503 1504 wireless-wlan { 1505 wifi_host_wake_irq: wifi-host-wake-irq { 1506 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>; 1507 }; 1508 1509 wifi_poweren_gpio: wifi-poweren-gpio { 1510 rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>; 1511 }; 1512 }; 1513}; 1514 1515&pwm13 { 1516 status = "okay"; 1517 pinctrl-names = "active"; 1518 pinctrl-0 = <&pwm13m1_pins>; 1519}; 1520 1521&rga2 { 1522 status = "okay"; 1523}; 1524 1525&rga3_core0 { 1526 status = "okay"; 1527}; 1528 1529&rga3_0_mmu { 1530 status = "okay"; 1531}; 1532 1533&rga3_core1 { 1534 status = "okay"; 1535}; 1536 1537&rga3_1_mmu { 1538 status = "okay"; 1539}; 1540 1541&rkvdec_ccu { 1542 status = "okay"; 1543}; 1544 1545&rkvdec0 { 1546 status = "okay"; 1547}; 1548 1549&rkvdec0_mmu { 1550 status = "okay"; 1551}; 1552 1553&rkvenc0 { 1554 venc-supply = <&vdd_vdenc_s0>; 1555 mem-supply = <&vdd_vdenc_mem_s0>; 1556 status = "okay"; 1557}; 1558 1559&rkvenc0_mmu { 1560 status = "okay"; 1561}; 1562 1563&rockchip_suspend { 1564 status = "okay"; 1565 rockchip,sleep-debug-en = <1>; 1566}; 1567 1568&route_dsi0 { 1569 status = "okay"; 1570 connect = <&vp2_out_dsi0>; 1571}; 1572 1573&saradc { 1574 status = "okay"; 1575 vref-supply = <&vcc_1v8_s0>; 1576}; 1577 1578&sdhci { 1579 bus-width = <8>; 1580 no-sdio; 1581 no-sd; 1582 non-removable; 1583 max-frequency = <200000000>; 1584 mmc-hs400-1_8v; 1585 mmc-hs400-enhanced-strobe; 1586 status = "okay"; 1587}; 1588 1589&spi2 { 1590 status = "okay"; 1591 pinctrl-names = "default"; 1592 pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>; 1593 num-cs = <1>; 1594}; 1595 1596&tsadc { 1597 status = "okay"; 1598}; 1599 1600&uart8 { 1601 status = "okay"; 1602 pinctrl-names = "default"; 1603 pinctrl-0 = <&uart8m1_xfer &uart8m1_ctsn>; 1604}; 1605 1606&u2phy0 { 1607 orientation-switch; 1608 status = "okay"; 1609 1610 port { 1611 #address-cells = <1>; 1612 #size-cells = <0>; 1613 u2phy0_orientation_switch: endpoint@0 { 1614 reg = <0>; 1615 remote-endpoint = <&usbc0_orien_sw>; 1616 }; 1617 }; 1618}; 1619 1620&u2phy0_otg { 1621 rockchip,sel-pipe-phystatus; 1622 rockchip,typec-vbus-det; 1623 status = "okay"; 1624}; 1625 1626&usbdrd3_0 { 1627 status = "okay"; 1628}; 1629 1630&usbdrd_dwc3_0 { 1631 dr_mode = "otg"; 1632 status = "okay"; 1633 1634 maximum-speed = "high-speed"; 1635 phys = <&u2phy0_otg>; 1636 phy-names = "usb2-phy"; 1637 usb-role-switch; 1638 port { 1639 #address-cells = <1>; 1640 #size-cells = <0>; 1641 dwc3_0_role_switch: endpoint@0 { 1642 reg = <0>; 1643 remote-endpoint = <&usbc0_role_sw>; 1644 }; 1645 }; 1646}; 1647 1648&vdpu { 1649 status = "okay"; 1650}; 1651 1652&vdpu_mmu { 1653 status = "okay"; 1654}; 1655 1656&vop { 1657 status = "okay"; 1658}; 1659 1660&vop_mmu { 1661 status = "okay"; 1662}; 1663 1664&vp1 { 1665 rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER0 | 1 << ROCKCHIP_VOP2_ESMART0 | 1666 1 << ROCKCHIP_VOP2_CLUSTER1 | 1 << ROCKCHIP_VOP2_ESMART1)>; 1667 rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART1>; 1668}; 1669 1670&vp2 { 1671 rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER2 | 1 << ROCKCHIP_VOP2_ESMART2 | 1672 1 << ROCKCHIP_VOP2_CLUSTER3 | 1 << ROCKCHIP_VOP2_ESMART3)>; 1673 rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART2>; 1674}; 1675