Skip to contentSkip to conversation

Introduce Metanoia MT2824 SoC support

PATCH Applied Benoît Monin 2 participants 6 messages Jul 24 – Aug 20 Arm MediaTek

lore
Share & tools
lore
#0 lore raw

v3 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 v3:
- Rebased on v1.9.
- Change the system_reset device name to "metanoia-mt2824-reboot" to match the DT compatible "metanoia,mt2824-reboot" and avoid confusion with "metanoia,mt2824-reset".
- Link to v2: https://patch.msgid.link/[email protected]

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: cbf9f6734dd85a982c63e3cb5db7ffe09da839ca
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
#1 lore raw

PATCH v3 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
index 0b896ede..760152a0 100644
@@ -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
index d594b140..64fc4a64 100644
@@ -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
index 969639e3..820c98b6 100644
@@ -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
new file mode 100644
index 00000000..a34304b9
@@ -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
new file mode 100644
index 00000000..b97c7775
@@ -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.55.0


-- 
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi
Reviewed-by on v3 1/2 Applied
#2 lore raw

Re: [PATCH v3 1/2] platform: generic: Add Metanoia MT2824 initial support

Quoted 7 lines · Benoît Monin

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.

LGTM.

Applied this patch to the riscv/opensbi repo.

Thanks,
Anup

Quoted 271 lines
---
 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
index 0b896ede..760152a0 100644
@@ -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
new file mode 100644
index 00000000..83017df5
@@ -0,0 +1,147 @@
+Metanoia MT2824 SoC Platform
+============================
+The Metanoia MT2824 is a highly integrated 5G System-on-Chip designed
+for O-RAN radio units and small cells. It features two Andes AX45MP
+RISC-V cores. More details about the SoC and its reference platform
+named MT5824 can be found at the following [link][0].
+
+To build platform specific library and firmwares, provide the
+*PLATFORM=generic* parameter to the top level make command.
+
+[0]: https://metanoia-comm.com/products/5g/mt5824/
+
+Platform Options
+----------------
+
+The Metanoia MT2824 platform does not have any platform-specific options.
+
+Building Metanoia MT2824 Platform
+---------------------------------
+
+```
+make PLATFORM=generic
+```
+
+DTS Example: (Metanoia MT2824)
+------------------------------
+
+```
+       compatible = "metanoia,mt2824";
+
+       cpus: cpus {
+               #address-cells = <0x01>;
+               #size-cells = <0x00>;
+               timebase-frequency = <20000000>;
+
+               cpu0: cpu@0 {
+                       device_type = "cpu";
+                       reg = <0x00>;
+                       status = "okay";
+                       compatible = "andestech,ax45mp", "riscv";
+                       riscv,isa-base = "rv64i";
+                       riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
+                                              "zicntr", "zicsr", "zifencei",
+                                              "zihpm", "xandespmu";
+                       mmu-type = "riscv,sv39";
+                       clock-frequency = <900000000>;
+                       i-cache-size = <0x8000>;
+                       i-cache-sets = <0x100>;
+                       i-cache-line-size = <0x40>;
+                       i-cache-block-size = <0x40>;
+                       d-cache-size = <0x8000>;
+                       d-cache-sets = <0x80>;
+                       d-cache-line-size = <0x40>;
+                       d-cache-block-size = <0x40>;
+                       next-level-cache = <0x01>;
+
+                       cpu0intc: interrupt-controller {
+                               #interrupt-cells = <0x01>;
+                               interrupt-controller;
+                               compatible = "andestech,cpu-intc", "riscv,cpu-intc";
+                       };
+               };
+
+               cpu1: cpu@1 {
+                       device_type = "cpu";
+                       reg = <0x01>;
+                       status = "okay";
+                       compatible = "andestech,ax45mp", "riscv";
+                       riscv,isa-base = "rv64i";
+                       riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
+                                              "zicntr", "zicsr", "zifencei",
+                                              "zihpm", "xandespmu";
+                       mmu-type = "riscv,sv39";
+                       clock-frequency = <900000000>;
+                       i-cache-size = <0x8000>;
+                       i-cache-sets = <0x100>;
+                       i-cache-line-size = <0x40>;
+                       i-cache-block-size = <0x40>;
+                       d-cache-size = <0x8000>;
+                       d-cache-sets = <0x80>;
+                       d-cache-line-size = <0x40>;
+                       d-cache-block-size = <0x40>;
+                       next-level-cache = <0x01>;
+
+                       cpu1intc: interrupt-controller {
+                               #interrupt-cells = <0x01>;
+                               interrupt-controller;
+                               compatible = "andestech,cpu-intc", "riscv,cpu-intc";
+                       };
+               };
+       };
+
+       l2c: l2-cache@a000000 {
+               compatible = "andestech,ax45mp-cache", "cache";
+               reg = <0x00 0xa000000 0x00 0x40000>;
+               cache-line-size = <64>;
+               cache-level = <2>;
+               cache-size = <0x40000>;
+               cache-sets = <1024>;
+               cache-unified;
+               interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-parent = <&plic>;
+       };
+
+       soc: soc {
+               #address-cells = <0x02>;
+               #size-cells = <0x02>;
+               compatible = "simple-bus";
+               interrupt-parent = <&plic>;
+               ranges;
+
+               plic: interrupt-controller@c000000 {
+                       compatible = "metanoia,mt2824-plic", "andestech,nceplic100";
+                       reg = <0x0 0x0c000000 0x0 0x400000>;
+                       interrupts-extended =
+                               <&cpu0intc 0x0b>,
+                               <&cpu0intc 0x09>,
+                               <&cpu1intc 0x0b>,
+                               <&cpu1intc 0x09>;
+                       interrupt-controller;
+                       #address-cells = <0x00>;
+                       #interrupt-cells = <0x02>;
+                       riscv,ndev = <0x47>;
+               };
+
+               plicsw: interrupt-controller@c800000 {
+                       compatible = "metanoia,mt2824-plicsw", "andestech,plicsw";
+                       reg = <0x00 0x0c800000 0x00 0x400000>;
+                       interrupts-extended =
+                               <&cpu0intc IRQ_TYPE_EDGE_BOTH>,
+                               <&cpu1intc IRQ_TYPE_EDGE_BOTH>;
+               };
+
+               plmt0@c400000 {
+                       compatible = "metanoia,mt2824-plmt", "andestech,plmt0";
+                       reg = <0x0 0x0c400000 0x0 0x00400000>;
+                       interrupts-extended =
+                               <&cpu0intc 0x07>,
+                               <&cpu1intc 0x07>;
+               };
+
+               reboot: reboot@10000004 {
+                       compatible = "metanoia,mt2824-reboot";
+                       reg = <0x0 0x10000004 0x0 0x08>;
+               };
+       };
+```
platform/generic/Kconfig +7 -0
index d594b140..64fc4a64 100644
@@ -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
index 969639e3..820c98b6 100644
@@ -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
new file mode 100644
index 00000000..a34304b9
@@ -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 -1
new file mode 100644
index 00000000..b97c7775
@@ -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
 
--

2.55.0

--
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi

Signature · 3 lines
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi
#3 lore raw

PATCH v3 2/2 lib: utils/reset: Add Metanoia MT2824 system reset driver

In reply to Benoît Monin

Add 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
index b2ac120e..8988548c 100644
@@ -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
index 38b4e306..a9b6edad 100644
@@ -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
index 820c98b6..ac76eb27 100644
@@ -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.55.0


-- 
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi
Reviewed-by on v3 2/2 Applied
#4 lore raw

Re: [PATCH v3 2/2] lib: utils/reset: Add Metanoia MT2824 system reset driver

Quoted 81 lines · Benoît Monin

Add 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
index b2ac120e..8988548c 100644
@@ -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 +47 -0
new file mode 100644
index 00000000..628cd8b6
@@ -0,0 +1,72 @@
+/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2026 Metanoia Communications Inc.
+ *
+ */
+
+#include <sbi/riscv_io.h>
+#include <sbi/sbi_platform.h>
+#include <sbi/sbi_system.h>
+#include <sbi_utils/fdt/fdt_helper.h>
+#include <sbi_utils/fdt/fdt_driver.h>
+
+#define SWRSTREQ_CTRL_REG_OFFSET 0x00
+#define SWRSTREQ_REG_OFFSET 0x04
+
+struct reset_metanoia_data {
+       u8 *reg_base;
+};
+
+static struct reset_metanoia_data reset_data;
+
+static int metanoia_system_reset_check(u32 type, u32 reason)
+{
+       switch (type) {
+       case SBI_SRST_RESET_TYPE_WARM_REBOOT:
+       case SBI_SRST_RESET_TYPE_COLD_REBOOT:
+               return 1;
+       case SBI_SRST_RESET_TYPE_SHUTDOWN:
+       default:
+               return 0;
+       }
+}
+
+static void metanoia_system_reset(u32 type, u32 reason)
+{
+       writew(0x1, reset_data.reg_base + SWRSTREQ_CTRL_REG_OFFSET);
+       writew(0x1, reset_data.reg_base + SWRSTREQ_REG_OFFSET);
+}
+
+static struct sbi_system_reset_device metanoia_reset = {
+       .name               = "metanoia-mt2824-reboot",
+       .system_reset_check = metanoia_system_reset_check,
+       .system_reset       = metanoia_system_reset,
+};
+
+static int metanoia_reset_init(const void *fdt, int nodeoff,

lib/utils/reset/fdt_reset_metanoia.c line 57

Quoted 10 lines
lib/utils/reset/fdt_reset_metanoia.c new file +10 -0
+                              const struct fdt_match *match)
+{
+       u64 reg_addr;
+       int rc;
+
+       rc = fdt_get_node_addr_size(fdt, nodeoff, 0, &reg_addr, NULL);
+       if (rc < 0 || !reg_addr)
+               return SBI_ENODEV;
+
+       reset_data.reg_base = (u8 *)reg_addr;

This needs to be "(u8 *)(ulong)" typecast to avoid compile errors for RV32. I will update at the time of merging this patch.

Quoted 46 lines
lib/utils/reset/fdt_reset_metanoia.c new file +15 -0
+
+       sbi_system_reset_add_device(&metanoia_reset);
+
+       return 0;
+}
+
+static const struct fdt_match metanoia_reset_match[] = {
+       { .compatible = "metanoia,mt2824-reboot" },
+       { /* sentinel */ }
+};
+
+const struct fdt_driver fdt_reset_metanoia = {
+       .match_table = metanoia_reset_match,
+       .init        = metanoia_reset_init,
+};
lib/utils/reset/objects.mk +3 -0
index 38b4e306..a9b6edad 100644
@@ -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 -1
index 820c98b6..ac76eb27 100644
@@ -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
 
--

2.55.0

Quoted 4 lines

--
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi

Otherwise LGTM.

Applied this patch to the riscv/opensbi repo.

Thanks,
Anup

Signature · 3 lines
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi
#5 lore raw
In reply to Benoît Monin
Quoted 17 lines · Benoît Monin

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

Quoted 2 lines

[1]: https://metanoia-comm.com/products/5g/mt5824/

[Adding Anup in CC]

Small ping on this series: Any reviews or comments are welcome.

Quoted 28 lines

---
Changes in v3:
- Rebased on v1.9.
- Change the system_reset device name to "metanoia-mt2824-reboot" to match the DT compatible "metanoia,mt2824-reboot" and avoid confusion with "metanoia,mt2824-reset".
- Link to v2: https://patch.msgid.link/[email protected]

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(+)
Quoted 4 lines

---
base-commit: cbf9f6734dd85a982c63e3cb5db7ffe09da839ca
change-id: 20260525-mt5824-5790818fb75f

Best regards,

Signature · 11 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