[PATCH 1/2] arm: mediatek: add support for MediaTek MT8188 SoC

Julien Stephan jstephan at baylibre.com
Tue Dec 9 10:24:05 CET 2025


Le ven. 5 déc. 2025 à 11:53, Macpaul Lin (林智斌)
<Macpaul.Lin at mediatek.com> a écrit :
>
> On Wed, 2025-12-03 at 10:31 +0100, Julien Stephan wrote:
> >
> > External email : Please do not click links or open attachments until
> > you have verified the sender or the content.
> >
> >
> > From: Julien Masson <jmasson at baylibre.com>
> >
> > This adds basic support for MediaTek MT8188 SoC.
> >
> > Add watchdog support by adding upstream compatible string.
> >
> > Add tphy support by adding "mediatek,generic-tphy-v2" compatible
> > string
> > in arch/arm/dts/mt8188-u-boot.dtsi
> >
> > Signed-off-by: Julien Masson <jmasson at baylibre.com>
> > Signed-off-by: Julien Stephan <jstephan at baylibre.com>
> > ---
> >  MAINTAINERS                            |  1 +
> >  arch/arm/dts/mt8188-u-boot.dtsi        | 10 +++++
>
> Where is mt8188.dtsi?
> Would you please to keep the mt8188.dtsi
> and then create the seperate mt8188-u-boot.dtsi?
> Please refer to other platforms like mt7622 or mt7982, etc.
>

Hi Macpaul,

mt8188.dtsi is located in  dts/upstream/src/arm64/mediatek/mt8188.dtsi
mt8188-u-boot.dtsi is applied on top of this device tree.
If I am correct new submissions should use the Linux Kernel upstream
dts located in dts/upstream (config OF_UPSTREAM).
I think other platforms like mt7622 or mt7982 needs to be switched to
config OF_UPSTREAM.

> >  arch/arm/mach-mediatek/Kconfig         | 11 +++++-
> >  arch/arm/mach-mediatek/Makefile        |  1 +
> >  arch/arm/mach-mediatek/mt8188/Makefile |  3 ++
> >  arch/arm/mach-mediatek/mt8188/init.c   | 69
> > ++++++++++++++++++++++++++++++++++
> >  drivers/watchdog/mtk_wdt.c             |  1 +
> >  7 files changed, 95 insertions(+), 1 deletion(-)
> >
> > diff --git a/MAINTAINERS b/MAINTAINERS
> > index
> > b43dae882b3ea33c2cd745bd3759e3f4d97abc80..5b52d2fe17506d2659be9016a7c
> > a639062332ae9 100644
> > --- a/MAINTAINERS
> > +++ b/MAINTAINERS
> > @@ -415,6 +415,7 @@ M:  Chunfeng Yun <chunfeng.yun at mediatek.com>
> >  M:     Igor Belwon <igor.belwon at mentallysanemainliners.org>
> >  R:     GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream at mediatek.com>
> >  S:     Maintained
> > +F:     arch/arm/dts/mt*
> >  F:     arch/arm/mach-mediatek/
> >  F:     arch/arm/include/asm/arch-mediatek/
> >  F:     board/mediatek/
> >
> >
> > [snip]
>
> Thanks for helping upstream these SOC to u-boot upstream.
> However, I've found it seems lots of formatting issues (errors
> and warnings) in coding style when I ran checkpatch through
> these patches.
>
> Please help to fix them as could as possible.
>
> > diff --git a/arch/arm/dts/mt8188-u-boot.dtsi b/arch/arm/dts/mt8188-u-
> > boot.dtsi
> > new file mode 100644
> > index
> > 0000000000000000000000000000000000000000..6d1b2ab82da1c95a49b8a693eb0
> > f854ab913a26b
> > --- /dev/null
> > +++ b/arch/arm/dts/mt8188-u-boot.dtsi
>
> [snip]
>
>
> > diff --git a/arch/arm/mach-mediatek/mt8188/init.c b/arch/arm/mach-
> > mediatek/mt8188/init.c
> > new file mode 100644
> > index
> > 0000000000000000000000000000000000000000..3389c03b06006e8130b4ce448d5
> > dcfb8f103c28f
> > --- /dev/null
> > +++ b/arch/arm/mach-mediatek/mt8188/init.c
> > @@ -0,0 +1,69 @@
> > +// SPDX-License-Identifier: GPL-2.0
> > +/*
> > + * Copyright (C) 2025 MediaTek Inc.
> > + * Copyright (C) 2025 BayLibre, SAS
> > + * Author: Julien Masson <jmasson at baylibre.com>
> > + */
>
>
> Would you please help to keep the origin author here together with you?
> Since this file should come from
>
>
> https://gitlab.com/mediatek/aiot/bsp/u-boot/-/blob/mtk-v2022.10/arch/arm/mach-mediatek/mt8188/init.c?ref_type=heads
> Author: Chris-QJ Chen <chris-qj.chen at mediatek.com>
>

you are right, I forgot to add  back Chris-QJ Chen, I'll do it, thank
you for the reminder!

Cheers
Julien Stephan

> And please help to do it so when you adding back mt8188.dtsi.
>
> Thanks!
> Macpaul Lin
>
>
> ************* MEDIATEK Confidentiality Notice ********************
> The information contained in this e-mail message (including any
> attachments) may be confidential, proprietary, privileged, or otherwise
> exempt from disclosure under applicable laws. It is intended to be
> conveyed only to the designated recipient(s). Any use, dissemination,
> distribution, printing, retaining or copying of this e-mail (including its
> attachments) by unintended recipient(s) is strictly prohibited and may
> be unlawful. If you are not an intended recipient of this e-mail, or believe
> that you have received this e-mail in error, please notify the sender
> immediately (by replying to this e-mail), delete any and all copies of
> this e-mail (including any attachments) from your system, and do not
> disclose the content of this e-mail to any other person. Thank you!


More information about the U-Boot mailing list