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

Macpaul Lin (林智斌) Macpaul.Lin at mediatek.com
Fri Dec 5 11:52:55 CET 2025


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.

>  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>

And please help to do it so when you adding back mt8188.dtsi.

Thanks!
Macpaul Lin



More information about the U-Boot mailing list