From: Macpaul Lin <[email protected]>

Add a devicetree for the MediaTek Genio 360 Evaluation Kit board.

Upstreaming of this board has not even started yet, so we will have to
carry a downstream version of this for some time.

Signed-off-by: Macpaul Lin <[email protected]>
Signed-off-by: David Lechner <[email protected]>
---
 arch/arm/dts/Makefile                         |   1 +
 arch/arm/dts/mt8366-genio-360-evk-common.dtsi | 405 ++++++++++++++++++++++++++
 arch/arm/dts/mt8366-genio-360-evk.dts         |  14 +
 3 files changed, 420 insertions(+)

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index dada5f9eba2..b7d4baedfa0 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -1089,6 +1089,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
        mt7988-rfb.dtb \
        mt7988-sd-rfb.dtb \
        mt8183-pumpkin.dtb \
+       mt8366-genio-360-evk.dtb \
        mt8371-genio-520-evk.dtb \
        mt8371-genio-520-evk-ufs.dtb \
        mt8391-genio-720-evk.dtb \
diff --git a/arch/arm/dts/mt8366-genio-360-evk-common.dtsi 
b/arch/arm/dts/mt8366-genio-360-evk-common.dtsi
new file mode 100644
index 00000000000..13055e4740c
--- /dev/null
+++ b/arch/arm/dts/mt8366-genio-360-evk-common.dtsi
@@ -0,0 +1,405 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (C) 2026 MediaTek Inc.
+ * Author: Macpaul Lin <[email protected]>
+ */
+
+#include "mt8366.dtsi"
+
+/ {
+       memory@40000000 {
+               /* 4GB */
+               reg = <0 0x40000000 0x1 0x00000000>;
+       };
+
+       firmware: firmware {
+               optee {
+                       compatible = "linaro,optee-tz";
+                       method = "smc";
+               };
+
+               psci: psci {
+                       compatible = "arm,psci-1.0";
+                       method = "smc";
+               };
+       };
+
+       reserved-memory {
+               #address-cells = <2>;
+               #size-cells = <2>;
+               ranges;
+
+               /* 2 MiB reserved for ARM Trusted Firmware (BL31) */
+               bl31_secmon_reserved: secmon@54600000 {
+                       no-map;
+                       reg = <0 0x54600000 0x0 0x200000>;
+               };
+
+               /* 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>;
+               };
+
+               dsi_reserved: dsi@60000000 {
+                       reg = <0 0x60000000 0 0x02000000>;
+                       no-map;
+               };
+       };
+
+       chosen {
+               stdout-path = &uart0;
+       };
+
+       reg_1p8v: regulator-1p8v {
+               compatible = "regulator-fixed";
+               regulator-name = "fixed-1.8V";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+               regulator-boot-on;
+               regulator-always-on;
+       };
+
+       reg_3p3v: regulator-3p3v {
+               compatible = "regulator-fixed";
+               regulator-name = "fixed-3.3V";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-boot-on;
+               regulator-always-on;
+       };
+
+       usb_p0_vbus: regulator-usb-p0 {
+               compatible = "regulator-fixed";
+               regulator-name = "usb_p0_vbus";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               gpio = <&gpio 53 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
+
+       usb_p1_vbus: regulator-usb-p1-vbus {
+               compatible = "regulator-fixed";
+               regulator-name = "usb_p1_vbus";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               gpio = <&gpio 55 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
+};
+
+&watchdog {
+       status = "okay";
+};
+
+&uart0 {
+       status = "okay";
+};
+
+&spi4 {
+       status = "okay";
+       pinctrl-0 = <&spi4_pins>;
+       pinctrl-names = "default";
+       enhance_timing;
+       dma_ext;
+       ipm_design;
+       tick_dly = <0>;
+       sample_sel = <0>;
+       spi-max-frequency = <10000000>;
+};
+
+&i2c0 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c0_pins>;
+};
+
+&i2c1 {
+       status = "disabled";
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c1_pins>;
+};
+
+&i2c2 {
+       status = "disabled";
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c2_pins>;
+};
+
+&i2c3 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c3_pins>;
+};
+
+&i2c4 {
+       status = "disabled";
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c4_pins>;
+};
+
+&i2c5 {
+       status = "disabled";
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c5_pins>;
+};
+
+&i2c6 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c6_pins>;
+};
+
+&i2c7 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c7_pins>;
+};
+
+&i2c8 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c8_pins>;
+};
+
+&i2c9 {
+       status = "disabled";
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c9_pins>;
+};
+
+&pio {
+       usb0_default_pins: usb0-default-pins {
+               pins-vbus-valid {
+                       pinmux = <PINMUX_GPIO54__FUNC_VBUSVALID>;
+               };
+       };
+
+       spi4_pins: spi4-pins {
+               pins-spi-bus {
+                       pinmux = <PINMUX_GPIO32__FUNC_SPIM4_B_CSB>,
+                                <PINMUX_GPIO33__FUNC_SPIM4_B_CLK>,
+                                <PINMUX_GPIO34__FUNC_SPIM4_B_MO>,
+                                <PINMUX_GPIO35__FUNC_SPIM4_B_MI>;
+                       drive-strength = <MTK_DRIVE_6mA>;
+               };
+       };
+
+       i2c0_pins: i2c0-default {
+               pins-bus {
+                       pinmux = <PINMUX_GPIO98__FUNC_SCL0>,
+                                <PINMUX_GPIO99__FUNC_SDA0>;
+                       bias-pull-up = <MTK_PULL_SET_RSEL_111>;
+               };
+       };
+
+       i2c1_pins: i2c1-default {
+               pins-bus {
+                       pinmux = <PINMUX_GPIO100__FUNC_SCL1>,
+                                <PINMUX_GPIO101__FUNC_SDA1>;
+                       bias-pull-up = <MTK_PULL_SET_RSEL_111>;
+               };
+       };
+
+       i2c2_pins: i2c2-default {
+               pins-bus {
+                       pinmux = <PINMUX_GPIO102__FUNC_SCL2>,
+                                <PINMUX_GPIO103__FUNC_SDA2>;
+                       bias-pull-up = <MTK_PULL_SET_RSEL_111>;
+               };
+       };
+
+       i2c3_pins: i2c3-default {
+               pins-bus {
+                       pinmux = <PINMUX_GPIO104__FUNC_SCL3>,
+                                <PINMUX_GPIO105__FUNC_SDA3>;
+                       bias-pull-up = <MTK_PULL_SET_RSEL_111>;
+               };
+       };
+
+       i2c4_pins: i2c4-default {
+               pins-bus {
+                       pinmux = <PINMUX_GPIO106__FUNC_SCL4>,
+                                <PINMUX_GPIO107__FUNC_SDA4>;
+                       bias-pull-up = <MTK_PULL_SET_RSEL_111>;
+               };
+       };
+
+       i2c5_pins: i2c5-default {
+               pins-bus {
+                       pinmux = <PINMUX_GPIO108__FUNC_SCL5>,
+                                <PINMUX_GPIO109__FUNC_SDA5>;
+                       bias-pull-up = <MTK_PULL_SET_RSEL_111>;
+               };
+       };
+
+       i2c6_pins: i2c6-default {
+               pins-bus {
+                       pinmux = <PINMUX_GPIO110__FUNC_SCL6>,
+                                <PINMUX_GPIO111__FUNC_SDA6>;
+                       bias-pull-up = <MTK_PULL_SET_RSEL_111>;
+               };
+       };
+
+       i2c7_pins: i2c7-default {
+               pins-bus {
+                       pinmux = <PINMUX_GPIO112__FUNC_SCL7>,
+                                <PINMUX_GPIO113__FUNC_SDA7>;
+                       bias-pull-up = <MTK_PULL_SET_RSEL_111>;
+               };
+       };
+
+       i2c8_pins: i2c8-default {
+               pins-bus {
+                       pinmux = <PINMUX_GPIO114__FUNC_SCL8>,
+                                <PINMUX_GPIO115__FUNC_SDA8>;
+                       bias-pull-up = <MTK_PULL_SET_RSEL_111>;
+               };
+       };
+
+       i2c9_pins: i2c9-default {
+               pins-bus {
+                       pinmux = <PINMUX_GPIO117__FUNC_SCL9>,
+                                <PINMUX_GPIO116__FUNC_SDA9>;
+                       bias-pull-up = <MTK_PULL_SET_RSEL_111>;
+               };
+       };
+
+       eth_default: eth-default {
+               txd-pins {
+                       pinmux = <PINMUX_GPIO12__FUNC_GBE_TXD3>,
+                                <PINMUX_GPIO13__FUNC_GBE_TXD2>,
+                                <PINMUX_GPIO14__FUNC_GBE_TXD1>,
+                                <PINMUX_GPIO15__FUNC_GBE_TXD0>;
+                       drive-strength = <MTK_DRIVE_8mA>;
+               };
+
+               cc-pins {
+                       pinmux = <PINMUX_GPIO20__FUNC_GBE_TXC>,
+                                <PINMUX_GPIO23__FUNC_GBE_TXEN>,
+                                <PINMUX_GPIO22__FUNC_GBE_RXDV>,
+                                <PINMUX_GPIO21__FUNC_GBE_RXC>;
+                       drive-strength = <MTK_DRIVE_8mA>;
+               };
+
+               rxd-pins {
+                       pinmux = <PINMUX_GPIO16__FUNC_GBE_RXD3>,
+                                <PINMUX_GPIO17__FUNC_GBE_RXD2>,
+                                <PINMUX_GPIO18__FUNC_GBE_RXD1>,
+                                <PINMUX_GPIO19__FUNC_GBE_RXD0>;
+                       drive-strength = <MTK_DRIVE_8mA>;
+               };
+
+               mdio-pins {
+                       pinmux = <PINMUX_GPIO24__FUNC_GBE_MDC>,
+                                <PINMUX_GPIO25__FUNC_GBE_MDIO>;
+                       drive-strength = <MTK_DRIVE_8mA>;
+                       input-enable;
+               };
+
+               power-pins {
+                       pinmux = <PINMUX_GPIO27__FUNC_GPIO27>,
+                                <PINMUX_GPIO26__FUNC_GPIO26>;
+                       output-high;
+               };
+       };
+
+       eth_sleep: eth-sleep {
+               txd-pins {
+                       pinmux = <PINMUX_GPIO12__FUNC_GPIO12>,
+                                <PINMUX_GPIO13__FUNC_GPIO13>,
+                                <PINMUX_GPIO14__FUNC_GPIO14>,
+                                <PINMUX_GPIO15__FUNC_GPIO15>;
+               };
+
+               cc-pins {
+                       pinmux = <PINMUX_GPIO20__FUNC_GPIO20>,
+                                <PINMUX_GPIO23__FUNC_GPIO23>,
+                                <PINMUX_GPIO22__FUNC_GPIO22>,
+                                <PINMUX_GPIO21__FUNC_GPIO21>;
+               };
+
+               rxd-pins {
+                       pinmux = <PINMUX_GPIO16__FUNC_GPIO16>,
+                                <PINMUX_GPIO17__FUNC_GPIO17>,
+                                <PINMUX_GPIO18__FUNC_GPIO18>,
+                                <PINMUX_GPIO19__FUNC_GPIO19>;
+               };
+
+               mdio-pins {
+                       pinmux = <PINMUX_GPIO24__FUNC_GPIO24>,
+                                <PINMUX_GPIO25__FUNC_GPIO25>;
+                       input-disable;
+                       bias-disable;
+               };
+       };
+};
+
+&usb {
+       status = "okay";
+};
+
+&ssusb {
+       pinctrl-names = "default";
+       pinctrl-0 = <&usb0_default_pins>;
+       maximum-speed = "high-speed";
+       dr_mode = "peripheral";
+       status = "okay";
+};
+
+&u3phy0 {
+       status = "okay";
+};
+
+&xhci1 {
+       vbus-supply = <&usb_p1_vbus>;
+       status = "okay";
+};
+
+&u2phy1 {
+       status = "okay";
+};
+
+&mmc0 {
+       bus-width = <8>;
+       max-frequency = <200000000>;
+       cap-mmc-highspeed;
+       mmc-hs200-1_8v;
+       mmc-hs400-1_8v;
+       hs400-ds-delay = <0x10100>;
+       cap-mmc-hw-reset;
+       vmmc-supply = <&reg_3p3v>;
+       vqmmc-supply = <&reg_1p8v>;
+       non-removable;
+       status = "okay";
+};
+
+&eth {
+       phy-mode = "rgmii-rxid";
+       phy-handle = <&phy>;
+       snps,reset = <&pio 28 0>;
+       snps,reset-delays-us = <0 10000 10000>;
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&eth_default>;
+       pinctrl-1 = <&eth_sleep>;
+       status = "okay";
+
+       mdio {
+               compatible = "snps,dwmac-mdio";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               phy: phy@0 {
+                       compatible = "ethernet-phy-idc0ff.0421";
+                       reg = <0>;
+               };
+       };
+};
diff --git a/arch/arm/dts/mt8366-genio-360-evk.dts 
b/arch/arm/dts/mt8366-genio-360-evk.dts
new file mode 100644
index 00000000000..1bf94e9512c
--- /dev/null
+++ b/arch/arm/dts/mt8366-genio-360-evk.dts
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (C) 2026 MediaTek Inc.
+ * Author: Macpaul Lin <[email protected]>
+ */
+
+/dts-v1/;
+
+#include "mt8366-genio-360-evk-common.dtsi"
+
+/ {
+       model = "MediaTek Genio-360 EVK";
+       compatible = "mediatek,genio-360-evk", "mediatek,mt8366";
+};

-- 
2.43.0

Reply via email to