[PATCH v5 1/2] arm: mediatek: add mt8195 SOC support

Marcel Ziswiler marcel.ziswiler at toradex.com
Fri Nov 10 21:24:09 CET 2023


Hi guys

On Fri, 2023-08-04 at 19:04 +0800, Macpaul Lin wrote:
> From: Fabien Parent <fparent at baylibre.com>
> 
> The MediaTek MT8195 is a ARM64-based SoC with a quad-core Cortex-A73 and
> a quad-core Cortex-A53. It is including UART, SPI, USB3.0 device and hosts,
> SD and MMC cards, UFS, PWM, I2C, I2S, S/PDIF, and several LPDDR3
> and LPDDR4 options.
> 
> Signed-off-by: Fabien Parent <fparent at baylibre.com>
> Signed-off-by: Macpaul Lin <macpaul.lin at mediatek.com>
> ---
>  MAINTAINERS                            |   2 +
>  arch/arm/dts/mt8195.dtsi               | 370 +++++++++++++++++++++++++
>  arch/arm/mach-mediatek/Kconfig         |  13 +-
>  arch/arm/mach-mediatek/Makefile        |   1 +
>  arch/arm/mach-mediatek/mt8195/Kconfig  |  13 +
>  arch/arm/mach-mediatek/mt8195/Makefile |   3 +
>  arch/arm/mach-mediatek/mt8195/init.c   |  97 +++++++
>  7 files changed, 498 insertions(+), 1 deletion(-)
>  create mode 100644 arch/arm/dts/mt8195.dtsi
>  create mode 100644 arch/arm/mach-mediatek/mt8195/Kconfig
>  create mode 100644 arch/arm/mach-mediatek/mt8195/Makefile
>  create mode 100644 arch/arm/mach-mediatek/mt8195/init.c
> 
> Changes for v2:
>  - Correct node name to t-phy for u3phy0.
>  - Add platform compatible string "mediatek,mt8195-tphy" to all usb phy nodes.
>  - remove clock nodes that software cannot controlled in phy nodes.
>  - Test and add back "mac" for HOST only xhci nodes.
> 
> Changes for v3:
>  - Revise device node name from "xhciX: xhciX@" to "xhciX: xhci@".
> 
> Changes for v4:
>  - No change.
> 
> Changes for v5:
>  - Fix Copyright year to 2023.
>  - Fix memory map in dram_init() to support 8GB onboard memory.
>  - Add '#if !IS_ENABLED(CONFIG_SYSRESET)' with reset_cpu().
>  - Correct reset_cpu() function prototype.
>  - rebase patchset to v2023-10.rc1
>  - Add missing arch/arm/mach-mediatek/mt8195/Kconfig.

[snip]

I finally got my hands on an EVK and gave this a try. However, I did not get that far. This is with latest
downstream TF-A as I still struggle with upstream there as well. Any ideas?

U-Boot 2024.01-rc1-00056-g5237f2b48bb (Nov 10 2023 - 15:33:34 +0100)

CPU:   MediaTek MT8195
DRAM:  8 GiB
mtu3 usb at 11200000: clks of sts1 are not stable!
mtu3-peripheral ssusb at 11200000: device enable failed -110
mtu3-peripheral ssusb at 11200000: mtu3 hw init failed:-110
board_init: Cannot find USB device
initcall failed at call 00000000ffe46a50 (err=-110)
### ERROR ### Please RESET the board ###

Cheers

Marcel


More information about the U-Boot mailing list