// SPDX-License-Identifier: (GPL-2.0 OR MIT) /* * Copyright (C) 2023 MediaTek Inc. * Author: Chris Chen * Pablo Sun * Macpaul Lin */ /dts-v1/; #include "mt8188.dtsi" #include "mt6359.dtsi" #include #include #include #include #include #include #include / { model = "MediaTek Genio-700 EVK"; compatible = "mediatek,mt8390-evk", "mediatek,mt8390", "mediatek,mt8188"; aliases { serial0 = &uart0; }; chosen { stdout-path = "serial0:921600n8"; }; firmware { optee { compatible = "linaro,optee-tz"; method = "smc"; }; }; memory@40000000 { device_type = "memory"; reg = <0 0x40000000 0x2 0x00000000>; }; reserved-memory { #address-cells = <2>; #size-cells = <2>; ranges; /* * 12 MiB reserved for OP-TEE (BL32) * +-----------------------+ 0x43e0_0000 * | SHMEM 2MiB | * +-----------------------+ 0x43c0_0000 * | | TA_RAM 8MiB | * + TZDRAM +--------------+ 0x4340_0000 * | | TEE_RAM 2MiB | * +-----------------------+ 0x4320_0000 */ optee_reserved: optee@43200000 { no-map; reg = <0 0x43200000 0 0x00c00000>; }; scp_mem: memory@50000000 { compatible = "shared-dma-pool"; reg = <0 0x50000000 0 0x2900000>; no-map; }; /* 2 MiB reserved for ARM Trusted Firmware (BL31) */ bl31_secmon_reserved: memory@54600000 { no-map; reg = <0 0x54600000 0x0 0x200000>; }; apu_mem: memory@55000000 { compatible = "shared-dma-pool"; reg = <0 0x55000000 0 0x1400000>; /* 20 MB */ }; vpu_mem: memory@57000000 { compatible = "shared-dma-pool"; reg = <0 0x57000000 0 0x1400000>; /* 20 MB */ }; }; common_fixed_5v: regulator-0 { compatible = "regulator-fixed"; regulator-name = "5v_en"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; gpio = <&pio 10 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-always-on; }; edp_panel_fixed_3v3: regulator-1 { compatible = "regulator-fixed"; regulator-name = "edp_panel_3v3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; enable-active-high; gpio = <&pio 15 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&edp_panel_3v3_en_pins>; }; gpio_fixed_3v3: regulator-2 { compatible = "regulator-fixed"; regulator-name = "gpio_3v3_en"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; gpio = <&pio 9 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-always-on; }; sdio_fixed_1v8: regulator-3 { compatible = "regulator-fixed"; regulator-name = "sdio_io"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; enable-active-high; regulator-always-on; }; sdio_fixed_3v3: regulator-4 { compatible = "regulator-fixed"; regulator-name = "sdio_card"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; gpio = <&pio 74 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-always-on; }; touch0_fixed_3v3: regulator-5 { compatible = "regulator-fixed"; regulator-name = "touch_3v3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; gpio = <&pio 119 GPIO_ACTIVE_HIGH>; enable-active-high; }; usb_hub_fixed_3v3: regulator-6 { compatible = "regulator-fixed"; regulator-name = "usb_hub_3v3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; gpio = <&pio 112 GPIO_ACTIVE_HIGH>; /* HUB_3V3_EN */ startup-delay-us = <10000>; enable-active-high; }; usb_hub_reset_1v8: regulator-7 { compatible = "regulator-fixed"; regulator-name = "usb_hub_reset"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; gpio = <&pio 7 GPIO_ACTIVE_HIGH>; /* HUB_RESET */ vin-supply = <&usb_hub_fixed_3v3>; }; usb_p0_vbus: regulator-8 { compatible = "regulator-fixed"; regulator-name = "usb_p0_vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; gpio = <&pio 84 GPIO_ACTIVE_HIGH>; enable-active-high; }; usb_p1_vbus: regulator-9 { compatible = "regulator-fixed"; regulator-name = "usb_p1_vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; gpio = <&pio 87 GPIO_ACTIVE_HIGH>; enable-active-high; }; usb_p2_vbus: regulator-10 { compatible = "regulator-fixed"; regulator-name = "usb_p2_vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; enable-active-high; }; }; &i2c0 { pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; clock-frequency = <400000>; status = "okay"; touchscreen@5d { compatible = "goodix,gt9271"; reg = <0x5d>; interrupt-parent = <&pio>; interrupts-extended = <&pio 6 IRQ_TYPE_EDGE_RISING>; irq-gpios = <&pio 6 GPIO_ACTIVE_HIGH>; reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>; AVDD28-supply = <&touch0_fixed_3v3>; VDDIO-supply = <&mt6359_vio18_ldo_reg>; pinctrl-names = "default"; pinctrl-0 = <&touch_pins>; }; }; &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins>; clock-frequency = <400000>; status = "okay"; }; &i2c2 { pinctrl-names = "default"; pinctrl-0 = <&i2c2_pins>; clock-frequency = <400000>; status = "okay"; }; &i2c3 { pinctrl-names = "default"; pinctrl-0 = <&i2c3_pins>; clock-frequency = <400000>; status = "okay"; }; &i2c4 { pinctrl-names = "default"; pinctrl-0 = <&i2c4_pins>; pinctrl-1 = <&rt1715_int_pins>; clock-frequency = <1000000>; status = "okay"; }; &i2c5 { pinctrl-names = "default"; pinctrl-0 = <&i2c5_pins>; clock-frequency = <400000>; status = "okay"; }; &i2c6 { pinctrl-names = "default"; pinctrl-0 = <&i2c6_pins>; clock-frequency = <400000>; status = "okay"; }; &mmc0 { status = "okay"; pinctrl-names = "default", "state_uhs"; pinctrl-0 = <&mmc0_default_pins>; pinctrl-1 = <&mmc0_uhs_pins>; bus-width = <8>; max-frequency = <200000000>; cap-mmc-highspeed; mmc-hs200-1_8v; mmc-hs400-1_8v; supports-cqe; cap-mmc-hw-reset; no-sdio; no-sd; hs400-ds-delay = <0x1481b>; vmmc-supply = <&mt6359_vemc_1_ldo_reg>; vqmmc-supply = <&mt6359_vufs_ldo_reg>; non-removable; }; &mmc1 { status = "okay"; pinctrl-names = "default", "state_uhs"; pinctrl-0 = <&mmc1_default_pins>; pinctrl-1 = <&mmc1_uhs_pins>; bus-width = <4>; max-frequency = <200000000>; cap-sd-highspeed; sd-uhs-sdr50; sd-uhs-sdr104; no-mmc; no-sdio; cd-gpios = <&pio 2 GPIO_ACTIVE_LOW>; vmmc-supply = <&mt6359_vpa_buck_reg>; vqmmc-supply = <&mt6359_vsim1_ldo_reg>; }; &mt6359_vbbck_ldo_reg { regulator-always-on; }; &mt6359_vcn18_ldo_reg { regulator-always-on; }; &mt6359_vcn33_2_bt_ldo_reg { regulator-always-on; }; &mt6359_vcore_buck_reg { regulator-always-on; }; &mt6359_vgpu11_buck_reg { regulator-always-on; }; &mt6359_vpa_buck_reg { regulator-max-microvolt = <3100000>; }; &mt6359_vpu_buck_reg { regulator-always-on; }; &mt6359_vrf12_ldo_reg { regulator-always-on; }; &mt6359_vsim1_ldo_reg { regulator-enable-ramp-delay = <480>; }; &mt6359_vufs_ldo_reg { regulator-always-on; }; &mt6359codec { mediatek,mic-type-0 = <1>; /* ACC */ mediatek,mic-type-1 = <3>; /* DCC */ }; &pio { audio_default_pins: audio-default-pins { pins-cmd-dat { pinmux = , , , , , , , , , , , , , , , , , , , , , ; }; }; dptx_pins: dptx-pins { pins-cmd-dat { pinmux = ; bias-pull-up; }; }; edp_panel_3v3_en_pins: edp-panel-3v3-en-pins { pins1 { pinmux = ; output-high; }; }; eth_default_pins: eth-default-pins { pins-cc { pinmux = , , , ; drive-strength = <8>; }; pins-mdio { pinmux = , ; drive-strength = <8>; input-enable; }; pins-power { pinmux = , ; output-high; }; pins-rxd { pinmux = , , , ; drive-strength = <8>; }; pins-txd { pinmux = , , , ; drive-strength = <8>; }; }; eth_sleep_pins: eth-sleep-pins { pins-cc { pinmux = , , , ; }; pins-mdio { pinmux = , ; input-disable; bias-disable; }; pins-rxd { pinmux = , , , ; }; pins-txd { pinmux = , , , ; }; }; i2c0_pins: i2c0-pins { pins { pinmux = , ; bias-pull-up = ; drive-strength-microamp = <1000>; }; }; i2c1_pins: i2c1-pins { pins { pinmux = , ; bias-pull-up = ; drive-strength-microamp = <1000>; }; }; i2c2_pins: i2c2-pins { pins { pinmux = , ; bias-pull-up = ; drive-strength-microamp = <1000>; }; }; i2c3_pins: i2c3-pins { pins { pinmux = , ; bias-pull-up = ; drive-strength-microamp = <1000>; }; }; i2c4_pins: i2c4-pins { pins { pinmux = , ; bias-pull-up = ; drive-strength-microamp = <1000>; }; }; i2c5_pins: i2c5-pins { pins { pinmux = , ; bias-pull-up = ; drive-strength-microamp = <1000>; }; }; i2c6_pins: i2c6-pins { pins { pinmux = , ; bias-pull-up = ; drive-strength-microamp = <1000>; }; }; gpio_key_pins: gpio-key-pins { pins { pinmux = , , ; }; }; mmc0_default_pins: mmc0-default-pins { pins-clk { pinmux = ; drive-strength = <6>; bias-pull-down = ; }; pins-cmd-dat { pinmux = , , , , , , , , ; input-enable; drive-strength = <6>; bias-pull-up = ; }; pins-rst { pinmux = ; drive-strength = <6>; bias-pull-up = ; }; }; mmc0_uhs_pins: mmc0-uhs-pins { pins-clk { pinmux = ; drive-strength = <8>; bias-pull-down = ; }; pins-cmd-dat { pinmux = , , , , , , , , ; input-enable; drive-strength = <8>; bias-pull-up = ; }; pins-ds { pinmux = ; drive-strength = <8>; bias-pull-down = ; }; pins-rst { pinmux = ; drive-strength = <8>; bias-pull-up = ; }; }; mmc1_default_pins: mmc1-default-pins { pins-clk { pinmux = ; drive-strength = <6>; bias-pull-down = ; }; pins-cmd-dat { pinmux = , , , , ; input-enable; drive-strength = <6>; bias-pull-up = ; }; pins-insert { pinmux = ; bias-pull-up; }; }; mmc1_uhs_pins: mmc1-uhs-pins { pins-clk { pinmux = ; drive-strength = <6>; bias-pull-down = ; }; pins-cmd-dat { pinmux = , , , , ; input-enable; drive-strength = <6>; bias-pull-up = ; }; }; mmc2_default_pins: mmc2-default-pins { pins-clk { pinmux = ; drive-strength = <4>; bias-pull-down = ; }; pins-cmd-dat { pinmux = , , , , ; input-enable; drive-strength = <6>; bias-pull-up = ; }; pins-pcm { pinmux = ; }; }; mmc2_uhs_pins: mmc2-uhs-pins { pins-clk { pinmux = ; drive-strength = <4>; bias-pull-down = ; }; pins-cmd-dat { pinmux = , , , , ; input-enable; drive-strength = <6>; bias-pull-up = ; }; }; mmc2_eint_pins: mmc2-eint-pins { pins-dat1 { pinmux = ; input-enable; bias-pull-up = ; }; }; mmc2_dat1_pins: mmc2-dat1-pins { pins-dat1 { pinmux = ; input-enable; drive-strength = <6>; bias-pull-up = ; }; }; panel_default_pins: panel-default-pins { pins-dcdc { pinmux = ; output-low; }; pins-en { pinmux = ; output-low; }; pins-rst { pinmux = ; output-high; }; }; rt1715_int_pins: rt1715-int-pins { pins_cmd0_dat { pinmux = ; bias-pull-up; input-enable; }; }; spi0_pins: spi0-pins { pins-spi { pinmux = , , , ; bias-disable; }; }; spi1_pins: spi1-pins { pins-spi { pinmux = , , , ; bias-disable; }; }; spi2_pins: spi2-pins { pins-spi { pinmux = , , , ; bias-disable; }; }; touch_pins: touch-pins { pins-irq { pinmux = ; input-enable; bias-disable; }; pins-reset { pinmux = ; output-high; }; }; uart0_pins: uart0-pins { pins { pinmux = , ; bias-pull-up; }; }; uart1_pins: uart1-pins { pins { pinmux = , ; bias-pull-up; }; }; uart2_pins: uart2-pins { pins { pinmux = , ; bias-pull-up; }; }; usb_default_pins: usb-default-pins { pins-iddig { pinmux = ; input-enable; bias-pull-up; }; pins-valid { pinmux = ; input-enable; }; pins-vbus { pinmux = ; output-high; }; }; usb1_default_pins: usb1-default-pins { pins-valid { pinmux = ; input-enable; }; pins-usb-hub-3v3-en { pinmux = ; output-high; }; }; wifi_pwrseq_pins: wifi-pwrseq-pins { pins-wifi-enable { pinmux = ; output-low; }; }; }; &pmic { interrupt-parent = <&pio>; interrupts = <222 IRQ_TYPE_LEVEL_HIGH>; }; &scp { memory-region = <&scp_mem>; status = "okay"; }; &uart0 { pinctrl-0 = <&uart0_pins>; pinctrl-names = "default"; status = "okay"; }; &uart1 { pinctrl-0 = <&uart1_pins>; pinctrl-names = "default"; status = "okay"; }; &uart2 { pinctrl-0 = <&uart2_pins>; pinctrl-names = "default"; status = "okay"; }; &spi2 { pinctrl-0 = <&spi2_pins>; pinctrl-names = "default"; mediatek,pad-select = <0>; #address-cells = <1>; #size-cells = <0>; status = "okay"; }; &u3phy0 { status = "okay"; }; &u3phy1 { status = "okay"; }; &u3phy2 { status = "okay"; }; &xhci0 { status = "okay"; vusb33-supply = <&mt6359_vusb_ldo_reg>; }; &xhci1 { status = "okay"; vusb33-supply = <&mt6359_vusb_ldo_reg>; vbus-supply = <&usb_hub_reset_1v8>; }; &xhci2 { status = "okay"; vusb33-supply = <&mt6359_vusb_ldo_reg>; };