| 1 |
// SPDX-License-Identifier: (GPL-2.0 OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (C) 2023 MediaTek Inc. |
| 4 |
* Author: Ben Lok <[email protected]> |
| 5 |
* Macpaul Lin <[email protected]> |
| 6 |
*/ |
| 7 |
/dts-v1/; |
| 8 |
|
| 9 |
#include "mt8195.dtsi" |
| 10 |
#include "mt6359.dtsi" |
| 11 |
#include <dt-bindings/gpio/gpio.h> |
| 12 |
#include <dt-bindings/input/input.h> |
| 13 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 14 |
#include <dt-bindings/pinctrl/mt8195-pinfunc.h> |
| 15 |
#include <dt-bindings/regulator/mediatek,mt6360-regulator.h> |
| 16 |
#include <dt-bindings/spmi/spmi.h> |
| 17 |
#include <dt-bindings/usb/pd.h> |
| 18 |
|
| 19 |
/ { |
| 20 |
aliases { |
| 21 |
serial0 = &uart0; |
| 22 |
ethernet0 = ð |
| 23 |
}; |
| 24 |
|
| 25 |
chosen { |
| 26 |
stdout-path = "serial0:921600n8"; |
| 27 |
}; |
| 28 |
|
| 29 |
connector { |
| 30 |
compatible = "hdmi-connector"; |
| 31 |
label = "hdmi"; |
| 32 |
type = "a"; |
| 33 |
ddc-i2c-bus = <&hdmitx_ddc>; |
| 34 |
hdmi-pwr-supply = <&hdmi_phy>; |
| 35 |
|
| 36 |
port { |
| 37 |
hdmi_connector_in: endpoint { |
| 38 |
remote-endpoint = <&hdmi0_out>; |
| 39 |
}; |
| 40 |
}; |
| 41 |
}; |
| 42 |
|
| 43 |
firmware { |
| 44 |
optee { |
| 45 |
compatible = "linaro,optee-tz"; |
| 46 |
method = "smc"; |
| 47 |
}; |
| 48 |
}; |
| 49 |
|
| 50 |
memory@40000000 { |
| 51 |
device_type = "memory"; |
| 52 |
reg = <0 0x40000000 0x2 0x00000000>; |
| 53 |
}; |
| 54 |
|
| 55 |
reserved-memory { |
| 56 |
#address-cells = <2>; |
| 57 |
#size-cells = <2>; |
| 58 |
ranges; |
| 59 |
|
| 60 |
/* |
| 61 |
* 12 MiB reserved for OP-TEE (BL32) |
| 62 |
* +-----------------------+ 0x43e0_0000 |
| 63 |
* | SHMEM 2MiB | |
| 64 |
* +-----------------------+ 0x43c0_0000 |
| 65 |
* | | TA_RAM 8MiB | |
| 66 |
* + TZDRAM +--------------+ 0x4340_0000 |
| 67 |
* | | TEE_RAM 2MiB | |
| 68 |
* +-----------------------+ 0x4320_0000 |
| 69 |
*/ |
| 70 |
optee_reserved: optee@43200000 { |
| 71 |
no-map; |
| 72 |
reg = <0 0x43200000 0 0x00c00000>; |
| 73 |
}; |
| 74 |
|
| 75 |
scp_mem: memory@50000000 { |
| 76 |
compatible = "shared-dma-pool"; |
| 77 |
reg = <0 0x50000000 0 0x2900000>; |
| 78 |
no-map; |
| 79 |
}; |
| 80 |
|
| 81 |
vpu_mem: memory@53000000 { |
| 82 |
compatible = "shared-dma-pool"; |
| 83 |
reg = <0 0x53000000 0 0x1400000>; /* 20 MB */ |
| 84 |
}; |
| 85 |
|
| 86 |
/* 2 MiB reserved for ARM Trusted Firmware (BL31) */ |
| 87 |
bl31_secmon_mem: memory@54600000 { |
| 88 |
no-map; |
| 89 |
reg = <0 0x54600000 0x0 0x200000>; |
| 90 |
}; |
| 91 |
|
| 92 |
adsp_mem: memory@60000000 { |
| 93 |
compatible = "shared-dma-pool"; |
| 94 |
reg = <0 0x60000000 0 0xf00000>; |
| 95 |
no-map; |
| 96 |
}; |
| 97 |
|
| 98 |
afe_dma_mem: memory@60f00000 { |
| 99 |
compatible = "shared-dma-pool"; |
| 100 |
reg = <0 0x60f00000 0 0x100000>; |
| 101 |
no-map; |
| 102 |
}; |
| 103 |
|
| 104 |
adsp_dma_mem: memory@61000000 { |
| 105 |
compatible = "shared-dma-pool"; |
| 106 |
reg = <0 0x61000000 0 0x100000>; |
| 107 |
no-map; |
| 108 |
}; |
| 109 |
|
| 110 |
apu_mem: memory@62000000 { |
| 111 |
compatible = "shared-dma-pool"; |
| 112 |
reg = <0 0x62000000 0 0x1400000>; /* 20 MB */ |
| 113 |
}; |
| 114 |
}; |
| 115 |
|
| 116 |
backlight_lcm0: backlight-lcm0 { |
| 117 |
compatible = "pwm-backlight"; |
| 118 |
brightness-levels = <0 1023>; |
| 119 |
default-brightness-level = <576>; |
| 120 |
num-interpolated-steps = <1023>; |
| 121 |
pwms = <&disp_pwm0 0 500000>; |
| 122 |
}; |
| 123 |
|
| 124 |
backlight_lcd1: backlight-lcd1 { |
| 125 |
compatible = "pwm-backlight"; |
| 126 |
pwms = <&disp_pwm1 0 500000>; |
| 127 |
enable-gpios = <&pio 46 GPIO_ACTIVE_HIGH>; |
| 128 |
brightness-levels = <0 1023>; |
| 129 |
num-interpolated-steps = <1023>; |
| 130 |
default-brightness-level = <576>; |
| 131 |
status = "disabled"; |
| 132 |
}; |
| 133 |
|
| 134 |
can_clk: can-clk { |
| 135 |
compatible = "fixed-clock"; |
| 136 |
#clock-cells = <0>; |
| 137 |
clock-frequency = <20000000>; |
| 138 |
clock-output-names = "can-clk"; |
| 139 |
}; |
| 140 |
|
| 141 |
edp_panel_fixed_3v3: regulator-0 { |
| 142 |
compatible = "regulator-fixed"; |
| 143 |
regulator-name = "edp_panel_3v3"; |
| 144 |
regulator-min-microvolt = <3300000>; |
| 145 |
regulator-max-microvolt = <3300000>; |
| 146 |
enable-active-high; |
| 147 |
gpio = <&pio 6 GPIO_ACTIVE_HIGH>; |
| 148 |
pinctrl-names = "default"; |
| 149 |
pinctrl-0 = <&edp_panel_3v3_en_pins>; |
| 150 |
}; |
| 151 |
|
| 152 |
edp_panel_fixed_12v: regulator-1 { |
| 153 |
compatible = "regulator-fixed"; |
| 154 |
regulator-name = "edp_backlight_12v"; |
| 155 |
regulator-min-microvolt = <12000000>; |
| 156 |
regulator-max-microvolt = <12000000>; |
| 157 |
enable-active-high; |
| 158 |
gpio = <&pio 96 GPIO_ACTIVE_HIGH>; |
| 159 |
pinctrl-names = "default"; |
| 160 |
pinctrl-0 = <&edp_panel_12v_en_pins>; |
| 161 |
}; |
| 162 |
|
| 163 |
keys: gpio-keys { |
| 164 |
compatible = "gpio-keys"; |
| 165 |
|
| 166 |
button-volume-up { |
| 167 |
wakeup-source; |
| 168 |
debounce-interval = <100>; |
| 169 |
gpios = <&pio 106 GPIO_ACTIVE_LOW>; |
| 170 |
label = "volume_up"; |
| 171 |
linux,code = <KEY_VOLUMEUP>; |
| 172 |
}; |
| 173 |
}; |
| 174 |
|
| 175 |
lcm0_iovcc: regulator-vio18-lcm0 { |
| 176 |
compatible = "regulator-fixed"; |
| 177 |
regulator-name = "vio18_lcm0"; |
| 178 |
enable-active-high; |
| 179 |
gpio = <&pio 47 GPIO_ACTIVE_HIGH>; |
| 180 |
pinctrl-names = "default"; |
| 181 |
pinctrl-0 = <&dsi0_vreg_en_pins>; |
| 182 |
vin-supply = <&mt6360_ldo2>; |
| 183 |
}; |
| 184 |
|
| 185 |
lcm0_vddp: regulator-vsys-lcm0 { |
| 186 |
compatible = "regulator-fixed"; |
| 187 |
regulator-name = "vsys_lcm0"; |
| 188 |
regulator-always-on; |
| 189 |
regulator-boot-on; |
| 190 |
vin-supply = <&mt6360_ldo1>; |
| 191 |
}; |
| 192 |
|
| 193 |
wifi_fixed_3v3: regulator-2 { |
| 194 |
compatible = "regulator-fixed"; |
| 195 |
regulator-name = "wifi_3v3"; |
| 196 |
regulator-min-microvolt = <3300000>; |
| 197 |
regulator-max-microvolt = <3300000>; |
| 198 |
gpio = <&pio 135 GPIO_ACTIVE_HIGH>; |
| 199 |
enable-active-high; |
| 200 |
regulator-always-on; |
| 201 |
}; |
| 202 |
}; |
| 203 |
|
| 204 |
&adsp { |
| 205 |
memory-region = <&adsp_dma_mem>, <&adsp_mem>; |
| 206 |
status = "okay"; |
| 207 |
}; |
| 208 |
|
| 209 |
&afe { |
| 210 |
memory-region = <&afe_dma_mem>; |
| 211 |
status = "okay"; |
| 212 |
}; |
| 213 |
|
| 214 |
&cpu0 { |
| 215 |
cpu-supply = <&mt6359_vcore_buck_reg>; |
| 216 |
}; |
| 217 |
|
| 218 |
&cpu1 { |
| 219 |
cpu-supply = <&mt6359_vcore_buck_reg>; |
| 220 |
}; |
| 221 |
|
| 222 |
&cpu2 { |
| 223 |
cpu-supply = <&mt6359_vcore_buck_reg>; |
| 224 |
}; |
| 225 |
|
| 226 |
&cpu3 { |
| 227 |
cpu-supply = <&mt6359_vcore_buck_reg>; |
| 228 |
}; |
| 229 |
|
| 230 |
&cpu4 { |
| 231 |
cpu-supply = <&mt6315_6_vbuck1>; |
| 232 |
}; |
| 233 |
|
| 234 |
&cpu5 { |
| 235 |
cpu-supply = <&mt6315_6_vbuck1>; |
| 236 |
}; |
| 237 |
|
| 238 |
&cpu6 { |
| 239 |
cpu-supply = <&mt6315_6_vbuck1>; |
| 240 |
}; |
| 241 |
|
| 242 |
&cpu7 { |
| 243 |
cpu-supply = <&mt6315_6_vbuck1>; |
| 244 |
}; |
| 245 |
|
| 246 |
&disp_pwm0 { |
| 247 |
pinctrl-names = "default"; |
| 248 |
pinctrl-0 = <&disp_pwm0_pins>; |
| 249 |
status = "okay"; |
| 250 |
}; |
| 251 |
|
| 252 |
&dither0_in { |
| 253 |
remote-endpoint = <&gamma0_out>; |
| 254 |
}; |
| 255 |
|
| 256 |
&dither0_out { |
| 257 |
remote-endpoint = <&dsi0_in>; |
| 258 |
}; |
| 259 |
|
| 260 |
&dmic_codec { |
| 261 |
wakeup-delay-ms = <200>; |
| 262 |
}; |
| 263 |
|
| 264 |
&dpi1 { |
| 265 |
status = "okay"; |
| 266 |
}; |
| 267 |
|
| 268 |
&dpi1_in { |
| 269 |
remote-endpoint = <&merge5_out>; |
| 270 |
}; |
| 271 |
|
| 272 |
&dpi1_out { |
| 273 |
remote-endpoint = <&hdmi0_in>; |
| 274 |
}; |
| 275 |
|
| 276 |
&dsi0 { |
| 277 |
#address-cells = <1>; |
| 278 |
#size-cells = <0>; |
| 279 |
status = "okay"; |
| 280 |
|
| 281 |
panel@0 { |
| 282 |
compatible = "startek,kd070fhfid078", "himax,hx8279"; |
| 283 |
reg = <0>; |
| 284 |
backlight = <&backlight_lcm0>; |
| 285 |
enable-gpios = <&pio 48 GPIO_ACTIVE_HIGH>; |
| 286 |
reset-gpios = <&pio 108 GPIO_ACTIVE_HIGH>; |
| 287 |
iovcc-supply = <&lcm0_iovcc>; |
| 288 |
vdd-supply = <&lcm0_vddp>; |
| 289 |
pinctrl-names = "default"; |
| 290 |
pinctrl-0 = <&panel_default_pins>; |
| 291 |
|
| 292 |
port { |
| 293 |
dsi_panel_in: endpoint { |
| 294 |
remote-endpoint = <&dsi0_out>; |
| 295 |
}; |
| 296 |
}; |
| 297 |
}; |
| 298 |
|
| 299 |
ports { |
| 300 |
#address-cells = <1>; |
| 301 |
#size-cells = <0>; |
| 302 |
|
| 303 |
port@0 { |
| 304 |
reg = <0>; |
| 305 |
dsi0_in: endpoint { |
| 306 |
remote-endpoint = <&dither0_out>; |
| 307 |
}; |
| 308 |
}; |
| 309 |
|
| 310 |
port@1 { |
| 311 |
reg = <1>; |
| 312 |
dsi0_out: endpoint { |
| 313 |
remote-endpoint = <&dsi_panel_in>; |
| 314 |
}; |
| 315 |
}; |
| 316 |
}; |
| 317 |
}; |
| 318 |
|
| 319 |
ð { |
| 320 |
phy-mode ="rgmii-rxid"; |
| 321 |
phy-handle = <ð_phy0>; |
| 322 |
snps,reset-gpio = <&pio 93 GPIO_ACTIVE_HIGH>; |
| 323 |
snps,reset-delays-us = <0 10000 10000>; |
| 324 |
mediatek,tx-delay-ps = <2030>; |
| 325 |
mediatek,mac-wol; |
| 326 |
pinctrl-names = "default", "sleep"; |
| 327 |
pinctrl-0 = <ð_default_pins>; |
| 328 |
pinctrl-1 = <ð_sleep_pins>; |
| 329 |
status = "okay"; |
| 330 |
|
| 331 |
mdio { |
| 332 |
compatible = "snps,dwmac-mdio"; |
| 333 |
#address-cells = <1>; |
| 334 |
#size-cells = <0>; |
| 335 |
eth_phy0: ethernet-phy@1 { |
| 336 |
compatible = "ethernet-phy-id001c.c916"; |
| 337 |
reg = <0x1>; |
| 338 |
}; |
| 339 |
}; |
| 340 |
}; |
| 341 |
|
| 342 |
ðdr0 { |
| 343 |
ports { |
| 344 |
#address-cells = <1>; |
| 345 |
#size-cells = <0>; |
| 346 |
|
| 347 |
port@0 { |
| 348 |
#address-cells = <1>; |
| 349 |
#size-cells = <0>; |
| 350 |
reg = <0>; |
| 351 |
|
| 352 |
ethdr0_in: endpoint@1 { |
| 353 |
reg = <1>; |
| 354 |
remote-endpoint = <&vdosys1_ep_ext>; |
| 355 |
}; |
| 356 |
}; |
| 357 |
|
| 358 |
port@1 { |
| 359 |
#address-cells = <1>; |
| 360 |
#size-cells = <0>; |
| 361 |
reg = <1>; |
| 362 |
|
| 363 |
ethdr0_out: endpoint@1 { |
| 364 |
reg = <1>; |
| 365 |
remote-endpoint = <&merge5_in>; |
| 366 |
}; |
| 367 |
}; |
| 368 |
}; |
| 369 |
}; |
| 370 |
|
| 371 |
&gamma0_out { |
| 372 |
remote-endpoint = <&dither0_in>; |
| 373 |
}; |
| 374 |
|
| 375 |
&gpu { |
| 376 |
mali-supply = <&mt6315_7_vbuck1>; |
| 377 |
status = "okay"; |
| 378 |
}; |
| 379 |
|
| 380 |
&i2c0 { |
| 381 |
clock-frequency = <400000>; |
| 382 |
pinctrl-0 = <&i2c0_pins>; |
| 383 |
pinctrl-names = "default"; |
| 384 |
status = "okay"; |
| 385 |
}; |
| 386 |
|
| 387 |
&hdmi { |
| 388 |
pinctrl-names = "default"; |
| 389 |
pinctrl-0 = <&hdmi_pins>; |
| 390 |
status = "okay"; |
| 391 |
}; |
| 392 |
|
| 393 |
&hdmi0_in { |
| 394 |
remote-endpoint = <&dpi1_out>; |
| 395 |
}; |
| 396 |
|
| 397 |
&hdmi0_out { |
| 398 |
remote-endpoint = <&hdmi_connector_in>; |
| 399 |
}; |
| 400 |
|
| 401 |
&hdmi_phy { |
| 402 |
pinctrl-names = "default"; |
| 403 |
pinctrl-0 = <&hdmi_vreg_pins>; |
| 404 |
|
| 405 |
status = "okay"; |
| 406 |
}; |
| 407 |
|
| 408 |
&i2c1 { |
| 409 |
clock-frequency = <400000>; |
| 410 |
pinctrl-0 = <&i2c1_pins>; |
| 411 |
pinctrl-names = "default"; |
| 412 |
status = "okay"; |
| 413 |
|
| 414 |
touchscreen@5d { |
| 415 |
compatible = "goodix,gt9271"; |
| 416 |
reg = <0x5d>; |
| 417 |
interrupts-extended = <&pio 132 IRQ_TYPE_EDGE_RISING>; |
| 418 |
irq-gpios = <&pio 132 GPIO_ACTIVE_HIGH>; |
| 419 |
reset-gpios = <&pio 133 GPIO_ACTIVE_HIGH>; |
| 420 |
AVDD28-supply = <&mt6360_ldo1>; |
| 421 |
pinctrl-names = "default"; |
| 422 |
pinctrl-0 = <&touch_pins>; |
| 423 |
}; |
| 424 |
}; |
| 425 |
|
| 426 |
&i2c2 { |
| 427 |
clock-frequency = <400000>; |
| 428 |
pinctrl-0 = <&i2c2_pins>; |
| 429 |
pinctrl-names = "default"; |
| 430 |
status = "okay"; |
| 431 |
|
| 432 |
typec-mux@48 { |
| 433 |
compatible = "ite,it5205"; |
| 434 |
reg = <0x48>; |
| 435 |
vcc-supply = <&mt6359_vibr_ldo_reg>; |
| 436 |
mode-switch; |
| 437 |
orientation-switch; |
| 438 |
status = "okay"; |
| 439 |
|
| 440 |
port { |
| 441 |
it5205_sbu_ep: endpoint { |
| 442 |
remote-endpoint = <&mt6360_ssusb_sbu_ep>; |
| 443 |
}; |
| 444 |
}; |
| 445 |
}; |
| 446 |
}; |
| 447 |
|
| 448 |
&i2c6 { |
| 449 |
clock-frequency = <400000>; |
| 450 |
pinctrl-0 = <&i2c6_pins>; |
| 451 |
pinctrl-names = "default"; |
| 452 |
#address-cells = <1>; |
| 453 |
#size-cells = <0>; |
| 454 |
status = "okay"; |
| 455 |
|
| 456 |
mt6360: pmic@34 { |
| 457 |
compatible = "mediatek,mt6360"; |
| 458 |
reg = <0x34>; |
| 459 |
interrupt-parent = <&pio>; |
| 460 |
interrupts = <128 IRQ_TYPE_EDGE_FALLING>; |
| 461 |
interrupt-names = "IRQB"; |
| 462 |
interrupt-controller; |
| 463 |
#interrupt-cells = <1>; |
| 464 |
pinctrl-0 = <&mt6360_pins>; |
| 465 |
|
| 466 |
charger { |
| 467 |
compatible = "mediatek,mt6360-chg"; |
| 468 |
richtek,vinovp-microvolt = <14500000>; |
| 469 |
|
| 470 |
otg_vbus_regulator: usb-otg-vbus-regulator { |
| 471 |
regulator-name = "usb-otg-vbus"; |
| 472 |
regulator-min-microvolt = <4425000>; |
| 473 |
regulator-max-microvolt = <5825000>; |
| 474 |
}; |
| 475 |
}; |
| 476 |
|
| 477 |
regulator { |
| 478 |
compatible = "mediatek,mt6360-regulator"; |
| 479 |
LDO_VIN3-supply = <&mt6360_buck2>; |
| 480 |
|
| 481 |
mt6360_buck1: buck1 { |
| 482 |
regulator-name = "emi_vdd2"; |
| 483 |
regulator-min-microvolt = <300000>; |
| 484 |
regulator-max-microvolt = <1300000>; |
| 485 |
regulator-allowed-modes = <MT6360_OPMODE_NORMAL |
| 486 |
MT6360_OPMODE_LP |
| 487 |
MT6360_OPMODE_ULP>; |
| 488 |
regulator-always-on; |
| 489 |
}; |
| 490 |
|
| 491 |
mt6360_buck2: buck2 { |
| 492 |
regulator-name = "emi_vddq"; |
| 493 |
regulator-min-microvolt = <300000>; |
| 494 |
regulator-max-microvolt = <1300000>; |
| 495 |
regulator-allowed-modes = <MT6360_OPMODE_NORMAL |
| 496 |
MT6360_OPMODE_LP |
| 497 |
MT6360_OPMODE_ULP>; |
| 498 |
regulator-always-on; |
| 499 |
}; |
| 500 |
|
| 501 |
mt6360_ldo1: ldo1 { |
| 502 |
regulator-name = "tp1_p3v0"; |
| 503 |
regulator-min-microvolt = <3300000>; |
| 504 |
regulator-max-microvolt = <3300000>; |
| 505 |
regulator-allowed-modes = <MT6360_OPMODE_NORMAL |
| 506 |
MT6360_OPMODE_LP>; |
| 507 |
regulator-always-on; |
| 508 |
}; |
| 509 |
|
| 510 |
mt6360_ldo2: ldo2 { |
| 511 |
regulator-name = "panel1_p1v8"; |
| 512 |
regulator-min-microvolt = <1800000>; |
| 513 |
regulator-max-microvolt = <1800000>; |
| 514 |
regulator-allowed-modes = <MT6360_OPMODE_NORMAL |
| 515 |
MT6360_OPMODE_LP>; |
| 516 |
}; |
| 517 |
|
| 518 |
mt6360_ldo3: ldo3 { |
| 519 |
regulator-name = "vmc_pmu"; |
| 520 |
regulator-min-microvolt = <1200000>; |
| 521 |
regulator-max-microvolt = <3600000>; |
| 522 |
regulator-allowed-modes = <MT6360_OPMODE_NORMAL |
| 523 |
MT6360_OPMODE_LP>; |
| 524 |
}; |
| 525 |
|
| 526 |
mt6360_ldo5: ldo5 { |
| 527 |
regulator-name = "vmch_pmu"; |
| 528 |
regulator-min-microvolt = <2700000>; |
| 529 |
regulator-max-microvolt = <3600000>; |
| 530 |
regulator-allowed-modes = <MT6360_OPMODE_NORMAL |
| 531 |
MT6360_OPMODE_LP>; |
| 532 |
}; |
| 533 |
|
| 534 |
/* This is a measure point, which name is mt6360_ldo1 on schematic */ |
| 535 |
mt6360_ldo6: ldo6 { |
| 536 |
regulator-name = "mt6360_ldo1"; |
| 537 |
regulator-min-microvolt = <500000>; |
| 538 |
regulator-max-microvolt = <2100000>; |
| 539 |
regulator-allowed-modes = <MT6360_OPMODE_NORMAL |
| 540 |
MT6360_OPMODE_LP>; |
| 541 |
}; |
| 542 |
|
| 543 |
mt6360_ldo7: ldo7 { |
| 544 |
regulator-name = "emi_vmddr_en"; |
| 545 |
regulator-min-microvolt = <500000>; |
| 546 |
regulator-max-microvolt = <2100000>; |
| 547 |
regulator-allowed-modes = <MT6360_OPMODE_NORMAL |
| 548 |
MT6360_OPMODE_LP>; |
| 549 |
regulator-always-on; |
| 550 |
}; |
| 551 |
}; |
| 552 |
|
| 553 |
tcpc { |
| 554 |
compatible = "mediatek,mt6360-tcpc"; |
| 555 |
interrupts-extended = <&pio 17 IRQ_TYPE_LEVEL_LOW>; |
| 556 |
interrupt-names = "PD_IRQB"; |
| 557 |
|
| 558 |
connector { |
| 559 |
compatible = "usb-c-connector"; |
| 560 |
label = "USB-C"; |
| 561 |
data-role = "dual"; |
| 562 |
op-sink-microwatt = <10000000>; |
| 563 |
power-role = "dual"; |
| 564 |
try-power-role = "sink"; |
| 565 |
|
| 566 |
source-pdos = <PDO_FIXED(5000, 1000, |
| 567 |
PDO_FIXED_DUAL_ROLE | |
| 568 |
PDO_FIXED_DATA_SWAP)>; |
| 569 |
sink-pdos = <PDO_FIXED(5000, 2000, |
| 570 |
PDO_FIXED_DUAL_ROLE | |
| 571 |
PDO_FIXED_DATA_SWAP)>; |
| 572 |
|
| 573 |
pd-revision = /bits/ 8 <0x03 0x01 0x01 0x06>; |
| 574 |
|
| 575 |
altmodes { |
| 576 |
displayport { |
| 577 |
svid = /bits/ 16 <0xff01>; |
| 578 |
vdo = <0x00001c46>; |
| 579 |
}; |
| 580 |
}; |
| 581 |
|
| 582 |
ports { |
| 583 |
#address-cells = <1>; |
| 584 |
#size-cells = <0>; |
| 585 |
|
| 586 |
port@0 { |
| 587 |
reg = <0>; |
| 588 |
typec_con_hs: endpoint { |
| 589 |
remote-endpoint = <&mtu3_hs0_role_sw>; |
| 590 |
}; |
| 591 |
}; |
| 592 |
|
| 593 |
port@1 { |
| 594 |
reg = <1>; |
| 595 |
typec_con_ss: endpoint { |
| 596 |
remote-endpoint = <&mtu3_ss0_role_sw>; |
| 597 |
}; |
| 598 |
}; |
| 599 |
|
| 600 |
port@2 { |
| 601 |
reg = <2>; |
| 602 |
mt6360_ssusb_sbu_ep: endpoint { |
| 603 |
remote-endpoint = <&it5205_sbu_ep>; |
| 604 |
}; |
| 605 |
}; |
| 606 |
}; |
| 607 |
}; |
| 608 |
}; |
| 609 |
}; |
| 610 |
}; |
| 611 |
|
| 612 |
&merge5 { |
| 613 |
ports { |
| 614 |
#address-cells = <1>; |
| 615 |
#size-cells = <0>; |
| 616 |
|
| 617 |
port@0 { |
| 618 |
#address-cells = <1>; |
| 619 |
#size-cells = <0>; |
| 620 |
reg = <0>; |
| 621 |
|
| 622 |
merge5_in: endpoint@1 { |
| 623 |
reg = <1>; |
| 624 |
remote-endpoint = <ðdr0_out>; |
| 625 |
}; |
| 626 |
}; |
| 627 |
|
| 628 |
port@1 { |
| 629 |
#address-cells = <1>; |
| 630 |
#size-cells = <0>; |
| 631 |
reg = <1>; |
| 632 |
|
| 633 |
merge5_out: endpoint@1 { |
| 634 |
reg = <1>; |
| 635 |
remote-endpoint = <&dpi1_in>; |
| 636 |
}; |
| 637 |
}; |
| 638 |
}; |
| 639 |
}; |
| 640 |
|
| 641 |
&mfg0 { |
| 642 |
domain-supply = <&mt6315_7_vbuck1>; |
| 643 |
}; |
| 644 |
|
| 645 |
&mfg1 { |
| 646 |
domain-supply = <&mt6359_vsram_others_ldo_reg>; |
| 647 |
}; |
| 648 |
|
| 649 |
&mipi_tx0 { |
| 650 |
status = "okay"; |
| 651 |
}; |
| 652 |
|
| 653 |
&mmc0 { |
| 654 |
status = "okay"; |
| 655 |
pinctrl-names = "default", "state_uhs"; |
| 656 |
pinctrl-0 = <&mmc0_default_pins>; |
| 657 |
pinctrl-1 = <&mmc0_uhs_pins>; |
| 658 |
bus-width = <8>; |
| 659 |
max-frequency = <200000000>; |
| 660 |
cap-mmc-highspeed; |
| 661 |
mmc-hs200-1_8v; |
| 662 |
mmc-hs400-1_8v; |
| 663 |
cap-mmc-hw-reset; |
| 664 |
no-sdio; |
| 665 |
no-sd; |
| 666 |
hs400-ds-delay = <0x14c11>; |
| 667 |
vmmc-supply = <&mt6359_vemc_1_ldo_reg>; |
| 668 |
vqmmc-supply = <&mt6359_vufs_ldo_reg>; |
| 669 |
non-removable; |
| 670 |
}; |
| 671 |
|
| 672 |
&mmc1 { |
| 673 |
pinctrl-names = "default", "state_uhs"; |
| 674 |
pinctrl-0 = <&mmc1_default_pins>; |
| 675 |
pinctrl-1 = <&mmc1_uhs_pins>; |
| 676 |
bus-width = <4>; |
| 677 |
max-frequency = <200000000>; |
| 678 |
cap-sd-highspeed; |
| 679 |
sd-uhs-sdr50; |
| 680 |
sd-uhs-sdr104; |
| 681 |
no-mmc; |
| 682 |
no-sdio; |
| 683 |
vmmc-supply = <&mt6360_ldo5>; |
| 684 |
vqmmc-supply = <&mt6360_ldo3>; |
| 685 |
status = "okay"; |
| 686 |
non-removable; |
| 687 |
}; |
| 688 |
|
| 689 |
&mt6359_vaud18_ldo_reg { |
| 690 |
regulator-always-on; |
| 691 |
}; |
| 692 |
|
| 693 |
&mt6359_vbbck_ldo_reg { |
| 694 |
regulator-always-on; |
| 695 |
}; |
| 696 |
|
| 697 |
/* For USB Hub */ |
| 698 |
&mt6359_vcamio_ldo_reg { |
| 699 |
regulator-always-on; |
| 700 |
}; |
| 701 |
|
| 702 |
&mt6359_vcn33_2_bt_ldo_reg { |
| 703 |
regulator-min-microvolt = <3300000>; |
| 704 |
regulator-max-microvolt = <3300000>; |
| 705 |
}; |
| 706 |
|
| 707 |
&mt6359_vcore_buck_reg { |
| 708 |
regulator-always-on; |
| 709 |
}; |
| 710 |
|
| 711 |
&mt6359_vgpu11_buck_reg { |
| 712 |
regulator-always-on; |
| 713 |
}; |
| 714 |
|
| 715 |
&mt6359_vpu_buck_reg { |
| 716 |
regulator-always-on; |
| 717 |
}; |
| 718 |
|
| 719 |
&mt6359_vrf12_ldo_reg { |
| 720 |
regulator-always-on; |
| 721 |
}; |
| 722 |
|
| 723 |
/* for GPU SRAM */ |
| 724 |
&mt6359_vsram_others_ldo_reg { |
| 725 |
regulator-min-microvolt = <750000>; |
| 726 |
regulator-max-microvolt = <750000>; |
| 727 |
}; |
| 728 |
|
| 729 |
&mt6359codec { |
| 730 |
mediatek,mic-type-0 = <1>; /* ACC */ |
| 731 |
mediatek,mic-type-1 = <3>; /* DCC */ |
| 732 |
mediatek,mic-type-2 = <1>; /* ACC */ |
| 733 |
}; |
| 734 |
|
| 735 |
&ovl0_in { |
| 736 |
remote-endpoint = <&vdosys0_ep_main>; |
| 737 |
}; |
| 738 |
|
| 739 |
&pcie0 { |
| 740 |
pinctrl-names = "default", "idle"; |
| 741 |
pinctrl-0 = <&pcie0_default_pins>; |
| 742 |
pinctrl-1 = <&pcie0_idle_pins>; |
| 743 |
status = "okay"; |
| 744 |
}; |
| 745 |
|
| 746 |
&pcie1 { |
| 747 |
pinctrl-names = "default"; |
| 748 |
pinctrl-0 = <&pcie1_default_pins>; |
| 749 |
status = "disabled"; |
| 750 |
}; |
| 751 |
|
| 752 |
&pciephy { |
| 753 |
status = "okay"; |
| 754 |
}; |
| 755 |
|
| 756 |
&pio { |
| 757 |
audio_default_pins: audio-default-pins { |
| 758 |
pins-cmd-dat { |
| 759 |
pinmux = <PINMUX_GPIO61__FUNC_DMIC1_CLK>, |
| 760 |
<PINMUX_GPIO62__FUNC_DMIC1_DAT>, |
| 761 |
<PINMUX_GPIO65__FUNC_PCM_DO>, |
| 762 |
<PINMUX_GPIO66__FUNC_PCM_CLK>, |
| 763 |
<PINMUX_GPIO67__FUNC_PCM_DI>, |
| 764 |
<PINMUX_GPIO68__FUNC_PCM_SYNC>, |
| 765 |
<PINMUX_GPIO69__FUNC_AUD_CLK_MOSI>, |
| 766 |
<PINMUX_GPIO70__FUNC_AUD_SYNC_MOSI>, |
| 767 |
<PINMUX_GPIO71__FUNC_AUD_DAT_MOSI0>, |
| 768 |
<PINMUX_GPIO72__FUNC_AUD_DAT_MOSI1>, |
| 769 |
<PINMUX_GPIO73__FUNC_AUD_DAT_MISO0>, |
| 770 |
<PINMUX_GPIO74__FUNC_AUD_DAT_MISO1>, |
| 771 |
<PINMUX_GPIO75__FUNC_AUD_DAT_MISO2>; |
| 772 |
}; |
| 773 |
}; |
| 774 |
|
| 775 |
disp_pwm1_default_pins: disp-pwm1-default-pins { |
| 776 |
pins1 { |
| 777 |
pinmux = <PINMUX_GPIO104__FUNC_DISP_PWM1>; |
| 778 |
}; |
| 779 |
}; |
| 780 |
|
| 781 |
edp_panel_12v_en_pins: edp-panel-12v-en-pins { |
| 782 |
pins1 { |
| 783 |
pinmux = <PINMUX_GPIO96__FUNC_GPIO96>; |
| 784 |
output-high; |
| 785 |
}; |
| 786 |
}; |
| 787 |
|
| 788 |
edp_panel_3v3_en_pins: edp-panel-3v3-en-pins { |
| 789 |
pins1 { |
| 790 |
pinmux = <PINMUX_GPIO6__FUNC_GPIO6>; |
| 791 |
output-high; |
| 792 |
}; |
| 793 |
}; |
| 794 |
|
| 795 |
eth_default_pins: eth-default-pins { |
| 796 |
pins-cc { |
| 797 |
pinmux = <PINMUX_GPIO85__FUNC_GBE_TXC>, |
| 798 |
<PINMUX_GPIO86__FUNC_GBE_RXC>, |
| 799 |
<PINMUX_GPIO87__FUNC_GBE_RXDV>, |
| 800 |
<PINMUX_GPIO88__FUNC_GBE_TXEN>; |
| 801 |
drive-strength = <8>; |
| 802 |
}; |
| 803 |
|
| 804 |
pins-mdio { |
| 805 |
pinmux = <PINMUX_GPIO89__FUNC_GBE_MDC>, |
| 806 |
<PINMUX_GPIO90__FUNC_GBE_MDIO>; |
| 807 |
input-enable; |
| 808 |
}; |
| 809 |
|
| 810 |
pins-power { |
| 811 |
pinmux = <PINMUX_GPIO91__FUNC_GPIO91>, |
| 812 |
<PINMUX_GPIO92__FUNC_GPIO92>; |
| 813 |
output-high; |
| 814 |
}; |
| 815 |
|
| 816 |
pins-rxd { |
| 817 |
pinmux = <PINMUX_GPIO81__FUNC_GBE_RXD3>, |
| 818 |
<PINMUX_GPIO82__FUNC_GBE_RXD2>, |
| 819 |
<PINMUX_GPIO83__FUNC_GBE_RXD1>, |
| 820 |
<PINMUX_GPIO84__FUNC_GBE_RXD0>; |
| 821 |
}; |
| 822 |
|
| 823 |
pins-txd { |
| 824 |
pinmux = <PINMUX_GPIO77__FUNC_GBE_TXD3>, |
| 825 |
<PINMUX_GPIO78__FUNC_GBE_TXD2>, |
| 826 |
<PINMUX_GPIO79__FUNC_GBE_TXD1>, |
| 827 |
<PINMUX_GPIO80__FUNC_GBE_TXD0>; |
| 828 |
drive-strength = <8>; |
| 829 |
}; |
| 830 |
}; |
| 831 |
|
| 832 |
eth_sleep_pins: eth-sleep-pins { |
| 833 |
pins-cc { |
| 834 |
pinmux = <PINMUX_GPIO85__FUNC_GPIO85>, |
| 835 |
<PINMUX_GPIO86__FUNC_GPIO86>, |
| 836 |
<PINMUX_GPIO87__FUNC_GPIO87>, |
| 837 |
<PINMUX_GPIO88__FUNC_GPIO88>; |
| 838 |
}; |
| 839 |
|
| 840 |
pins-mdio { |
| 841 |
pinmux = <PINMUX_GPIO89__FUNC_GPIO89>, |
| 842 |
<PINMUX_GPIO90__FUNC_GPIO90>; |
| 843 |
input-disable; |
| 844 |
bias-disable; |
| 845 |
}; |
| 846 |
|
| 847 |
pins-rxd { |
| 848 |
pinmux = <PINMUX_GPIO81__FUNC_GPIO81>, |
| 849 |
<PINMUX_GPIO82__FUNC_GPIO82>, |
| 850 |
<PINMUX_GPIO83__FUNC_GPIO83>, |
| 851 |
<PINMUX_GPIO84__FUNC_GPIO84>; |
| 852 |
}; |
| 853 |
|
| 854 |
pins-txd { |
| 855 |
pinmux = <PINMUX_GPIO77__FUNC_GPIO77>, |
| 856 |
<PINMUX_GPIO78__FUNC_GPIO78>, |
| 857 |
<PINMUX_GPIO79__FUNC_GPIO79>, |
| 858 |
<PINMUX_GPIO80__FUNC_GPIO80>; |
| 859 |
}; |
| 860 |
}; |
| 861 |
|
| 862 |
gpio_key_pins: gpio-keys-pins { |
| 863 |
pins { |
| 864 |
pinmux = <PINMUX_GPIO106__FUNC_GPIO106>; |
| 865 |
bias-pull-up; |
| 866 |
input-enable; |
| 867 |
}; |
| 868 |
}; |
| 869 |
|
| 870 |
hdmi_vreg_pins: hdmi-vreg-pins { |
| 871 |
pins-pwr { |
| 872 |
pinmux = <PINMUX_GPIO31__FUNC_HDMITX20_PWR5V>; |
| 873 |
bias-disable; |
| 874 |
}; |
| 875 |
}; |
| 876 |
|
| 877 |
hdmi_pins: hdmi-pins { |
| 878 |
pins-hotplug { |
| 879 |
pinmux = <PINMUX_GPIO32__FUNC_HDMITX20_HTPLG>; |
| 880 |
bias-pull-down; |
| 881 |
}; |
| 882 |
|
| 883 |
pins-ddc { |
| 884 |
pinmux = <PINMUX_GPIO34__FUNC_HDMITX20_SCL>, |
| 885 |
<PINMUX_GPIO35__FUNC_HDMITX20_SDA>; |
| 886 |
drive-strength = <10>; |
| 887 |
}; |
| 888 |
|
| 889 |
pins-cec { |
| 890 |
pinmux = <PINMUX_GPIO33__FUNC_HDMITX20_CEC>; |
| 891 |
bias-disable; |
| 892 |
}; |
| 893 |
}; |
| 894 |
|
| 895 |
i2c0_pins: i2c0-pins { |
| 896 |
pins { |
| 897 |
pinmux = <PINMUX_GPIO8__FUNC_SDA0>, |
| 898 |
<PINMUX_GPIO9__FUNC_SCL0>; |
| 899 |
bias-pull-up = <MTK_PULL_SET_RSEL_111>; |
| 900 |
drive-strength-microamp = <1000>; |
| 901 |
}; |
| 902 |
}; |
| 903 |
|
| 904 |
i2c1_pins: i2c1-pins { |
| 905 |
pins { |
| 906 |
pinmux = <PINMUX_GPIO10__FUNC_SDA1>, |
| 907 |
<PINMUX_GPIO11__FUNC_SCL1>; |
| 908 |
bias-pull-up = <MTK_PULL_SET_RSEL_111>; |
| 909 |
drive-strength-microamp = <1000>; |
| 910 |
}; |
| 911 |
}; |
| 912 |
|
| 913 |
i2c2_pins: i2c2-pins { |
| 914 |
pins { |
| 915 |
pinmux = <PINMUX_GPIO12__FUNC_SDA2>, |
| 916 |
<PINMUX_GPIO13__FUNC_SCL2>; |
| 917 |
bias-pull-up = <MTK_PULL_SET_RSEL_111>; |
| 918 |
drive-strength = <6>; |
| 919 |
}; |
| 920 |
}; |
| 921 |
|
| 922 |
i2c6_pins: i2c6-pins { |
| 923 |
pins { |
| 924 |
pinmux = <PINMUX_GPIO25__FUNC_SDA6>, |
| 925 |
<PINMUX_GPIO26__FUNC_SCL6>; |
| 926 |
bias-pull-up; |
| 927 |
}; |
| 928 |
}; |
| 929 |
|
| 930 |
mmc0_default_pins: mmc0-default-pins { |
| 931 |
pins-clk { |
| 932 |
pinmux = <PINMUX_GPIO122__FUNC_MSDC0_CLK>; |
| 933 |
drive-strength = <6>; |
| 934 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 935 |
}; |
| 936 |
|
| 937 |
pins-cmd-dat { |
| 938 |
pinmux = <PINMUX_GPIO126__FUNC_MSDC0_DAT0>, |
| 939 |
<PINMUX_GPIO125__FUNC_MSDC0_DAT1>, |
| 940 |
<PINMUX_GPIO124__FUNC_MSDC0_DAT2>, |
| 941 |
<PINMUX_GPIO123__FUNC_MSDC0_DAT3>, |
| 942 |
<PINMUX_GPIO119__FUNC_MSDC0_DAT4>, |
| 943 |
<PINMUX_GPIO118__FUNC_MSDC0_DAT5>, |
| 944 |
<PINMUX_GPIO117__FUNC_MSDC0_DAT6>, |
| 945 |
<PINMUX_GPIO116__FUNC_MSDC0_DAT7>, |
| 946 |
<PINMUX_GPIO121__FUNC_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_GPIO120__FUNC_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_GPIO122__FUNC_MSDC0_CLK>; |
| 962 |
drive-strength = <8>; |
| 963 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 964 |
}; |
| 965 |
|
| 966 |
pins-cmd-dat { |
| 967 |
pinmux = <PINMUX_GPIO126__FUNC_MSDC0_DAT0>, |
| 968 |
<PINMUX_GPIO125__FUNC_MSDC0_DAT1>, |
| 969 |
<PINMUX_GPIO124__FUNC_MSDC0_DAT2>, |
| 970 |
<PINMUX_GPIO123__FUNC_MSDC0_DAT3>, |
| 971 |
<PINMUX_GPIO119__FUNC_MSDC0_DAT4>, |
| 972 |
<PINMUX_GPIO118__FUNC_MSDC0_DAT5>, |
| 973 |
<PINMUX_GPIO117__FUNC_MSDC0_DAT6>, |
| 974 |
<PINMUX_GPIO116__FUNC_MSDC0_DAT7>, |
| 975 |
<PINMUX_GPIO121__FUNC_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_GPIO127__FUNC_MSDC0_DSL>; |
| 983 |
drive-strength = <8>; |
| 984 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 985 |
}; |
| 986 |
|
| 987 |
pins-rst { |
| 988 |
pinmux = <PINMUX_GPIO120__FUNC_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_GPIO111__FUNC_MSDC1_CLK>; |
| 997 |
drive-strength = <8>; |
| 998 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 999 |
}; |
| 1000 |
|
| 1001 |
pins-cmd-dat { |
| 1002 |
pinmux = <PINMUX_GPIO110__FUNC_MSDC1_CMD>, |
| 1003 |
<PINMUX_GPIO112__FUNC_MSDC1_DAT0>, |
| 1004 |
<PINMUX_GPIO113__FUNC_MSDC1_DAT1>, |
| 1005 |
<PINMUX_GPIO114__FUNC_MSDC1_DAT2>, |
| 1006 |
<PINMUX_GPIO115__FUNC_MSDC1_DAT3>; |
| 1007 |
input-enable; |
| 1008 |
drive-strength = <8>; |
| 1009 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 1010 |
}; |
| 1011 |
}; |
| 1012 |
|
| 1013 |
mmc1_uhs_pins: mmc1-uhs-pins { |
| 1014 |
pins-clk { |
| 1015 |
pinmux = <PINMUX_GPIO111__FUNC_MSDC1_CLK>; |
| 1016 |
drive-strength = <8>; |
| 1017 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 1018 |
}; |
| 1019 |
|
| 1020 |
pins-cmd-dat { |
| 1021 |
pinmux = <PINMUX_GPIO110__FUNC_MSDC1_CMD>, |
| 1022 |
<PINMUX_GPIO112__FUNC_MSDC1_DAT0>, |
| 1023 |
<PINMUX_GPIO113__FUNC_MSDC1_DAT1>, |
| 1024 |
<PINMUX_GPIO114__FUNC_MSDC1_DAT2>, |
| 1025 |
<PINMUX_GPIO115__FUNC_MSDC1_DAT3>; |
| 1026 |
input-enable; |
| 1027 |
drive-strength = <8>; |
| 1028 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 1029 |
}; |
| 1030 |
}; |
| 1031 |
|
| 1032 |
mt6360_pins: mt6360-pins { |
| 1033 |
pins { |
| 1034 |
pinmux = <PINMUX_GPIO17__FUNC_GPIO17>, |
| 1035 |
<PINMUX_GPIO128__FUNC_GPIO128>; |
| 1036 |
input-enable; |
| 1037 |
bias-pull-up; |
| 1038 |
}; |
| 1039 |
}; |
| 1040 |
|
| 1041 |
dsi0_vreg_en_pins: dsi0-vreg-en-pins { |
| 1042 |
pins-pwr-en { |
| 1043 |
pinmux = <PINMUX_GPIO47__FUNC_GPIO47>; |
| 1044 |
output-low; |
| 1045 |
}; |
| 1046 |
}; |
| 1047 |
|
| 1048 |
panel_default_pins: panel-default-pins { |
| 1049 |
pins-rst { |
| 1050 |
pinmux = <PINMUX_GPIO108__FUNC_GPIO108>; |
| 1051 |
output-high; |
| 1052 |
}; |
| 1053 |
|
| 1054 |
pins-en { |
| 1055 |
pinmux = <PINMUX_GPIO48__FUNC_GPIO48>; |
| 1056 |
output-low; |
| 1057 |
}; |
| 1058 |
}; |
| 1059 |
|
| 1060 |
pcie0_default_pins: pcie0-default-pins { |
| 1061 |
pins { |
| 1062 |
pinmux = <PINMUX_GPIO19__FUNC_WAKEN>, |
| 1063 |
<PINMUX_GPIO20__FUNC_PERSTN>, |
| 1064 |
<PINMUX_GPIO21__FUNC_CLKREQN>; |
| 1065 |
bias-pull-up; |
| 1066 |
}; |
| 1067 |
}; |
| 1068 |
|
| 1069 |
pcie0_idle_pins: pcie0-idle-pins { |
| 1070 |
pins { |
| 1071 |
pinmux = <PINMUX_GPIO20__FUNC_GPIO20>; |
| 1072 |
bias-disable; |
| 1073 |
output-low; |
| 1074 |
}; |
| 1075 |
}; |
| 1076 |
|
| 1077 |
pcie1_default_pins: pcie1-default-pins { |
| 1078 |
pins { |
| 1079 |
pinmux = <PINMUX_GPIO22__FUNC_PERSTN_1>, |
| 1080 |
<PINMUX_GPIO23__FUNC_CLKREQN_1>, |
| 1081 |
<PINMUX_GPIO24__FUNC_WAKEN_1>; |
| 1082 |
bias-pull-up; |
| 1083 |
}; |
| 1084 |
}; |
| 1085 |
|
| 1086 |
disp_pwm0_pins: disp-pwm0-pins { |
| 1087 |
pins-disp-pwm { |
| 1088 |
pinmux = <PINMUX_GPIO97__FUNC_DISP_PWM0>; |
| 1089 |
}; |
| 1090 |
}; |
| 1091 |
|
| 1092 |
spi1_pins: spi1-pins { |
| 1093 |
pins { |
| 1094 |
pinmux = <PINMUX_GPIO136__FUNC_SPIM1_CSB>, |
| 1095 |
<PINMUX_GPIO137__FUNC_SPIM1_CLK>, |
| 1096 |
<PINMUX_GPIO138__FUNC_SPIM1_MO>, |
| 1097 |
<PINMUX_GPIO139__FUNC_SPIM1_MI>; |
| 1098 |
bias-disable; |
| 1099 |
}; |
| 1100 |
}; |
| 1101 |
|
| 1102 |
spi2_pins: spi-pins { |
| 1103 |
pins { |
| 1104 |
pinmux = <PINMUX_GPIO140__FUNC_SPIM2_CSB>, |
| 1105 |
<PINMUX_GPIO141__FUNC_SPIM2_CLK>, |
| 1106 |
<PINMUX_GPIO142__FUNC_SPIM2_MO>, |
| 1107 |
<PINMUX_GPIO143__FUNC_SPIM2_MI>; |
| 1108 |
bias-disable; |
| 1109 |
}; |
| 1110 |
}; |
| 1111 |
|
| 1112 |
touch_pins: touch-pins { |
| 1113 |
pins-irq { |
| 1114 |
pinmux = <PINMUX_GPIO132__FUNC_GPIO132>; |
| 1115 |
input-enable; |
| 1116 |
bias-disable; |
| 1117 |
}; |
| 1118 |
|
| 1119 |
pins-reset { |
| 1120 |
pinmux = <PINMUX_GPIO133__FUNC_GPIO133>; |
| 1121 |
output-high; |
| 1122 |
}; |
| 1123 |
}; |
| 1124 |
|
| 1125 |
u3_p0_vbus: u3-p0-vbus-default-pins { |
| 1126 |
pins-vbus { |
| 1127 |
pinmux = <PINMUX_GPIO63__FUNC_VBUSVALID>; |
| 1128 |
input-enable; |
| 1129 |
}; |
| 1130 |
}; |
| 1131 |
|
| 1132 |
uart0_pins: uart0-pins { |
| 1133 |
pins { |
| 1134 |
pinmux = <PINMUX_GPIO98__FUNC_UTXD0>, |
| 1135 |
<PINMUX_GPIO99__FUNC_URXD0>; |
| 1136 |
}; |
| 1137 |
}; |
| 1138 |
|
| 1139 |
uart1_pins: uart1-pins { |
| 1140 |
pins { |
| 1141 |
pinmux = <PINMUX_GPIO100__FUNC_URTS1>, |
| 1142 |
<PINMUX_GPIO101__FUNC_UCTS1>, |
| 1143 |
<PINMUX_GPIO102__FUNC_UTXD1>, |
| 1144 |
<PINMUX_GPIO103__FUNC_URXD1>; |
| 1145 |
}; |
| 1146 |
}; |
| 1147 |
}; |
| 1148 |
|
| 1149 |
&pmic { |
| 1150 |
interrupts-extended = <&pio 222 IRQ_TYPE_LEVEL_HIGH>; |
| 1151 |
|
| 1152 |
mt6359keys: keys { |
| 1153 |
compatible = "mediatek,mt6359-keys"; |
| 1154 |
mediatek,long-press-mode = <1>; |
| 1155 |
power-off-time-sec = <0>; |
| 1156 |
|
| 1157 |
power-key { |
| 1158 |
linux,keycodes = <KEY_POWER>; |
| 1159 |
wakeup-source; |
| 1160 |
}; |
| 1161 |
|
| 1162 |
home { |
| 1163 |
linux,keycodes = <KEY_HOME>; |
| 1164 |
}; |
| 1165 |
}; |
| 1166 |
}; |
| 1167 |
|
| 1168 |
&scp { |
| 1169 |
memory-region = <&scp_mem>; |
| 1170 |
firmware-name = "mediatek/mt8195/scp.img"; |
| 1171 |
status = "okay"; |
| 1172 |
}; |
| 1173 |
|
| 1174 |
&sound { |
| 1175 |
compatible = "mediatek,mt8195_mt6359"; |
| 1176 |
model = "mt8395-evk"; |
| 1177 |
pinctrl-names = "default"; |
| 1178 |
pinctrl-0 = <&audio_default_pins>; |
| 1179 |
audio-routing = |
| 1180 |
"Headphone", "Headphone L", |
| 1181 |
"Headphone", "Headphone R"; |
| 1182 |
mediatek,adsp = <&adsp>; |
| 1183 |
status = "okay"; |
| 1184 |
|
| 1185 |
headphone-dai-link { |
| 1186 |
link-name = "DL_SRC_BE"; |
| 1187 |
|
| 1188 |
codec { |
| 1189 |
sound-dai = <&pmic 0>; |
| 1190 |
}; |
| 1191 |
}; |
| 1192 |
|
| 1193 |
hdmi-dai-link { |
| 1194 |
link-name = "ETDM3_OUT_BE"; |
| 1195 |
|
| 1196 |
codec { |
| 1197 |
sound-dai = <&hdmi 0>; |
| 1198 |
}; |
| 1199 |
}; |
| 1200 |
}; |
| 1201 |
|
| 1202 |
&spi1 { |
| 1203 |
pinctrl-0 = <&spi1_pins>; |
| 1204 |
pinctrl-names = "default"; |
| 1205 |
mediatek,pad-select = <0>; |
| 1206 |
#address-cells = <1>; |
| 1207 |
#size-cells = <0>; |
| 1208 |
status = "okay"; |
| 1209 |
cs-gpios = <&pio 64 GPIO_ACTIVE_LOW>; |
| 1210 |
|
| 1211 |
can0: can@0 { |
| 1212 |
compatible = "microchip,mcp2518fd"; |
| 1213 |
reg = <0>; |
| 1214 |
clocks = <&can_clk>; |
| 1215 |
spi-max-frequency = <20000000>; |
| 1216 |
interrupts-extended = <&pio 16 IRQ_TYPE_LEVEL_LOW>; |
| 1217 |
vdd-supply = <&mt6359_vcn33_2_bt_ldo_reg>; |
| 1218 |
xceiver-supply = <&mt6359_vcn33_2_bt_ldo_reg>; |
| 1219 |
}; |
| 1220 |
}; |
| 1221 |
|
| 1222 |
&spi2 { |
| 1223 |
pinctrl-0 = <&spi2_pins>; |
| 1224 |
pinctrl-names = "default"; |
| 1225 |
mediatek,pad-select = <0>; |
| 1226 |
#address-cells = <1>; |
| 1227 |
#size-cells = <0>; |
| 1228 |
status = "okay"; |
| 1229 |
}; |
| 1230 |
|
| 1231 |
&spmi { |
| 1232 |
#address-cells = <2>; |
| 1233 |
#size-cells = <0>; |
| 1234 |
|
| 1235 |
mt6315_6: pmic@6 { |
| 1236 |
compatible = "mediatek,mt6315-regulator"; |
| 1237 |
reg = <0x6 SPMI_USID>; |
| 1238 |
|
| 1239 |
regulators { |
| 1240 |
mt6315_6_vbuck1: vbuck1 { |
| 1241 |
regulator-name = "Vbcpu"; |
| 1242 |
regulator-min-microvolt = <300000>; |
| 1243 |
regulator-max-microvolt = <1193750>; |
| 1244 |
regulator-enable-ramp-delay = <256>; |
| 1245 |
regulator-allowed-modes = <0 1 2>; |
| 1246 |
regulator-always-on; |
| 1247 |
}; |
| 1248 |
}; |
| 1249 |
}; |
| 1250 |
|
| 1251 |
mt6315_7: pmic@7 { |
| 1252 |
compatible = "mediatek,mt6315-regulator"; |
| 1253 |
reg = <0x7 SPMI_USID>; |
| 1254 |
|
| 1255 |
regulators { |
| 1256 |
mt6315_7_vbuck1: vbuck1 { |
| 1257 |
regulator-name = "Vgpu"; |
| 1258 |
regulator-min-microvolt = <546000>; |
| 1259 |
regulator-max-microvolt = <787000>; |
| 1260 |
regulator-enable-ramp-delay = <256>; |
| 1261 |
regulator-allowed-modes = <0 1 2>; |
| 1262 |
}; |
| 1263 |
}; |
| 1264 |
}; |
| 1265 |
}; |
| 1266 |
|
| 1267 |
&u3phy0 { |
| 1268 |
status = "okay"; |
| 1269 |
}; |
| 1270 |
|
| 1271 |
&u3phy1 { |
| 1272 |
status = "okay"; |
| 1273 |
|
| 1274 |
u3port1: usb-phy@700 { |
| 1275 |
mediatek,force-mode; |
| 1276 |
}; |
| 1277 |
}; |
| 1278 |
|
| 1279 |
&u3phy2 { |
| 1280 |
status = "okay"; |
| 1281 |
}; |
| 1282 |
|
| 1283 |
&u3phy3 { |
| 1284 |
status = "okay"; |
| 1285 |
}; |
| 1286 |
|
| 1287 |
&uart0 { |
| 1288 |
pinctrl-0 = <&uart0_pins>; |
| 1289 |
pinctrl-names = "default"; |
| 1290 |
status = "okay"; |
| 1291 |
}; |
| 1292 |
|
| 1293 |
&uart1 { |
| 1294 |
pinctrl-0 = <&uart1_pins>; |
| 1295 |
pinctrl-names = "default"; |
| 1296 |
status = "okay"; |
| 1297 |
}; |
| 1298 |
|
| 1299 |
&ufsphy { |
| 1300 |
status = "disabled"; |
| 1301 |
}; |
| 1302 |
|
| 1303 |
&ssusb0 { |
| 1304 |
dr_mode = "otg"; |
| 1305 |
pinctrl-names = "default"; |
| 1306 |
pinctrl-0 = <&u3_p0_vbus>; |
| 1307 |
usb-role-switch; |
| 1308 |
vusb33-supply = <&mt6359_vusb_ldo_reg>; |
| 1309 |
status = "okay"; |
| 1310 |
|
| 1311 |
ports { |
| 1312 |
#address-cells = <1>; |
| 1313 |
#size-cells = <0>; |
| 1314 |
|
| 1315 |
port@0 { |
| 1316 |
reg = <0>; |
| 1317 |
mtu3_hs0_role_sw: endpoint { |
| 1318 |
remote-endpoint = <&typec_con_hs>; |
| 1319 |
}; |
| 1320 |
}; |
| 1321 |
|
| 1322 |
port@1 { |
| 1323 |
reg = <1>; |
| 1324 |
mtu3_ss0_role_sw: endpoint { |
| 1325 |
remote-endpoint = <&typec_con_ss>; |
| 1326 |
}; |
| 1327 |
}; |
| 1328 |
}; |
| 1329 |
}; |
| 1330 |
|
| 1331 |
&ssusb2 { |
| 1332 |
vusb33-supply = <&mt6359_vusb_ldo_reg>; |
| 1333 |
status = "okay"; |
| 1334 |
}; |
| 1335 |
|
| 1336 |
&ssusb3 { |
| 1337 |
vusb33-supply = <&mt6359_vusb_ldo_reg>; |
| 1338 |
status = "okay"; |
| 1339 |
}; |
| 1340 |
|
| 1341 |
&vdosys0 { |
| 1342 |
port { |
| 1343 |
#address-cells = <1>; |
| 1344 |
#size-cells = <0>; |
| 1345 |
|
| 1346 |
vdosys0_ep_main: endpoint@0 { |
| 1347 |
reg = <0>; |
| 1348 |
remote-endpoint = <&ovl0_in>; |
| 1349 |
}; |
| 1350 |
}; |
| 1351 |
}; |
| 1352 |
|
| 1353 |
&vdosys1 { |
| 1354 |
port { |
| 1355 |
#address-cells = <1>; |
| 1356 |
#size-cells = <0>; |
| 1357 |
|
| 1358 |
vdosys1_ep_ext: endpoint@1 { |
| 1359 |
reg = <1>; |
| 1360 |
remote-endpoint = <ðdr0_in>; |
| 1361 |
}; |
| 1362 |
}; |
| 1363 |
}; |
| 1364 |
|
| 1365 |
&xhci0 { |
| 1366 |
status = "okay"; |
| 1367 |
}; |
| 1368 |
|
| 1369 |
&xhci1 { |
| 1370 |
vusb33-supply = <&mt6359_vusb_ldo_reg>; |
| 1371 |
status = "okay"; |
| 1372 |
}; |
| 1373 |
|
| 1374 |
&xhci2 { |
| 1375 |
status = "okay"; |
| 1376 |
}; |
| 1377 |
|
| 1378 |
&xhci3 { |
| 1379 |
status = "okay"; |
| 1380 |
}; |