| 1 |
// SPDX-License-Identifier: (GPL-2.0 OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (C) 2023 MediaTek Inc. |
| 4 |
* Author: Chris Chen <[email protected]> |
| 5 |
* Pablo Sun <[email protected]> |
| 6 |
* Macpaul Lin <[email protected]> |
| 7 |
* |
| 8 |
* Copyright (C) 2025 Collabora Ltd. |
| 9 |
* Louis-Alexis Eyraud <[email protected]> |
| 10 |
* AngeloGioacchino Del Regno <[email protected]> |
| 11 |
*/ |
| 12 |
|
| 13 |
#include "mt6359.dtsi" |
| 14 |
#include <dt-bindings/gpio/gpio.h> |
| 15 |
#include <dt-bindings/input/input.h> |
| 16 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 17 |
#include <dt-bindings/pinctrl/mediatek,mt8188-pinfunc.h> |
| 18 |
#include <dt-bindings/regulator/mediatek,mt6360-regulator.h> |
| 19 |
#include <dt-bindings/spmi/spmi.h> |
| 20 |
#include <dt-bindings/usb/pd.h> |
| 21 |
|
| 22 |
/ { |
| 23 |
aliases { |
| 24 |
dsi0 = &disp_dsi0; |
| 25 |
ethernet0 = ð |
| 26 |
i2c0 = &i2c0; |
| 27 |
i2c1 = &i2c1; |
| 28 |
i2c2 = &i2c2; |
| 29 |
i2c3 = &i2c3; |
| 30 |
i2c4 = &i2c4; |
| 31 |
i2c5 = &i2c5; |
| 32 |
i2c6 = &i2c6; |
| 33 |
mmc0 = &mmc0; |
| 34 |
mmc1 = &mmc1; |
| 35 |
serial0 = &uart0; |
| 36 |
}; |
| 37 |
|
| 38 |
backlight_lcm1: backlight-lcm1 { |
| 39 |
compatible = "pwm-backlight"; |
| 40 |
brightness-levels = <0 1023>; |
| 41 |
default-brightness-level = <576>; |
| 42 |
num-interpolated-steps = <1023>; |
| 43 |
power-supply = <®_vsys>; |
| 44 |
pwms = <&disp_pwm1 0 500000>; |
| 45 |
}; |
| 46 |
|
| 47 |
chosen { |
| 48 |
stdout-path = "serial0:921600n8"; |
| 49 |
}; |
| 50 |
|
| 51 |
dmic_codec: dmic-codec { |
| 52 |
#sound-dai-cells = <0>; |
| 53 |
compatible = "dmic-codec"; |
| 54 |
num-channels = <2>; |
| 55 |
wakeup-delay-ms = <30>; |
| 56 |
}; |
| 57 |
|
| 58 |
connector { |
| 59 |
compatible = "hdmi-connector"; |
| 60 |
label = "hdmi"; |
| 61 |
type = "a"; |
| 62 |
ddc-i2c-bus = <&hdmi_ddc>; |
| 63 |
hdmi-pwr-supply = <&hdmi_phy>; |
| 64 |
|
| 65 |
port { |
| 66 |
hdmi_connector_in: endpoint { |
| 67 |
remote-endpoint = <&hdmi0_out>; |
| 68 |
}; |
| 69 |
}; |
| 70 |
}; |
| 71 |
|
| 72 |
firmware { |
| 73 |
optee { |
| 74 |
compatible = "linaro,optee-tz"; |
| 75 |
method = "smc"; |
| 76 |
}; |
| 77 |
}; |
| 78 |
reserved-memory { |
| 79 |
#address-cells = <2>; |
| 80 |
#size-cells = <2>; |
| 81 |
ranges; |
| 82 |
|
| 83 |
/* |
| 84 |
* 12 MiB reserved for OP-TEE (BL32) |
| 85 |
* +-----------------------+ 0x43e0_0000 |
| 86 |
* | SHMEM 2MiB | |
| 87 |
* +-----------------------+ 0x43c0_0000 |
| 88 |
* | | TA_RAM 8MiB | |
| 89 |
* + TZDRAM +--------------+ 0x4340_0000 |
| 90 |
* | | TEE_RAM 2MiB | |
| 91 |
* +-----------------------+ 0x4320_0000 |
| 92 |
*/ |
| 93 |
optee_reserved: optee@43200000 { |
| 94 |
no-map; |
| 95 |
reg = <0 0x43200000 0 0x00c00000>; |
| 96 |
}; |
| 97 |
|
| 98 |
scp_mem: memory@50000000 { |
| 99 |
compatible = "shared-dma-pool"; |
| 100 |
reg = <0 0x50000000 0 0x2900000>; |
| 101 |
no-map; |
| 102 |
}; |
| 103 |
|
| 104 |
/* 2 MiB reserved for ARM Trusted Firmware (BL31) */ |
| 105 |
bl31_secmon_reserved: memory@54600000 { |
| 106 |
no-map; |
| 107 |
reg = <0 0x54600000 0x0 0x200000>; |
| 108 |
}; |
| 109 |
|
| 110 |
apu_mem: memory@55000000 { |
| 111 |
compatible = "shared-dma-pool"; |
| 112 |
reg = <0 0x55000000 0 0x1400000>; /* 20 MB */ |
| 113 |
}; |
| 114 |
|
| 115 |
vpu_mem: memory@57000000 { |
| 116 |
compatible = "shared-dma-pool"; |
| 117 |
reg = <0 0x57000000 0 0x1400000>; /* 20 MB */ |
| 118 |
}; |
| 119 |
|
| 120 |
adsp_mem: memory@60000000 { |
| 121 |
compatible = "shared-dma-pool"; |
| 122 |
reg = <0 0x60000000 0 0xf00000>; |
| 123 |
no-map; |
| 124 |
}; |
| 125 |
|
| 126 |
afe_dma_mem: memory@60f00000 { |
| 127 |
compatible = "shared-dma-pool"; |
| 128 |
reg = <0 0x60f00000 0 0x100000>; |
| 129 |
no-map; |
| 130 |
}; |
| 131 |
|
| 132 |
adsp_dma_mem: memory@61000000 { |
| 133 |
compatible = "shared-dma-pool"; |
| 134 |
reg = <0 0x61000000 0 0x100000>; |
| 135 |
no-map; |
| 136 |
}; |
| 137 |
}; |
| 138 |
|
| 139 |
common_fixed_5v: regulator-0 { |
| 140 |
compatible = "regulator-fixed"; |
| 141 |
regulator-name = "vdd_5v"; |
| 142 |
regulator-min-microvolt = <5000000>; |
| 143 |
regulator-max-microvolt = <5000000>; |
| 144 |
gpio = <&pio 10 GPIO_ACTIVE_HIGH>; |
| 145 |
enable-active-high; |
| 146 |
regulator-always-on; |
| 147 |
vin-supply = <®_vsys>; |
| 148 |
}; |
| 149 |
|
| 150 |
edp_panel_fixed_3v3: regulator-1 { |
| 151 |
compatible = "regulator-fixed"; |
| 152 |
regulator-name = "vedp_3v3"; |
| 153 |
regulator-min-microvolt = <3300000>; |
| 154 |
regulator-max-microvolt = <3300000>; |
| 155 |
enable-active-high; |
| 156 |
gpio = <&pio 15 GPIO_ACTIVE_HIGH>; |
| 157 |
pinctrl-names = "default"; |
| 158 |
pinctrl-0 = <&edp_panel_3v3_en_pins>; |
| 159 |
vin-supply = <®_vsys>; |
| 160 |
}; |
| 161 |
|
| 162 |
gpio_fixed_3v3: regulator-2 { |
| 163 |
compatible = "regulator-fixed"; |
| 164 |
regulator-name = "ext_3v3"; |
| 165 |
regulator-min-microvolt = <3300000>; |
| 166 |
regulator-max-microvolt = <3300000>; |
| 167 |
gpio = <&pio 9 GPIO_ACTIVE_HIGH>; |
| 168 |
enable-active-high; |
| 169 |
regulator-always-on; |
| 170 |
vin-supply = <®_vsys>; |
| 171 |
}; |
| 172 |
|
| 173 |
/* system wide 4.2V power rail from charger */ |
| 174 |
reg_vsys: regulator-vsys { |
| 175 |
compatible = "regulator-fixed"; |
| 176 |
regulator-name = "vsys"; |
| 177 |
regulator-always-on; |
| 178 |
regulator-boot-on; |
| 179 |
}; |
| 180 |
|
| 181 |
/* used by mmc2 */ |
| 182 |
sdio_fixed_1v8: regulator-3 { |
| 183 |
compatible = "regulator-fixed"; |
| 184 |
regulator-name = "vio18_conn"; |
| 185 |
regulator-min-microvolt = <1800000>; |
| 186 |
regulator-max-microvolt = <1800000>; |
| 187 |
enable-active-high; |
| 188 |
regulator-always-on; |
| 189 |
}; |
| 190 |
|
| 191 |
/* used by mmc2 */ |
| 192 |
sdio_fixed_3v3: regulator-4 { |
| 193 |
compatible = "regulator-fixed"; |
| 194 |
regulator-name = "wifi_3v3"; |
| 195 |
regulator-min-microvolt = <3300000>; |
| 196 |
regulator-max-microvolt = <3300000>; |
| 197 |
gpio = <&pio 74 GPIO_ACTIVE_HIGH>; |
| 198 |
enable-active-high; |
| 199 |
regulator-always-on; |
| 200 |
vin-supply = <®_vsys>; |
| 201 |
}; |
| 202 |
|
| 203 |
touch0_fixed_3v3: regulator-5 { |
| 204 |
compatible = "regulator-fixed"; |
| 205 |
regulator-name = "vio33_tp1"; |
| 206 |
regulator-min-microvolt = <3300000>; |
| 207 |
regulator-max-microvolt = <3300000>; |
| 208 |
gpio = <&pio 119 GPIO_ACTIVE_HIGH>; |
| 209 |
enable-active-high; |
| 210 |
vin-supply = <®_vsys>; |
| 211 |
pinctrl-names = "default"; |
| 212 |
pinctrl-0 = <&touch_vreg_pins>; |
| 213 |
}; |
| 214 |
|
| 215 |
usb_hub_fixed_3v3: regulator-6 { |
| 216 |
compatible = "regulator-fixed"; |
| 217 |
regulator-name = "vhub_3v3"; |
| 218 |
regulator-min-microvolt = <3300000>; |
| 219 |
regulator-max-microvolt = <3300000>; |
| 220 |
gpio = <&pio 112 GPIO_ACTIVE_HIGH>; /* HUB_3V3_EN */ |
| 221 |
startup-delay-us = <10000>; |
| 222 |
enable-active-high; |
| 223 |
vin-supply = <®_vsys>; |
| 224 |
}; |
| 225 |
|
| 226 |
usb_p0_vbus: regulator-7 { |
| 227 |
compatible = "regulator-fixed"; |
| 228 |
regulator-name = "vbus_p0"; |
| 229 |
regulator-min-microvolt = <5000000>; |
| 230 |
regulator-max-microvolt = <5000000>; |
| 231 |
gpio = <&pio 84 GPIO_ACTIVE_HIGH>; |
| 232 |
enable-active-high; |
| 233 |
vin-supply = <®_vsys>; |
| 234 |
}; |
| 235 |
|
| 236 |
usb_p1_vbus: regulator-8 { |
| 237 |
compatible = "regulator-fixed"; |
| 238 |
regulator-name = "vbus_p1"; |
| 239 |
regulator-min-microvolt = <5000000>; |
| 240 |
regulator-max-microvolt = <5000000>; |
| 241 |
gpio = <&pio 87 GPIO_ACTIVE_HIGH>; |
| 242 |
enable-active-high; |
| 243 |
vin-supply = <®_vsys>; |
| 244 |
}; |
| 245 |
|
| 246 |
/* used by ssusb2 */ |
| 247 |
usb_p2_vbus: regulator-9 { |
| 248 |
compatible = "regulator-fixed"; |
| 249 |
regulator-name = "vbus_p2"; |
| 250 |
regulator-min-microvolt = <5000000>; |
| 251 |
regulator-max-microvolt = <5000000>; |
| 252 |
enable-active-high; |
| 253 |
}; |
| 254 |
|
| 255 |
lcm1_iovcc: regulator-vio18-lcm1 { |
| 256 |
compatible = "regulator-fixed"; |
| 257 |
regulator-name = "vio18_lcm1"; |
| 258 |
regulator-min-microvolt = <1800000>; |
| 259 |
regulator-max-microvolt = <1800000>; |
| 260 |
enable-active-high; |
| 261 |
gpio = <&pio 111 GPIO_ACTIVE_HIGH>; |
| 262 |
pinctrl-names = "default"; |
| 263 |
pinctrl-0 = <&dsi0_vreg_en_pins>; |
| 264 |
vin-supply = <®_vsys>; |
| 265 |
}; |
| 266 |
|
| 267 |
lcm1_vddp: regulator-vsys-lcm1 { |
| 268 |
compatible = "regulator-fixed"; |
| 269 |
regulator-name = "vsys_lcm1"; |
| 270 |
regulator-min-microvolt = <4200000>; |
| 271 |
regulator-max-microvolt = <4200000>; |
| 272 |
regulator-always-on; |
| 273 |
regulator-boot-on; |
| 274 |
vin-supply = <®_vsys>; |
| 275 |
}; |
| 276 |
}; |
| 277 |
|
| 278 |
&adsp { |
| 279 |
memory-region = <&adsp_dma_mem>, <&adsp_mem>; |
| 280 |
status = "okay"; |
| 281 |
}; |
| 282 |
|
| 283 |
&afe { |
| 284 |
memory-region = <&afe_dma_mem>; |
| 285 |
status = "okay"; |
| 286 |
}; |
| 287 |
|
| 288 |
&disp_dsi0 { |
| 289 |
#address-cells = <1>; |
| 290 |
#size-cells = <0>; |
| 291 |
status = "okay"; |
| 292 |
|
| 293 |
panel@0 { |
| 294 |
compatible = "startek,kd070fhfid078", "himax,hx8279"; |
| 295 |
reg = <0>; |
| 296 |
backlight = <&backlight_lcm1>; |
| 297 |
enable-gpios = <&pio 45 GPIO_ACTIVE_HIGH>; |
| 298 |
reset-gpios = <&pio 25 GPIO_ACTIVE_HIGH>; |
| 299 |
iovcc-supply = <&lcm1_iovcc>; |
| 300 |
vdd-supply = <&lcm1_vddp>; |
| 301 |
pinctrl-names = "default"; |
| 302 |
pinctrl-0 = <&panel_default_pins>; |
| 303 |
|
| 304 |
port { |
| 305 |
dsi_panel_in: endpoint { |
| 306 |
remote-endpoint = <&dsi0_out>; |
| 307 |
}; |
| 308 |
}; |
| 309 |
}; |
| 310 |
|
| 311 |
ports { |
| 312 |
#address-cells = <1>; |
| 313 |
#size-cells = <0>; |
| 314 |
|
| 315 |
port@0 { |
| 316 |
reg = <0>; |
| 317 |
dsi0_in: endpoint { |
| 318 |
remote-endpoint = <&dither0_out>; |
| 319 |
}; |
| 320 |
}; |
| 321 |
|
| 322 |
port@1 { |
| 323 |
reg = <1>; |
| 324 |
dsi0_out: endpoint { |
| 325 |
remote-endpoint = <&dsi_panel_in>; |
| 326 |
}; |
| 327 |
}; |
| 328 |
}; |
| 329 |
}; |
| 330 |
|
| 331 |
&disp_pwm1 { |
| 332 |
pinctrl-names = "default"; |
| 333 |
pinctrl-0 = <&disp_pwm1_pins>; |
| 334 |
status = "okay"; |
| 335 |
}; |
| 336 |
|
| 337 |
&dither0_in { |
| 338 |
remote-endpoint = <&postmask0_out>; |
| 339 |
}; |
| 340 |
|
| 341 |
&dither0_out { |
| 342 |
remote-endpoint = <&dsi0_in>; |
| 343 |
}; |
| 344 |
|
| 345 |
&dpi1 { |
| 346 |
status = "okay"; |
| 347 |
}; |
| 348 |
|
| 349 |
&dpi1_in { |
| 350 |
remote-endpoint = <&merge5_out>; |
| 351 |
}; |
| 352 |
|
| 353 |
&dpi1_out { |
| 354 |
remote-endpoint = <&hdmi0_in>; |
| 355 |
}; |
| 356 |
|
| 357 |
&gamma0_out { |
| 358 |
remote-endpoint = <&postmask0_in>; |
| 359 |
}; |
| 360 |
|
| 361 |
&gpu { |
| 362 |
mali-supply = <&mt6359_vproc2_buck_reg>; |
| 363 |
status = "okay"; |
| 364 |
}; |
| 365 |
|
| 366 |
ðdr0 { |
| 367 |
ports { |
| 368 |
#address-cells = <1>; |
| 369 |
#size-cells = <0>; |
| 370 |
|
| 371 |
port@0 { |
| 372 |
#address-cells = <1>; |
| 373 |
#size-cells = <0>; |
| 374 |
reg = <0>; |
| 375 |
|
| 376 |
ethdr0_in: endpoint@1 { |
| 377 |
reg = <1>; |
| 378 |
remote-endpoint = <&vdosys1_ep_ext>; |
| 379 |
}; |
| 380 |
}; |
| 381 |
|
| 382 |
port@1 { |
| 383 |
#address-cells = <1>; |
| 384 |
#size-cells = <0>; |
| 385 |
reg = <1>; |
| 386 |
|
| 387 |
ethdr0_out: endpoint@1 { |
| 388 |
reg = <1>; |
| 389 |
remote-endpoint = <&merge5_in>; |
| 390 |
}; |
| 391 |
}; |
| 392 |
}; |
| 393 |
}; |
| 394 |
|
| 395 |
&hdmi { |
| 396 |
pinctrl-names = "default"; |
| 397 |
pinctrl-0 = <&hdmi_pins>; |
| 398 |
status = "okay"; |
| 399 |
}; |
| 400 |
|
| 401 |
&hdmi0_in { |
| 402 |
remote-endpoint = <&dpi1_out>; |
| 403 |
}; |
| 404 |
|
| 405 |
&hdmi0_out { |
| 406 |
remote-endpoint = <&hdmi_connector_in>; |
| 407 |
}; |
| 408 |
|
| 409 |
&hdmi_phy { |
| 410 |
pinctrl-names = "default"; |
| 411 |
pinctrl-0 = <&hdmi_vreg_pins>; |
| 412 |
status = "okay"; |
| 413 |
}; |
| 414 |
|
| 415 |
&i2c0 { |
| 416 |
pinctrl-names = "default"; |
| 417 |
pinctrl-0 = <&i2c0_pins>; |
| 418 |
clock-frequency = <400000>; |
| 419 |
status = "okay"; |
| 420 |
|
| 421 |
touchscreen@5d { |
| 422 |
compatible = "goodix,gt9271"; |
| 423 |
reg = <0x5d>; |
| 424 |
interrupt-parent = <&pio>; |
| 425 |
interrupts-extended = <&pio 6 IRQ_TYPE_EDGE_RISING>; |
| 426 |
irq-gpios = <&pio 6 GPIO_ACTIVE_HIGH>; |
| 427 |
reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>; |
| 428 |
AVDD28-supply = <&touch0_fixed_3v3>; |
| 429 |
VDDIO-supply = <&mt6359_vio18_ldo_reg>; |
| 430 |
pinctrl-names = "default"; |
| 431 |
pinctrl-0 = <&touch_pins>; |
| 432 |
}; |
| 433 |
}; |
| 434 |
|
| 435 |
&i2c1 { |
| 436 |
pinctrl-names = "default"; |
| 437 |
pinctrl-0 = <&i2c1_pins>; |
| 438 |
clock-frequency = <400000>; |
| 439 |
status = "okay"; |
| 440 |
|
| 441 |
typec-mux@48 { |
| 442 |
compatible = "ite,it5205"; |
| 443 |
reg = <0x48>; |
| 444 |
|
| 445 |
mode-switch; |
| 446 |
orientation-switch; |
| 447 |
|
| 448 |
vcc-supply = <&mt6359_vcn33_1_bt_ldo_reg>; |
| 449 |
|
| 450 |
port { |
| 451 |
it5205_sbu_mux: endpoint { |
| 452 |
remote-endpoint = <&typec_sbu_out>; |
| 453 |
}; |
| 454 |
}; |
| 455 |
}; |
| 456 |
}; |
| 457 |
|
| 458 |
&i2c2 { |
| 459 |
pinctrl-names = "default"; |
| 460 |
pinctrl-0 = <&i2c2_pins>; |
| 461 |
clock-frequency = <400000>; |
| 462 |
status = "okay"; |
| 463 |
}; |
| 464 |
|
| 465 |
&i2c3 { |
| 466 |
pinctrl-names = "default"; |
| 467 |
pinctrl-0 = <&i2c3_pins>; |
| 468 |
clock-frequency = <400000>; |
| 469 |
status = "okay"; |
| 470 |
}; |
| 471 |
|
| 472 |
&i2c4 { |
| 473 |
pinctrl-names = "default"; |
| 474 |
pinctrl-0 = <&i2c4_pins>; |
| 475 |
clock-frequency = <1000000>; |
| 476 |
status = "okay"; |
| 477 |
|
| 478 |
rt1715@4e { |
| 479 |
compatible = "richtek,rt1715"; |
| 480 |
reg = <0x4e>; |
| 481 |
interrupts-extended = <&pio 12 IRQ_TYPE_LEVEL_LOW>; |
| 482 |
pinctrl-names = "default"; |
| 483 |
pinctrl-0 = <&tcpci_int_pins>; |
| 484 |
vbus-supply = <&usb_p1_vbus>; |
| 485 |
|
| 486 |
connector { |
| 487 |
compatible = "usb-c-connector"; |
| 488 |
label = "USB-C"; |
| 489 |
data-role = "dual"; |
| 490 |
op-sink-microwatt = <10000000>; |
| 491 |
power-role = "dual"; |
| 492 |
try-power-role = "sink"; |
| 493 |
pd-revision = /bits/ 8 <0x03 0x00 0x01 0x08>; |
| 494 |
|
| 495 |
sink-pdos = <PDO_FIXED(5000, 2000, |
| 496 |
PDO_FIXED_DUAL_ROLE | |
| 497 |
PDO_FIXED_DATA_SWAP)>; |
| 498 |
source-pdos = <PDO_FIXED(5000, 2000, |
| 499 |
PDO_FIXED_DUAL_ROLE | |
| 500 |
PDO_FIXED_DATA_SWAP)>; |
| 501 |
|
| 502 |
altmodes { |
| 503 |
displayport { |
| 504 |
svid = /bits/ 16 <0xff01>; |
| 505 |
vdo = <0x001c1c47>; |
| 506 |
}; |
| 507 |
}; |
| 508 |
|
| 509 |
ports { |
| 510 |
#address-cells = <1>; |
| 511 |
#size-cells = <0>; |
| 512 |
|
| 513 |
port@0 { |
| 514 |
reg = <0>; |
| 515 |
typec_con_hs: endpoint { |
| 516 |
remote-endpoint = <&mtu3_hs1_role_sw>; |
| 517 |
}; |
| 518 |
}; |
| 519 |
|
| 520 |
port@1 { |
| 521 |
reg = <1>; |
| 522 |
typec_con_ss: endpoint { |
| 523 |
remote-endpoint = <&xhci_ss_ep>; |
| 524 |
}; |
| 525 |
}; |
| 526 |
|
| 527 |
port@2 { |
| 528 |
reg = <2>; |
| 529 |
typec_sbu_out: endpoint { |
| 530 |
remote-endpoint = <&it5205_sbu_mux>; |
| 531 |
}; |
| 532 |
|
| 533 |
}; |
| 534 |
}; |
| 535 |
}; |
| 536 |
}; |
| 537 |
}; |
| 538 |
|
| 539 |
&i2c5 { |
| 540 |
pinctrl-names = "default"; |
| 541 |
pinctrl-0 = <&i2c5_pins>; |
| 542 |
clock-frequency = <400000>; |
| 543 |
status = "okay"; |
| 544 |
}; |
| 545 |
|
| 546 |
&i2c6 { |
| 547 |
pinctrl-names = "default"; |
| 548 |
pinctrl-0 = <&i2c6_pins>; |
| 549 |
clock-frequency = <400000>; |
| 550 |
status = "okay"; |
| 551 |
}; |
| 552 |
|
| 553 |
&merge5 { |
| 554 |
ports { |
| 555 |
#address-cells = <1>; |
| 556 |
#size-cells = <0>; |
| 557 |
|
| 558 |
port@0 { |
| 559 |
#address-cells = <1>; |
| 560 |
#size-cells = <0>; |
| 561 |
reg = <0>; |
| 562 |
|
| 563 |
merge5_in: endpoint@1 { |
| 564 |
reg = <1>; |
| 565 |
remote-endpoint = <ðdr0_out>; |
| 566 |
}; |
| 567 |
}; |
| 568 |
|
| 569 |
port@1 { |
| 570 |
#address-cells = <1>; |
| 571 |
#size-cells = <0>; |
| 572 |
reg = <1>; |
| 573 |
|
| 574 |
merge5_out: endpoint@1 { |
| 575 |
reg = <1>; |
| 576 |
remote-endpoint = <&dpi1_in>; |
| 577 |
}; |
| 578 |
}; |
| 579 |
}; |
| 580 |
}; |
| 581 |
|
| 582 |
&mfg0 { |
| 583 |
domain-supply = <&mt6359_vproc2_buck_reg>; |
| 584 |
}; |
| 585 |
|
| 586 |
&mfg1 { |
| 587 |
domain-supply = <&mt6359_vsram_others_ldo_reg>; |
| 588 |
}; |
| 589 |
|
| 590 |
&mipi_tx_config0 { |
| 591 |
status = "okay"; |
| 592 |
}; |
| 593 |
|
| 594 |
&mmc0 { |
| 595 |
status = "okay"; |
| 596 |
pinctrl-names = "default", "state_uhs"; |
| 597 |
pinctrl-0 = <&mmc0_default_pins>; |
| 598 |
pinctrl-1 = <&mmc0_uhs_pins>; |
| 599 |
bus-width = <8>; |
| 600 |
max-frequency = <200000000>; |
| 601 |
cap-mmc-highspeed; |
| 602 |
mmc-hs200-1_8v; |
| 603 |
mmc-hs400-1_8v; |
| 604 |
supports-cqe; |
| 605 |
cap-mmc-hw-reset; |
| 606 |
no-sdio; |
| 607 |
no-sd; |
| 608 |
hs400-ds-delay = <0x1481b>; |
| 609 |
vmmc-supply = <&mt6359_vemc_1_ldo_reg>; |
| 610 |
vqmmc-supply = <&mt6359_vufs_ldo_reg>; |
| 611 |
non-removable; |
| 612 |
}; |
| 613 |
|
| 614 |
&mmc1 { |
| 615 |
status = "okay"; |
| 616 |
pinctrl-names = "default", "state_uhs"; |
| 617 |
pinctrl-0 = <&mmc1_default_pins>; |
| 618 |
pinctrl-1 = <&mmc1_uhs_pins>; |
| 619 |
bus-width = <4>; |
| 620 |
max-frequency = <200000000>; |
| 621 |
cap-sd-highspeed; |
| 622 |
sd-uhs-sdr50; |
| 623 |
sd-uhs-sdr104; |
| 624 |
no-mmc; |
| 625 |
no-sdio; |
| 626 |
cd-gpios = <&pio 2 GPIO_ACTIVE_LOW>; |
| 627 |
vmmc-supply = <&mt6359_vpa_buck_reg>; |
| 628 |
vqmmc-supply = <&mt6359_vsim1_ldo_reg>; |
| 629 |
}; |
| 630 |
|
| 631 |
&mt6359_vbbck_ldo_reg { |
| 632 |
regulator-always-on; |
| 633 |
}; |
| 634 |
|
| 635 |
&mt6359_vcn18_ldo_reg { |
| 636 |
regulator-name = "vcn18_pmu"; |
| 637 |
regulator-always-on; |
| 638 |
}; |
| 639 |
|
| 640 |
&mt6359_vcn33_2_bt_ldo_reg { |
| 641 |
regulator-name = "vcn33_2_pmu"; |
| 642 |
regulator-always-on; |
| 643 |
}; |
| 644 |
|
| 645 |
&mt6359_vcore_buck_reg { |
| 646 |
regulator-name = "dvdd_proc_l"; |
| 647 |
regulator-always-on; |
| 648 |
}; |
| 649 |
|
| 650 |
&mt6359_vgpu11_buck_reg { |
| 651 |
regulator-name = "dvdd_core"; |
| 652 |
regulator-always-on; |
| 653 |
}; |
| 654 |
|
| 655 |
&mt6359_vpa_buck_reg { |
| 656 |
regulator-name = "vpa_pmu"; |
| 657 |
regulator-max-microvolt = <3100000>; |
| 658 |
}; |
| 659 |
|
| 660 |
&mt6359_vproc2_buck_reg { |
| 661 |
/* The name "vgpu" is required by mtk-regulator-coupler */ |
| 662 |
regulator-name = "vgpu"; |
| 663 |
regulator-min-microvolt = <550000>; |
| 664 |
regulator-max-microvolt = <800000>; |
| 665 |
regulator-coupled-with = <&mt6359_vsram_others_ldo_reg>; |
| 666 |
regulator-coupled-max-spread = <6250>; |
| 667 |
}; |
| 668 |
|
| 669 |
&mt6359_vpu_buck_reg { |
| 670 |
regulator-name = "dvdd_adsp"; |
| 671 |
regulator-always-on; |
| 672 |
}; |
| 673 |
|
| 674 |
&mt6359_vrf12_ldo_reg { |
| 675 |
regulator-name = "va12_abb2_pmu"; |
| 676 |
regulator-always-on; |
| 677 |
}; |
| 678 |
|
| 679 |
&mt6359_vsim1_ldo_reg { |
| 680 |
regulator-name = "vsim1_pmu"; |
| 681 |
regulator-enable-ramp-delay = <480>; |
| 682 |
}; |
| 683 |
|
| 684 |
&mt6359_vsram_others_ldo_reg { |
| 685 |
/* The name "vsram_gpu" is required by mtk-regulator-coupler */ |
| 686 |
regulator-name = "vsram_gpu"; |
| 687 |
regulator-min-microvolt = <750000>; |
| 688 |
regulator-max-microvolt = <800000>; |
| 689 |
regulator-coupled-with = <&mt6359_vproc2_buck_reg>; |
| 690 |
regulator-coupled-max-spread = <6250>; |
| 691 |
}; |
| 692 |
|
| 693 |
&mt6359_vufs_ldo_reg { |
| 694 |
regulator-name = "vufs18_pmu"; |
| 695 |
regulator-always-on; |
| 696 |
}; |
| 697 |
|
| 698 |
&mt6359codec { |
| 699 |
mediatek,mic-type-0 = <1>; /* ACC */ |
| 700 |
mediatek,mic-type-1 = <3>; /* DCC */ |
| 701 |
}; |
| 702 |
|
| 703 |
&ovl0_in { |
| 704 |
remote-endpoint = <&vdosys0_ep_main>; |
| 705 |
}; |
| 706 |
|
| 707 |
&pcie { |
| 708 |
pinctrl-names = "default"; |
| 709 |
pinctrl-0 = <&pcie_default_pins>; |
| 710 |
status = "okay"; |
| 711 |
}; |
| 712 |
|
| 713 |
&pciephy { |
| 714 |
status = "okay"; |
| 715 |
}; |
| 716 |
|
| 717 |
&pio { |
| 718 |
audio_default_pins: audio-default-pins { |
| 719 |
pins-cmd-dat { |
| 720 |
pinmux = <PINMUX_GPIO101__FUNC_O_AUD_CLK_MOSI>, |
| 721 |
<PINMUX_GPIO102__FUNC_O_AUD_SYNC_MOSI>, |
| 722 |
<PINMUX_GPIO103__FUNC_O_AUD_DAT_MOSI0>, |
| 723 |
<PINMUX_GPIO104__FUNC_O_AUD_DAT_MOSI1>, |
| 724 |
<PINMUX_GPIO105__FUNC_I0_AUD_DAT_MISO0>, |
| 725 |
<PINMUX_GPIO106__FUNC_I0_AUD_DAT_MISO1>, |
| 726 |
<PINMUX_GPIO107__FUNC_B0_I2SIN_MCK>, |
| 727 |
<PINMUX_GPIO108__FUNC_B0_I2SIN_BCK>, |
| 728 |
<PINMUX_GPIO109__FUNC_B0_I2SIN_WS>, |
| 729 |
<PINMUX_GPIO110__FUNC_I0_I2SIN_D0>, |
| 730 |
<PINMUX_GPIO114__FUNC_O_I2SO2_MCK>, |
| 731 |
<PINMUX_GPIO115__FUNC_B0_I2SO2_BCK>, |
| 732 |
<PINMUX_GPIO116__FUNC_B0_I2SO2_WS>, |
| 733 |
<PINMUX_GPIO117__FUNC_O_I2SO2_D0>, |
| 734 |
<PINMUX_GPIO118__FUNC_O_I2SO2_D1>, |
| 735 |
<PINMUX_GPIO121__FUNC_B0_PCM_CLK>, |
| 736 |
<PINMUX_GPIO122__FUNC_B0_PCM_SYNC>, |
| 737 |
<PINMUX_GPIO124__FUNC_I0_PCM_DI>, |
| 738 |
<PINMUX_GPIO125__FUNC_O_DMIC1_CLK>, |
| 739 |
<PINMUX_GPIO126__FUNC_I0_DMIC1_DAT>, |
| 740 |
<PINMUX_GPIO128__FUNC_O_DMIC2_CLK>, |
| 741 |
<PINMUX_GPIO129__FUNC_I0_DMIC2_DAT>; |
| 742 |
}; |
| 743 |
}; |
| 744 |
|
| 745 |
disp_pwm1_pins: disp-pwm1-pins { |
| 746 |
pins-pwm { |
| 747 |
pinmux = <PINMUX_GPIO30__FUNC_O_DISP_PWM1>; |
| 748 |
}; |
| 749 |
}; |
| 750 |
|
| 751 |
dptx_pins: dptx-pins { |
| 752 |
pins-cmd-dat { |
| 753 |
pinmux = <PINMUX_GPIO46__FUNC_I0_DP_TX_HPD>; |
| 754 |
bias-pull-up; |
| 755 |
}; |
| 756 |
}; |
| 757 |
|
| 758 |
edp_panel_3v3_en_pins: edp-panel-3v3-en-pins { |
| 759 |
pins1 { |
| 760 |
pinmux = <PINMUX_GPIO15__FUNC_B_GPIO15>; |
| 761 |
output-high; |
| 762 |
}; |
| 763 |
}; |
| 764 |
|
| 765 |
eth_default_pins: eth-default-pins { |
| 766 |
pins-cc { |
| 767 |
pinmux = <PINMUX_GPIO139__FUNC_B0_GBE_TXC>, |
| 768 |
<PINMUX_GPIO140__FUNC_I0_GBE_RXC>, |
| 769 |
<PINMUX_GPIO141__FUNC_I0_GBE_RXDV>, |
| 770 |
<PINMUX_GPIO142__FUNC_O_GBE_TXEN>; |
| 771 |
drive-strength = <8>; |
| 772 |
}; |
| 773 |
|
| 774 |
pins-mdio { |
| 775 |
pinmux = <PINMUX_GPIO143__FUNC_O_GBE_MDC>, |
| 776 |
<PINMUX_GPIO144__FUNC_B1_GBE_MDIO>; |
| 777 |
drive-strength = <8>; |
| 778 |
input-enable; |
| 779 |
}; |
| 780 |
|
| 781 |
pins-power { |
| 782 |
pinmux = <PINMUX_GPIO145__FUNC_B_GPIO145>, |
| 783 |
<PINMUX_GPIO146__FUNC_B_GPIO146>; |
| 784 |
output-high; |
| 785 |
}; |
| 786 |
|
| 787 |
pins-rxd { |
| 788 |
pinmux = <PINMUX_GPIO135__FUNC_I0_GBE_RXD3>, |
| 789 |
<PINMUX_GPIO136__FUNC_I0_GBE_RXD2>, |
| 790 |
<PINMUX_GPIO137__FUNC_I0_GBE_RXD1>, |
| 791 |
<PINMUX_GPIO138__FUNC_I0_GBE_RXD0>; |
| 792 |
drive-strength = <8>; |
| 793 |
}; |
| 794 |
|
| 795 |
pins-txd { |
| 796 |
pinmux = <PINMUX_GPIO131__FUNC_O_GBE_TXD3>, |
| 797 |
<PINMUX_GPIO132__FUNC_O_GBE_TXD2>, |
| 798 |
<PINMUX_GPIO133__FUNC_O_GBE_TXD1>, |
| 799 |
<PINMUX_GPIO134__FUNC_O_GBE_TXD0>; |
| 800 |
drive-strength = <8>; |
| 801 |
}; |
| 802 |
}; |
| 803 |
|
| 804 |
eth_sleep_pins: eth-sleep-pins { |
| 805 |
pins-cc { |
| 806 |
pinmux = <PINMUX_GPIO139__FUNC_B_GPIO139>, |
| 807 |
<PINMUX_GPIO140__FUNC_B_GPIO140>, |
| 808 |
<PINMUX_GPIO141__FUNC_B_GPIO141>, |
| 809 |
<PINMUX_GPIO142__FUNC_B_GPIO142>; |
| 810 |
}; |
| 811 |
|
| 812 |
pins-mdio { |
| 813 |
pinmux = <PINMUX_GPIO143__FUNC_B_GPIO143>, |
| 814 |
<PINMUX_GPIO144__FUNC_B_GPIO144>; |
| 815 |
input-disable; |
| 816 |
bias-disable; |
| 817 |
}; |
| 818 |
|
| 819 |
pins-rxd { |
| 820 |
pinmux = <PINMUX_GPIO135__FUNC_B_GPIO135>, |
| 821 |
<PINMUX_GPIO136__FUNC_B_GPIO136>, |
| 822 |
<PINMUX_GPIO137__FUNC_B_GPIO137>, |
| 823 |
<PINMUX_GPIO138__FUNC_B_GPIO138>; |
| 824 |
}; |
| 825 |
|
| 826 |
pins-txd { |
| 827 |
pinmux = <PINMUX_GPIO131__FUNC_B_GPIO131>, |
| 828 |
<PINMUX_GPIO132__FUNC_B_GPIO132>, |
| 829 |
<PINMUX_GPIO133__FUNC_B_GPIO133>, |
| 830 |
<PINMUX_GPIO134__FUNC_B_GPIO134>; |
| 831 |
}; |
| 832 |
}; |
| 833 |
|
| 834 |
hdmi_vreg_pins: hdmi-vreg-pins { |
| 835 |
pins-pwr { |
| 836 |
pinmux = <PINMUX_GPIO50__FUNC_O_HDMITX20_PWR5V>; |
| 837 |
bias-disable; |
| 838 |
}; |
| 839 |
}; |
| 840 |
|
| 841 |
hdmi_pins: hdmi-pins { |
| 842 |
pins-hotplug { |
| 843 |
pinmux = <PINMUX_GPIO51__FUNC_I0_HDMITX20_HTPLG>; |
| 844 |
bias-pull-down; |
| 845 |
}; |
| 846 |
|
| 847 |
pins-cec { |
| 848 |
pinmux = <PINMUX_GPIO52__FUNC_B1_HDMITX20_CEC>; |
| 849 |
bias-disable; |
| 850 |
}; |
| 851 |
|
| 852 |
pins-ddc { |
| 853 |
pinmux = <PINMUX_GPIO53__FUNC_B1_HDMITX20_SCL>, |
| 854 |
<PINMUX_GPIO54__FUNC_B1_HDMITX20_SDA>; |
| 855 |
drive-strength = <10>; |
| 856 |
}; |
| 857 |
}; |
| 858 |
|
| 859 |
i2c0_pins: i2c0-pins { |
| 860 |
pins { |
| 861 |
pinmux = <PINMUX_GPIO56__FUNC_B1_SDA0>, |
| 862 |
<PINMUX_GPIO55__FUNC_B1_SCL0>; |
| 863 |
bias-pull-up = <MTK_PULL_SET_RSEL_011>; |
| 864 |
drive-strength-microamp = <1000>; |
| 865 |
}; |
| 866 |
}; |
| 867 |
|
| 868 |
i2c1_pins: i2c1-pins { |
| 869 |
pins { |
| 870 |
pinmux = <PINMUX_GPIO58__FUNC_B1_SDA1>, |
| 871 |
<PINMUX_GPIO57__FUNC_B1_SCL1>; |
| 872 |
bias-pull-up = <MTK_PULL_SET_RSEL_011>; |
| 873 |
drive-strength-microamp = <1000>; |
| 874 |
}; |
| 875 |
}; |
| 876 |
|
| 877 |
i2c2_pins: i2c2-pins { |
| 878 |
pins { |
| 879 |
pinmux = <PINMUX_GPIO60__FUNC_B1_SDA2>, |
| 880 |
<PINMUX_GPIO59__FUNC_B1_SCL2>; |
| 881 |
bias-pull-up = <MTK_PULL_SET_RSEL_011>; |
| 882 |
drive-strength-microamp = <1000>; |
| 883 |
}; |
| 884 |
}; |
| 885 |
|
| 886 |
i2c3_pins: i2c3-pins { |
| 887 |
pins { |
| 888 |
pinmux = <PINMUX_GPIO62__FUNC_B1_SDA3>, |
| 889 |
<PINMUX_GPIO61__FUNC_B1_SCL3>; |
| 890 |
bias-pull-up = <MTK_PULL_SET_RSEL_011>; |
| 891 |
drive-strength-microamp = <1000>; |
| 892 |
}; |
| 893 |
}; |
| 894 |
|
| 895 |
i2c4_pins: i2c4-pins { |
| 896 |
pins { |
| 897 |
pinmux = <PINMUX_GPIO64__FUNC_B1_SDA4>, |
| 898 |
<PINMUX_GPIO63__FUNC_B1_SCL4>; |
| 899 |
bias-pull-up = <MTK_PULL_SET_RSEL_011>; |
| 900 |
drive-strength-microamp = <1000>; |
| 901 |
}; |
| 902 |
}; |
| 903 |
|
| 904 |
i2c5_pins: i2c5-pins { |
| 905 |
pins { |
| 906 |
pinmux = <PINMUX_GPIO66__FUNC_B1_SDA5>, |
| 907 |
<PINMUX_GPIO65__FUNC_B1_SCL5>; |
| 908 |
bias-pull-up = <MTK_PULL_SET_RSEL_011>; |
| 909 |
drive-strength-microamp = <1000>; |
| 910 |
}; |
| 911 |
}; |
| 912 |
|
| 913 |
i2c6_pins: i2c6-pins { |
| 914 |
pins { |
| 915 |
pinmux = <PINMUX_GPIO68__FUNC_B1_SDA6>, |
| 916 |
<PINMUX_GPIO67__FUNC_B1_SCL6>; |
| 917 |
bias-pull-up = <MTK_PULL_SET_RSEL_011>; |
| 918 |
drive-strength-microamp = <1000>; |
| 919 |
}; |
| 920 |
}; |
| 921 |
|
| 922 |
gpio_key_pins: gpio-key-pins { |
| 923 |
pins { |
| 924 |
pinmux = <PINMUX_GPIO42__FUNC_B1_KPCOL0>, |
| 925 |
<PINMUX_GPIO43__FUNC_B1_KPCOL1>, |
| 926 |
<PINMUX_GPIO44__FUNC_B1_KPROW0>; |
| 927 |
}; |
| 928 |
}; |
| 929 |
|
| 930 |
mmc0_default_pins: mmc0-default-pins { |
| 931 |
pins-clk { |
| 932 |
pinmux = <PINMUX_GPIO157__FUNC_B1_MSDC0_CLK>; |
| 933 |
drive-strength = <6>; |
| 934 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 935 |
}; |
| 936 |
|
| 937 |
pins-cmd-dat { |
| 938 |
pinmux = <PINMUX_GPIO161__FUNC_B1_MSDC0_DAT0>, |
| 939 |
<PINMUX_GPIO160__FUNC_B1_MSDC0_DAT1>, |
| 940 |
<PINMUX_GPIO159__FUNC_B1_MSDC0_DAT2>, |
| 941 |
<PINMUX_GPIO158__FUNC_B1_MSDC0_DAT3>, |
| 942 |
<PINMUX_GPIO154__FUNC_B1_MSDC0_DAT4>, |
| 943 |
<PINMUX_GPIO153__FUNC_B1_MSDC0_DAT5>, |
| 944 |
<PINMUX_GPIO152__FUNC_B1_MSDC0_DAT6>, |
| 945 |
<PINMUX_GPIO151__FUNC_B1_MSDC0_DAT7>, |
| 946 |
<PINMUX_GPIO156__FUNC_B1_MSDC0_CMD>; |
| 947 |
input-enable; |
| 948 |
drive-strength = <6>; |
| 949 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 950 |
}; |
| 951 |
|
| 952 |
pins-rst { |
| 953 |
pinmux = <PINMUX_GPIO155__FUNC_O_MSDC0_RSTB>; |
| 954 |
drive-strength = <6>; |
| 955 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 956 |
}; |
| 957 |
}; |
| 958 |
|
| 959 |
mmc0_uhs_pins: mmc0-uhs-pins { |
| 960 |
pins-clk { |
| 961 |
pinmux = <PINMUX_GPIO157__FUNC_B1_MSDC0_CLK>; |
| 962 |
drive-strength = <8>; |
| 963 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 964 |
}; |
| 965 |
|
| 966 |
pins-cmd-dat { |
| 967 |
pinmux = <PINMUX_GPIO161__FUNC_B1_MSDC0_DAT0>, |
| 968 |
<PINMUX_GPIO160__FUNC_B1_MSDC0_DAT1>, |
| 969 |
<PINMUX_GPIO159__FUNC_B1_MSDC0_DAT2>, |
| 970 |
<PINMUX_GPIO158__FUNC_B1_MSDC0_DAT3>, |
| 971 |
<PINMUX_GPIO154__FUNC_B1_MSDC0_DAT4>, |
| 972 |
<PINMUX_GPIO153__FUNC_B1_MSDC0_DAT5>, |
| 973 |
<PINMUX_GPIO152__FUNC_B1_MSDC0_DAT6>, |
| 974 |
<PINMUX_GPIO151__FUNC_B1_MSDC0_DAT7>, |
| 975 |
<PINMUX_GPIO156__FUNC_B1_MSDC0_CMD>; |
| 976 |
input-enable; |
| 977 |
drive-strength = <8>; |
| 978 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 979 |
}; |
| 980 |
|
| 981 |
pins-ds { |
| 982 |
pinmux = <PINMUX_GPIO162__FUNC_B0_MSDC0_DSL>; |
| 983 |
drive-strength = <8>; |
| 984 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 985 |
}; |
| 986 |
|
| 987 |
pins-rst { |
| 988 |
pinmux = <PINMUX_GPIO155__FUNC_O_MSDC0_RSTB>; |
| 989 |
drive-strength = <8>; |
| 990 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 991 |
}; |
| 992 |
}; |
| 993 |
|
| 994 |
mmc1_default_pins: mmc1-default-pins { |
| 995 |
pins-clk { |
| 996 |
pinmux = <PINMUX_GPIO164__FUNC_B1_MSDC1_CLK>; |
| 997 |
drive-strength = <6>; |
| 998 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 999 |
}; |
| 1000 |
|
| 1001 |
pins-cmd-dat { |
| 1002 |
pinmux = <PINMUX_GPIO163__FUNC_B1_MSDC1_CMD>, |
| 1003 |
<PINMUX_GPIO165__FUNC_B1_MSDC1_DAT0>, |
| 1004 |
<PINMUX_GPIO166__FUNC_B1_MSDC1_DAT1>, |
| 1005 |
<PINMUX_GPIO167__FUNC_B1_MSDC1_DAT2>, |
| 1006 |
<PINMUX_GPIO168__FUNC_B1_MSDC1_DAT3>; |
| 1007 |
input-enable; |
| 1008 |
drive-strength = <6>; |
| 1009 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 1010 |
}; |
| 1011 |
|
| 1012 |
pins-insert { |
| 1013 |
pinmux = <PINMUX_GPIO2__FUNC_B_GPIO2>; |
| 1014 |
bias-pull-up; |
| 1015 |
}; |
| 1016 |
}; |
| 1017 |
|
| 1018 |
mmc1_uhs_pins: mmc1-uhs-pins { |
| 1019 |
pins-clk { |
| 1020 |
pinmux = <PINMUX_GPIO164__FUNC_B1_MSDC1_CLK>; |
| 1021 |
drive-strength = <6>; |
| 1022 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 1023 |
}; |
| 1024 |
|
| 1025 |
pins-cmd-dat { |
| 1026 |
pinmux = <PINMUX_GPIO163__FUNC_B1_MSDC1_CMD>, |
| 1027 |
<PINMUX_GPIO165__FUNC_B1_MSDC1_DAT0>, |
| 1028 |
<PINMUX_GPIO166__FUNC_B1_MSDC1_DAT1>, |
| 1029 |
<PINMUX_GPIO167__FUNC_B1_MSDC1_DAT2>, |
| 1030 |
<PINMUX_GPIO168__FUNC_B1_MSDC1_DAT3>; |
| 1031 |
input-enable; |
| 1032 |
drive-strength = <6>; |
| 1033 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 1034 |
}; |
| 1035 |
}; |
| 1036 |
|
| 1037 |
mmc2_default_pins: mmc2-default-pins { |
| 1038 |
pins-clk { |
| 1039 |
pinmux = <PINMUX_GPIO170__FUNC_B1_MSDC2_CLK>; |
| 1040 |
drive-strength = <4>; |
| 1041 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 1042 |
}; |
| 1043 |
|
| 1044 |
pins-cmd-dat { |
| 1045 |
pinmux = <PINMUX_GPIO169__FUNC_B1_MSDC2_CMD>, |
| 1046 |
<PINMUX_GPIO171__FUNC_B1_MSDC2_DAT0>, |
| 1047 |
<PINMUX_GPIO172__FUNC_B1_MSDC2_DAT1>, |
| 1048 |
<PINMUX_GPIO173__FUNC_B1_MSDC2_DAT2>, |
| 1049 |
<PINMUX_GPIO174__FUNC_B1_MSDC2_DAT3>; |
| 1050 |
input-enable; |
| 1051 |
drive-strength = <6>; |
| 1052 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 1053 |
}; |
| 1054 |
|
| 1055 |
pins-pcm { |
| 1056 |
pinmux = <PINMUX_GPIO123__FUNC_O_PCM_DO>; |
| 1057 |
}; |
| 1058 |
}; |
| 1059 |
|
| 1060 |
mmc2_uhs_pins: mmc2-uhs-pins { |
| 1061 |
pins-clk { |
| 1062 |
pinmux = <PINMUX_GPIO170__FUNC_B1_MSDC2_CLK>; |
| 1063 |
drive-strength = <4>; |
| 1064 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 1065 |
}; |
| 1066 |
|
| 1067 |
pins-cmd-dat { |
| 1068 |
pinmux = <PINMUX_GPIO169__FUNC_B1_MSDC2_CMD>, |
| 1069 |
<PINMUX_GPIO171__FUNC_B1_MSDC2_DAT0>, |
| 1070 |
<PINMUX_GPIO172__FUNC_B1_MSDC2_DAT1>, |
| 1071 |
<PINMUX_GPIO173__FUNC_B1_MSDC2_DAT2>, |
| 1072 |
<PINMUX_GPIO174__FUNC_B1_MSDC2_DAT3>; |
| 1073 |
input-enable; |
| 1074 |
drive-strength = <6>; |
| 1075 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 1076 |
}; |
| 1077 |
}; |
| 1078 |
|
| 1079 |
mmc2_eint_pins: mmc2-eint-pins { |
| 1080 |
pins-dat1 { |
| 1081 |
pinmux = <PINMUX_GPIO172__FUNC_B_GPIO172>; |
| 1082 |
input-enable; |
| 1083 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 1084 |
}; |
| 1085 |
}; |
| 1086 |
|
| 1087 |
mmc2_dat1_pins: mmc2-dat1-pins { |
| 1088 |
pins-dat1 { |
| 1089 |
pinmux = <PINMUX_GPIO172__FUNC_B1_MSDC2_DAT1>; |
| 1090 |
input-enable; |
| 1091 |
drive-strength = <6>; |
| 1092 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 1093 |
}; |
| 1094 |
}; |
| 1095 |
|
| 1096 |
dsi0_vreg_en_pins: dsi0-vreg-en-pins { |
| 1097 |
pins-pwr-en { |
| 1098 |
pinmux = <PINMUX_GPIO111__FUNC_B_GPIO111>; |
| 1099 |
output-low; |
| 1100 |
}; |
| 1101 |
}; |
| 1102 |
|
| 1103 |
panel_default_pins: panel-default-pins { |
| 1104 |
pins-rst { |
| 1105 |
pinmux = <PINMUX_GPIO25__FUNC_B_GPIO25>; |
| 1106 |
output-low; |
| 1107 |
}; |
| 1108 |
|
| 1109 |
pins-en { |
| 1110 |
pinmux = <PINMUX_GPIO45__FUNC_B_GPIO45>; |
| 1111 |
output-low; |
| 1112 |
}; |
| 1113 |
}; |
| 1114 |
|
| 1115 |
pcie_default_pins: pcie-default-pins { |
| 1116 |
pins { |
| 1117 |
pinmux = <PINMUX_GPIO47__FUNC_I1_WAKEN>, |
| 1118 |
<PINMUX_GPIO48__FUNC_O_PERSTN>, |
| 1119 |
<PINMUX_GPIO49__FUNC_B1_CLKREQN>; |
| 1120 |
bias-pull-up; |
| 1121 |
}; |
| 1122 |
}; |
| 1123 |
|
| 1124 |
rt1715_int_pins: rt1715-int-pins { |
| 1125 |
pins_cmd0_dat { |
| 1126 |
pinmux = <PINMUX_GPIO12__FUNC_B_GPIO12>; |
| 1127 |
bias-pull-up; |
| 1128 |
input-enable; |
| 1129 |
}; |
| 1130 |
}; |
| 1131 |
|
| 1132 |
spi0_pins: spi0-pins { |
| 1133 |
pins-spi { |
| 1134 |
pinmux = <PINMUX_GPIO69__FUNC_O_SPIM0_CSB>, |
| 1135 |
<PINMUX_GPIO70__FUNC_O_SPIM0_CLK>, |
| 1136 |
<PINMUX_GPIO71__FUNC_B0_SPIM0_MOSI>, |
| 1137 |
<PINMUX_GPIO72__FUNC_B0_SPIM0_MISO>; |
| 1138 |
bias-disable; |
| 1139 |
}; |
| 1140 |
}; |
| 1141 |
|
| 1142 |
spi1_pins: spi1-pins { |
| 1143 |
pins-spi { |
| 1144 |
pinmux = <PINMUX_GPIO75__FUNC_O_SPIM1_CSB>, |
| 1145 |
<PINMUX_GPIO76__FUNC_O_SPIM1_CLK>, |
| 1146 |
<PINMUX_GPIO77__FUNC_B0_SPIM1_MOSI>, |
| 1147 |
<PINMUX_GPIO78__FUNC_B0_SPIM1_MISO>; |
| 1148 |
bias-disable; |
| 1149 |
}; |
| 1150 |
}; |
| 1151 |
|
| 1152 |
spi2_pins: spi2-pins { |
| 1153 |
pins-spi { |
| 1154 |
pinmux = <PINMUX_GPIO79__FUNC_O_SPIM2_CSB>, |
| 1155 |
<PINMUX_GPIO80__FUNC_O_SPIM2_CLK>, |
| 1156 |
<PINMUX_GPIO81__FUNC_B0_SPIM2_MOSI>, |
| 1157 |
<PINMUX_GPIO82__FUNC_B0_SPIM2_MISO>; |
| 1158 |
bias-disable; |
| 1159 |
}; |
| 1160 |
}; |
| 1161 |
|
| 1162 |
touch_vreg_pins: touch-avdd-pins { |
| 1163 |
pins-power { |
| 1164 |
pinmux = <PINMUX_GPIO120__FUNC_B_GPIO120>; |
| 1165 |
output-high; |
| 1166 |
}; |
| 1167 |
}; |
| 1168 |
|
| 1169 |
touch_pins: touch-pins { |
| 1170 |
pins-irq { |
| 1171 |
pinmux = <PINMUX_GPIO6__FUNC_B_GPIO6>; |
| 1172 |
input-enable; |
| 1173 |
bias-disable; |
| 1174 |
}; |
| 1175 |
|
| 1176 |
pins-reset { |
| 1177 |
pinmux = <PINMUX_GPIO5__FUNC_B_GPIO5>; |
| 1178 |
output-high; |
| 1179 |
}; |
| 1180 |
}; |
| 1181 |
|
| 1182 |
tcpci_int_pins: tcpci-int-pins { |
| 1183 |
pins-int-n { |
| 1184 |
pinmux = <PINMUX_GPIO12__FUNC_B_GPIO12>; |
| 1185 |
bias-pull-up; |
| 1186 |
input-enable; |
| 1187 |
}; |
| 1188 |
}; |
| 1189 |
|
| 1190 |
uart0_pins: uart0-pins { |
| 1191 |
pins { |
| 1192 |
pinmux = <PINMUX_GPIO31__FUNC_O_UTXD0>, |
| 1193 |
<PINMUX_GPIO32__FUNC_I1_URXD0>; |
| 1194 |
bias-pull-up; |
| 1195 |
}; |
| 1196 |
}; |
| 1197 |
|
| 1198 |
uart1_pins: uart1-pins { |
| 1199 |
pins { |
| 1200 |
pinmux = <PINMUX_GPIO33__FUNC_O_UTXD1>, |
| 1201 |
<PINMUX_GPIO34__FUNC_I1_URXD1>; |
| 1202 |
bias-pull-up; |
| 1203 |
}; |
| 1204 |
}; |
| 1205 |
|
| 1206 |
uart2_pins: uart2-pins { |
| 1207 |
pins { |
| 1208 |
pinmux = <PINMUX_GPIO35__FUNC_O_UTXD2>, |
| 1209 |
<PINMUX_GPIO36__FUNC_I1_URXD2>; |
| 1210 |
bias-pull-up; |
| 1211 |
}; |
| 1212 |
}; |
| 1213 |
|
| 1214 |
usb_default_pins: usb-default-pins { |
| 1215 |
pins-iddig { |
| 1216 |
pinmux = <PINMUX_GPIO83__FUNC_B_GPIO83>; |
| 1217 |
input-enable; |
| 1218 |
bias-pull-up; |
| 1219 |
}; |
| 1220 |
|
| 1221 |
pins-valid { |
| 1222 |
pinmux = <PINMUX_GPIO85__FUNC_I0_VBUSVALID>; |
| 1223 |
input-enable; |
| 1224 |
}; |
| 1225 |
|
| 1226 |
pins-vbus { |
| 1227 |
pinmux = <PINMUX_GPIO84__FUNC_O_USB_DRVVBUS>; |
| 1228 |
output-high; |
| 1229 |
}; |
| 1230 |
|
| 1231 |
}; |
| 1232 |
|
| 1233 |
usb1_default_pins: usb1-default-pins { |
| 1234 |
pins-valid { |
| 1235 |
pinmux = <PINMUX_GPIO88__FUNC_I0_VBUSVALID_1P>; |
| 1236 |
input-enable; |
| 1237 |
}; |
| 1238 |
|
| 1239 |
pins-usb-hub-3v3-en { |
| 1240 |
pinmux = <PINMUX_GPIO112__FUNC_B_GPIO112>; |
| 1241 |
output-high; |
| 1242 |
}; |
| 1243 |
}; |
| 1244 |
|
| 1245 |
usb2_default_pins: usb2-default-pins { |
| 1246 |
pins-iddig { |
| 1247 |
pinmux = <PINMUX_GPIO89__FUNC_B_GPIO89>; |
| 1248 |
input-enable; |
| 1249 |
bias-pull-up; |
| 1250 |
}; |
| 1251 |
}; |
| 1252 |
|
| 1253 |
wifi_pwrseq_pins: wifi-pwrseq-pins { |
| 1254 |
pins-wifi-enable { |
| 1255 |
pinmux = <PINMUX_GPIO127__FUNC_B_GPIO127>; |
| 1256 |
output-low; |
| 1257 |
}; |
| 1258 |
}; |
| 1259 |
}; |
| 1260 |
|
| 1261 |
ð { |
| 1262 |
phy-mode ="rgmii-id"; |
| 1263 |
phy-handle = <ðernet_phy0>; |
| 1264 |
pinctrl-names = "default", "sleep"; |
| 1265 |
pinctrl-0 = <ð_default_pins>; |
| 1266 |
pinctrl-1 = <ð_sleep_pins>; |
| 1267 |
mediatek,mac-wol; |
| 1268 |
snps,reset-gpio = <&pio 147 GPIO_ACTIVE_HIGH>; |
| 1269 |
snps,reset-delays-us = <0 10000 10000>; |
| 1270 |
status = "okay"; |
| 1271 |
}; |
| 1272 |
|
| 1273 |
ð_mdio { |
| 1274 |
ethernet_phy0: ethernet-phy@1 { |
| 1275 |
compatible = "ethernet-phy-id001c.c916"; |
| 1276 |
reg = <0x1>; |
| 1277 |
}; |
| 1278 |
}; |
| 1279 |
|
| 1280 |
&pmic { |
| 1281 |
interrupt-parent = <&pio>; |
| 1282 |
interrupts = <222 IRQ_TYPE_LEVEL_HIGH>; |
| 1283 |
|
| 1284 |
mt6359keys: keys { |
| 1285 |
compatible = "mediatek,mt6359-keys"; |
| 1286 |
mediatek,long-press-mode = <1>; |
| 1287 |
power-off-time-sec = <0>; |
| 1288 |
|
| 1289 |
power-key { |
| 1290 |
linux,keycodes = <KEY_POWER>; |
| 1291 |
wakeup-source; |
| 1292 |
}; |
| 1293 |
|
| 1294 |
home { |
| 1295 |
linux,keycodes = <KEY_HOME>; |
| 1296 |
}; |
| 1297 |
}; |
| 1298 |
}; |
| 1299 |
|
| 1300 |
&postmask0_in { |
| 1301 |
remote-endpoint = <&gamma0_out>; |
| 1302 |
}; |
| 1303 |
|
| 1304 |
&postmask0_out { |
| 1305 |
remote-endpoint = <&dither0_in>; |
| 1306 |
}; |
| 1307 |
|
| 1308 |
&scp_cluster { |
| 1309 |
status = "okay"; |
| 1310 |
}; |
| 1311 |
|
| 1312 |
&scp_c0 { |
| 1313 |
memory-region = <&scp_mem>; |
| 1314 |
status = "okay"; |
| 1315 |
}; |
| 1316 |
|
| 1317 |
&sound { |
| 1318 |
compatible = "mediatek,mt8390-mt6359-evk", "mediatek,mt8188-mt6359-evb"; |
| 1319 |
model = "mt8390-evk"; |
| 1320 |
pinctrl-names = "default"; |
| 1321 |
pinctrl-0 = <&audio_default_pins>; |
| 1322 |
audio-routing = |
| 1323 |
"Headphone", "Headphone L", |
| 1324 |
"Headphone", "Headphone R", |
| 1325 |
"DMIC_INPUT", "AP DMIC", |
| 1326 |
"AP DMIC", "AUDGLB", |
| 1327 |
"AP DMIC", "MIC_BIAS_0", |
| 1328 |
"AP DMIC", "MIC_BIAS_2"; |
| 1329 |
mediatek,adsp = <&adsp>; |
| 1330 |
status = "okay"; |
| 1331 |
|
| 1332 |
dai-link-0 { |
| 1333 |
link-name = "DL_SRC_BE"; |
| 1334 |
|
| 1335 |
codec { |
| 1336 |
sound-dai = <&pmic 0>; |
| 1337 |
}; |
| 1338 |
}; |
| 1339 |
|
| 1340 |
dai-link-1 { |
| 1341 |
link-name = "DMIC_BE"; |
| 1342 |
|
| 1343 |
codec { |
| 1344 |
sound-dai = <&dmic_codec>; |
| 1345 |
}; |
| 1346 |
}; |
| 1347 |
|
| 1348 |
dai-link-2 { |
| 1349 |
link-name = "ETDM3_OUT_BE"; |
| 1350 |
|
| 1351 |
codec { |
| 1352 |
sound-dai = <&hdmi 0>; |
| 1353 |
}; |
| 1354 |
}; |
| 1355 |
|
| 1356 |
}; |
| 1357 |
|
| 1358 |
&spi2 { |
| 1359 |
pinctrl-0 = <&spi2_pins>; |
| 1360 |
pinctrl-names = "default"; |
| 1361 |
mediatek,pad-select = <0>; |
| 1362 |
#address-cells = <1>; |
| 1363 |
#size-cells = <0>; |
| 1364 |
status = "okay"; |
| 1365 |
}; |
| 1366 |
|
| 1367 |
&uart0 { |
| 1368 |
pinctrl-0 = <&uart0_pins>; |
| 1369 |
pinctrl-names = "default"; |
| 1370 |
status = "okay"; |
| 1371 |
}; |
| 1372 |
|
| 1373 |
&uart1 { |
| 1374 |
pinctrl-0 = <&uart1_pins>; |
| 1375 |
pinctrl-names = "default"; |
| 1376 |
status = "okay"; |
| 1377 |
}; |
| 1378 |
|
| 1379 |
&uart2 { |
| 1380 |
pinctrl-0 = <&uart2_pins>; |
| 1381 |
pinctrl-names = "default"; |
| 1382 |
status = "okay"; |
| 1383 |
}; |
| 1384 |
|
| 1385 |
&vdosys0 { |
| 1386 |
port { |
| 1387 |
#address-cells = <1>; |
| 1388 |
#size-cells = <0>; |
| 1389 |
|
| 1390 |
vdosys0_ep_main: endpoint@0 { |
| 1391 |
reg = <0>; |
| 1392 |
remote-endpoint = <&ovl0_in>; |
| 1393 |
}; |
| 1394 |
}; |
| 1395 |
}; |
| 1396 |
|
| 1397 |
&u3phy0 { |
| 1398 |
status = "okay"; |
| 1399 |
}; |
| 1400 |
|
| 1401 |
&u3phy1 { |
| 1402 |
status = "okay"; |
| 1403 |
}; |
| 1404 |
|
| 1405 |
&u3phy2 { |
| 1406 |
status = "okay"; |
| 1407 |
}; |
| 1408 |
|
| 1409 |
&ssusb0 { |
| 1410 |
dr_mode = "otg"; |
| 1411 |
maximum-speed = "high-speed"; |
| 1412 |
usb-role-switch; |
| 1413 |
wakeup-source; |
| 1414 |
vusb33-supply = <&mt6359_vusb_ldo_reg>; |
| 1415 |
pinctrl-0 = <&usb_default_pins>; |
| 1416 |
pinctrl-names = "default"; |
| 1417 |
status = "okay"; |
| 1418 |
|
| 1419 |
connector { |
| 1420 |
compatible = "gpio-usb-b-connector", "usb-b-connector"; |
| 1421 |
type = "micro"; |
| 1422 |
id-gpios = <&pio 83 GPIO_ACTIVE_HIGH>; |
| 1423 |
vbus-supply = <&usb_p0_vbus>; |
| 1424 |
}; |
| 1425 |
}; |
| 1426 |
|
| 1427 |
&vdosys1 { |
| 1428 |
port { |
| 1429 |
#address-cells = <1>; |
| 1430 |
#size-cells = <0>; |
| 1431 |
|
| 1432 |
vdosys1_ep_ext: endpoint@1 { |
| 1433 |
reg = <1>; |
| 1434 |
remote-endpoint = <ðdr0_in>; |
| 1435 |
}; |
| 1436 |
}; |
| 1437 |
}; |
| 1438 |
|
| 1439 |
&xhci0 { |
| 1440 |
status = "okay"; |
| 1441 |
}; |
| 1442 |
|
| 1443 |
&ssusb1 { |
| 1444 |
dr_mode = "otg"; |
| 1445 |
usb-role-switch; |
| 1446 |
wakeup-source; |
| 1447 |
vusb33-supply = <&mt6359_vusb_ldo_reg>; |
| 1448 |
pinctrl-0 = <&usb1_default_pins>; |
| 1449 |
pinctrl-names = "default"; |
| 1450 |
status = "okay"; |
| 1451 |
|
| 1452 |
port { |
| 1453 |
mtu3_hs1_role_sw: endpoint { |
| 1454 |
remote-endpoint = <&typec_con_hs>; |
| 1455 |
}; |
| 1456 |
}; |
| 1457 |
}; |
| 1458 |
|
| 1459 |
&xhci1 { |
| 1460 |
status = "okay"; |
| 1461 |
vusb33-supply = <&mt6359_vusb_ldo_reg>; |
| 1462 |
#address-cells = <1>; |
| 1463 |
#size-cells = <0>; |
| 1464 |
|
| 1465 |
hub_2_0: hub@1 { |
| 1466 |
compatible = "usb451,8025"; |
| 1467 |
reg = <1>; |
| 1468 |
peer-hub = <&hub_3_0>; |
| 1469 |
reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>; |
| 1470 |
vdd-supply = <&usb_hub_fixed_3v3>; |
| 1471 |
}; |
| 1472 |
|
| 1473 |
hub_3_0: hub@2 { |
| 1474 |
compatible = "usb451,8027"; |
| 1475 |
reg = <2>; |
| 1476 |
peer-hub = <&hub_2_0>; |
| 1477 |
reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>; |
| 1478 |
vdd-supply = <&usb_hub_fixed_3v3>; |
| 1479 |
}; |
| 1480 |
|
| 1481 |
port { |
| 1482 |
xhci_ss_ep: endpoint { |
| 1483 |
remote-endpoint = <&typec_con_ss>; |
| 1484 |
}; |
| 1485 |
}; |
| 1486 |
}; |
| 1487 |
|
| 1488 |
&ssusb2 { |
| 1489 |
/* |
| 1490 |
* the ssusb2 controller is one but we got two ports : one is routed |
| 1491 |
* to the M.2 slot, the other is on the RPi header who does support |
| 1492 |
* full OTG. |
| 1493 |
* As the controller is shared between them, the role switch default |
| 1494 |
* mode is set to host to make any peripheral inserted in the M.2 |
| 1495 |
* slot (i.e BT/WIFI module) be detected when the other port is |
| 1496 |
* unused. |
| 1497 |
*/ |
| 1498 |
dr_mode = "otg"; |
| 1499 |
maximum-speed = "high-speed"; |
| 1500 |
role-switch-default-mode = "host"; |
| 1501 |
usb-role-switch; |
| 1502 |
vusb33-supply = <&mt6359_vusb_ldo_reg>; |
| 1503 |
wakeup-source; |
| 1504 |
pinctrl-names = "default"; |
| 1505 |
pinctrl-0 = <&usb2_default_pins>; |
| 1506 |
status = "okay"; |
| 1507 |
|
| 1508 |
connector { |
| 1509 |
compatible = "gpio-usb-b-connector", "usb-b-connector"; |
| 1510 |
type = "micro"; |
| 1511 |
id-gpios = <&pio 89 GPIO_ACTIVE_LOW>; |
| 1512 |
vbus-supply = <&usb_p2_vbus>; |
| 1513 |
}; |
| 1514 |
}; |
| 1515 |
|
| 1516 |
&xhci2 { |
| 1517 |
vusb33-supply = <&mt6359_vusb_ldo_reg>; |
| 1518 |
vbus-supply = <&sdio_fixed_3v3>; /* wifi_3v3 */ |
| 1519 |
status = "okay"; |
| 1520 |
}; |