| 1 |
// SPDX-License-Identifier: GPL-2.0 |
| 2 |
/* |
| 3 |
* Copyright (c) 2021-2022 BayLibre, SAS. |
| 4 |
* Authors: |
| 5 |
* Fabien Parent <[email protected]> |
| 6 |
* Bernhard Rosenkränzer <[email protected]> |
| 7 |
* Alexandre Mergnat <[email protected]> |
| 8 |
*/ |
| 9 |
|
| 10 |
/dts-v1/; |
| 11 |
|
| 12 |
#include <dt-bindings/gpio/gpio.h> |
| 13 |
#include <dt-bindings/input/input.h> |
| 14 |
#include <dt-bindings/pinctrl/mt8365-pinfunc.h> |
| 15 |
#include "mt8365.dtsi" |
| 16 |
#include "mt6357.dtsi" |
| 17 |
|
| 18 |
/ { |
| 19 |
model = "MediaTek MT8365 Open Platform EVK"; |
| 20 |
compatible = "mediatek,mt8365-evk", "mediatek,mt8365"; |
| 21 |
|
| 22 |
aliases { |
| 23 |
serial0 = &uart0; |
| 24 |
ethernet = ðernet; |
| 25 |
}; |
| 26 |
|
| 27 |
chosen { |
| 28 |
stdout-path = "serial0:921600n8"; |
| 29 |
}; |
| 30 |
|
| 31 |
connector { |
| 32 |
compatible = "hdmi-connector"; |
| 33 |
label = "hdmi"; |
| 34 |
type = "d"; |
| 35 |
|
| 36 |
port { |
| 37 |
#address-cells = <1>; |
| 38 |
#size-cells = <0>; |
| 39 |
hdmi_connector_in: endpoint@0 { |
| 40 |
reg = <0>; |
| 41 |
remote-endpoint = <&hdmi_connector_out>; |
| 42 |
}; |
| 43 |
}; |
| 44 |
}; |
| 45 |
|
| 46 |
firmware { |
| 47 |
optee { |
| 48 |
compatible = "linaro,optee-tz"; |
| 49 |
method = "smc"; |
| 50 |
}; |
| 51 |
}; |
| 52 |
|
| 53 |
gpio-keys { |
| 54 |
compatible = "gpio-keys"; |
| 55 |
pinctrl-names = "default"; |
| 56 |
pinctrl-0 = <&gpio_keys>; |
| 57 |
|
| 58 |
key-volume-up { |
| 59 |
gpios = <&pio 24 GPIO_ACTIVE_LOW>; |
| 60 |
label = "volume_up"; |
| 61 |
linux,code = <KEY_VOLUMEUP>; |
| 62 |
wakeup-source; |
| 63 |
debounce-interval = <15>; |
| 64 |
}; |
| 65 |
}; |
| 66 |
|
| 67 |
memory@40000000 { |
| 68 |
device_type = "memory"; |
| 69 |
reg = <0 0x40000000 0 0xc0000000>; |
| 70 |
}; |
| 71 |
|
| 72 |
usb_otg_vbus: regulator-0 { |
| 73 |
compatible = "regulator-fixed"; |
| 74 |
regulator-name = "otg_vbus"; |
| 75 |
regulator-min-microvolt = <5000000>; |
| 76 |
regulator-max-microvolt = <5000000>; |
| 77 |
gpio = <&pio 16 GPIO_ACTIVE_HIGH>; |
| 78 |
enable-active-high; |
| 79 |
}; |
| 80 |
|
| 81 |
reg_vsys: regulator-vsys { |
| 82 |
compatible = "regulator-fixed"; |
| 83 |
regulator-name = "vsys"; |
| 84 |
regulator-always-on; |
| 85 |
regulator-boot-on; |
| 86 |
}; |
| 87 |
|
| 88 |
touch0_fixed_3v3: regulator-vio33tp { |
| 89 |
compatible = "regulator-fixed"; |
| 90 |
regulator-name = "vio33_tp"; |
| 91 |
regulator-min-microvolt = <3300000>; |
| 92 |
regulator-max-microvolt = <3300000>; |
| 93 |
vin-supply = <®_vsys>; |
| 94 |
}; |
| 95 |
|
| 96 |
reserved-memory { |
| 97 |
#address-cells = <2>; |
| 98 |
#size-cells = <2>; |
| 99 |
ranges; |
| 100 |
|
| 101 |
/* 192 KiB reserved for ARM Trusted Firmware (BL31) */ |
| 102 |
bl31_secmon_reserved: secmon@43000000 { |
| 103 |
no-map; |
| 104 |
reg = <0 0x43000000 0 0x30000>; |
| 105 |
}; |
| 106 |
|
| 107 |
/* 12 MiB reserved for OP-TEE (BL32) |
| 108 |
* +-----------------------+ 0x43e0_0000 |
| 109 |
* | SHMEM 2MiB | |
| 110 |
* +-----------------------+ 0x43c0_0000 |
| 111 |
* | | TA_RAM 8MiB | |
| 112 |
* + TZDRAM +--------------+ 0x4340_0000 |
| 113 |
* | | TEE_RAM 2MiB | |
| 114 |
* +-----------------------+ 0x4320_0000 |
| 115 |
*/ |
| 116 |
optee_reserved: optee@43200000 { |
| 117 |
no-map; |
| 118 |
reg = <0 0x43200000 0 0x00c00000>; |
| 119 |
}; |
| 120 |
}; |
| 121 |
|
| 122 |
sound: sound { |
| 123 |
compatible = "mediatek,mt8365-mt6357"; |
| 124 |
pinctrl-names = "default", |
| 125 |
"dmic", |
| 126 |
"miso_off", |
| 127 |
"miso_on", |
| 128 |
"mosi_off", |
| 129 |
"mosi_on"; |
| 130 |
pinctrl-0 = <&aud_default_pins>; |
| 131 |
pinctrl-1 = <&aud_dmic_pins>; |
| 132 |
pinctrl-2 = <&aud_miso_off_pins>; |
| 133 |
pinctrl-3 = <&aud_miso_on_pins>; |
| 134 |
pinctrl-4 = <&aud_mosi_off_pins>; |
| 135 |
pinctrl-5 = <&aud_mosi_on_pins>; |
| 136 |
mediatek,platform = <&afe>; |
| 137 |
}; |
| 138 |
|
| 139 |
vsys_lcm_reg: regulator-vsys-lcm { |
| 140 |
compatible = "regulator-fixed"; |
| 141 |
enable-active-high; |
| 142 |
gpio = <&pio 129 GPIO_ACTIVE_HIGH>; |
| 143 |
regulator-max-microvolt = <5000000>; |
| 144 |
regulator-min-microvolt = <5000000>; |
| 145 |
regulator-name = "vsys_lcm"; |
| 146 |
}; |
| 147 |
|
| 148 |
}; |
| 149 |
|
| 150 |
&afe { |
| 151 |
mediatek,dmic-mode = <1>; |
| 152 |
status = "okay"; |
| 153 |
}; |
| 154 |
|
| 155 |
&cpu0 { |
| 156 |
proc-supply = <&mt6357_vproc_reg>; |
| 157 |
sram-supply = <&mt6357_vsram_proc_reg>; |
| 158 |
}; |
| 159 |
|
| 160 |
&cpu1 { |
| 161 |
proc-supply = <&mt6357_vproc_reg>; |
| 162 |
sram-supply = <&mt6357_vsram_proc_reg>; |
| 163 |
}; |
| 164 |
|
| 165 |
&cpu2 { |
| 166 |
proc-supply = <&mt6357_vproc_reg>; |
| 167 |
sram-supply = <&mt6357_vsram_proc_reg>; |
| 168 |
}; |
| 169 |
|
| 170 |
&cpu3 { |
| 171 |
proc-supply = <&mt6357_vproc_reg>; |
| 172 |
sram-supply = <&mt6357_vsram_proc_reg>; |
| 173 |
}; |
| 174 |
|
| 175 |
&dither0_out { |
| 176 |
remote-endpoint = <&dsi0_in>; |
| 177 |
}; |
| 178 |
|
| 179 |
&dpi0 { |
| 180 |
pinctrl-0 = <&dpi_default_pins>; |
| 181 |
pinctrl-1 = <&dpi_idle_pins>; |
| 182 |
pinctrl-names = "default", "sleep"; |
| 183 |
/* |
| 184 |
* Ethernet and HDMI (DPI0) are sharing pins. |
| 185 |
* Only one can be enabled at a time and require the physical switch |
| 186 |
* SW2101 to be set on LAN position |
| 187 |
*/ |
| 188 |
status = "disabled"; |
| 189 |
|
| 190 |
ports { |
| 191 |
#address-cells = <1>; |
| 192 |
#size-cells = <0>; |
| 193 |
|
| 194 |
port@0 { |
| 195 |
#address-cells = <1>; |
| 196 |
#size-cells = <0>; |
| 197 |
reg = <0>; |
| 198 |
dpi0_in: endpoint@1 { |
| 199 |
reg = <1>; |
| 200 |
remote-endpoint = <&rdma1_out>; |
| 201 |
}; |
| 202 |
}; |
| 203 |
|
| 204 |
port@1 { |
| 205 |
#address-cells = <1>; |
| 206 |
#size-cells = <0>; |
| 207 |
reg = <1>; |
| 208 |
dpi0_out: endpoint@1 { |
| 209 |
reg = <1>; |
| 210 |
remote-endpoint = <&it66121_in>; |
| 211 |
}; |
| 212 |
}; |
| 213 |
}; |
| 214 |
}; |
| 215 |
|
| 216 |
&dsi0 { |
| 217 |
#address-cells = <1>; |
| 218 |
#size-cells = <0>; |
| 219 |
status = "okay"; |
| 220 |
|
| 221 |
panel@0 { |
| 222 |
compatible = "startek,kd070fhfid015"; |
| 223 |
reg = <0>; |
| 224 |
enable-gpios = <&pio 67 GPIO_ACTIVE_HIGH>; |
| 225 |
reset-gpios = <&pio 20 GPIO_ACTIVE_HIGH>; |
| 226 |
iovcc-supply = <&mt6357_vsim1_reg>; |
| 227 |
power-supply = <&vsys_lcm_reg>; |
| 228 |
|
| 229 |
port { |
| 230 |
#address-cells = <1>; |
| 231 |
#size-cells = <0>; |
| 232 |
panel_in: endpoint@0 { |
| 233 |
reg = <0>; |
| 234 |
remote-endpoint = <&dsi0_out>; |
| 235 |
}; |
| 236 |
}; |
| 237 |
}; |
| 238 |
ports { |
| 239 |
#address-cells = <1>; |
| 240 |
#size-cells = <0>; |
| 241 |
|
| 242 |
port@0 { |
| 243 |
#address-cells = <1>; |
| 244 |
#size-cells = <0>; |
| 245 |
reg = <0>; |
| 246 |
dsi0_in: endpoint@0 { |
| 247 |
reg = <0>; |
| 248 |
remote-endpoint = <&dither0_out>; |
| 249 |
}; |
| 250 |
}; |
| 251 |
|
| 252 |
port@1 { |
| 253 |
#address-cells = <1>; |
| 254 |
#size-cells = <0>; |
| 255 |
reg = <1>; |
| 256 |
dsi0_out: endpoint@0 { |
| 257 |
reg = <0>; |
| 258 |
remote-endpoint = <&panel_in>; |
| 259 |
}; |
| 260 |
}; |
| 261 |
}; |
| 262 |
}; |
| 263 |
|
| 264 |
ðernet { |
| 265 |
pinctrl-0 = <ðernet_pins>; |
| 266 |
pinctrl-names = "default"; |
| 267 |
phy-handle = <ð_phy>; |
| 268 |
phy-mode = "rmii"; |
| 269 |
/* |
| 270 |
* Ethernet and HDMI (DPI0) are sharing pins. |
| 271 |
* Only one can be enabled at a time and require the physical switch |
| 272 |
* SW2101 to be set on LAN position |
| 273 |
* mt6357_vibr_reg and mt6357_vsim2_reg are needed to supply ethernet |
| 274 |
*/ |
| 275 |
status = "disabled"; |
| 276 |
|
| 277 |
mdio { |
| 278 |
#address-cells = <1>; |
| 279 |
#size-cells = <0>; |
| 280 |
|
| 281 |
eth_phy: ethernet-phy@0 { |
| 282 |
reg = <0>; |
| 283 |
}; |
| 284 |
}; |
| 285 |
}; |
| 286 |
|
| 287 |
&gpu { |
| 288 |
mali-supply = <&mt6357_vcore_reg>; |
| 289 |
status = "okay"; |
| 290 |
}; |
| 291 |
|
| 292 |
&i2c0 { |
| 293 |
clock-frequency = <100000>; |
| 294 |
pinctrl-0 = <&i2c0_pins>; |
| 295 |
pinctrl-names = "default"; |
| 296 |
status = "okay"; |
| 297 |
}; |
| 298 |
|
| 299 |
&i2c1 { |
| 300 |
#address-cells = <1>; |
| 301 |
#size-cells = <0>; |
| 302 |
clock-div = <2>; |
| 303 |
clock-frequency = <100000>; |
| 304 |
pinctrl-0 = <&i2c1_pins>; |
| 305 |
pinctrl-names = "default"; |
| 306 |
status = "okay"; |
| 307 |
|
| 308 |
it66121_hdmi: hdmi@4c { |
| 309 |
compatible = "ite,it66121"; |
| 310 |
reg = <0x4c>; |
| 311 |
#sound-dai-cells = <0>; |
| 312 |
interrupt-parent = <&pio>; |
| 313 |
interrupts = <68 IRQ_TYPE_LEVEL_LOW>; |
| 314 |
pinctrl-0 = <&ite_pins>; |
| 315 |
pinctrl-names = "default"; |
| 316 |
reset-gpios = <&pio 69 GPIO_ACTIVE_LOW>; |
| 317 |
vcn18-supply = <&mt6357_vsim2_reg>; |
| 318 |
vcn33-supply = <&mt6357_vibr_reg>; |
| 319 |
vrf12-supply = <&mt6357_vrf12_reg>; |
| 320 |
|
| 321 |
ports { |
| 322 |
#address-cells = <1>; |
| 323 |
#size-cells = <0>; |
| 324 |
|
| 325 |
port@0 { |
| 326 |
#address-cells = <1>; |
| 327 |
#size-cells = <0>; |
| 328 |
reg = <0>; |
| 329 |
it66121_in: endpoint@0 { |
| 330 |
reg = <0>; |
| 331 |
bus-width = <12>; |
| 332 |
remote-endpoint = <&dpi0_out>; |
| 333 |
}; |
| 334 |
}; |
| 335 |
|
| 336 |
port@1 { |
| 337 |
#address-cells = <1>; |
| 338 |
#size-cells = <0>; |
| 339 |
reg = <1>; |
| 340 |
hdmi_connector_out: endpoint@0 { |
| 341 |
reg = <0>; |
| 342 |
remote-endpoint = <&hdmi_connector_in>; |
| 343 |
}; |
| 344 |
}; |
| 345 |
}; |
| 346 |
}; |
| 347 |
|
| 348 |
touchscreen@5d { |
| 349 |
compatible = "goodix,gt9271"; |
| 350 |
reg = <0x5d>; |
| 351 |
interrupts-extended = <&pio 78 IRQ_TYPE_EDGE_FALLING>; |
| 352 |
pinctrl-names = "default"; |
| 353 |
pinctrl-0 = <&touch_pins>; |
| 354 |
irq-gpios = <&pio 78 GPIO_ACTIVE_HIGH>; |
| 355 |
reset-gpios = <&pio 79 GPIO_ACTIVE_LOW>; |
| 356 |
AVDD28-supply = <&touch0_fixed_3v3>; |
| 357 |
VDDIO-supply = <&mt6357_vrf12_reg>; |
| 358 |
}; |
| 359 |
}; |
| 360 |
|
| 361 |
&mfg { |
| 362 |
domain-supply = <&mt6357_vsram_others_reg>; |
| 363 |
}; |
| 364 |
|
| 365 |
&mmc0 { |
| 366 |
assigned-clock-parents = <&topckgen CLK_TOP_MSDCPLL>; |
| 367 |
assigned-clocks = <&topckgen CLK_TOP_MSDC50_0_SEL>; |
| 368 |
bus-width = <8>; |
| 369 |
cap-mmc-highspeed; |
| 370 |
cap-mmc-hw-reset; |
| 371 |
hs400-ds-delay = <0x12012>; |
| 372 |
max-frequency = <200000000>; |
| 373 |
mmc-hs200-1_8v; |
| 374 |
mmc-hs400-1_8v; |
| 375 |
no-sd; |
| 376 |
no-sdio; |
| 377 |
non-removable; |
| 378 |
pinctrl-0 = <&mmc0_default_pins>; |
| 379 |
pinctrl-1 = <&mmc0_uhs_pins>; |
| 380 |
pinctrl-names = "default", "state_uhs"; |
| 381 |
vmmc-supply = <&mt6357_vemc_reg>; |
| 382 |
vqmmc-supply = <&mt6357_vio18_reg>; |
| 383 |
status = "okay"; |
| 384 |
}; |
| 385 |
|
| 386 |
&mmc1 { |
| 387 |
bus-width = <4>; |
| 388 |
cap-sd-highspeed; |
| 389 |
cd-gpios = <&pio 76 GPIO_ACTIVE_LOW>; |
| 390 |
max-frequency = <200000000>; |
| 391 |
pinctrl-0 = <&mmc1_default_pins>; |
| 392 |
pinctrl-1 = <&mmc1_uhs_pins>; |
| 393 |
pinctrl-names = "default", "state_uhs"; |
| 394 |
sd-uhs-sdr104; |
| 395 |
sd-uhs-sdr50; |
| 396 |
vmmc-supply = <&mt6357_vmch_reg>; |
| 397 |
vqmmc-supply = <&mt6357_vmc_reg>; |
| 398 |
status = "okay"; |
| 399 |
}; |
| 400 |
|
| 401 |
&mt6357_pmic { |
| 402 |
interrupts-extended = <&pio 145 IRQ_TYPE_LEVEL_HIGH>; |
| 403 |
interrupt-controller; |
| 404 |
#interrupt-cells = <2>; |
| 405 |
mediatek,micbias0-microvolt = <1900000>; |
| 406 |
mediatek,micbias1-microvolt = <1700000>; |
| 407 |
}; |
| 408 |
|
| 409 |
&mt6357_vsim1_reg { |
| 410 |
regulator-min-microvolt = <1800000>; |
| 411 |
regulator-max-microvolt = <1800000>; |
| 412 |
}; |
| 413 |
|
| 414 |
&pio { |
| 415 |
aud_default_pins: audiodefault-pins { |
| 416 |
clk-dat-pins { |
| 417 |
pinmux = <MT8365_PIN_72_CMDAT4__FUNC_I2S3_BCK>, |
| 418 |
<MT8365_PIN_73_CMDAT5__FUNC_I2S3_LRCK>, |
| 419 |
<MT8365_PIN_74_CMDAT6__FUNC_I2S3_MCK>, |
| 420 |
<MT8365_PIN_75_CMDAT7__FUNC_I2S3_DO>; |
| 421 |
}; |
| 422 |
}; |
| 423 |
|
| 424 |
aud_dmic_pins: audiodmic-pins { |
| 425 |
clk-dat-pins { |
| 426 |
pinmux = <MT8365_PIN_117_DMIC0_CLK__FUNC_DMIC0_CLK>, |
| 427 |
<MT8365_PIN_118_DMIC0_DAT0__FUNC_DMIC0_DAT0>, |
| 428 |
<MT8365_PIN_119_DMIC0_DAT1__FUNC_DMIC0_DAT1>; |
| 429 |
}; |
| 430 |
}; |
| 431 |
|
| 432 |
aud_miso_off_pins: misooff-pins { |
| 433 |
clk-dat-pins { |
| 434 |
pinmux = <MT8365_PIN_53_AUD_CLK_MISO__FUNC_GPIO53>, |
| 435 |
<MT8365_PIN_54_AUD_SYNC_MISO__FUNC_GPIO54>, |
| 436 |
<MT8365_PIN_55_AUD_DAT_MISO0__FUNC_GPIO55>, |
| 437 |
<MT8365_PIN_56_AUD_DAT_MISO1__FUNC_GPIO56>; |
| 438 |
input-enable; |
| 439 |
bias-pull-down; |
| 440 |
drive-strength = <2>; |
| 441 |
}; |
| 442 |
}; |
| 443 |
|
| 444 |
aud_miso_on_pins: misoon-pins { |
| 445 |
clk-dat-pins { |
| 446 |
pinmux = <MT8365_PIN_53_AUD_CLK_MISO__FUNC_AUD_CLK_MISO>, |
| 447 |
<MT8365_PIN_54_AUD_SYNC_MISO__FUNC_AUD_SYNC_MISO>, |
| 448 |
<MT8365_PIN_55_AUD_DAT_MISO0__FUNC_AUD_DAT_MISO0>, |
| 449 |
<MT8365_PIN_56_AUD_DAT_MISO1__FUNC_AUD_DAT_MISO1>; |
| 450 |
drive-strength = <6>; |
| 451 |
}; |
| 452 |
}; |
| 453 |
|
| 454 |
aud_mosi_off_pins: mosioff-pins { |
| 455 |
clk-dat-pins { |
| 456 |
pinmux = <MT8365_PIN_49_AUD_CLK_MOSI__FUNC_GPIO49>, |
| 457 |
<MT8365_PIN_50_AUD_SYNC_MOSI__FUNC_GPIO50>, |
| 458 |
<MT8365_PIN_51_AUD_DAT_MOSI0__FUNC_GPIO51>, |
| 459 |
<MT8365_PIN_52_AUD_DAT_MOSI1__FUNC_GPIO52>; |
| 460 |
input-enable; |
| 461 |
bias-pull-down; |
| 462 |
drive-strength = <2>; |
| 463 |
}; |
| 464 |
}; |
| 465 |
|
| 466 |
aud_mosi_on_pins: mosion-pins { |
| 467 |
clk-dat-pins { |
| 468 |
pinmux = <MT8365_PIN_49_AUD_CLK_MOSI__FUNC_AUD_CLK_MOSI>, |
| 469 |
<MT8365_PIN_50_AUD_SYNC_MOSI__FUNC_AUD_SYNC_MOSI>, |
| 470 |
<MT8365_PIN_51_AUD_DAT_MOSI0__FUNC_AUD_DAT_MOSI0>, |
| 471 |
<MT8365_PIN_52_AUD_DAT_MOSI1__FUNC_AUD_DAT_MOSI1>; |
| 472 |
drive-strength = <6>; |
| 473 |
}; |
| 474 |
}; |
| 475 |
|
| 476 |
dpi_default_pins: dpi-default-pins { |
| 477 |
pins { |
| 478 |
pinmux = <MT8365_PIN_0_GPIO0__FUNC_DPI_D0>, |
| 479 |
<MT8365_PIN_1_GPIO1__FUNC_DPI_D1>, |
| 480 |
<MT8365_PIN_2_GPIO2__FUNC_DPI_D2>, |
| 481 |
<MT8365_PIN_3_GPIO3__FUNC_DPI_D3>, |
| 482 |
<MT8365_PIN_4_GPIO4__FUNC_DPI_D4>, |
| 483 |
<MT8365_PIN_5_GPIO5__FUNC_DPI_D5>, |
| 484 |
<MT8365_PIN_6_GPIO6__FUNC_DPI_D6>, |
| 485 |
<MT8365_PIN_7_GPIO7__FUNC_DPI_D7>, |
| 486 |
<MT8365_PIN_8_GPIO8__FUNC_DPI_D8>, |
| 487 |
<MT8365_PIN_9_GPIO9__FUNC_DPI_D9>, |
| 488 |
<MT8365_PIN_10_GPIO10__FUNC_DPI_D10>, |
| 489 |
<MT8365_PIN_11_GPIO11__FUNC_DPI_D11>, |
| 490 |
<MT8365_PIN_12_GPIO12__FUNC_DPI_DE>, |
| 491 |
<MT8365_PIN_13_GPIO13__FUNC_DPI_VSYNC>, |
| 492 |
<MT8365_PIN_14_GPIO14__FUNC_DPI_CK>, |
| 493 |
<MT8365_PIN_15_GPIO15__FUNC_DPI_HSYNC>; |
| 494 |
drive-strength = <4>; |
| 495 |
}; |
| 496 |
}; |
| 497 |
|
| 498 |
dpi_idle_pins: dpi-idle-pins { |
| 499 |
pins { |
| 500 |
pinmux = <MT8365_PIN_0_GPIO0__FUNC_GPIO0>, |
| 501 |
<MT8365_PIN_1_GPIO1__FUNC_GPIO1>, |
| 502 |
<MT8365_PIN_2_GPIO2__FUNC_GPIO2>, |
| 503 |
<MT8365_PIN_3_GPIO3__FUNC_GPIO3>, |
| 504 |
<MT8365_PIN_4_GPIO4__FUNC_GPIO4>, |
| 505 |
<MT8365_PIN_5_GPIO5__FUNC_GPIO5>, |
| 506 |
<MT8365_PIN_6_GPIO6__FUNC_GPIO6>, |
| 507 |
<MT8365_PIN_7_GPIO7__FUNC_GPIO7>, |
| 508 |
<MT8365_PIN_8_GPIO8__FUNC_GPIO8>, |
| 509 |
<MT8365_PIN_9_GPIO9__FUNC_GPIO9>, |
| 510 |
<MT8365_PIN_10_GPIO10__FUNC_GPIO10>, |
| 511 |
<MT8365_PIN_11_GPIO11__FUNC_GPIO11>, |
| 512 |
<MT8365_PIN_12_GPIO12__FUNC_GPIO12>, |
| 513 |
<MT8365_PIN_13_GPIO13__FUNC_GPIO13>, |
| 514 |
<MT8365_PIN_14_GPIO14__FUNC_GPIO14>, |
| 515 |
<MT8365_PIN_15_GPIO15__FUNC_GPIO15>; |
| 516 |
}; |
| 517 |
}; |
| 518 |
|
| 519 |
ethernet_pins: ethernet-pins { |
| 520 |
phy_reset_pins { |
| 521 |
pinmux = <MT8365_PIN_133_TDM_TX_DATA1__FUNC_GPIO133>; |
| 522 |
}; |
| 523 |
|
| 524 |
rmii_pins { |
| 525 |
pinmux = <MT8365_PIN_0_GPIO0__FUNC_EXT_TXD0>, |
| 526 |
<MT8365_PIN_1_GPIO1__FUNC_EXT_TXD1>, |
| 527 |
<MT8365_PIN_2_GPIO2__FUNC_EXT_TXD2>, |
| 528 |
<MT8365_PIN_3_GPIO3__FUNC_EXT_TXD3>, |
| 529 |
<MT8365_PIN_4_GPIO4__FUNC_EXT_TXC>, |
| 530 |
<MT8365_PIN_5_GPIO5__FUNC_EXT_RXER>, |
| 531 |
<MT8365_PIN_6_GPIO6__FUNC_EXT_RXC>, |
| 532 |
<MT8365_PIN_7_GPIO7__FUNC_EXT_RXDV>, |
| 533 |
<MT8365_PIN_8_GPIO8__FUNC_EXT_RXD0>, |
| 534 |
<MT8365_PIN_9_GPIO9__FUNC_EXT_RXD1>, |
| 535 |
<MT8365_PIN_10_GPIO10__FUNC_EXT_RXD2>, |
| 536 |
<MT8365_PIN_11_GPIO11__FUNC_EXT_RXD3>, |
| 537 |
<MT8365_PIN_12_GPIO12__FUNC_EXT_TXEN>, |
| 538 |
<MT8365_PIN_13_GPIO13__FUNC_EXT_COL>, |
| 539 |
<MT8365_PIN_14_GPIO14__FUNC_EXT_MDIO>, |
| 540 |
<MT8365_PIN_15_GPIO15__FUNC_EXT_MDC>; |
| 541 |
}; |
| 542 |
}; |
| 543 |
|
| 544 |
gpio_keys: gpio-keys-pins { |
| 545 |
pins { |
| 546 |
pinmux = <MT8365_PIN_24_KPCOL0__FUNC_KPCOL0>; |
| 547 |
bias-pull-up; |
| 548 |
input-enable; |
| 549 |
}; |
| 550 |
}; |
| 551 |
|
| 552 |
i2c0_pins: i2c0-pins { |
| 553 |
pins { |
| 554 |
pinmux = <MT8365_PIN_57_SDA0__FUNC_SDA0_0>, |
| 555 |
<MT8365_PIN_58_SCL0__FUNC_SCL0_0>; |
| 556 |
bias-pull-up; |
| 557 |
}; |
| 558 |
}; |
| 559 |
|
| 560 |
i2c1_pins: i2c1-pins { |
| 561 |
pins { |
| 562 |
pinmux = <MT8365_PIN_59_SDA1__FUNC_SDA1_0>, |
| 563 |
<MT8365_PIN_60_SCL1__FUNC_SCL1_0>; |
| 564 |
bias-pull-up; |
| 565 |
}; |
| 566 |
}; |
| 567 |
|
| 568 |
ite_pins: ite-pins { |
| 569 |
irq_ite_pins { |
| 570 |
pinmux = <MT8365_PIN_68_CMDAT0__FUNC_GPIO68>; |
| 571 |
input-enable; |
| 572 |
bias-pull-up; |
| 573 |
}; |
| 574 |
|
| 575 |
pwr_pins { |
| 576 |
pinmux = <MT8365_PIN_70_CMDAT2__FUNC_GPIO70>, |
| 577 |
<MT8365_PIN_71_CMDAT3__FUNC_GPIO71>; |
| 578 |
output-high; |
| 579 |
}; |
| 580 |
|
| 581 |
rst_ite_pins { |
| 582 |
pinmux = <MT8365_PIN_69_CMDAT1__FUNC_GPIO69>; |
| 583 |
output-high; |
| 584 |
}; |
| 585 |
}; |
| 586 |
|
| 587 |
mmc0_default_pins: mmc0-default-pins { |
| 588 |
clk-pins { |
| 589 |
pinmux = <MT8365_PIN_99_MSDC0_CLK__FUNC_MSDC0_CLK>; |
| 590 |
bias-pull-down; |
| 591 |
}; |
| 592 |
|
| 593 |
cmd-dat-pins { |
| 594 |
pinmux = <MT8365_PIN_103_MSDC0_DAT0__FUNC_MSDC0_DAT0>, |
| 595 |
<MT8365_PIN_102_MSDC0_DAT1__FUNC_MSDC0_DAT1>, |
| 596 |
<MT8365_PIN_101_MSDC0_DAT2__FUNC_MSDC0_DAT2>, |
| 597 |
<MT8365_PIN_100_MSDC0_DAT3__FUNC_MSDC0_DAT3>, |
| 598 |
<MT8365_PIN_96_MSDC0_DAT4__FUNC_MSDC0_DAT4>, |
| 599 |
<MT8365_PIN_95_MSDC0_DAT5__FUNC_MSDC0_DAT5>, |
| 600 |
<MT8365_PIN_94_MSDC0_DAT6__FUNC_MSDC0_DAT6>, |
| 601 |
<MT8365_PIN_93_MSDC0_DAT7__FUNC_MSDC0_DAT7>, |
| 602 |
<MT8365_PIN_98_MSDC0_CMD__FUNC_MSDC0_CMD>; |
| 603 |
input-enable; |
| 604 |
bias-pull-up; |
| 605 |
}; |
| 606 |
|
| 607 |
rst-pins { |
| 608 |
pinmux = <MT8365_PIN_97_MSDC0_RSTB__FUNC_MSDC0_RSTB>; |
| 609 |
bias-pull-up; |
| 610 |
}; |
| 611 |
}; |
| 612 |
|
| 613 |
mmc0_uhs_pins: mmc0-uhs-pins { |
| 614 |
clk-pins { |
| 615 |
pinmux = <MT8365_PIN_99_MSDC0_CLK__FUNC_MSDC0_CLK>; |
| 616 |
drive-strength = <MTK_DRIVE_10mA>; |
| 617 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 618 |
}; |
| 619 |
|
| 620 |
cmd-dat-pins { |
| 621 |
pinmux = <MT8365_PIN_103_MSDC0_DAT0__FUNC_MSDC0_DAT0>, |
| 622 |
<MT8365_PIN_102_MSDC0_DAT1__FUNC_MSDC0_DAT1>, |
| 623 |
<MT8365_PIN_101_MSDC0_DAT2__FUNC_MSDC0_DAT2>, |
| 624 |
<MT8365_PIN_100_MSDC0_DAT3__FUNC_MSDC0_DAT3>, |
| 625 |
<MT8365_PIN_96_MSDC0_DAT4__FUNC_MSDC0_DAT4>, |
| 626 |
<MT8365_PIN_95_MSDC0_DAT5__FUNC_MSDC0_DAT5>, |
| 627 |
<MT8365_PIN_94_MSDC0_DAT6__FUNC_MSDC0_DAT6>, |
| 628 |
<MT8365_PIN_93_MSDC0_DAT7__FUNC_MSDC0_DAT7>, |
| 629 |
<MT8365_PIN_98_MSDC0_CMD__FUNC_MSDC0_CMD>; |
| 630 |
input-enable; |
| 631 |
drive-strength = <MTK_DRIVE_10mA>; |
| 632 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 633 |
}; |
| 634 |
|
| 635 |
ds-pins { |
| 636 |
pinmux = <MT8365_PIN_104_MSDC0_DSL__FUNC_MSDC0_DSL>; |
| 637 |
drive-strength = <MTK_DRIVE_10mA>; |
| 638 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 639 |
}; |
| 640 |
|
| 641 |
rst-pins { |
| 642 |
pinmux = <MT8365_PIN_97_MSDC0_RSTB__FUNC_MSDC0_RSTB>; |
| 643 |
drive-strength = <MTK_DRIVE_10mA>; |
| 644 |
bias-pull-up; |
| 645 |
}; |
| 646 |
}; |
| 647 |
|
| 648 |
mmc1_default_pins: mmc1-default-pins { |
| 649 |
cd-pins { |
| 650 |
pinmux = <MT8365_PIN_76_CMDAT8__FUNC_GPIO76>; |
| 651 |
bias-pull-up; |
| 652 |
}; |
| 653 |
|
| 654 |
clk-pins { |
| 655 |
pinmux = <MT8365_PIN_88_MSDC1_CLK__FUNC_MSDC1_CLK>; |
| 656 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 657 |
}; |
| 658 |
|
| 659 |
cmd-dat-pins { |
| 660 |
pinmux = <MT8365_PIN_89_MSDC1_DAT0__FUNC_MSDC1_DAT0>, |
| 661 |
<MT8365_PIN_90_MSDC1_DAT1__FUNC_MSDC1_DAT1>, |
| 662 |
<MT8365_PIN_91_MSDC1_DAT2__FUNC_MSDC1_DAT2>, |
| 663 |
<MT8365_PIN_92_MSDC1_DAT3__FUNC_MSDC1_DAT3>, |
| 664 |
<MT8365_PIN_87_MSDC1_CMD__FUNC_MSDC1_CMD>; |
| 665 |
input-enable; |
| 666 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 667 |
}; |
| 668 |
}; |
| 669 |
|
| 670 |
mmc1_uhs_pins: mmc1-uhs-pins { |
| 671 |
clk-pins { |
| 672 |
pinmux = <MT8365_PIN_88_MSDC1_CLK__FUNC_MSDC1_CLK>; |
| 673 |
drive-strength = <8>; |
| 674 |
bias-pull-down = <MTK_PUPD_SET_R1R0_10>; |
| 675 |
}; |
| 676 |
|
| 677 |
cmd-dat-pins { |
| 678 |
pinmux = <MT8365_PIN_89_MSDC1_DAT0__FUNC_MSDC1_DAT0>, |
| 679 |
<MT8365_PIN_90_MSDC1_DAT1__FUNC_MSDC1_DAT1>, |
| 680 |
<MT8365_PIN_91_MSDC1_DAT2__FUNC_MSDC1_DAT2>, |
| 681 |
<MT8365_PIN_92_MSDC1_DAT3__FUNC_MSDC1_DAT3>, |
| 682 |
<MT8365_PIN_87_MSDC1_CMD__FUNC_MSDC1_CMD>; |
| 683 |
input-enable; |
| 684 |
drive-strength = <6>; |
| 685 |
bias-pull-up = <MTK_PUPD_SET_R1R0_01>; |
| 686 |
}; |
| 687 |
}; |
| 688 |
|
| 689 |
touch_pins: touch-pins { |
| 690 |
ctp-int1-pins { |
| 691 |
pinmux = <MT8365_PIN_78_CMHSYNC__FUNC_GPIO78>; |
| 692 |
input-enable; |
| 693 |
bias-disable; |
| 694 |
}; |
| 695 |
|
| 696 |
rst-pins { |
| 697 |
pinmux = <MT8365_PIN_79_CMVSYNC__FUNC_GPIO79>; |
| 698 |
output-low; |
| 699 |
}; |
| 700 |
}; |
| 701 |
|
| 702 |
uart0_pins: uart0-pins { |
| 703 |
pins { |
| 704 |
pinmux = <MT8365_PIN_35_URXD0__FUNC_URXD0>, |
| 705 |
<MT8365_PIN_36_UTXD0__FUNC_UTXD0>; |
| 706 |
}; |
| 707 |
}; |
| 708 |
|
| 709 |
uart1_pins: uart1-pins { |
| 710 |
pins { |
| 711 |
pinmux = <MT8365_PIN_37_URXD1__FUNC_URXD1>, |
| 712 |
<MT8365_PIN_38_UTXD1__FUNC_UTXD1>; |
| 713 |
}; |
| 714 |
}; |
| 715 |
|
| 716 |
uart2_pins: uart2-pins { |
| 717 |
pins { |
| 718 |
pinmux = <MT8365_PIN_39_URXD2__FUNC_URXD2>, |
| 719 |
<MT8365_PIN_40_UTXD2__FUNC_UTXD2>; |
| 720 |
}; |
| 721 |
}; |
| 722 |
|
| 723 |
usb_pins: usb-pins { |
| 724 |
id-pins { |
| 725 |
pinmux = <MT8365_PIN_17_GPIO17__FUNC_GPIO17>; |
| 726 |
input-enable; |
| 727 |
bias-pull-up; |
| 728 |
}; |
| 729 |
|
| 730 |
usb0-vbus-pins { |
| 731 |
pinmux = <MT8365_PIN_16_GPIO16__FUNC_USB_DRVVBUS>; |
| 732 |
output-high; |
| 733 |
}; |
| 734 |
|
| 735 |
usb1-vbus-pins { |
| 736 |
pinmux = <MT8365_PIN_18_GPIO18__FUNC_GPIO18>; |
| 737 |
output-high; |
| 738 |
}; |
| 739 |
}; |
| 740 |
|
| 741 |
pwm_pins: pwm-pins { |
| 742 |
pins { |
| 743 |
pinmux = <MT8365_PIN_19_DISP_PWM__FUNC_PWM_A>, |
| 744 |
<MT8365_PIN_116_I2S_BCK__FUNC_PWM_C>; |
| 745 |
}; |
| 746 |
}; |
| 747 |
}; |
| 748 |
|
| 749 |
&pwm { |
| 750 |
pinctrl-0 = <&pwm_pins>; |
| 751 |
pinctrl-names = "default"; |
| 752 |
status = "okay"; |
| 753 |
}; |
| 754 |
|
| 755 |
&rdma1_out { |
| 756 |
remote-endpoint = <&dpi0_in>; |
| 757 |
}; |
| 758 |
|
| 759 |
&ssusb { |
| 760 |
dr_mode = "otg"; |
| 761 |
maximum-speed = "high-speed"; |
| 762 |
pinctrl-0 = <&usb_pins>; |
| 763 |
pinctrl-names = "default"; |
| 764 |
usb-role-switch; |
| 765 |
vusb33-supply = <&mt6357_vusb33_reg>; |
| 766 |
status = "okay"; |
| 767 |
|
| 768 |
connector { |
| 769 |
compatible = "gpio-usb-b-connector", "usb-b-connector"; |
| 770 |
id-gpios = <&pio 17 GPIO_ACTIVE_HIGH>; |
| 771 |
type = "micro"; |
| 772 |
vbus-supply = <&usb_otg_vbus>; |
| 773 |
}; |
| 774 |
}; |
| 775 |
|
| 776 |
&usb_host { |
| 777 |
vusb33-supply = <&mt6357_vusb33_reg>; |
| 778 |
status = "okay"; |
| 779 |
}; |
| 780 |
|
| 781 |
&uart0 { |
| 782 |
pinctrl-0 = <&uart0_pins>; |
| 783 |
pinctrl-names = "default"; |
| 784 |
status = "okay"; |
| 785 |
}; |
| 786 |
|
| 787 |
&uart1 { |
| 788 |
pinctrl-0 = <&uart1_pins>; |
| 789 |
pinctrl-names = "default"; |
| 790 |
status = "okay"; |
| 791 |
}; |
| 792 |
|
| 793 |
&uart2 { |
| 794 |
pinctrl-0 = <&uart2_pins>; |
| 795 |
pinctrl-names = "default"; |
| 796 |
status = "okay"; |
| 797 |
}; |