0001 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
0002 /*
0003 * Copyright (C) 2021 MediaTek Inc.
0004 */
0005
0006 #include <dt-bindings/gpio/gpio.h>
0007 #include "mt8195.dtsi"
0008 #include "mt6359.dtsi"
0009
0010 / {
0011 aliases {
0012 i2c0 = &i2c0;
0013 i2c1 = &i2c1;
0014 i2c2 = &i2c2;
0015 i2c3 = &i2c3;
0016 i2c4 = &i2c4;
0017 i2c5 = &i2c5;
0018 i2c7 = &i2c7;
0019 mmc0 = &mmc0;
0020 serial0 = &uart0;
0021 };
0022
0023 chosen {
0024 stdout-path = "serial0:115200n8";
0025 };
0026
0027 memory@40000000 {
0028 device_type = "memory";
0029 reg = <0 0x40000000 0 0x80000000>;
0030 };
0031
0032 /* system wide LDO 3.3V power rail */
0033 pp3300_z5: regulator-pp3300-ldo-z5 {
0034 compatible = "regulator-fixed";
0035 regulator-name = "pp3300_ldo_z5";
0036 regulator-always-on;
0037 regulator-boot-on;
0038 regulator-min-microvolt = <3300000>;
0039 regulator-max-microvolt = <3300000>;
0040 vin-supply = <&ppvar_sys>;
0041 };
0042
0043 /* separately switched 3.3V power rail */
0044 pp3300_s3: regulator-pp3300-s3 {
0045 compatible = "regulator-fixed";
0046 regulator-name = "pp3300_s3";
0047 /* automatically sequenced by PMIC EXT_PMIC_EN2 */
0048 regulator-always-on;
0049 regulator-boot-on;
0050 regulator-min-microvolt = <3300000>;
0051 regulator-max-microvolt = <3300000>;
0052 vin-supply = <&pp3300_z2>;
0053 };
0054
0055 /* system wide 3.3V power rail */
0056 pp3300_z2: regulator-pp3300-z2 {
0057 compatible = "regulator-fixed";
0058 regulator-name = "pp3300_z2";
0059 /* EN pin tied to pp4200_z2, which is controlled by EC */
0060 regulator-always-on;
0061 regulator-boot-on;
0062 regulator-min-microvolt = <3300000>;
0063 regulator-max-microvolt = <3300000>;
0064 vin-supply = <&ppvar_sys>;
0065 };
0066
0067 /* system wide 4.2V power rail */
0068 pp4200_z2: regulator-pp4200-z2 {
0069 compatible = "regulator-fixed";
0070 regulator-name = "pp4200_z2";
0071 /* controlled by EC */
0072 regulator-always-on;
0073 regulator-boot-on;
0074 regulator-min-microvolt = <4200000>;
0075 regulator-max-microvolt = <4200000>;
0076 vin-supply = <&ppvar_sys>;
0077 };
0078
0079 /* system wide switching 5.0V power rail */
0080 pp5000_s5: regulator-pp5000-s5 {
0081 compatible = "regulator-fixed";
0082 regulator-name = "pp5000_s5";
0083 /* controlled by EC */
0084 regulator-always-on;
0085 regulator-boot-on;
0086 regulator-min-microvolt = <5000000>;
0087 regulator-max-microvolt = <5000000>;
0088 vin-supply = <&ppvar_sys>;
0089 };
0090
0091 /* system wide semi-regulated power rail from battery or USB */
0092 ppvar_sys: regulator-ppvar-sys {
0093 compatible = "regulator-fixed";
0094 regulator-name = "ppvar_sys";
0095 regulator-always-on;
0096 regulator-boot-on;
0097 };
0098
0099 usb_vbus: regulator-5v0-usb-vbus {
0100 compatible = "regulator-fixed";
0101 regulator-name = "usb-vbus";
0102 regulator-min-microvolt = <5000000>;
0103 regulator-max-microvolt = <5000000>;
0104 enable-active-high;
0105 regulator-always-on;
0106 };
0107 };
0108
0109 &i2c0 {
0110 status = "okay";
0111
0112 clock-frequency = <400000>;
0113 pinctrl-names = "default";
0114 pinctrl-0 = <&i2c0_pins>;
0115 };
0116
0117 &i2c1 {
0118 status = "okay";
0119
0120 clock-frequency = <400000>;
0121 i2c-scl-internal-delay-ns = <12500>;
0122 pinctrl-names = "default";
0123 pinctrl-0 = <&i2c1_pins>;
0124 };
0125
0126 &i2c2 {
0127 status = "okay";
0128
0129 clock-frequency = <400000>;
0130 pinctrl-names = "default";
0131 pinctrl-0 = <&i2c2_pins>;
0132 };
0133
0134 &i2c3 {
0135 status = "okay";
0136
0137 clock-frequency = <400000>;
0138 pinctrl-names = "default";
0139 pinctrl-0 = <&i2c3_pins>;
0140 };
0141
0142 &i2c4 {
0143 status = "okay";
0144
0145 clock-frequency = <400000>;
0146 pinctrl-names = "default";
0147 pinctrl-0 = <&i2c4_pins>;
0148
0149 ts_10: touchscreen@10 {
0150 compatible = "hid-over-i2c";
0151 reg = <0x10>;
0152 hid-descr-addr = <0x0001>;
0153 interrupts-extended = <&pio 92 IRQ_TYPE_LEVEL_LOW>;
0154 pinctrl-names = "default";
0155 pinctrl-0 = <&touchscreen_pins>;
0156 post-power-on-delay-ms = <10>;
0157 vdd-supply = <&pp3300_s3>;
0158 status = "disabled";
0159 };
0160 };
0161
0162 &i2c5 {
0163 status = "okay";
0164
0165 clock-frequency = <400000>;
0166 pinctrl-names = "default";
0167 pinctrl-0 = <&i2c5_pins>;
0168 };
0169
0170 &i2c7 {
0171 status = "okay";
0172
0173 clock-frequency = <400000>;
0174 pinctrl-names = "default";
0175 pinctrl-0 = <&i2c7_pins>;
0176
0177 pmic@34 {
0178 #interrupt-cells = <1>;
0179 compatible = "mediatek,mt6360";
0180 reg = <0x34>;
0181 interrupt-controller;
0182 interrupts-extended = <&pio 130 IRQ_TYPE_EDGE_FALLING>;
0183 interrupt-names = "IRQB";
0184 pinctrl-names = "default";
0185 pinctrl-0 = <&subpmic_default>;
0186 wakeup-source;
0187 };
0188 };
0189
0190 &mmc0 {
0191 status = "okay";
0192
0193 bus-width = <8>;
0194 cap-mmc-highspeed;
0195 cap-mmc-hw-reset;
0196 hs400-ds-delay = <0x14c11>;
0197 max-frequency = <200000000>;
0198 mmc-hs200-1_8v;
0199 mmc-hs400-1_8v;
0200 no-sdio;
0201 no-sd;
0202 non-removable;
0203 pinctrl-names = "default", "state_uhs";
0204 pinctrl-0 = <&mmc0_pins_default>;
0205 pinctrl-1 = <&mmc0_pins_uhs>;
0206 vmmc-supply = <&mt6359_vemc_1_ldo_reg>;
0207 vqmmc-supply = <&mt6359_vufs_ldo_reg>;
0208 };
0209
0210 /* for CPU-L */
0211 &mt6359_vcore_buck_reg {
0212 regulator-always-on;
0213 };
0214
0215 /* for CORE */
0216 &mt6359_vgpu11_buck_reg {
0217 regulator-always-on;
0218 };
0219
0220 &mt6359_vgpu11_sshub_buck_reg {
0221 regulator-always-on;
0222 regulator-min-microvolt = <550000>;
0223 regulator-max-microvolt = <550000>;
0224 };
0225
0226 /* for CORE SRAM */
0227 &mt6359_vpu_buck_reg {
0228 regulator-always-on;
0229 };
0230
0231 &mt6359_vrf12_ldo_reg {
0232 regulator-always-on;
0233 };
0234
0235 /* for GPU SRAM */
0236 &mt6359_vsram_others_ldo_reg {
0237 regulator-always-on;
0238 regulator-min-microvolt = <750000>;
0239 regulator-max-microvolt = <750000>;
0240 };
0241
0242 &mt6359_vufs_ldo_reg {
0243 regulator-always-on;
0244 };
0245
0246 &nor_flash {
0247 status = "okay";
0248
0249 pinctrl-names = "default";
0250 pinctrl-0 = <&nor_pins_default>;
0251
0252 flash@0 {
0253 compatible = "jedec,spi-nor";
0254 reg = <0>;
0255 spi-max-frequency = <52000000>;
0256 spi-rx-bus-width = <2>;
0257 spi-tx-bus-width = <2>;
0258 };
0259 };
0260
0261 &pio {
0262 mediatek,rsel-resistance-in-si-unit;
0263 pinctrl-names = "default";
0264 pinctrl-0 = <&pio_default>;
0265
0266 /* 144 lines */
0267 gpio-line-names =
0268 "I2S_SPKR_MCLK",
0269 "I2S_SPKR_DATAIN",
0270 "I2S_SPKR_LRCK",
0271 "I2S_SPKR_BCLK",
0272 "EC_AP_INT_ODL",
0273 /*
0274 * AP_FLASH_WP_L is crossystem ABI. Schematics
0275 * call it AP_FLASH_WP_ODL.
0276 */
0277 "AP_FLASH_WP_L",
0278 "TCHPAD_INT_ODL",
0279 "EDP_HPD_1V8",
0280 "AP_I2C_CAM_SDA",
0281 "AP_I2C_CAM_SCL",
0282 "AP_I2C_TCHPAD_SDA_1V8",
0283 "AP_I2C_TCHPAD_SCL_1V8",
0284 "AP_I2C_AUD_SDA",
0285 "AP_I2C_AUD_SCL",
0286 "AP_I2C_TPM_SDA_1V8",
0287 "AP_I2C_TPM_SCL_1V8",
0288 "AP_I2C_TCHSCR_SDA_1V8",
0289 "AP_I2C_TCHSCR_SCL_1V8",
0290 "EC_AP_HPD_OD",
0291 "",
0292 "PCIE_NVME_RST_L",
0293 "PCIE_NVME_CLKREQ_ODL",
0294 "PCIE_RST_1V8_L",
0295 "PCIE_CLKREQ_1V8_ODL",
0296 "PCIE_WAKE_1V8_ODL",
0297 "CLK_24M_CAM0",
0298 "CAM1_SEN_EN",
0299 "AP_I2C_PWR_SCL_1V8",
0300 "AP_I2C_PWR_SDA_1V8",
0301 "AP_I2C_MISC_SCL",
0302 "AP_I2C_MISC_SDA",
0303 "EN_PP5000_HDMI_X",
0304 "AP_HDMITX_HTPLG",
0305 "",
0306 "AP_HDMITX_SCL_1V8",
0307 "AP_HDMITX_SDA_1V8",
0308 "AP_RTC_CLK32K",
0309 "AP_EC_WATCHDOG_L",
0310 "SRCLKENA0",
0311 "SRCLKENA1",
0312 "PWRAP_SPI0_CS_L",
0313 "PWRAP_SPI0_CK",
0314 "PWRAP_SPI0_MOSI",
0315 "PWRAP_SPI0_MISO",
0316 "SPMI_SCL",
0317 "SPMI_SDA",
0318 "",
0319 "",
0320 "",
0321 "I2S_HP_DATAIN",
0322 "I2S_HP_MCLK",
0323 "I2S_HP_BCK",
0324 "I2S_HP_LRCK",
0325 "I2S_HP_DATAOUT",
0326 "SD_CD_ODL",
0327 "EN_PP3300_DISP_X",
0328 "TCHSCR_RST_1V8_L",
0329 "TCHSCR_REPORT_DISABLE",
0330 "EN_PP3300_WLAN_X",
0331 "BT_KILL_1V8_L",
0332 "I2S_SPKR_DATAOUT",
0333 "WIFI_KILL_1V8_L",
0334 "BEEP_ON",
0335 "SCP_I2C_SENSOR_SCL_1V8",
0336 "SCP_I2C_SENSOR_SDA_1V8",
0337 "",
0338 "",
0339 "",
0340 "",
0341 "AUD_CLK_MOSI",
0342 "AUD_SYNC_MOSI",
0343 "AUD_DAT_MOSI0",
0344 "AUD_DAT_MOSI1",
0345 "AUD_DAT_MISO0",
0346 "AUD_DAT_MISO1",
0347 "AUD_DAT_MISO2",
0348 "SCP_VREQ_VAO",
0349 "AP_SPI_GSC_TPM_CLK",
0350 "AP_SPI_GSC_TPM_MOSI",
0351 "AP_SPI_GSC_TPM_CS_L",
0352 "AP_SPI_GSC_TPM_MISO",
0353 "EN_PP1000_CAM_X",
0354 "AP_EDP_BKLTEN",
0355 "",
0356 "USB3_HUB_RST_L",
0357 "",
0358 "WLAN_ALERT_ODL",
0359 "EC_IN_RW_ODL",
0360 "GSC_AP_INT_ODL",
0361 "HP_INT_ODL",
0362 "CAM0_RST_L",
0363 "CAM1_RST_L",
0364 "TCHSCR_INT_1V8_L",
0365 "CAM1_DET_L",
0366 "RST_ALC1011_L",
0367 "",
0368 "",
0369 "BL_PWM_1V8",
0370 "UART_AP_TX_DBG_RX",
0371 "UART_DBG_TX_AP_RX",
0372 "EN_SPKR",
0373 "AP_EC_WARM_RST_REQ",
0374 "UART_SCP_TX_DBGCON_RX",
0375 "UART_DBGCON_TX_SCP_RX",
0376 "",
0377 "",
0378 "KPCOL0",
0379 "",
0380 "MT6315_GPU_INT",
0381 "MT6315_PROC_BC_INT",
0382 "SD_CMD",
0383 "SD_CLK",
0384 "SD_DAT0",
0385 "SD_DAT1",
0386 "SD_DAT2",
0387 "SD_DAT3",
0388 "EMMC_DAT7",
0389 "EMMC_DAT6",
0390 "EMMC_DAT5",
0391 "EMMC_DAT4",
0392 "EMMC_RSTB",
0393 "EMMC_CMD",
0394 "EMMC_CLK",
0395 "EMMC_DAT3",
0396 "EMMC_DAT2",
0397 "EMMC_DAT1",
0398 "EMMC_DAT0",
0399 "EMMC_DSL",
0400 "",
0401 "",
0402 "MT6360_INT_ODL",
0403 "SCP_JTAG0_TRSTN",
0404 "AP_SPI_EC_CS_L",
0405 "AP_SPI_EC_CLK",
0406 "AP_SPI_EC_MOSI",
0407 "AP_SPI_EC_MISO",
0408 "SCP_JTAG0_TMS",
0409 "SCP_JTAG0_TCK",
0410 "SCP_JTAG0_TDO",
0411 "SCP_JTAG0_TDI",
0412 "AP_SPI_FLASH_CS_L",
0413 "AP_SPI_FLASH_CLK",
0414 "AP_SPI_FLASH_MOSI",
0415 "AP_SPI_FLASH_MISO";
0416
0417 i2c0_pins: i2c0-default-pins {
0418 pins-bus {
0419 pinmux = <PINMUX_GPIO8__FUNC_SDA0>,
0420 <PINMUX_GPIO9__FUNC_SCL0>;
0421 bias-disable;
0422 drive-strength-microamp = <1000>;
0423 };
0424 };
0425
0426 i2c1_pins: i2c1-default-pins {
0427 pins-bus {
0428 pinmux = <PINMUX_GPIO10__FUNC_SDA1>,
0429 <PINMUX_GPIO11__FUNC_SCL1>;
0430 bias-pull-up = <1000>;
0431 drive-strength-microamp = <1000>;
0432 };
0433 };
0434
0435 i2c2_pins: i2c2-default-pins {
0436 pins-bus {
0437 pinmux = <PINMUX_GPIO12__FUNC_SDA2>,
0438 <PINMUX_GPIO13__FUNC_SCL2>;
0439 bias-disable;
0440 drive-strength-microamp = <1000>;
0441 };
0442 };
0443
0444 i2c3_pins: i2c3-default-pins {
0445 pins-bus {
0446 pinmux = <PINMUX_GPIO14__FUNC_SDA3>,
0447 <PINMUX_GPIO15__FUNC_SCL3>;
0448 bias-pull-up = <1000>;
0449 drive-strength-microamp = <1000>;
0450 };
0451 };
0452
0453 i2c4_pins: i2c4-default-pins {
0454 pins-bus {
0455 pinmux = <PINMUX_GPIO16__FUNC_SDA4>,
0456 <PINMUX_GPIO17__FUNC_SCL4>;
0457 bias-pull-up = <1000>;
0458 drive-strength = <4>;
0459 };
0460 };
0461
0462 i2c5_pins: i2c5-default-pins {
0463 pins-bus {
0464 pinmux = <PINMUX_GPIO29__FUNC_SCL5>,
0465 <PINMUX_GPIO30__FUNC_SDA5>;
0466 bias-disable;
0467 drive-strength-microamp = <1000>;
0468 };
0469 };
0470
0471 i2c7_pins: i2c7-default-pins {
0472 pins-bus {
0473 pinmux = <PINMUX_GPIO27__FUNC_SCL7>,
0474 <PINMUX_GPIO28__FUNC_SDA7>;
0475 bias-disable;
0476 };
0477 };
0478
0479 mmc0_pins_default: mmc0-default-pins {
0480 pins-cmd-dat {
0481 pinmux = <PINMUX_GPIO126__FUNC_MSDC0_DAT0>,
0482 <PINMUX_GPIO125__FUNC_MSDC0_DAT1>,
0483 <PINMUX_GPIO124__FUNC_MSDC0_DAT2>,
0484 <PINMUX_GPIO123__FUNC_MSDC0_DAT3>,
0485 <PINMUX_GPIO119__FUNC_MSDC0_DAT4>,
0486 <PINMUX_GPIO118__FUNC_MSDC0_DAT5>,
0487 <PINMUX_GPIO117__FUNC_MSDC0_DAT6>,
0488 <PINMUX_GPIO116__FUNC_MSDC0_DAT7>,
0489 <PINMUX_GPIO121__FUNC_MSDC0_CMD>;
0490 input-enable;
0491 drive-strength = <6>;
0492 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
0493 };
0494
0495 pins-clk {
0496 pinmux = <PINMUX_GPIO122__FUNC_MSDC0_CLK>;
0497 drive-strength = <6>;
0498 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
0499 };
0500
0501 pins-rst {
0502 pinmux = <PINMUX_GPIO120__FUNC_MSDC0_RSTB>;
0503 drive-strength = <6>;
0504 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
0505 };
0506 };
0507
0508 mmc0_pins_uhs: mmc0-uhs-pins {
0509 pins-cmd-dat {
0510 pinmux = <PINMUX_GPIO126__FUNC_MSDC0_DAT0>,
0511 <PINMUX_GPIO125__FUNC_MSDC0_DAT1>,
0512 <PINMUX_GPIO124__FUNC_MSDC0_DAT2>,
0513 <PINMUX_GPIO123__FUNC_MSDC0_DAT3>,
0514 <PINMUX_GPIO119__FUNC_MSDC0_DAT4>,
0515 <PINMUX_GPIO118__FUNC_MSDC0_DAT5>,
0516 <PINMUX_GPIO117__FUNC_MSDC0_DAT6>,
0517 <PINMUX_GPIO116__FUNC_MSDC0_DAT7>,
0518 <PINMUX_GPIO121__FUNC_MSDC0_CMD>;
0519 input-enable;
0520 drive-strength = <8>;
0521 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
0522 };
0523
0524 pins-clk {
0525 pinmux = <PINMUX_GPIO122__FUNC_MSDC0_CLK>;
0526 drive-strength = <8>;
0527 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
0528 };
0529
0530 pins-ds {
0531 pinmux = <PINMUX_GPIO127__FUNC_MSDC0_DSL>;
0532 drive-strength = <8>;
0533 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
0534 };
0535
0536 pins-rst {
0537 pinmux = <PINMUX_GPIO120__FUNC_MSDC0_RSTB>;
0538 drive-strength = <8>;
0539 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
0540 };
0541 };
0542
0543 nor_pins_default: nor-default-pins {
0544 pins-ck-io {
0545 pinmux = <PINMUX_GPIO142__FUNC_SPINOR_IO0>,
0546 <PINMUX_GPIO141__FUNC_SPINOR_CK>,
0547 <PINMUX_GPIO143__FUNC_SPINOR_IO1>;
0548 drive-strength = <6>;
0549 bias-pull-down;
0550 };
0551
0552 pins-cs {
0553 pinmux = <PINMUX_GPIO140__FUNC_SPINOR_CS>;
0554 drive-strength = <6>;
0555 bias-pull-up;
0556 };
0557 };
0558
0559 pio_default: pio-default-pins {
0560 pins-wifi-enable {
0561 pinmux = <PINMUX_GPIO58__FUNC_GPIO58>;
0562 output-high;
0563 drive-strength = <14>;
0564 };
0565
0566 pins-low-power-pd {
0567 pinmux = <PINMUX_GPIO25__FUNC_GPIO25>,
0568 <PINMUX_GPIO26__FUNC_GPIO26>,
0569 <PINMUX_GPIO46__FUNC_GPIO46>,
0570 <PINMUX_GPIO47__FUNC_GPIO47>,
0571 <PINMUX_GPIO48__FUNC_GPIO48>,
0572 <PINMUX_GPIO65__FUNC_GPIO65>,
0573 <PINMUX_GPIO66__FUNC_GPIO66>,
0574 <PINMUX_GPIO67__FUNC_GPIO67>,
0575 <PINMUX_GPIO68__FUNC_GPIO68>,
0576 <PINMUX_GPIO128__FUNC_GPIO128>,
0577 <PINMUX_GPIO129__FUNC_GPIO129>;
0578 input-enable;
0579 bias-pull-down;
0580 };
0581
0582 pins-low-power-pupd {
0583 pinmux = <PINMUX_GPIO77__FUNC_GPIO77>,
0584 <PINMUX_GPIO78__FUNC_GPIO78>,
0585 <PINMUX_GPIO79__FUNC_GPIO79>,
0586 <PINMUX_GPIO80__FUNC_GPIO80>,
0587 <PINMUX_GPIO83__FUNC_GPIO83>,
0588 <PINMUX_GPIO85__FUNC_GPIO85>,
0589 <PINMUX_GPIO90__FUNC_GPIO90>,
0590 <PINMUX_GPIO91__FUNC_GPIO91>,
0591 <PINMUX_GPIO93__FUNC_GPIO93>,
0592 <PINMUX_GPIO94__FUNC_GPIO94>,
0593 <PINMUX_GPIO95__FUNC_GPIO95>,
0594 <PINMUX_GPIO96__FUNC_GPIO96>,
0595 <PINMUX_GPIO104__FUNC_GPIO104>,
0596 <PINMUX_GPIO105__FUNC_GPIO105>,
0597 <PINMUX_GPIO107__FUNC_GPIO107>;
0598 input-enable;
0599 bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
0600 };
0601 };
0602
0603 spi0_pins: spi0-default-pins {
0604 pins-cs-mosi-clk {
0605 pinmux = <PINMUX_GPIO132__FUNC_SPIM0_CSB>,
0606 <PINMUX_GPIO134__FUNC_SPIM0_MO>,
0607 <PINMUX_GPIO133__FUNC_SPIM0_CLK>;
0608 bias-disable;
0609 };
0610
0611 pins-miso {
0612 pinmux = <PINMUX_GPIO135__FUNC_SPIM0_MI>;
0613 bias-pull-down;
0614 };
0615 };
0616
0617 subpmic_default: subpmic-default-pins {
0618 subpmic_pin_irq: pins-subpmic-int-n {
0619 pinmux = <PINMUX_GPIO130__FUNC_GPIO130>;
0620 input-enable;
0621 bias-pull-up;
0622 };
0623 };
0624
0625 touchscreen_pins: touchscreen-default-pins {
0626 pins-int-n {
0627 pinmux = <PINMUX_GPIO92__FUNC_GPIO92>;
0628 input-enable;
0629 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
0630 };
0631 pins-rst {
0632 pinmux = <PINMUX_GPIO56__FUNC_GPIO56>;
0633 output-high;
0634 };
0635 pins-report-sw {
0636 pinmux = <PINMUX_GPIO57__FUNC_GPIO57>;
0637 output-low;
0638 };
0639 };
0640 };
0641
0642 &pmic {
0643 interrupts-extended = <&pio 222 IRQ_TYPE_LEVEL_HIGH>;
0644 };
0645
0646 &spi0 {
0647 status = "okay";
0648
0649 pinctrl-names = "default";
0650 pinctrl-0 = <&spi0_pins>;
0651 mediatek,pad-select = <0>;
0652 };
0653
0654 &u3phy0 {
0655 status = "okay";
0656 };
0657
0658 &u3phy1 {
0659 status = "okay";
0660 };
0661
0662 &u3phy2 {
0663 status = "okay";
0664 };
0665
0666 &u3phy3 {
0667 status = "okay";
0668 };
0669
0670 &uart0 {
0671 status = "okay";
0672 };
0673
0674 &xhci0 {
0675 status = "okay";
0676
0677 vusb33-supply = <&mt6359_vusb_ldo_reg>;
0678 vbus-supply = <&usb_vbus>;
0679 };
0680
0681 &xhci1 {
0682 status = "okay";
0683
0684 vusb33-supply = <&mt6359_vusb_ldo_reg>;
0685 vbus-supply = <&usb_vbus>;
0686 };
0687
0688 &xhci2 {
0689 status = "okay";
0690
0691 vusb33-supply = <&mt6359_vusb_ldo_reg>;
0692 vbus-supply = <&usb_vbus>;
0693 };
0694
0695 &xhci3 {
0696 status = "okay";
0697
0698 /* MT7921's USB Bluetooth has issues with USB2 LPM */
0699 usb2-lpm-disable;
0700 vusb33-supply = <&mt6359_vusb_ldo_reg>;
0701 vbus-supply = <&usb_vbus>;
0702 };