Introduce Metanoia MT2824 SoC support
v2 cover Introduce Metanoia MT2824 SoC support
This series add support for the Metanoia MT2824 SoC. The MT2824 is a highly integrated 5G System-on-Chip aimed at O‑RAN Radio Units and small cells. This SoC is used in conjunction with two MT3812 5G transceivers to form the MT5824 reference design[1].
The MT2824 features:
* CPU: Two AndesCore AX45MP RISC-V 64 cores
* DSP/PHY: Dedicated DSP cores and digital front-end for PHY processing
* Memory: LPDDR4 support with inline ECC
* Ethernet: Dual 10G/25G SerDes
* SPI: One Quad-SPI and 8 SPI controllers
* 3 I2C controllers
* SD/MMC controller
* 3 UARTs
* Hardware watchdog
* 32 GPIOs
* USB host controller
[1]: https://metanoia-comm.com/products/5g/mt5824/
---
Changes in v2:
- Fix the SoC name (MT2824) and clarify the reference design name (MT5824)
- Link to v1: https://patch.msgid.link/[email protected]
---
Benoît Monin (2):
platform: generic: Add Metanoia MT2824 initial support
lib: utils/reset: Add Metanoia MT2824 system reset driver
docs/platform/generic.md | 2 + docs/platform/metanoia-mt2824.md | 147 ++++++++++++++++++++++++++++ lib/utils/reset/Kconfig | 4 + lib/utils/reset/fdt_reset_metanoia.c | 72 ++++++++++++++ lib/utils/reset/objects.mk | 3 + platform/generic/Kconfig | 7 ++ platform/generic/configs/defconfig | 2 + platform/generic/metanoia/mt2824/mt2824.c | 31 ++++++ platform/generic/metanoia/mt2824/objects.mk | 10 ++ 9 files changed, 278 insertions(+)
---
base-commit: a8be5e9478be08f09a720f7013ec30d6e2bd9fcc
change-id: 20260525-mt5824-5790818fb75f
Best regards,
Signature · 9 lines
Benoît Monin, Bootlin Embedded Linux and Kernel engineering https://bootlin.com -- opensbi mailing list [email protected] http://lists.infradead.org/mailman/listinfo/opensbi
PATCH v2 1/2 platform: generic: Add Metanoia MT2824 initial support
Add the Metanoia MT2824 as a generic platform. This SoC contains two AX45MP cores from Andes Technology and uses Andes PMU and vendor-specific extensions.
--- docs/platform/generic.md | 2 + docs/platform/metanoia-mt2824.md | 147 ++++++++++++++++++++++++++++ platform/generic/Kconfig | 7 ++ platform/generic/configs/defconfig | 1 + platform/generic/metanoia/mt2824/mt2824.c | 31 ++++++ platform/generic/metanoia/mt2824/objects.mk | 10 ++ 6 files changed, 198 insertions(+)
docs/platform/generic.md +2 -0
@@ -50,6 +50,7 @@ RISC-V Platforms Using Generic Platform * **Tenstorrent Atlantis Platform** (*[tt-atlantis.md]*) * **OpenPiton FPGA SoC** (*[fpga-openpiton.md]*) * **Ariane FPGA SoC** (*[fpga-ariane.md]*) +* **Metanoia MT2824 SoC** (*[metanoia-mt2824.md]*) [andes-ae350.md]: andes-ae350.md [qemu_virt.md]: qemu_virt.md
@@ -61,3 +62,4 @@ RISC-V Platforms Using Generic Platform [tt-atlantis.md]: tt-atlantis.md [fpga-openpiton.md]: fpga-openpiton.md [fpga-ariane.md]: fpga-ariane.md +[metanoia-mt2824.md]: metanoia-mt2824.md
docs/platform/metanoia-mt2824.md new file +147 -0
147 lines not on this page · raw message
platform/generic/Kconfig +7 -0
@@ -51,6 +51,13 @@ config PLATFORM_ESWIN_EIC770X bool "ESWIN EIC770X support" default n +config PLATFORM_METANOIA_MT2824 + bool "Metanoia MT2824 support" + select ANDES_PMA + select ANDES_SBI + select ANDES_PMU + default n + config PLATFORM_OPENHWGROUP_OPENPITON bool "OpenHWGroup Openpiton support" default n
platform/generic/configs/defconfig +1 -0
@@ -2,6 +2,7 @@ CONFIG_PLATFORM_ALLWINNER_D1=y CONFIG_PLATFORM_ANDES_AE350=y CONFIG_PLATFORM_ANDES_QILAI=y CONFIG_PLATFORM_ESWIN_EIC770X=y +CONFIG_PLATFORM_METANOIA_MT2824=y CONFIG_PLATFORM_OPENHWGROUP_ARIANE=y CONFIG_PLATFORM_OPENHWGROUP_OPENPITON=y CONFIG_PLATFORM_RENESAS_RZFIVE=y
platform/generic/metanoia/mt2824/mt2824.c new file +31 -0
@@ -0,0 +1,31 @@ +// SPDX-License-Identifier: BSD-2-Clause +/* +* Copyright (C) 2026 Metanoia Communication Inc. +* +* Authors: +* Jun Chang <[email protected]> +*/ + +#include <andes/andes_pmu.h> +#include <andes/andes_sbi.h> +#include <platform_override.h> + +static int metanoia_mt2824_platform_init (const void *fdt,int nodeoff, +const struct fdt_match *match) +{ + generic_platform_ops.extensions_init = andes_pmu_extensions_init; + generic_platform_ops.pmu_init = andes_pmu_init; + generic_platform_ops.vendor_ext_provider = andes_sbi_vendor_ext_provider; + +return 0 ; +} + +static const struct fdt_match metanoia_mt2824_match[] = { + { .compatible ="metanoia,mt2824" }, + {/* sentinel */ } +}; + +const struct fdt_driver metanoia_mt2824 = { + .match_table = metanoia_mt2824_match, + .init = metanoia_mt2824_platform_init, +};
platform/generic/metanoia/mt2824/objects.mk new file +10 -0
@@ -0,0 +1,10 @@ +# +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (C) 2026 Metanoia Communication Inc. +# + +ifeq ($(PLATFORM_RISCV_XLEN), 64) +carray-platform_override_modules-$(CONFIG_PLATFORM_METANOIA_MT2824) += metanoia_mt2824 +platform-objs-$(CONFIG_PLATFORM_METANOIA_MT2824) += metanoia/mt2824/mt2824.o +endif
Signature · 7 lines
2.54.0 -- opensbi mailing list [email protected] http://lists.infradead.org/mailman/listinfo/opensbi
PATCH v2 2/2 lib: utils/reset: Add Metanoia MT2824 system reset driver
In reply to Benoît MoninAdd a driver for the system reset function found in Metanoia MT2824 SoC and enable it in the generic platform configuration.
--- lib/utils/reset/Kconfig | 4 ++ lib/utils/reset/fdt_reset_metanoia.c | 72 ++++++++++++++++++++++++++++++++++++ lib/utils/reset/objects.mk | 3 ++ platform/generic/configs/defconfig | 1 + 4 files changed, 80 insertions(+)
lib/utils/reset/Kconfig +4 -0
@@ -29,6 +29,10 @@ config FDT_RESET_LITEX depends on FDT_GPIO default n +config FDT_RESET_METANOIA + bool "Metanoia FDT reset driver" + default n + config FDT_RESET_RPMI bool "RPMI FDT reset driver" depends on FDT_MAILBOX && RPMI_MAILBOX
lib/utils/reset/fdt_reset_metanoia.c new file +72 -0
72 lines not on this page · raw message
lib/utils/reset/objects.mk +3 -0
@@ -20,6 +20,9 @@ libsbiutils-objs-$(CONFIG_FDT_RESET_HTIF) += reset/fdt_reset_htif.o carray-fdt_early_drivers-$(CONFIG_FDT_RESET_LITEX) += fdt_reset_litex libsbiutils-objs-$(CONFIG_FDT_RESET_LITEX) += reset/fdt_reset_litex.o +carray-fdt_early_drivers-$(CONFIG_FDT_RESET_METANOIA) += fdt_reset_metanoia +libsbiutils-objs-$(CONFIG_FDT_RESET_METANOIA) += reset/fdt_reset_metanoia.o + carray-fdt_early_drivers-$(CONFIG_FDT_RESET_SG2042_HWMON_MCU) += fdt_reset_sg2042_mcu libsbiutils-objs-$(CONFIG_FDT_RESET_SG2042_HWMON_MCU) += reset/fdt_reset_sg2042_hwmon_mcu.o
platform/generic/configs/defconfig +1 -0
@@ -52,6 +52,7 @@ CONFIG_FDT_RESET_ATCWDT200=y CONFIG_FDT_RESET_GPIO=y CONFIG_FDT_RESET_LITEX=y CONFIG_FDT_RESET_HTIF=y +CONFIG_FDT_RESET_METANOIA=y CONFIG_FDT_RESET_RPMI=y CONFIG_FDT_RESET_SG2042_HWMON_MCU=y CONFIG_FDT_RESET_SPACEMIT_P1=y
Signature · 7 lines
2.54.0 -- opensbi mailing list [email protected] http://lists.infradead.org/mailman/listinfo/opensbi