* [PATCH] board: mediatek: add MT8390 EVK board support
@ 2026-01-23 8:37 Julien Stephan
2026-01-29 10:17 ` Mattijs Korpershoek
0 siblings, 1 reply; 4+ messages in thread
From: Julien Stephan @ 2026-01-23 8:37 UTC (permalink / raw)
To: u-boot
Cc: GSS_MTK_Uboot_upstream, Julien Masson, Ryder Lee, Weijie Gao,
Chunfeng Yun, Igor Belwon, Tom Rini, Macpaul Lin,
Mattijs Korpershoek, Peng Fan, Sam Protsenko, David Lechner,
Julien Stephan
From: Julien Masson <jmasson@baylibre.com>
This adds support for the MT8390 EVK board with the following
features enabled/tested: Boot, UART, Watchdog and MMC.
MT8390 is based on MT8188.
Signed-off-by: Julien Masson <jmasson@baylibre.com>
Signed-off-by: Julien Stephan <jstephan@baylibre.com>
---
board/mediatek/mt8390_evk/MAINTAINERS | 5 +++++
board/mediatek/mt8390_evk/Makefile | 3 +++
board/mediatek/mt8390_evk/mt8390_evk.c | 34 ++++++++++++++++++++++++++++++++++
configs/mt8390_evk_defconfig | 27 +++++++++++++++++++++++++++
4 files changed, 69 insertions(+)
diff --git a/board/mediatek/mt8390_evk/MAINTAINERS b/board/mediatek/mt8390_evk/MAINTAINERS
new file mode 100644
index 00000000000..73fc28b096e
--- /dev/null
+++ b/board/mediatek/mt8390_evk/MAINTAINERS
@@ -0,0 +1,5 @@
+MT8390 EVK
+M: Julien Masson <jmasson@baylibre.com>
+S: Maintained
+F: board/mediatek/mt8390_evk/
+F: configs/mt8390_evk_defconfig
diff --git a/board/mediatek/mt8390_evk/Makefile b/board/mediatek/mt8390_evk/Makefile
new file mode 100644
index 00000000000..a26d46838c4
--- /dev/null
+++ b/board/mediatek/mt8390_evk/Makefile
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0
+
+obj-y += mt8390_evk.o
diff --git a/board/mediatek/mt8390_evk/mt8390_evk.c b/board/mediatek/mt8390_evk/mt8390_evk.c
new file mode 100644
index 00000000000..1ca40366a55
--- /dev/null
+++ b/board/mediatek/mt8390_evk/mt8390_evk.c
@@ -0,0 +1,34 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2026 BayLibre SAS
+ * Author: Julien Masson <jmasson@baylibre.com>
+ */
+
+#include <linux/types.h>
+#include <asm/armv8/mmu.h>
+
+int board_init(void)
+{
+ return 0;
+}
+
+static struct mm_region mt8390_evk_mem_map[] = {
+ {
+ /* DDR */
+ .virt = 0x40000000UL,
+ .phys = 0x40000000UL,
+ .size = 0x200000000UL,
+ .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_OUTER_SHARE,
+ }, {
+ .virt = 0x00000000UL,
+ .phys = 0x00000000UL,
+ .size = 0x20000000UL,
+ .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
+ PTE_BLOCK_NON_SHARE |
+ PTE_BLOCK_PXN | PTE_BLOCK_UXN
+ }, {
+ 0,
+ }
+};
+
+struct mm_region *mem_map = mt8390_evk_mem_map;
diff --git a/configs/mt8390_evk_defconfig b/configs/mt8390_evk_defconfig
new file mode 100644
index 00000000000..9bc1d922587
--- /dev/null
+++ b/configs/mt8390_evk_defconfig
@@ -0,0 +1,27 @@
+CONFIG_ARM=y
+CONFIG_SYS_BOARD="mt8390_evk"
+CONFIG_COUNTER_FREQUENCY=13000000
+CONFIG_POSITION_INDEPENDENT=y
+CONFIG_ARCH_MEDIATEK=y
+CONFIG_TEXT_BASE=0x4c000000
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_DEFAULT_DEVICE_TREE="mediatek/mt8390-genio-700-evk"
+CONFIG_TARGET_MT8188=y
+CONFIG_SYS_LOAD_ADDR=0x4c000000
+CONFIG_IDENT_STRING="mt8390-evk"
+CONFIG_CMD_CLK=y
+CONFIG_CMD_GPT=y
+CONFIG_CMD_MMC=y
+CONFIG_CMD_PART=y
+CONFIG_OF_UPSTREAM=y
+CONFIG_CLK=y
+CONFIG_MMC_MTK=y
+CONFIG_PINCTRL=y
+CONFIG_PINCONF=y
+CONFIG_PINCTRL_MT8188=y
+CONFIG_BAUDRATE=921600
+CONFIG_DM_SERIAL=y
+CONFIG_MTK_SERIAL=y
+CONFIG_WDT=y
+CONFIG_WDT_MTK=y
+# CONFIG_RANDOM_UUID is not set
---
base-commit: 64662b99c0ebc56c2773ca32a20aa055d25719f7
change-id: 20260122-add-genio-700-board-5621b428c04e
prerequisite-change-id: 20251203-add-mt8188-pinctrl-support-547d9379974f:v2
prerequisite-patch-id: a8cb24313e56c02b98910f553972a13e8079db30
prerequisite-patch-id: 16094fb012cd9d3ab5e62f81969ba7b4d796af41
Best regards,
--
Julien Stephan <jstephan@baylibre.com>
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] board: mediatek: add MT8390 EVK board support
2026-01-23 8:37 [PATCH] board: mediatek: add MT8390 EVK board support Julien Stephan
@ 2026-01-29 10:17 ` Mattijs Korpershoek
2026-02-02 8:31 ` Julien Stephan
0 siblings, 1 reply; 4+ messages in thread
From: Mattijs Korpershoek @ 2026-01-29 10:17 UTC (permalink / raw)
To: Julien Stephan, u-boot
Cc: GSS_MTK_Uboot_upstream, Julien Masson, Ryder Lee, Weijie Gao,
Chunfeng Yun, Igor Belwon, Tom Rini, Macpaul Lin,
Mattijs Korpershoek, Peng Fan, Sam Protsenko, David Lechner,
Julien Stephan
Hi Julien,
Thank you for the patch.
On Fri, Jan 23, 2026 at 09:37, Julien Stephan <jstephan@baylibre.com> wrote:
> From: Julien Masson <jmasson@baylibre.com>
>
> This adds support for the MT8390 EVK board with the following
> features enabled/tested: Boot, UART, Watchdog and MMC.
>
> MT8390 is based on MT8188.
>
> Signed-off-by: Julien Masson <jmasson@baylibre.com>
> Signed-off-by: Julien Stephan <jstephan@baylibre.com>
> ---
> board/mediatek/mt8390_evk/MAINTAINERS | 5 +++++
> board/mediatek/mt8390_evk/Makefile | 3 +++
> board/mediatek/mt8390_evk/mt8390_evk.c | 34 ++++++++++++++++++++++++++++++++++
> configs/mt8390_evk_defconfig | 27 +++++++++++++++++++++++++++
> 4 files changed, 69 insertions(+)
>
> diff --git a/board/mediatek/mt8390_evk/MAINTAINERS b/board/mediatek/mt8390_evk/MAINTAINERS
> new file mode 100644
> index 00000000000..73fc28b096e
> --- /dev/null
> +++ b/board/mediatek/mt8390_evk/MAINTAINERS
> @@ -0,0 +1,5 @@
> +MT8390 EVK
> +M: Julien Masson <jmasson@baylibre.com>
Since Julien Masson is marked as maintainer here, can we guarantee he
will be doing some testing/reviewing on patches for this particular
board?
If not, maybe find another maintainer.
> +S: Maintained
> +F: board/mediatek/mt8390_evk/
> +F: configs/mt8390_evk_defconfig
Could we add this board to the MediaTek board documentation?
https://docs.u-boot.org/en/latest/board/mediatek/index.html
I know that doc is a bit outdated but it would be nice to improve it and
list this board.
For me, that can be done in a future series/improvement.
Thanks
Mattijs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] board: mediatek: add MT8390 EVK board support
2026-01-29 10:17 ` Mattijs Korpershoek
@ 2026-02-02 8:31 ` Julien Stephan
2026-02-02 9:28 ` Mattijs Korpershoek
0 siblings, 1 reply; 4+ messages in thread
From: Julien Stephan @ 2026-02-02 8:31 UTC (permalink / raw)
To: Mattijs Korpershoek
Cc: u-boot, GSS_MTK_Uboot_upstream, Julien Masson, Ryder Lee,
Weijie Gao, Chunfeng Yun, Igor Belwon, Tom Rini, Macpaul Lin,
Peng Fan, Sam Protsenko, David Lechner
Le jeu. 29 janv. 2026 à 11:17, Mattijs Korpershoek
<mkorpershoek@kernel.org> a écrit :
>
> Hi Julien,
>
> Thank you for the patch.
>
> On Fri, Jan 23, 2026 at 09:37, Julien Stephan <jstephan@baylibre.com> wrote:
>
> > From: Julien Masson <jmasson@baylibre.com>
> >
> > This adds support for the MT8390 EVK board with the following
> > features enabled/tested: Boot, UART, Watchdog and MMC.
> >
> > MT8390 is based on MT8188.
> >
> > Signed-off-by: Julien Masson <jmasson@baylibre.com>
> > Signed-off-by: Julien Stephan <jstephan@baylibre.com>
> > ---
> > board/mediatek/mt8390_evk/MAINTAINERS | 5 +++++
> > board/mediatek/mt8390_evk/Makefile | 3 +++
> > board/mediatek/mt8390_evk/mt8390_evk.c | 34 ++++++++++++++++++++++++++++++++++
> > configs/mt8390_evk_defconfig | 27 +++++++++++++++++++++++++++
> > 4 files changed, 69 insertions(+)
> >
> > diff --git a/board/mediatek/mt8390_evk/MAINTAINERS b/board/mediatek/mt8390_evk/MAINTAINERS
> > new file mode 100644
> > index 00000000000..73fc28b096e
> > --- /dev/null
> > +++ b/board/mediatek/mt8390_evk/MAINTAINERS
> > @@ -0,0 +1,5 @@
> > +MT8390 EVK
> > +M: Julien Masson <jmasson@baylibre.com>
>
> Since Julien Masson is marked as maintainer here, can we guarantee he
> will be doing some testing/reviewing on patches for this particular
> board?
>
> If not, maybe find another maintainer.
>
Hi Mattijs,
I checked with Julien Masson and he wants to be maintainers, but I
also added Macpaul Lin from Mediatek, as co-maintainer.
> > +S: Maintained
> > +F: board/mediatek/mt8390_evk/
> > +F: configs/mt8390_evk_defconfig
>
> Could we add this board to the MediaTek board documentation?
>
> https://docs.u-boot.org/en/latest/board/mediatek/index.html
>
> I know that doc is a bit outdated but it would be nice to improve it and
> list this board.
>
> For me, that can be done in a future series/improvement.
I forwarded the request to Mediatek internal teams, and they will
handle this internally.
With the Lunar new year vacation coming they won't be able to do this
before end of February.
Same for other new coming boards.
Cheers,
Julien
>
> Thanks
> Mattijs
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] board: mediatek: add MT8390 EVK board support
2026-02-02 8:31 ` Julien Stephan
@ 2026-02-02 9:28 ` Mattijs Korpershoek
0 siblings, 0 replies; 4+ messages in thread
From: Mattijs Korpershoek @ 2026-02-02 9:28 UTC (permalink / raw)
To: Julien Stephan, Mattijs Korpershoek
Cc: u-boot, GSS_MTK_Uboot_upstream, Julien Masson, Ryder Lee,
Weijie Gao, Chunfeng Yun, Igor Belwon, Tom Rini, Macpaul Lin,
Peng Fan, Sam Protsenko, David Lechner
On Mon, Feb 02, 2026 at 09:31, Julien Stephan <jstephan@baylibre.com> wrote:
> Le jeu. 29 janv. 2026 à 11:17, Mattijs Korpershoek
> <mkorpershoek@kernel.org> a écrit :
>>
>> Hi Julien,
>>
>> Thank you for the patch.
>>
>> On Fri, Jan 23, 2026 at 09:37, Julien Stephan <jstephan@baylibre.com> wrote:
>>
>> > From: Julien Masson <jmasson@baylibre.com>
>> >
>> > This adds support for the MT8390 EVK board with the following
>> > features enabled/tested: Boot, UART, Watchdog and MMC.
>> >
>> > MT8390 is based on MT8188.
>> >
>> > Signed-off-by: Julien Masson <jmasson@baylibre.com>
>> > Signed-off-by: Julien Stephan <jstephan@baylibre.com>
>> > ---
>> > board/mediatek/mt8390_evk/MAINTAINERS | 5 +++++
>> > board/mediatek/mt8390_evk/Makefile | 3 +++
>> > board/mediatek/mt8390_evk/mt8390_evk.c | 34 ++++++++++++++++++++++++++++++++++
>> > configs/mt8390_evk_defconfig | 27 +++++++++++++++++++++++++++
>> > 4 files changed, 69 insertions(+)
>> >
>> > diff --git a/board/mediatek/mt8390_evk/MAINTAINERS b/board/mediatek/mt8390_evk/MAINTAINERS
>> > new file mode 100644
>> > index 00000000000..73fc28b096e
>> > --- /dev/null
>> > +++ b/board/mediatek/mt8390_evk/MAINTAINERS
>> > @@ -0,0 +1,5 @@
>> > +MT8390 EVK
>> > +M: Julien Masson <jmasson@baylibre.com>
>>
>> Since Julien Masson is marked as maintainer here, can we guarantee he
>> will be doing some testing/reviewing on patches for this particular
>> board?
>>
>> If not, maybe find another maintainer.
>>
>
> Hi Mattijs,
>
> I checked with Julien Masson and he wants to be maintainers, but I
> also added Macpaul Lin from Mediatek, as co-maintainer.
>
>> > +S: Maintained
>> > +F: board/mediatek/mt8390_evk/
>> > +F: configs/mt8390_evk_defconfig
>>
>> Could we add this board to the MediaTek board documentation?
>>
>> https://docs.u-boot.org/en/latest/board/mediatek/index.html
>>
>> I know that doc is a bit outdated but it would be nice to improve it and
>> list this board.
>>
>> For me, that can be done in a future series/improvement.
>
> I forwarded the request to Mediatek internal teams, and they will
> handle this internally.
> With the Lunar new year vacation coming they won't be able to do this
> before end of February.
> Same for other new coming boards.
Ok, thank you. looking forward to see some doc updates !
>
> Cheers,
> Julien
>
>>
>> Thanks
>> Mattijs
>>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-02-02 9:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-23 8:37 [PATCH] board: mediatek: add MT8390 EVK board support Julien Stephan
2026-01-29 10:17 ` Mattijs Korpershoek
2026-02-02 8:31 ` Julien Stephan
2026-02-02 9:28 ` Mattijs Korpershoek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox