| 1 |
// SPDX-License-Identifier: (GPL-2.0 OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (C) 2023 Radxa Limited |
| 4 |
* Copyright (C) 2024 Collabora Ltd. |
| 5 |
* AngeloGioacchino Del Regno <[email protected]> |
| 6 |
*/ |
| 7 |
|
| 8 |
#include "mt8195.dtsi" |
| 9 |
#include "mt6359.dtsi" |
| 10 |
#include <dt-bindings/gpio/gpio.h> |
| 11 |
#include <dt-bindings/input/input.h> |
| 12 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 13 |
#include <dt-bindings/pinctrl/mt8195-pinfunc.h> |
| 14 |
#include <dt-bindings/regulator/mediatek,mt6360-regulator.h> |
| 15 |
#include <dt-bindings/spmi/spmi.h> |
| 16 |
#include <dt-bindings/usb/pd.h> |
| 17 |
|
| 18 |
/ { |
| 19 |
model = "Radxa NIO 12L"; |
| 20 |
chassis-type = "embedded"; |
| 21 |
compatible = "radxa,nio-12l", "mediatek,mt8395", "mediatek,mt8195"; |
| 22 |
|
| 23 |
aliases { |
| 24 |
i2c0 = &i2c2; |
| 25 |
i2c1 = &i2c3; |
| 26 |
i2c2 = &i2c4; |
| 27 |
i2c3 = &i2c0; |
| 28 |
i2c4 = &i2c1; |
| 29 |
ethernet0 = ð |
| 30 |
serial0 = &uart0; |
| 31 |
serial1 = &uart1; |
| 32 |
spi0 = &spi1; |
| 33 |
spi1 = &spi2; |
| 34 |
}; |
| 35 |
|
| 36 |
chosen { |
| 37 |
stdout-path = "serial0:921600n8"; |
| 38 |
}; |
| 39 |
|
| 40 |
connector { |
| 41 |
compatible = "hdmi-connector"; |
| 42 |
label = "hdmi"; |
| 43 |
type = "a"; |
| 44 |
ddc-i2c-bus = <&hdmitx_ddc>; |
| 45 |
hdmi-pwr-supply = <&hdmi_phy>; |
| 46 |
|
| 47 |
port { |
| 48 |
hdmi_connector_in: endpoint { |
| 49 |
remote-endpoint = <&hdmi0_out>; |
| 50 |
}; |
| 51 |
}; |
| 52 |
}; |
| 53 |
|
| 54 |
firmware { |
| 55 |
optee { |
| 56 |
compatible = "linaro,optee-tz"; |
| 57 |
method = "smc"; |
| 58 |
}; |
| 59 |
}; |
| 60 |
|
| 61 |
memory@40000000 { |
| 62 |
device_type = "memory"; |
| 63 |
reg = <0 0x40000000 0x1 0x0>; |
| 64 |
}; |
| 65 |
|
| 66 |
backlight: backlight { |
| 67 |
compatible = "pwm-backlight"; |
| 68 |
brightness-levels = <0 1023>; |
| 69 |
default-brightness-level = <576>; |
| 70 |
enable-gpios = <&pio 107 GPIO_ACTIVE_HIGH>; |
| 71 |
num-interpolated-steps = <1023>; |
| 72 |
pinctrl-names = "default"; |
| 73 |
pinctrl-0 = <&dsi0_backlight_pins>; |
| 74 |
pwms = <&disp_pwm0 0 500000>; |
| 75 |
status = "disabled"; |
| 76 |
}; |
| 77 |
|
| 78 |
keys: gpio-keys { |
| 79 |
compatible = "gpio-keys"; |
| 80 |
|
| 81 |
button-volume-up { |
| 82 |
wakeup-source; |
| 83 |
debounce-interval = <100>; |
| 84 |
gpios = <&pio 106 GPIO_ACTIVE_LOW>; |
| 85 |
label = "volume_up"; |
| 86 |
linux,code = <KEY_VOLUMEUP>; |
| 87 |
}; |
| 88 |
}; |
| 89 |
|
| 90 |
wifi_vreg: regulator-wifi-3v3-en { |
| 91 |
compatible = "regulator-fixed"; |
| 92 |
regulator-name = "wifi_3v3_en"; |
| 93 |
regulator-always-on; |
| 94 |
regulator-min-microvolt = <3300000>; |
| 95 |
regulator-max-microvolt = <3300000>; |
| 96 |
enable-active-high; |
| 97 |
gpio = <&pio 67 GPIO_ACTIVE_HIGH>; |
| 98 |
pinctrl-names = "default"; |
| 99 |
pinctrl-0 = <&wifi_vreg_pins>; |
| 100 |
vin-supply = <&vsys>; |
| 101 |
}; |
| 102 |
|
| 103 |
/* system wide switching 5.0V power rail */ |
| 104 |
vsys: regulator-vsys { |
| 105 |
compatible = "regulator-fixed"; |
| 106 |
regulator-name = "vsys"; |
| 107 |
regulator-always-on; |
| 108 |
regulator-boot-on; |
| 109 |
regulator-min-microvolt = <5000000>; |
| 110 |
regulator-max-microvolt = <5000000>; |
| 111 |
vin-supply = <&vcc5v0_vsys>; |
| 112 |
}; |
| 113 |
|
| 114 |
vsys_buck: regulator-vsys-buck { |
| 115 |
compatible = "regulator-fixed"; |
| 116 |
regulator-name = "vsys_buck"; |
| 117 |
regulator-always-on; |
| 118 |
regulator-boot-on; |
| 119 |
regulator-min-microvolt = <5000000>; |
| 120 |
regulator-max-microvolt = <5000000>; |
| 121 |
vin-supply = <&vcc5v0_vsys>; |
| 122 |
}; |
| 123 |
|
| 124 |
/* Rail from power-only "TYPE C DC" port */ |
| 125 |
vcc5v0_vsys: regulator-vcc5v0-sys { |
| 126 |
compatible = "regulator-fixed"; |
| 127 |
regulator-name = "vcc5v0_sys"; |
| 128 |
regulator-always-on; |
| 129 |
regulator-boot-on; |
| 130 |
}; |
| 131 |
|
| 132 |
reserved-memory { |
| 133 |
#address-cells = <2>; |
| 134 |
#size-cells = <2>; |
| 135 |
ranges; |
| 136 |
|
| 137 |
/* |
| 138 |
* 12 MiB reserved for OP-TEE (BL32) |
| 139 |
* +-----------------------+ 0x43e0_0000 |
| 140 |
* | SHMEM 2MiB | |
| 141 |
* +-----------------------+ 0x43c0_0000 |
| 142 |
* | | TA_RAM 8MiB | |
| 143 |
* + TZDRAM +--------------+ 0x4340_0000 |
| 144 |
* | | TEE_RAM 2MiB | |
| 145 |
* +-----------------------+ 0x4320_0000 |
| 146 |
*/ |
| 147 |
optee_reserved: optee@43200000 { |
| 148 |
reg = <0 0x43200000 0 0xc00000>; |
| 149 |
no-map; |
| 150 |
}; |
| 151 |
|
| 152 |
scp_mem: memory@50000000 { |
| 153 |
compatible = "shared-dma-pool"; |
| 154 |
reg = <0 0x50000000 0 0x2900000>; |
| 155 |
no-map; |
| 156 |
}; |
| 157 |
|
| 158 |
vpu_mem: memory@53000000 { |
| 159 |
compatible = "shared-dma-pool"; |
| 160 |
reg = <0 0x53000000 0 0x1400000>; /* 20 MB */ |
| 161 |
}; |
| 162 |
|
| 163 |
/* 2 MiB reserved for ARM Trusted Firmware (BL31) */ |
| 164 |
bl31_secmon_mem: memory@54600000 { |
| 165 |
reg = <0 0x54600000 0x0 0x200000>; |
| 166 |
no-map; |
| 167 |
}; |
| 168 |
|
| 169 |
adsp_mem: memory@60000000 { |
| 170 |
compatible = "shared-dma-pool"; |
| 171 |
reg = <0 0x60000000 0 0xf00000>; |
| 172 |
no-map; |
| 173 |
}; |
| 174 |
|
| 175 |
afe_dma_mem: memory@60f00000 { |
| 176 |
compatible = "shared-dma-pool"; |
| 177 |
reg = <0 0x60f00000 0 0x100000>; |
| 178 |
no-map; |
| 179 |
}; |
| 180 |
|
| 181 |
adsp_dma_mem: memory@61000000 { |
| 182 |
compatible = "shared-dma-pool"; |
| 183 |
reg = <0 0x61000000 0 0x100000>; |
| 184 |
no-map; |
| 185 |
}; |
| 186 |
|
| 187 |
apu_mem: memory@62000000 { |
| 188 |
compatible = "shared-dma-pool"; |
| 189 |
reg = <0 0x62000000 0 0x1400000>; /* 20 MB */ |
| 190 |
}; |
| 191 |
}; |
| 192 |
}; |
| 193 |
|
| 194 |
&adsp { |
| 195 |
memory-region = <&adsp_dma_mem>, <&adsp_mem>; |
| 196 |
status = "okay"; |
| 197 |
}; |
| 198 |
|
| 199 |
&afe { |
| 200 |
memory-region = <&afe_dma_mem>; |
| 201 |
status = "okay"; |
| 202 |
}; |
| 203 |
|
| 204 |
&cpu0 { |
| 205 |
cpu-supply = <&mt6359_vcore_buck_reg>; |
| 206 |
}; |
| 207 |
|
| 208 |
&cpu1 { |
| 209 |
cpu-supply = <&mt6359_vcore_buck_reg>; |
| 210 |
}; |
| 211 |
|
| 212 |
&cpu2 { |
| 213 |
cpu-supply = <&mt6359_vcore_buck_reg>; |
| 214 |
}; |
| 215 |
|
| 216 |
&cpu3 { |
| 217 |
cpu-supply = <&mt6359_vcore_buck_reg>; |
| 218 |
}; |
| 219 |
|
| 220 |
&cpu4 { |
| 221 |
cpu-supply = <&mt6315_6_vbuck1>; |
| 222 |
}; |
| 223 |
|
| 224 |
&cpu5 { |
| 225 |
cpu-supply = <&mt6315_6_vbuck1>; |
| 226 |
}; |
| 227 |
|
| 228 |
&cpu6 { |
| 229 |
cpu-supply = <&mt6315_6_vbuck1>; |
| 230 |
}; |
| 231 |
|
| 232 |
&cpu7 { |
| 233 |
cpu-supply = <&mt6315_6_vbuck1>; |
| 234 |
}; |
| 235 |
|
| 236 |
&dither0_out { |
| 237 |
remote-endpoint = <&dsi0_in>; |
| 238 |
}; |
| 239 |
|
| 240 |
&dsi0 { |
| 241 |
#address-cells = <1>; |
| 242 |
#size-cells = <0>; |
| 243 |
|
| 244 |
ports { |
| 245 |
#address-cells = <1>; |
| 246 |
#size-cells = <0>; |
| 247 |
|
| 248 |
port@0 { |
| 249 |
reg = <0>; |
| 250 |
dsi0_in: endpoint { |
| 251 |
remote-endpoint = <&dither0_out>; |
| 252 |
}; |
| 253 |
}; |
| 254 |
|
| 255 |
port@1 { |
| 256 |
reg = <1>; |
| 257 |
dsi0_out: endpoint { }; |
| 258 |
}; |
| 259 |
}; |
| 260 |
}; |
| 261 |
|
| 262 |
&dpi1 { |
| 263 |
status = "okay"; |
| 264 |
}; |
| 265 |
|
| 266 |
&dpi1_in { |
| 267 |
remote-endpoint = <&merge5_out>; |
| 268 |
}; |
| 269 |
|
| 270 |
&dpi1_out { |
| 271 |
remote-endpoint = <&hdmi0_in>; |
| 272 |
}; |
| 273 |
|
| 274 |
ð { |
| 275 |
phy-mode = "rgmii-rxid"; |
| 276 |
phy-handle = <&rgmii_phy>; |
| 277 |
pinctrl-names = "default", "sleep"; |
| 278 |
pinctrl-0 = <ð_default_pins>; |
| 279 |
pinctrl-1 = <ð_sleep_pins>; |
| 280 |
mediatek,tx-delay-ps = <2030>; |
| 281 |
mediatek,mac-wol; |
| 282 |
snps,reset-gpio = <&pio 93 GPIO_ACTIVE_HIGH>; |
| 283 |
snps,reset-delays-us = <0 20000 100000>; |
| 284 |
status = "okay"; |
| 285 |
|
| 286 |
mdio { |
| 287 |
rgmii_phy: ethernet-phy@1 { |
| 288 |
compatible = "ethernet-phy-id001c.c916"; |
| 289 |
reg = <0x1>; |
| 290 |
}; |
| 291 |
}; |
| 292 |
}; |
| 293 |
|
| 294 |
ðdr0 { |
| 295 |
ports { |
| 296 |
#address-cells = <1>; |
| 297 |
#size-cells = <0>; |
| 298 |
|
| 299 |
port@0 { |
| 300 |
#address-cells = <1>; |
| 301 |
#size-cells = <0>; |
| 302 |
reg = <0>; |
| 303 |
|
| 304 |
ethdr0_in: endpoint@1 { |
| 305 |
reg = <1>; |
| 306 |
remote-endpoint = <&vdosys1_ep_ext>; |
| 307 |
}; |
| 308 |
}; |
| 309 |
|
| 310 |
port@1 { |
| 311 |
#address-cells = <1>; |
| 312 |
#size-cells = <0>; |
| 313 |
reg = <1>; |
| 314 |
|
| 315 |
ethdr0_out: endpoint@1 { |
| 316 |
reg = <1>; |
| 317 |
remote-endpoint = <&merge5_in>; |
| 318 |
}; |
| 319 |
}; |
| 320 |
}; |
| 321 |
}; |
| 322 |
|
| 323 |
&gpu { |
| 324 |
mali-supply = <&mt6315_7_vbuck1>; |
| 325 |
status = "okay"; |
| 326 |
}; |
| 327 |
|
| 328 |
&hdmi { |
| 329 |
pinctrl-names = "default"; |
| 330 |
pinctrl-0 = <&hdmi_pins>; |
| 331 |
status = "okay"; |
| 332 |
}; |
| 333 |
|
| 334 |
&hdmi0_in { |
| 335 |
remote-endpoint = <&dpi1_out>; |
| 336 |
}; |
| 337 |
|
| 338 |
&hdmi0_out { |
| 339 |
remote-endpoint = <&hdmi_connector_in>; |
| 340 |
}; |
| 341 |
|
| 342 |
&hdmi_phy { |
| 343 |
pinctrl-names = "default"; |
| 344 |
pinctrl-0 = <&hdmi_vreg_pins>; |
| 345 |
|
| 346 |
status = "okay"; |
| 347 |
}; |
| 348 |
|
| 349 |
&i2c2 { |
| 350 |
clock-frequency = <400000>; |
| 351 |
pinctrl-0 = <&i2c2_pins>; |
| 352 |
pinctrl-names = "default"; |
| 353 |
status = "okay"; |
| 354 |
|
| 355 |
typec-mux@48 { |
| 356 |
compatible = "ite,it5205"; |
| 357 |
reg = <0x48>; |
| 358 |
|
| 359 |
mode-switch; |
| 360 |
orientation-switch; |
| 361 |
|
| 362 |
vcc-supply = <&mt6359_vibr_ldo_reg>; |
| 363 |
|
| 364 |
port { |
| 365 |
it5205_sbu_mux: endpoint { |
| 366 |
remote-endpoint = <&typec_con_mux>; |
| 367 |
}; |
| 368 |
}; |
| 369 |
}; |
| 370 |
}; |
| 371 |
|
| 372 |
&i2c4 { |
| 373 |
clock-frequency = <400000>; |
| 374 |
pinctrl-0 = <&i2c4_pins>; |
| 375 |
pinctrl-names = "default"; |
| 376 |
status = "okay"; |
| 377 |
|
| 378 |
/* I2C4 exposed at 39-pins MIPI-LCD connector */ |
| 379 |
}; |
| 380 |
|
| 381 |
&i2c6 { |
| 382 |
clock-frequency = <400000>; |
| 383 |
pinctrl-0 = <&i2c6_pins>; |
| 384 |
pinctrl-names = "default"; |
| 385 |
status = "okay"; |
| 386 |
|
| 387 |
mt6360: pmic@34 { |
| 388 |
compatible = "mediatek,mt6360"; |
| 389 |
reg = <0x34>; |
| 390 |
interrupts-extended = <&pio 101 IRQ_TYPE_EDGE_FALLING>; |
| 391 |
interrupt-names = "IRQB"; |
| 392 |
interrupt-controller; |
| 393 |
#interrupt-cells = <1>; |
| 394 |
pinctrl-0 = <&mt6360_pins>; |
| 395 |
|
| 396 |
charger { |
| 397 |
compatible = "mediatek,mt6360-chg"; |
| 398 |
richtek,vinovp-microvolt = <14500000>; |
| 399 |
|
| 400 |
otg_vbus_regulator: usb-otg-vbus-regulator { |
| 401 |
regulator-name = "usb-otg-vbus"; |
| 402 |
regulator-min-microvolt = <4425000>; |
| 403 |
regulator-max-microvolt = <5825000>; |
| 404 |
}; |
| 405 |
}; |
| 406 |
|
| 407 |
regulator { |
| 408 |
compatible = "mediatek,mt6360-regulator"; |
| 409 |
LDO_VIN1-supply = <&vsys_buck>; |
| 410 |
LDO_VIN3-supply = <&mt6360_buck2>; |
| 411 |
|
| 412 |
mt6360_buck1: buck1 { |
| 413 |
regulator-name = "emi_vdd2"; |
| 414 |
regulator-min-microvolt = <300000>; |
| 415 |
regulator-max-microvolt = <1300000>; |
| 416 |
regulator-allowed-modes = <MT6360_OPMODE_NORMAL |
| 417 |
MT6360_OPMODE_LP |
| 418 |
MT6360_OPMODE_ULP>; |
| 419 |
regulator-always-on; |
| 420 |
}; |
| 421 |
|
| 422 |
mt6360_buck2: buck2 { |
| 423 |
regulator-name = "emi_vddq"; |
| 424 |
regulator-min-microvolt = <300000>; |
| 425 |
regulator-max-microvolt = <1300000>; |
| 426 |
regulator-allowed-modes = <MT6360_OPMODE_NORMAL |
| 427 |
MT6360_OPMODE_LP |
| 428 |
MT6360_OPMODE_ULP>; |
| 429 |
regulator-always-on; |
| 430 |
}; |
| 431 |
|
| 432 |
mt6360_ldo1: ldo1 { |
| 433 |
regulator-name = "ext_lcd_3v3"; |
| 434 |
regulator-min-microvolt = <3300000>; |
| 435 |
regulator-max-microvolt = <3300000>; |
| 436 |
regulator-allowed-modes = <MT6360_OPMODE_NORMAL |
| 437 |
MT6360_OPMODE_LP>; |
| 438 |
regulator-always-on; |
| 439 |
}; |
| 440 |
|
| 441 |
mt6360_ldo2: ldo2 { |
| 442 |
regulator-name = "panel1_p1v8"; |
| 443 |
regulator-min-microvolt = <1800000>; |
| 444 |
regulator-max-microvolt = <1800000>; |
| 445 |
regulator-allowed-modes = <MT6360_OPMODE_NORMAL |
| 446 |
MT6360_OPMODE_LP>; |
| 447 |
}; |
| 448 |
|
| 449 |
mt6360_ldo3: ldo3 { |
| 450 |
regulator-name = "vmc_pmu"; |
| 451 |
regulator-min-microvolt = <1200000>; |
| 452 |
regulator-max-microvolt = <3600000>; |
| 453 |
regulator-allowed-modes = <MT6360_OPMODE_NORMAL |
| 454 |
MT6360_OPMODE_LP>; |
| 455 |
}; |
| 456 |
|
| 457 |
mt6360_ldo5: ldo5 { |
| 458 |
regulator-name = "vmch_pmu"; |
| 459 |
regulator-min-microvolt = <3300000>; |
| 460 |
regulator-max-microvolt = <3300000>; |
| 461 |
regulator-allowed-modes = <MT6360_OPMODE_NORMAL |
| 462 |
MT6360_OPMODE_LP>; |
| 463 |
regulator-always-on; |
| 464 |
}; |
| 465 |
|
| 466 |
mt6360_ldo6: ldo6 { |
| 467 |
regulator-name = "mt6360_ldo6"; /* Test point */ |
| 468 |
regulator-min-microvolt = <500000>; |
| 469 |
regulator-max-microvolt = <2100000>; |
| 470 |
regulator-allowed-modes = <MT6360_OPMODE_NORMAL |
| 471 |
MT6360_OPMODE_LP>; |
| 472 |
}; |
| 473 |
|
| 474 |
mt6360_ldo7: ldo7 { |
| 475 |
regulator-name = "emi_vmddr_en"; |
| 476 |
regulator-min-microvolt = <500000>; |
| 477 |
regulator-max-microvolt = <2100000>; |
| 478 |
regulator-allowed-modes = <MT6360_OPMODE_NORMAL |
| 479 |
MT6360_OPMODE_LP>; |
| 480 |
regulator-always-on; |
| 481 |
}; |
| 482 |
}; |
| 483 |
|
| 484 |
typec { |
| 485 |
compatible = "mediatek,mt6360-tcpc"; |
| 486 |
interrupts-extended = <&pio 100 IRQ_TYPE_LEVEL_LOW>; |
| 487 |
interrupt-names = "PD_IRQB"; |
| 488 |
|
| 489 |
connector { |
| 490 |
compatible = "usb-c-connector"; |
| 491 |
label = "USB-C"; |
| 492 |
data-role = "dual"; |
| 493 |
op-sink-microwatt = <10000000>; |
| 494 |
power-role = "dual"; |
| 495 |
try-power-role = "sink"; |
| 496 |
|
| 497 |
source-pdos = <PDO_FIXED(5000, 1000, |
| 498 |
PDO_FIXED_DUAL_ROLE | |
| 499 |
PDO_FIXED_DATA_SWAP)>; |
| 500 |
sink-pdos = <PDO_FIXED(5000, 3000, |
| 501 |
PDO_FIXED_DUAL_ROLE | |
| 502 |
PDO_FIXED_DATA_SWAP)>; |
| 503 |
|
| 504 |
ports { |
| 505 |
#address-cells = <1>; |
| 506 |
#size-cells = <0>; |
| 507 |
|
| 508 |
port@0 { |
| 509 |
reg = <0>; |
| 510 |
typec_con_hs: endpoint { |
| 511 |
remote-endpoint = <&mtu3_hs0_role_sw>; |
| 512 |
}; |
| 513 |
}; |
| 514 |
|
| 515 |
port@2 { |
| 516 |
reg = <2>; |
| 517 |
typec_con_mux: endpoint { |
| 518 |
remote-endpoint = <&it5205_sbu_mux>; |
| 519 |
}; |
| 520 |
}; |
| 521 |
}; |
| 522 |
}; |
| 523 |
}; |
| 524 |
}; |
| 525 |
}; |
| 526 |
|
| 527 |
&merge5 { |
| 528 |
ports { |
| 529 |
#address-cells = <1>; |
| 530 |
#size-cells = <0>; |
| 531 |
|
| 532 |
port@0 { |
| 533 |
#address-cells = <1>; |
| 534 |
#size-cells = <0>; |
| 535 |
reg = <0>; |
| 536 |
|
| 537 |
merge5_in: endpoint@1 { |
| 538 |
reg = <1>; |
| 539 |
remote-endpoint = <ðdr0_out>; |
| 540 |
}; |
| 541 |
}; |
| 542 |
|
| 543 |
port@1 { |
| 544 |
#address-cells = <1>; |
| 545 |
#size-cells = <0>; |
| 546 |
reg = <1>; |
| 547 |
|
| 548 |
merge5_out: endpoint@1 { |
| 549 |
reg = <1>; |
| 550 |
remote-endpoint = <&dpi1_in>; |
| 551 |
}; |
| 552 |
}; |
| 553 |
}; |
| 554 |
}; |
| 555 |
|
| 556 |
&mfg0 { |
| 557 |
domain-supply = <&mt6315_7_vbuck1>; |
| 558 |
}; |
| 559 |
|
| 560 |
&mfg1 { |
| 561 |
domain-supply = <&mt6359_vsram_others_ldo_reg>; |
| 562 |
}; |
| 563 |
|
| 564 |
/* MMC0 Controller: eMMC (HS400). Power lines are shared with UFS! */ |
| 565 |
&mmc0 { |
| 566 |
pinctrl-names = "default", "state_uhs"; |
| 567 |
pinctrl-0 = <&mmc0_default_pins>; |
| 568 |
pinctrl-1 = <&mmc0_uhs_pins>; |
| 569 |
bus-width = <8>; |
| 570 |
max-frequency = <200000000>; |
| 571 |
hs400-ds-delay = <0x14c11>; |
| 572 |
cap-mmc-highspeed; |
| 573 |
cap-mmc-hw-reset; |
| 574 |
mmc-hs200-1_8v; |
| 575 |
mmc-hs400-1_8v; |
| 576 |
no-sdio; |
| 577 |
no-sd; |
| 578 |
non-removable; |
| 579 |
vmmc-supply = <&mt6359_vemc_1_ldo_reg>; |
| 580 |
vqmmc-supply = <&mt6359_vufs_ldo_reg>; |
| 581 |
status = "okay"; |
| 582 |
}; |
| 583 |
|
| 584 |
/* MMC1 Controller: MicroSD card slot */ |
| 585 |
&mmc1 { |
| 586 |
pinctrl-names = "default", "state_uhs"; |
| 587 |
pinctrl-0 = <&mmc1_default_pins>, <&mmc1_pins_detect>; |
| 588 |
pinctrl-1 = <&mmc1_default_pins>; |
| 589 |
bus-width = <4>; |
| 590 |
max-frequency = <200000000>; |
| 591 |
cap-sd-highspeed; |
| 592 |
cd-gpios = <&pio 129 GPIO_ACTIVE_LOW>; |
| 593 |
no-mmc; |
| 594 |
no-sdio; |
| 595 |
sd-uhs-sdr50; |
| 596 |
sd-uhs-sdr104; |
| 597 |
vmmc-supply = <&mt6360_ldo5>; |
| 598 |
vqmmc-supply = <&mt6360_ldo3>; |
| 599 |
status = "okay"; |
| 600 |
}; |
| 601 |
|
| 602 |
&mt6359_vaud18_ldo_reg { |
| 603 |
regulator-always-on; |
| 604 |
}; |
| 605 |
|
| 606 |
&mt6359_vbbck_ldo_reg { |
| 607 |
regulator-always-on; |
| 608 |
}; |
| 609 |
|
| 610 |
/* For USB Hub */ |
| 611 |
&mt6359_vcamio_ldo_reg { |
| 612 |
regulator-always-on; |
| 613 |
}; |
| 614 |
|
| 615 |
&mt6359_vcn33_2_bt_ldo_reg { |
| 616 |
regulator-min-microvolt = <3300000>; |
| 617 |
regulator-max-microvolt = <3300000>; |
| 618 |
}; |
| 619 |
|
| 620 |
&mt6359_vcore_buck_reg { |
| 621 |
regulator-always-on; |
| 622 |
}; |
| 623 |
|
| 624 |
&mt6359_vgpu11_buck_reg { |
| 625 |
regulator-always-on; |
| 626 |
}; |
| 627 |
|
| 628 |
&mt6359_vproc1_buck_reg { |
| 629 |
regulator-always-on; |
| 630 |
}; |
| 631 |
|
| 632 |
&mt6359_vproc2_buck_reg { |
| 633 |
regulator-always-on; |
| 634 |
}; |
| 635 |
|
| 636 |
&mt6359_vpu_buck_reg { |
| 637 |
regulator-always-on; |
| 638 |
}; |
| 639 |
|
| 640 |
&mt6359_vrf12_ldo_reg { |
| 641 |
regulator-always-on; |
| 642 |
}; |
| 643 |
|
| 644 |
&mt6359_vsram_md_ldo_reg { |
| 645 |
regulator-always-on; |
| 646 |
}; |
| 647 |
|
| 648 |
/* for GPU SRAM */ |
| 649 |
&mt6359_vsram_others_ldo_reg { |
| 650 |
regulator-min-microvolt = <750000>; |
| 651 |
regulator-max-microvolt = <750000>; |
| 652 |
}; |
| 653 |
|
| 654 |
&pio { |
| 655 |
mediatek,rsel-resistance-in-si-unit; |
| 656 |
|
| 657 |
audio_default_pins: audio-default-pins { |
| 658 |
pins-cmd-dat { |
| 659 |
pinmux = <PINMUX_GPIO70__FUNC_AUD_SYNC_MOSI>, |
| 660 |
<PINMUX_GPIO69__FUNC_AUD_CLK_MOSI>, |
| 661 |
<PINMUX_GPIO71__FUNC_AUD_DAT_MOSI0>, |
| 662 |
<PINMUX_GPIO72__FUNC_AUD_DAT_MOSI1>, |
| 663 |
<PINMUX_GPIO73__FUNC_AUD_DAT_MISO0>, |
| 664 |
<PINMUX_GPIO74__FUNC_AUD_DAT_MISO1>, |
| 665 |
<PINMUX_GPIO75__FUNC_AUD_DAT_MISO2>; |
| 666 |
}; |
| 667 |
}; |
| 668 |
|
| 669 |
dsi0_backlight_pins: dsi0-backlight-pins { |
| 670 |
pins-backlight-en { |
| 671 |
pinmux = <PINMUX_GPIO107__FUNC_GPIO107>; |
| 672 |
output-high; |
| 673 |
}; |
| 674 |
}; |
| 675 |
|
| 676 |
eth_default_pins: eth-default-pins { |
| 677 |
pins-cc { |
| 678 |
pinmux = <PINMUX_GPIO85__FUNC_GBE_TXC>, |
| 679 |
<PINMUX_GPIO86__FUNC_GBE_RXC>, |
| 680 |
<PINMUX_GPIO87__FUNC_GBE_RXDV>, |
| 681 |
<PINMUX_GPIO88__FUNC_GBE_TXEN>; |
| 682 |
drive-strength = <8>; |
| 683 |
}; |
| 684 |
|
| 685 |
pins-mdio { |
| 686 |
pinmux = <PINMUX_GPIO89__FUNC_GBE_MDC>, |
| 687 |
<PINMUX_GPIO90__FUNC_GBE_MDIO>; |
| 688 |
input-enable; |
| 689 |
}; |
| 690 |
|
| 691 |
pins-power { |
| 692 |
pinmux = <PINMUX_GPIO91__FUNC_GPIO91>, |
| 693 |
<PINMUX_GPIO92__FUNC_GPIO92>; |
| 694 |
output-high; |
| 695 |
}; |
| 696 |
|
| 697 |
pins-rst { |
| 698 |
pinmux = <PINMUX_GPIO93__FUNC_GPIO93>; |
| 699 |
}; |
| 700 |
|
| 701 |
pins-rxd { |
| 702 |
pinmux = <PINMUX_GPIO81__FUNC_GBE_RXD3>, |
| 703 |
<PINMUX_GPIO82__FUNC_GBE_RXD2>, |
| 704 |
<PINMUX_GPIO83__FUNC_GBE_RXD1>, |
| 705 |
<PINMUX_GPIO84__FUNC_GBE_RXD0>; |
| 706 |
}; |
| 707 |
|
| 708 |
pins-txd { |
| 709 |
pinmux = <PINMUX_GPIO77__FUNC_GBE_TXD3>, |
| 710 |
<PINMUX_GPIO78__FUNC_GBE_TXD2>, |
| 711 |
<PINMUX_GPIO79__FUNC_GBE_TXD1>, |
| 712 |
<PINMUX_GPIO80__FUNC_GBE_TXD0>; |
| 713 |
drive-strength = <8>; |
| 714 |
}; |
| 715 |
}; |
| 716 |
|
| 717 |
eth_sleep_pins: eth-sleep-pins { |
| 718 |
pins-cc { |
| 719 |
pinmux = <PINMUX_GPIO85__FUNC_GPIO85>, |
| 720 |
<PINMUX_GPIO86__FUNC_GPIO86>, |
| 721 |
<PINMUX_GPIO87__FUNC_GPIO87>, |
| 722 |
<PINMUX_GPIO88__FUNC_GPIO88>; |
| 723 |
}; |
| 724 |
|
| 725 |
pins-mdio { |
| 726 |
pinmux = <PINMUX_GPIO89__FUNC_GPIO89>, |
| 727 |
<PINMUX_GPIO90__FUNC_GPIO90>; |
| 728 |
bias-disable; |
| 729 |
input-disable; |
| 730 |
}; |
| 731 |
|
| 732 |
pins-rxd { |
| 733 |
pinmux = <PINMUX_GPIO81__FUNC_GPIO81>, |
| 734 |
<PINMUX_GPIO82__FUNC_GPIO82>, |
| 735 |
<PINMUX_GPIO83__FUNC_GPIO83>, |
| 736 |
<PINMUX_GPIO84__FUNC_GPIO84>; |
| 737 |
}; |
| 738 |
|
| 739 |
pins-txd { |
| 740 |
pinmux = <PINMUX_GPIO77__FUNC_GPIO77>, |
| 741 |
<PINMUX_GPIO78__FUNC_GPIO78>, |
| 742 |
<PINMUX_GPIO79__FUNC_GPIO79>, |
| 743 |
<PINMUX_GPIO80__FUNC_GPIO80>; |
| 744 |
}; |
| 745 |
}; |
| 746 |
|
| 747 |
gpio_key_pins: gpio-keys-pins { |
| 748 |
pins { |
| 749 |
pinmux = <PINMUX_GPIO106__FUNC_GPIO106>; |
| 750 |
bias-pull-up; |
| 751 |
input-enable; |
| 752 |
}; |
| 753 |
}; |
| 754 |
|
| 755 |
hdmi_vreg_pins: hdmi-vreg-pins { |
| 756 |
pins-pwr { |
| 757 |
pinmux = <PINMUX_GPIO31__FUNC_HDMITX20_PWR5V>; |
| 758 |
bias-disable; |
| 759 |
}; |
| 760 |
}; |
| 761 |
|
| 762 |
hdmi_pins: hdmi-pins { |
| 763 |
pins-hotplug { |
| 764 |
pinmux = <PINMUX_GPIO32__FUNC_HDMITX20_HTPLG>; |
| 765 |
bias-pull-down; |
| 766 |
}; |
| 767 |
|
| 768 |
pins-ddc { |
| 769 |
pinmux = <PINMUX_GPIO34__FUNC_HDMITX20_SCL>, |
| 770 |
<PINMUX_GPIO35__FUNC_HDMITX20_SDA>; |
| 771 |
drive-strength = <10>; |
| 772 |
}; |
| 773 |
|
| 774 |
pins-cec { |
| 775 |
pinmux = <PINMUX_GPIO33__FUNC_HDMITX20_CEC>; |
| 776 |
bias-disable; |
| 777 |
}; |
| 778 |
}; |
| 779 |
|
| 780 |
i2c2_pins: i2c2-pins { |
| 781 |
pins-bus { |
| 782 |
pinmux = <PINMUX_GPIO12__FUNC_SDA2>, |
| 783 |
<PINMUX_GPIO13__FUNC_SCL2>; |
| 784 |
bias-pull-up = <1000>; |
| 785 |
drive-strength = <6>; |
| 786 |
drive-strength-microamp = <1000>; |
| 787 |
}; |
| 788 |
}; |
| 789 |
|
| 790 |
i2c4_pins: i2c4-pins { |
| 791 |
pins-bus { |
| 792 |
pinmux = <PINMUX_GPIO16__FUNC_SDA4>, |
| 793 |
<PINMUX_GPIO17__FUNC_SCL4>; |
| 794 |
bias-pull-up = <1000>; |
| 795 |
drive-strength-microamp = <1000>; |
| 796 |
}; |
| 797 |
}; |
| 798 |
|
| 799 |
i2c6_pins: i2c6-pins { |
| 800 |
pins { |
| 801 |
pinmux = <PINMUX_GPIO25__FUNC_SDA6>, |
| 802 |
<PINMUX_GPIO26__FUNC_SCL6>; |
| 803 |
bias-disable; |
| 804 |
}; |
| 805 |
}; |
| 806 |
|
| 807 |
mmc0_default_pins: mmc0-default-pins { |
| 808 |
pins-clk { |
| 809 |
pinmux = <PINMUX_GPIO122__FUNC_MSDC0_CLK>; |
| 810 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 811 |
drive-strength = <6>; |
| 812 |
}; |
| 813 |
|
| 814 |
pins-cmd-dat { |
| 815 |
pinmux = <PINMUX_GPIO126__FUNC_MSDC0_DAT0>, |
| 816 |
<PINMUX_GPIO125__FUNC_MSDC0_DAT1>, |
| 817 |
<PINMUX_GPIO124__FUNC_MSDC0_DAT2>, |
| 818 |
<PINMUX_GPIO123__FUNC_MSDC0_DAT3>, |
| 819 |
<PINMUX_GPIO119__FUNC_MSDC0_DAT4>, |
| 820 |
<PINMUX_GPIO118__FUNC_MSDC0_DAT5>, |
| 821 |
<PINMUX_GPIO117__FUNC_MSDC0_DAT6>, |
| 822 |
<PINMUX_GPIO116__FUNC_MSDC0_DAT7>, |
| 823 |
<PINMUX_GPIO121__FUNC_MSDC0_CMD>; |
| 824 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 825 |
drive-strength = <6>; |
| 826 |
input-enable; |
| 827 |
}; |
| 828 |
|
| 829 |
pins-rst { |
| 830 |
pinmux = <PINMUX_GPIO120__FUNC_MSDC0_RSTB>; |
| 831 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 832 |
drive-strength = <6>; |
| 833 |
}; |
| 834 |
}; |
| 835 |
|
| 836 |
mmc0_uhs_pins: mmc0-uhs-pins { |
| 837 |
pins-clk { |
| 838 |
pinmux = <PINMUX_GPIO122__FUNC_MSDC0_CLK>; |
| 839 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 840 |
drive-strength = <8>; |
| 841 |
}; |
| 842 |
|
| 843 |
pins-cmd-dat { |
| 844 |
pinmux = <PINMUX_GPIO126__FUNC_MSDC0_DAT0>, |
| 845 |
<PINMUX_GPIO125__FUNC_MSDC0_DAT1>, |
| 846 |
<PINMUX_GPIO124__FUNC_MSDC0_DAT2>, |
| 847 |
<PINMUX_GPIO123__FUNC_MSDC0_DAT3>, |
| 848 |
<PINMUX_GPIO119__FUNC_MSDC0_DAT4>, |
| 849 |
<PINMUX_GPIO118__FUNC_MSDC0_DAT5>, |
| 850 |
<PINMUX_GPIO117__FUNC_MSDC0_DAT6>, |
| 851 |
<PINMUX_GPIO116__FUNC_MSDC0_DAT7>, |
| 852 |
<PINMUX_GPIO121__FUNC_MSDC0_CMD>; |
| 853 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 854 |
drive-strength = <8>; |
| 855 |
input-enable; |
| 856 |
}; |
| 857 |
|
| 858 |
pins-ds { |
| 859 |
pinmux = <PINMUX_GPIO127__FUNC_MSDC0_DSL>; |
| 860 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 861 |
drive-strength = <8>; |
| 862 |
}; |
| 863 |
|
| 864 |
pins-rst { |
| 865 |
pinmux = <PINMUX_GPIO120__FUNC_MSDC0_RSTB>; |
| 866 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 867 |
drive-strength = <8>; |
| 868 |
}; |
| 869 |
}; |
| 870 |
|
| 871 |
mmc1_default_pins: mmc1-default-pins { |
| 872 |
pins-clk { |
| 873 |
pinmux = <PINMUX_GPIO111__FUNC_MSDC1_CLK>; |
| 874 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 875 |
drive-strength = <8>; |
| 876 |
}; |
| 877 |
|
| 878 |
pins-cmd-dat { |
| 879 |
pinmux = <PINMUX_GPIO110__FUNC_MSDC1_CMD>, |
| 880 |
<PINMUX_GPIO112__FUNC_MSDC1_DAT0>, |
| 881 |
<PINMUX_GPIO113__FUNC_MSDC1_DAT1>, |
| 882 |
<PINMUX_GPIO114__FUNC_MSDC1_DAT2>, |
| 883 |
<PINMUX_GPIO115__FUNC_MSDC1_DAT3>; |
| 884 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 885 |
drive-strength = <8>; |
| 886 |
input-enable; |
| 887 |
}; |
| 888 |
}; |
| 889 |
|
| 890 |
mmc1_pins_detect: mmc1-detect-pins { |
| 891 |
pins-insert { |
| 892 |
pinmux = <PINMUX_GPIO129__FUNC_GPIO129>; |
| 893 |
bias-pull-up; |
| 894 |
}; |
| 895 |
}; |
| 896 |
|
| 897 |
mt6360_pins: mt6360-pins { |
| 898 |
pins-irq { |
| 899 |
pinmux = <PINMUX_GPIO100__FUNC_GPIO100>, |
| 900 |
<PINMUX_GPIO101__FUNC_GPIO101>; |
| 901 |
input-enable; |
| 902 |
bias-pull-up; |
| 903 |
}; |
| 904 |
}; |
| 905 |
|
| 906 |
panel_default_pins: panel-pins { |
| 907 |
pins-rst { |
| 908 |
pinmux = <PINMUX_GPIO108__FUNC_GPIO108>; |
| 909 |
bias-pull-up; |
| 910 |
}; |
| 911 |
}; |
| 912 |
|
| 913 |
pcie0_default_pins: pcie0-default-pins { |
| 914 |
pins-bus { |
| 915 |
pinmux = <PINMUX_GPIO19__FUNC_WAKEN>, |
| 916 |
<PINMUX_GPIO20__FUNC_PERSTN>, |
| 917 |
<PINMUX_GPIO21__FUNC_CLKREQN>; |
| 918 |
bias-pull-up; |
| 919 |
}; |
| 920 |
}; |
| 921 |
|
| 922 |
pcie1_default_pins: pcie1-default-pins { |
| 923 |
pins-bus { |
| 924 |
pinmux = <PINMUX_GPIO0__FUNC_PERSTN_1>, |
| 925 |
<PINMUX_GPIO1__FUNC_CLKREQN_1>, |
| 926 |
<PINMUX_GPIO2__FUNC_WAKEN_1>; |
| 927 |
bias-disable; |
| 928 |
}; |
| 929 |
}; |
| 930 |
|
| 931 |
pwm0_default_pins: pwm0-pins { |
| 932 |
pins-disp-pwm { |
| 933 |
pinmux = <PINMUX_GPIO97__FUNC_DISP_PWM0>; |
| 934 |
}; |
| 935 |
}; |
| 936 |
|
| 937 |
spi1_pins: spi1-default-pins { |
| 938 |
pins-bus { |
| 939 |
pinmux = <PINMUX_GPIO136__FUNC_SPIM1_CSB>, |
| 940 |
<PINMUX_GPIO137__FUNC_SPIM1_CLK>, |
| 941 |
<PINMUX_GPIO138__FUNC_SPIM1_MO>, |
| 942 |
<PINMUX_GPIO139__FUNC_SPIM1_MI>; |
| 943 |
bias-disable; |
| 944 |
}; |
| 945 |
}; |
| 946 |
|
| 947 |
spi2_pins: spi2-default-pins { |
| 948 |
pins-bus { |
| 949 |
pinmux = <PINMUX_GPIO140__FUNC_SPIM2_CSB>, |
| 950 |
<PINMUX_GPIO141__FUNC_SPIM2_CLK>, |
| 951 |
<PINMUX_GPIO142__FUNC_SPIM2_MO>, |
| 952 |
<PINMUX_GPIO143__FUNC_SPIM2_MI>; |
| 953 |
bias-disable; |
| 954 |
}; |
| 955 |
}; |
| 956 |
|
| 957 |
touch_pins: touch-pins { |
| 958 |
pins-touch-int { |
| 959 |
pinmux = <PINMUX_GPIO132__FUNC_GPIO132>; |
| 960 |
input-enable; |
| 961 |
bias-disable; |
| 962 |
}; |
| 963 |
|
| 964 |
pins-touch-rst { |
| 965 |
pinmux = <PINMUX_GPIO133__FUNC_GPIO133>; |
| 966 |
output-high; |
| 967 |
}; |
| 968 |
}; |
| 969 |
|
| 970 |
uart0_pins: uart0-pins { |
| 971 |
pins-bus { |
| 972 |
pinmux = <PINMUX_GPIO98__FUNC_UTXD0>, |
| 973 |
<PINMUX_GPIO99__FUNC_URXD0>; |
| 974 |
}; |
| 975 |
}; |
| 976 |
|
| 977 |
uart1_pins: uart1-pins { |
| 978 |
pins-bus { |
| 979 |
pinmux = <PINMUX_GPIO102__FUNC_UTXD1>, |
| 980 |
<PINMUX_GPIO103__FUNC_URXD1>; |
| 981 |
}; |
| 982 |
}; |
| 983 |
|
| 984 |
usb3_port0_pins: usb3p0-default-pins { |
| 985 |
pins-vbus { |
| 986 |
pinmux = <PINMUX_GPIO63__FUNC_VBUSVALID>; |
| 987 |
input-enable; |
| 988 |
}; |
| 989 |
}; |
| 990 |
|
| 991 |
usb2_port0_pins: usb2p0-default-pins { |
| 992 |
pins-iddig { |
| 993 |
pinmux = <PINMUX_GPIO130__FUNC_IDDIG_1P>; |
| 994 |
input-enable; |
| 995 |
bias-pull-up; |
| 996 |
}; |
| 997 |
|
| 998 |
pins-vbus { |
| 999 |
pinmux = <PINMUX_GPIO131__FUNC_USB_DRVVBUS_1P>; |
| 1000 |
output-low; |
| 1001 |
}; |
| 1002 |
}; |
| 1003 |
|
| 1004 |
wifi_vreg_pins: wifi-vreg-pins { |
| 1005 |
pins-wifi-pmu-en { |
| 1006 |
pinmux = <PINMUX_GPIO65__FUNC_GPIO65>; |
| 1007 |
output-high; |
| 1008 |
}; |
| 1009 |
|
| 1010 |
pins-wifi-vreg-en { |
| 1011 |
pinmux = <PINMUX_GPIO67__FUNC_GPIO67>; |
| 1012 |
}; |
| 1013 |
}; |
| 1014 |
}; |
| 1015 |
|
| 1016 |
&pcie0 { |
| 1017 |
pinctrl-names = "default"; |
| 1018 |
pinctrl-0 = <&pcie0_default_pins>; |
| 1019 |
status = "okay"; |
| 1020 |
}; |
| 1021 |
|
| 1022 |
&pcie1 { |
| 1023 |
pinctrl-names = "default"; |
| 1024 |
pinctrl-0 = <&pcie1_default_pins>; |
| 1025 |
status = "okay"; |
| 1026 |
}; |
| 1027 |
|
| 1028 |
&pciephy { |
| 1029 |
status = "okay"; |
| 1030 |
}; |
| 1031 |
|
| 1032 |
&pmic { |
| 1033 |
interrupts-extended = <&pio 222 IRQ_TYPE_LEVEL_HIGH>; |
| 1034 |
|
| 1035 |
mt6359keys: keys { |
| 1036 |
compatible = "mediatek,mt6359-keys"; |
| 1037 |
mediatek,long-press-mode = <1>; |
| 1038 |
power-off-time-sec = <0>; |
| 1039 |
|
| 1040 |
power-key { |
| 1041 |
linux,keycodes = <KEY_POWER>; |
| 1042 |
wakeup-source; |
| 1043 |
}; |
| 1044 |
|
| 1045 |
home { |
| 1046 |
linux,keycodes = <KEY_HOME>; |
| 1047 |
}; |
| 1048 |
}; |
| 1049 |
}; |
| 1050 |
|
| 1051 |
&scp { |
| 1052 |
memory-region = <&scp_mem>; |
| 1053 |
firmware-name = "mediatek/mt8195/scp.img"; |
| 1054 |
status = "okay"; |
| 1055 |
}; |
| 1056 |
|
| 1057 |
&sound { |
| 1058 |
compatible = "mediatek,mt8195_mt6359"; |
| 1059 |
model = "mt8395-evk"; |
| 1060 |
pinctrl-names = "default"; |
| 1061 |
pinctrl-0 = <&audio_default_pins>; |
| 1062 |
audio-routing = |
| 1063 |
"Headphone", "Headphone L", |
| 1064 |
"Headphone", "Headphone R"; |
| 1065 |
mediatek,adsp = <&adsp>; |
| 1066 |
status = "okay"; |
| 1067 |
|
| 1068 |
headphone-dai-link { |
| 1069 |
link-name = "DL_SRC_BE"; |
| 1070 |
|
| 1071 |
codec { |
| 1072 |
sound-dai = <&pmic 0>; |
| 1073 |
}; |
| 1074 |
}; |
| 1075 |
|
| 1076 |
hdmi-dai-link { |
| 1077 |
link-name = "ETDM3_OUT_BE"; |
| 1078 |
|
| 1079 |
codec { |
| 1080 |
sound-dai = <&hdmi 0>; |
| 1081 |
}; |
| 1082 |
}; |
| 1083 |
}; |
| 1084 |
|
| 1085 |
&spi1 { |
| 1086 |
/* Exposed at 40 pin connector */ |
| 1087 |
pinctrl-0 = <&spi1_pins>; |
| 1088 |
pinctrl-names = "default"; |
| 1089 |
mediatek,pad-select = <0>; |
| 1090 |
#address-cells = <1>; |
| 1091 |
#size-cells = <0>; |
| 1092 |
status = "okay"; |
| 1093 |
}; |
| 1094 |
|
| 1095 |
&spi2 { |
| 1096 |
/* Exposed at 40 pin connector */ |
| 1097 |
pinctrl-0 = <&spi2_pins>; |
| 1098 |
pinctrl-names = "default"; |
| 1099 |
mediatek,pad-select = <0>; |
| 1100 |
#address-cells = <1>; |
| 1101 |
#size-cells = <0>; |
| 1102 |
status = "okay"; |
| 1103 |
}; |
| 1104 |
|
| 1105 |
&spmi { |
| 1106 |
#address-cells = <2>; |
| 1107 |
#size-cells = <0>; |
| 1108 |
|
| 1109 |
mt6315_6: pmic@6 { |
| 1110 |
compatible = "mediatek,mt6315-regulator"; |
| 1111 |
reg = <0x6 SPMI_USID>; |
| 1112 |
|
| 1113 |
regulators { |
| 1114 |
mt6315_6_vbuck1: vbuck1 { |
| 1115 |
regulator-name = "Vbcpu"; |
| 1116 |
regulator-min-microvolt = <300000>; |
| 1117 |
regulator-max-microvolt = <1193750>; |
| 1118 |
regulator-enable-ramp-delay = <256>; |
| 1119 |
regulator-allowed-modes = <0 1 2>; |
| 1120 |
regulator-always-on; |
| 1121 |
}; |
| 1122 |
}; |
| 1123 |
}; |
| 1124 |
|
| 1125 |
mt6315_7: pmic@7 { |
| 1126 |
compatible = "mediatek,mt6315-regulator"; |
| 1127 |
reg = <0x7 SPMI_USID>; |
| 1128 |
|
| 1129 |
regulators { |
| 1130 |
mt6315_7_vbuck1: vbuck1 { |
| 1131 |
regulator-name = "Vgpu"; |
| 1132 |
regulator-min-microvolt = <300000>; |
| 1133 |
regulator-max-microvolt = <1193750>; |
| 1134 |
regulator-enable-ramp-delay = <256>; |
| 1135 |
regulator-allowed-modes = <0 1 2>; |
| 1136 |
}; |
| 1137 |
}; |
| 1138 |
}; |
| 1139 |
}; |
| 1140 |
|
| 1141 |
&u3phy0 { |
| 1142 |
status = "okay"; |
| 1143 |
}; |
| 1144 |
|
| 1145 |
&u3phy1 { |
| 1146 |
status = "okay"; |
| 1147 |
}; |
| 1148 |
|
| 1149 |
&u3phy2 { |
| 1150 |
status = "okay"; |
| 1151 |
}; |
| 1152 |
|
| 1153 |
&uart0 { |
| 1154 |
/* Exposed at 40 pin connector */ |
| 1155 |
pinctrl-0 = <&uart0_pins>; |
| 1156 |
pinctrl-names = "default"; |
| 1157 |
status = "okay"; |
| 1158 |
}; |
| 1159 |
|
| 1160 |
&uart1 { |
| 1161 |
/* Exposed at 40 pin connector */ |
| 1162 |
pinctrl-0 = <&uart1_pins>; |
| 1163 |
pinctrl-names = "default"; |
| 1164 |
status = "okay"; |
| 1165 |
}; |
| 1166 |
|
| 1167 |
&ufshci { |
| 1168 |
vcc-supply = <&mt6359_vemc_1_ldo_reg>; |
| 1169 |
vccq2-supply = <&mt6359_vufs_ldo_reg>; |
| 1170 |
status = "okay"; |
| 1171 |
}; |
| 1172 |
|
| 1173 |
&ufsphy { |
| 1174 |
status = "okay"; |
| 1175 |
}; |
| 1176 |
|
| 1177 |
&ssusb0 { |
| 1178 |
pinctrl-names = "default"; |
| 1179 |
pinctrl-0 = <&usb3_port0_pins>; |
| 1180 |
role-switch-default-mode = "host"; |
| 1181 |
usb-role-switch; |
| 1182 |
vusb33-supply = <&mt6359_vusb_ldo_reg>; |
| 1183 |
status = "okay"; |
| 1184 |
|
| 1185 |
port { |
| 1186 |
mtu3_hs0_role_sw: endpoint { |
| 1187 |
remote-endpoint = <&typec_con_hs>; |
| 1188 |
}; |
| 1189 |
}; |
| 1190 |
}; |
| 1191 |
|
| 1192 |
&ssusb2 { |
| 1193 |
pinctrl-names = "default"; |
| 1194 |
pinctrl-0 = <&usb2_port0_pins>; |
| 1195 |
vusb33-supply = <&mt6359_vusb_ldo_reg>; |
| 1196 |
status = "okay"; |
| 1197 |
}; |
| 1198 |
|
| 1199 |
&vdosys1 { |
| 1200 |
port { |
| 1201 |
#address-cells = <1>; |
| 1202 |
#size-cells = <0>; |
| 1203 |
|
| 1204 |
vdosys1_ep_ext: endpoint@1 { |
| 1205 |
reg = <1>; |
| 1206 |
remote-endpoint = <ðdr0_in>; |
| 1207 |
}; |
| 1208 |
}; |
| 1209 |
}; |
| 1210 |
|
| 1211 |
&xhci0 { |
| 1212 |
vbus-supply = <&otg_vbus_regulator>; |
| 1213 |
status = "okay"; |
| 1214 |
}; |
| 1215 |
|
| 1216 |
&xhci1 { |
| 1217 |
phys = <&u2port1 PHY_TYPE_USB2>; |
| 1218 |
/* MT7921's USB Bluetooth has issues with USB2 LPM */ |
| 1219 |
usb2-lpm-disable; |
| 1220 |
vusb33-supply = <&mt6359_vusb_ldo_reg>; |
| 1221 |
vbus-supply = <&vsys>; |
| 1222 |
mediatek,u3p-dis-msk = <1>; |
| 1223 |
status = "okay"; |
| 1224 |
}; |
| 1225 |
|
| 1226 |
&xhci2 { |
| 1227 |
vbus-supply = <&vsys>; |
| 1228 |
status = "okay"; |
| 1229 |
}; |