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/usb/pd.h" 8#include "rk3588s.dtsi" 9#include "rk3588s-evb.dtsi" 10#include "rk3588s-rk806-dual.dtsi" 11 12/ { 13 aw883xx_sound: aw883x-sound { 14 status = "disabled"; 15 compatible = "rockchip,multicodecs-card"; 16 rockchip,card-name = "rockchip-aw883xx"; 17 rockchip,format = "i2s"; 18 rockchip,mclk-fs = <256>; 19 rockchip,cpu = <&i2s0_8ch>; 20 rockchip,codec = <&aw883xx_1 &aw883xx_2 &aw883xx_3 &aw883xx_4>; 21 }; 22 23 combophy_avdd0v85: combophy-avdd0v85 { 24 compatible = "regulator-fixed"; 25 regulator-name = "combophy_avdd0v85"; 26 regulator-boot-on; 27 regulator-always-on; 28 regulator-min-microvolt = <850000>; 29 regulator-max-microvolt = <850000>; 30 vin-supply = <&vdd_0v85_s0>; 31 }; 32 33 combophy_avdd1v8: combophy-avdd1v8 { 34 compatible = "regulator-fixed"; 35 regulator-name = "combophy_avdd1v8"; 36 regulator-boot-on; 37 regulator-always-on; 38 regulator-min-microvolt = <1800000>; 39 regulator-max-microvolt = <1800000>; 40 vin-supply = <&avcc_1v8_s0>; 41 }; 42 43 es7202_sound_micarray: es7202-sound-micarray { 44 status = "okay"; 45 compatible = "simple-audio-card"; 46 simple-audio-card,format = "i2s"; 47 simple-audio-card,name = "rockchip,sound-micarray"; 48 simple-audio-card,mclk-fs = <256>; 49 simple-audio-card,dai-link@0 { 50 format = "pdm"; 51 cpu { 52 sound-dai = <&pdm0>; 53 }; 54 codec { 55 sound-dai = <&es7202>; 56 }; 57 }; 58 }; 59 60 es8326_sound: es8326-sound { 61 status = "disabled"; 62 compatible = "rockchip,multicodecs-card"; 63 rockchip,card-name = "rockchip-es8326"; 64 rockchip,format = "i2s"; 65 rockchip,mclk-fs = <256>; 66 rockchip,cpu = <&i2s1_8ch>; 67 rockchip,codec = <&es8326>; 68 rockchip,audio-routing = 69 "Headphone", "HPOL", 70 "Headphone", "HPOR", 71 "Headphone", "Headphone Power", 72 "Headphone", "Headphone Power", 73 "MIC1", "Headset Mic", 74 "MIC2", "Main Mic"; 75 }; 76 77 es8388_sound: es8388-sound { 78 status = "okay"; 79 compatible = "rockchip,multicodecs-card"; 80 rockchip,card-name = "rockchip-es8388"; 81 hp-det-gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>; 82 io-channels = <&saradc 3>; 83 io-channel-names = "adc-detect"; 84 keyup-threshold-microvolt = <1800000>; 85 poll-interval = <100>; 86 spk-con-gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; 87 hp-con-gpio = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>; 88 rockchip,format = "i2s"; 89 rockchip,mclk-fs = <256>; 90 rockchip,cpu = <&i2s0_8ch>; 91 rockchip,codec = <&es8388>; 92 rockchip,audio-routing = 93 "Headphone", "LOUT1", 94 "Headphone", "ROUT1", 95 "Speaker", "LOUT2", 96 "Speaker", "ROUT2", 97 "Headphone", "Headphone Power", 98 "Headphone", "Headphone Power", 99 "Speaker", "Speaker Power", 100 "Speaker", "Speaker Power", 101 "LINPUT1", "Main Mic", 102 "LINPUT2", "Main Mic", 103 "RINPUT1", "Headset Mic", 104 "RINPUT2", "Headset Mic"; 105 pinctrl-names = "default"; 106 pinctrl-0 = <&hp_det>; 107 play-pause-key { 108 label = "playpause"; 109 linux,code = <KEY_PLAYPAUSE>; 110 press-threshold-microvolt = <2000>; 111 }; 112 }; 113 114 fan: pwm-fan { 115 compatible = "pwm-fan"; 116 #cooling-cells = <2>; 117 pwms = <&pwm11 0 50000 0>; 118 cooling-levels = <0 50 100 150 200 255>; 119 rockchip,temp-trips = < 120 50000 1 121 55000 2 122 60000 3 123 65000 4 124 70000 5 125 >; 126 }; 127 128 hall_sensor: hall-mh248 { 129 compatible = "hall-mh248"; 130 pinctrl-names = "default"; 131 pinctrl-0 = <&mh248_irq_gpio>; 132 irq-gpio = <&gpio0 RK_PD4 IRQ_TYPE_EDGE_BOTH>; 133 hall-active = <1>; 134 status = "okay"; 135 }; 136 137 panel-edp { 138 compatible = "simple-panel"; 139 backlight = <&backlight>; 140 power-supply = <&vcc3v3_lcd_edp>; 141 prepare-delay-ms = <120>; 142 enable-delay-ms = <120>; 143 unprepare-delay-ms = <120>; 144 disable-delay-ms = <120>; 145 width-mm = <129>; 146 height-mm = <171>; 147 148 panel-timing { 149 clock-frequency = <200000000>; 150 hactive = <1536>; 151 vactive = <2048>; 152 hfront-porch = <12>; 153 hsync-len = <16>; 154 hback-porch = <48>; 155 vfront-porch = <8>; 156 vsync-len = <4>; 157 vback-porch = <8>; 158 hsync-active = <0>; 159 vsync-active = <0>; 160 de-active = <0>; 161 pixelclk-active = <0>; 162 }; 163 164 port { 165 panel_in_edp: endpoint { 166 remote-endpoint = <&edp_out_panel>; 167 }; 168 }; 169 }; 170 171 vbus5v0_typec: vbus5v0-typec { 172 compatible = "regulator-fixed"; 173 regulator-name = "vbus5v0_typec"; 174 regulator-min-microvolt = <5000000>; 175 regulator-max-microvolt = <5000000>; 176 enable-active-high; 177 gpio = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>; 178 vin-supply = <&vcc5v0_usb>; 179 pinctrl-names = "default"; 180 pinctrl-0 = <&typec5v_pwren>; 181 }; 182 183 vcc3v3_lcd_edp: vcc3v3-lcd-edp { 184 compatible = "regulator-fixed"; 185 regulator-name = "vcc3v3_lcd_edp"; 186 gpio = <&gpio1 RK_PA5 GPIO_ACTIVE_HIGH>; 187 enable-active-high; 188 regulator-boot-on; 189 vin-supply = <&vcc_3v3_s3>; 190 }; 191 192 vcc3v3_pcie20: vcc3v3-pcie20 { 193 compatible = "regulator-fixed"; 194 regulator-name = "vcc3v3_pcie20"; 195 regulator-min-microvolt = <3300000>; 196 regulator-max-microvolt = <3300000>; 197 enable-active-high; 198 gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_HIGH>; 199 startup-delay-us = <5000>; 200 vin-supply = <&vcc12v_dcin>; 201 }; 202 203 vcc5v0_host: vcc5v0-host { 204 compatible = "regulator-fixed"; 205 regulator-name = "vcc5v0_host"; 206 regulator-boot-on; 207 regulator-always-on; 208 regulator-min-microvolt = <5000000>; 209 regulator-max-microvolt = <5000000>; 210 enable-active-high; 211 gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>; 212 vin-supply = <&vcc5v0_usb>; 213 pinctrl-names = "default"; 214 pinctrl-0 = <&vcc5v0_host_en>; 215 }; 216 217 wireless_bluetooth: wireless-bluetooth { 218 compatible = "bluetooth-platdata"; 219 clocks = <&hym8563>; 220 clock-names = "ext_clock"; 221 uart_rts_gpios = <&gpio3 RK_PA4 GPIO_ACTIVE_LOW>; 222 pinctrl-names = "default", "rts_gpio"; 223 pinctrl-0 = <&uart8m1_rtsn>, <&bt_gpio>; 224 pinctrl-1 = <&uart8_gpios>; 225 BT,reset_gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>; 226 BT,wake_gpio = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; 227 BT,wake_host_irq = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>; 228 status = "okay"; 229 }; 230 231 wireless_wlan: wireless-wlan { 232 compatible = "wlan-platdata"; 233 wifi_chip_type = "ap6275p"; 234 pinctrl-names = "default"; 235 pinctrl-0 = <&wifi_host_wake_irq>, <&wifi_poweren_gpio>; 236 WIFI,host_wake_irq = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; 237 WIFI,poweren_gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; 238 status = "okay"; 239 }; 240}; 241 242&backlight { 243 pwms = <&pwm12 0 25000 0>; 244 power-supply = <&vcc3v3_lcd_edp>; 245 status = "okay"; 246}; 247 248&combphy0_ps { 249 status = "okay"; 250}; 251 252&dp0 { 253 status = "okay"; 254}; 255 256&dp0_in_vp1 { 257 status = "okay"; 258}; 259 260&dp0_sound{ 261 status = "okay"; 262}; 263 264&edp0 { 265 force-hpd; 266 status = "okay"; 267 268 ports { 269 port@1 { 270 reg = <1>; 271 272 edp_out_panel: endpoint { 273 remote-endpoint = <&panel_in_edp>; 274 }; 275 }; 276 }; 277}; 278 279&edp0_in_vp2 { 280 status = "okay"; 281}; 282 283&hdptxphy0 { 284 /* Single Vdiff Training Table for power reduction (optional) */ 285 training-table = /bits/ 8 < 286 /* voltage swing 0, pre-emphasis 0->3 */ 287 0x0d 0x00 0x00 0x00 0x00 0x00 288 0x0d 0x00 0x00 0x00 0x00 0x00 289 0x0d 0x00 0x00 0x00 0x00 0x00 290 0x0d 0x00 0x00 0x00 0x00 0x00 291 /* voltage swing 1, pre-emphasis 0->2 */ 292 0x0d 0x00 0x00 0x00 0x00 0x00 293 0x0d 0x00 0x00 0x00 0x00 0x00 294 0x0d 0x00 0x00 0x00 0x00 0x00 295 /* voltage swing 2, pre-emphasis 0->1 */ 296 0x0d 0x00 0x00 0x00 0x00 0x00 297 0x0d 0x00 0x00 0x00 0x00 0x00 298 /* voltage swing 3, pre-emphasis 0 */ 299 0x0d 0x00 0x00 0x00 0x00 0x00 300 >; 301 status = "okay"; 302}; 303 304&i2c3 { 305 status = "okay"; 306 307 es8388: es8388@11 { 308 status = "okay"; 309 #sound-dai-cells = <0>; 310 compatible = "everest,es8388", "everest,es8323"; 311 reg = <0x11>; 312 clocks = <&mclkout_i2s0>; 313 clock-names = "mclk"; 314 assigned-clocks = <&mclkout_i2s0>; 315 assigned-clock-rates = <12288000>; 316 pinctrl-names = "default"; 317 pinctrl-0 = <&i2s0_mclk>; 318 }; 319 320 es8326: es8326@18 { 321 status = "disabled"; 322 #sound-dai-cells = <0>; 323 compatible = "everest,es8326"; 324 reg = <0x18>; 325 clocks = <&mclkout_i2s1>; 326 clock-names = "mclk"; 327 assigned-clocks = <&mclkout_i2s1>; 328 assigned-clock-rates = <12288000>; 329 pinctrl-names = "default"; 330 pinctrl-0 = <&i2s1m0_mclk>; 331 mclk-rate = <12288000>; 332 mic1-src = [22]; 333 mic2-src = [44]; 334 jack-pol = [0e]; 335 }; 336 337 es7202: es7202@32 { 338 status = "okay"; 339 #sound-dai-cells = <0>; 340 compatible = "ES7202_PDM_ADC_1"; 341 power-supply = <&vcc_1v8_s0>; /* only 1v8 or 3v3, default is 3v3 */ 342 reg = <0x32>; 343 }; 344 345 aw883xx_1: aw883xx@34 { 346 compatible = "awinic,aw883xx_smartpa"; 347 reg = <0x34>; 348 #sound-dai-cells = <0>; 349 reset-gpio = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>; 350 pinctrl-0 = <&aw_rst1_gpio>; 351 pinctrl-names = "default"; 352 sound-channel = <0>; 353 re-min = <1000>; 354 re-max= <40000>; 355 status = "disabled"; 356 }; 357 358 aw883xx_2: aw883xx@35 { 359 compatible = "awinic,aw883xx_smartpa"; 360 reg = <0x35>; 361 #sound-dai-cells = <0>; 362 reset-gpio = <&gpio1 RK_PA5 GPIO_ACTIVE_HIGH>; 363 pinctrl-0 = <&aw_rst2_gpio>; 364 pinctrl-names = "default"; 365 sound-channel = <1>; 366 re-min = <1000>; 367 re-max= <40000>; 368 status = "disabled"; 369 }; 370}; 371 372&i2c4 { 373 pinctrl-names = "default"; 374 pinctrl-0 = <&i2c4m3_xfer>; 375 status = "okay"; 376 377 aw883xx_3: aw883xx@34 { 378 compatible = "awinic,aw883xx_smartpa"; 379 reg = <0x34>; 380 #sound-dai-cells = <0>; 381 reset-gpio = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>; 382 pinctrl-0 = <&aw_rst3_gpio>; 383 pinctrl-names = "default"; 384 sound-channel = <2>; 385 re-min = <1000>; 386 re-max= <40000>; 387 status = "disabled"; 388 }; 389 390 aw883xx_4: aw883xx@35 { 391 compatible = "awinic,aw883xx_smartpa"; 392 reg = <0x35>; 393 #sound-dai-cells = <0>; 394 reset-gpio = <&gpio1 RK_PC4 GPIO_ACTIVE_HIGH>; 395 pinctrl-0 = <&aw_rst4_gpio>; 396 pinctrl-names = "default"; 397 sound-channel = <3>; 398 re-min = <1000>; 399 re-max= <40000>; 400 status = "disabled"; 401 }; 402 403 gsl3673@40 { 404 compatible = "GSL,GSL3673"; 405 reg = <0x40>; 406 screen_max_x = <1536>; 407 screen_max_y = <2048>; 408 irq_gpio_number = <&gpio1 RK_PB5 IRQ_TYPE_LEVEL_LOW>; 409 rst_gpio_number = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>; 410 }; 411}; 412 413&i2c5 { 414 status = "okay"; 415 416 ls_stk3332: light@47 { 417 compatible = "ls_stk3332"; 418 status = "disabled"; 419 reg = <0x47>; 420 type = <SENSOR_TYPE_LIGHT>; 421 irq_enable = <0>; 422 als_threshold_high = <100>; 423 als_threshold_low = <10>; 424 als_ctrl_gain = <2>; /* 0:x1 1:x4 2:x16 3:x64 */ 425 poll_delay_ms = <100>; 426 }; 427 428 ps_stk3332: proximity@47 { 429 compatible = "ps_stk3332"; 430 status = "disabled"; 431 reg = <0x47>; 432 type = <SENSOR_TYPE_PROXIMITY>; 433 //pinctrl-names = "default"; 434 //pinctrl-0 = <&gpio3_c6>; 435 //irq-gpio = <&gpio3 RK_PC6 IRQ_TYPE_LEVEL_LOW>; 436 //irq_enable = <1>; 437 ps_threshold_high = <0x200>; 438 ps_threshold_low = <0x100>; 439 ps_ctrl_gain = <3>; /* 0:x1 1:x2 2:x5 3:x8 */ 440 ps_led_current = <4>; /* 0:3.125mA 1:6.25mA 2:12.5mA 3:25mA 4:50mA 5:100mA*/ 441 poll_delay_ms = <100>; 442 }; 443 444 mpu6500_acc: mpu_acc@68 { 445 compatible = "mpu6500_acc"; 446 reg = <0x68>; 447 irq-gpio = <&gpio3 RK_PB4 IRQ_TYPE_EDGE_RISING>; 448 irq_enable = <0>; 449 poll_delay_ms = <30>; 450 type = <SENSOR_TYPE_ACCEL>; 451 layout = <5>; 452 }; 453 454 mpu6500_gyro: mpu_gyro@68 { 455 compatible = "mpu6500_gyro"; 456 reg = <0x68>; 457 poll_delay_ms = <30>; 458 type = <SENSOR_TYPE_GYROSCOPE>; 459 layout = <5>; 460 }; 461}; 462 463&i2c8 { 464 status = "okay"; 465 pinctrl-names = "default"; 466 pinctrl-0 = <&i2c8m2_xfer>; 467 468 usbc0: fusb302@22 { 469 compatible = "fcs,fusb302"; 470 reg = <0x22>; 471 interrupt-parent = <&gpio0>; 472 interrupts = <RK_PD3 IRQ_TYPE_LEVEL_LOW>; 473 pinctrl-names = "default"; 474 pinctrl-0 = <&usbc0_int>; 475 vbus-supply = <&vbus5v0_typec>; 476 status = "okay"; 477 478 ports { 479 #address-cells = <1>; 480 #size-cells = <0>; 481 482 port@0 { 483 reg = <0>; 484 usbc0_role_sw: endpoint@0 { 485 remote-endpoint = <&dwc3_0_role_switch>; 486 }; 487 }; 488 }; 489 490 usb_con: connector { 491 compatible = "usb-c-connector"; 492 label = "USB-C"; 493 data-role = "dual"; 494 power-role = "dual"; 495 try-power-role = "sink"; 496 op-sink-microwatt = <1000000>; 497 sink-pdos = 498 <PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>; 499 source-pdos = 500 <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; 501 502 altmodes { 503 #address-cells = <1>; 504 #size-cells = <0>; 505 506 altmode@0 { 507 reg = <0>; 508 svid = <0xff01>; 509 vdo = <0xffffffff>; 510 }; 511 }; 512 513 ports { 514 #address-cells = <1>; 515 #size-cells = <0>; 516 517 port@0 { 518 reg = <0>; 519 usbc0_orien_sw: endpoint { 520 remote-endpoint = <&usbdp_phy0_orientation_switch>; 521 }; 522 }; 523 524 port@1 { 525 reg = <1>; 526 dp_altmode_mux: endpoint { 527 remote-endpoint = <&usbdp_phy0_dp_altmode_mux>; 528 }; 529 }; 530 }; 531 }; 532 }; 533 534 hym8563: hym8563@51 { 535 compatible = "haoyu,hym8563"; 536 reg = <0x51>; 537 #clock-cells = <0>; 538 clock-frequency = <32768>; 539 clock-output-names = "hym8563"; 540 pinctrl-names = "default"; 541 pinctrl-0 = <&hym8563_int>; 542 interrupt-parent = <&gpio0>; 543 interrupts = <RK_PC4 IRQ_TYPE_LEVEL_LOW>; 544 wakeup-source; 545 }; 546}; 547 548&pcie2x1l1 { 549 reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>; 550 vpcie3v3-supply = <&vcc3v3_pcie20>; 551 status = "okay"; 552}; 553 554&pcie2x1l2 { 555 reset-gpios = <&gpio4 RK_PC1 GPIO_ACTIVE_HIGH>; 556 rockchip,skip-scan-in-resume; 557 status = "okay"; 558}; 559 560&pdm0 { 561 status = "okay"; 562}; 563 564&pinctrl { 565 headphone { 566 hp_det: hp-det { 567 rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; 568 }; 569 }; 570 571 hym8563 { 572 hym8563_int: hym8563-int { 573 rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>; 574 }; 575 }; 576 577 lcd { 578 lcd_rst_gpio: lcd-rst-gpio { 579 rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; 580 }; 581 }; 582 583 aw883x { 584 aw_rst1_gpio: aw-rst1-gpio { 585 rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>; 586 }; 587 aw_rst2_gpio: aw-rst2-gpio { 588 rockchip,pins = <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; 589 }; 590 aw_rst3_gpio: aw-rst3-gpio { 591 rockchip,pins = <3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>; 592 }; 593 aw_rst4_gpio: aw-rst4-gpio { 594 rockchip,pins = <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>; 595 }; 596 }; 597 598 sensor { 599 mh248_irq_gpio: mh248_irq_gpio { 600 rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up>; 601 }; 602 603 mpu6500_irq_gpio: mpu6500_irq_gpio { 604 rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; 605 }; 606 }; 607 608 usb { 609 vcc5v0_host_en: vcc5v0-host-en { 610 rockchip,pins = <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; 611 }; 612 }; 613 614 usb-typec { 615 usbc0_int: usbc0-int { 616 rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>; 617 }; 618 619 typec5v_pwren: typec5v-pwren { 620 rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; 621 }; 622 }; 623 624 wireless-bluetooth { 625 uart8_gpios: uart8-gpios { 626 rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; 627 }; 628 629 bt_gpio: bt-gpio { 630 rockchip,pins = 631 <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>, 632 <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>, 633 <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_down>; 634 }; 635 }; 636 637 wireless-wlan { 638 wifi_host_wake_irq: wifi-host-wake-irq { 639 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>; 640 }; 641 642 wifi_poweren_gpio: wifi-poweren-gpio { 643 rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>; 644 }; 645 }; 646}; 647 648&pwm3 { 649 compatible = "rockchip,remotectl-pwm"; 650 pinctrl-names = "default"; 651 pinctrl-0 = <&pwm3m3_pins>; 652 remote_pwm_id = <3>; 653 handle_cpu_id = <1>; 654 remote_support_psci = <0>; 655 status = "okay"; 656 657 ir_key1 { 658 rockchip,usercode = <0x4040>; 659 rockchip,key_table = 660 <0xf2 KEY_REPLY>, 661 <0xba KEY_BACK>, 662 <0xf4 KEY_UP>, 663 <0xf1 KEY_DOWN>, 664 <0xef KEY_LEFT>, 665 <0xee KEY_RIGHT>, 666 <0xbd KEY_HOME>, 667 <0xea KEY_VOLUMEUP>, 668 <0xe3 KEY_VOLUMEDOWN>, 669 <0xe2 KEY_SEARCH>, 670 <0xb2 KEY_POWER>, 671 <0xbc KEY_MUTE>, 672 <0xec KEY_MENU>, 673 <0xbf 0x190>, 674 <0xe0 0x191>, 675 <0xe1 0x192>, 676 <0xe9 183>, 677 <0xe6 248>, 678 <0xe8 185>, 679 <0xe7 186>, 680 <0xf0 388>, 681 <0xbe 0x175>; 682 }; 683 684 ir_key2 { 685 rockchip,usercode = <0xff00>; 686 rockchip,key_table = 687 <0xf9 KEY_HOME>, 688 <0xbf KEY_BACK>, 689 <0xfb KEY_MENU>, 690 <0xaa KEY_REPLY>, 691 <0xb9 KEY_UP>, 692 <0xe9 KEY_DOWN>, 693 <0xb8 KEY_LEFT>, 694 <0xea KEY_RIGHT>, 695 <0xeb KEY_VOLUMEDOWN>, 696 <0xef KEY_VOLUMEUP>, 697 <0xf7 KEY_MUTE>, 698 <0xe7 KEY_POWER>, 699 <0xfc KEY_POWER>, 700 <0xa9 KEY_VOLUMEDOWN>, 701 <0xa8 KEY_PLAYPAUSE>, 702 <0xe0 KEY_VOLUMEDOWN>, 703 <0xa5 KEY_VOLUMEDOWN>, 704 <0xab 183>, 705 <0xb7 388>, 706 <0xe8 388>, 707 <0xf8 184>, 708 <0xaf 185>, 709 <0xed KEY_VOLUMEDOWN>, 710 <0xee 186>, 711 <0xb3 KEY_VOLUMEDOWN>, 712 <0xf1 KEY_VOLUMEDOWN>, 713 <0xf2 KEY_VOLUMEDOWN>, 714 <0xf3 KEY_SEARCH>, 715 <0xb4 KEY_VOLUMEDOWN>, 716 <0xa4 KEY_SETUP>, 717 <0xbe KEY_SEARCH>; 718 }; 719 720 ir_key3 { 721 rockchip,usercode = <0x1dcc>; 722 rockchip,key_table = 723 <0xee KEY_REPLY>, 724 <0xf0 KEY_BACK>, 725 <0xf8 KEY_UP>, 726 <0xbb KEY_DOWN>, 727 <0xef KEY_LEFT>, 728 <0xed KEY_RIGHT>, 729 <0xfc KEY_HOME>, 730 <0xf1 KEY_VOLUMEUP>, 731 <0xfd KEY_VOLUMEDOWN>, 732 <0xb7 KEY_SEARCH>, 733 <0xff KEY_POWER>, 734 <0xf3 KEY_MUTE>, 735 <0xbf KEY_MENU>, 736 <0xf9 0x191>, 737 <0xf5 0x192>, 738 <0xb3 388>, 739 <0xbe KEY_1>, 740 <0xba KEY_2>, 741 <0xb2 KEY_3>, 742 <0xbd KEY_4>, 743 <0xf9 KEY_5>, 744 <0xb1 KEY_6>, 745 <0xfc KEY_7>, 746 <0xf8 KEY_8>, 747 <0xb0 KEY_9>, 748 <0xb6 KEY_0>, 749 <0xb5 KEY_BACKSPACE>; 750 }; 751}; 752 753&pwm11 { 754 pinctrl-0 = <&pwm11m1_pins>; 755 status = "okay"; 756}; 757 758&pwm12 { 759 pinctrl-0 = <&pwm12m1_pins>; 760 status = "okay"; 761}; 762 763&route_edp0 { 764 connect = <&vp2_out_edp0>; 765 status = "okay"; 766}; 767 768&sdmmc { 769 status = "okay"; 770}; 771 772&spdif_tx1 { 773 status = "disabled"; 774 pinctrl-names = "default"; 775 pinctrl-0 = <&spdif1m1_tx>; 776}; 777 778&spdif_tx1_dc { 779 status = "okay"; 780}; 781 782&spdif_tx1_sound { 783 status = "okay"; 784}; 785 786&spdif_tx2 { 787 status = "okay"; 788}; 789 790&u2phy0_otg { 791 rockchip,typec-vbus-det; 792}; 793 794&u2phy2_host { 795 phy-supply = <&vcc5v0_host>; 796}; 797 798&u2phy3_host { 799 phy-supply = <&vcc5v0_host>; 800}; 801 802&uart8 { 803 status = "okay"; 804 pinctrl-names = "default"; 805 pinctrl-0 = <&uart8m1_xfer &uart8m1_ctsn>; 806}; 807 808&usbdp_phy0 { 809 orientation-switch; 810 svid = <0xff01>; 811 sbu1-dc-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>; 812 sbu2-dc-gpios = <&gpio1 RK_PB7 GPIO_ACTIVE_HIGH>; 813 814 port { 815 #address-cells = <1>; 816 #size-cells = <0>; 817 usbdp_phy0_orientation_switch: endpoint@0 { 818 reg = <0>; 819 remote-endpoint = <&usbc0_orien_sw>; 820 }; 821 822 usbdp_phy0_dp_altmode_mux: endpoint@1 { 823 reg = <1>; 824 remote-endpoint = <&dp_altmode_mux>; 825 }; 826 }; 827}; 828 829&usbdrd_dwc3_0 { 830 usb-role-switch; 831 port { 832 #address-cells = <1>; 833 #size-cells = <0>; 834 dwc3_0_role_switch: endpoint@0 { 835 reg = <0>; 836 remote-endpoint = <&usbc0_role_sw>; 837 }; 838 }; 839}; 840 841&usbhost3_0 { 842 status = "disabled"; 843}; 844 845&usbhost_dwc3_0 { 846 status = "disabled"; 847}; 848 849/* vp0 & vp3 are not used on this board */ 850&vp0 { 851 /delete-property/ rockchip,plane-mask; 852 /delete-property/ rockchip,primary-plane; 853}; 854 855&vp1 { 856 rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER0 | 1 << ROCKCHIP_VOP2_ESMART0 | 857 1 << ROCKCHIP_VOP2_CLUSTER1 | 1 << ROCKCHIP_VOP2_ESMART1)>; 858 rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART1>; 859}; 860 861&vp2 { 862 rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER2 | 1 << ROCKCHIP_VOP2_ESMART2 | 863 1 << ROCKCHIP_VOP2_CLUSTER3 | 1 << ROCKCHIP_VOP2_ESMART3)>; 864 rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART2>; 865}; 866 867&vp3 { 868 /delete-property/ rockchip,plane-mask; 869 /delete-property/ rockchip,primary-plane; 870}; 871