[PATCH] arm64: dts: mediatek: mt8370: fix CPU map core ordering

From: Louis-Alexis Eyraud

Date: Tue Nov 17 2026 - 07:22:23 EST


In mt8370.dtsi, the child list for the cluster0 node of cpu-map is
overridden, to reflect that the MT8370 SoC, as being less powerful
variant of MT8188 and MT8390 SoCs, has less ARM Cortex-A55 cores
number than MT8188 and MT8390 (4 vs 6) but the same Cortex-A78 cores
number.

How the cluster0 node override is done makes the core child nodes to be
named in a non sequential way (core0 to core3, then core6 to core7).
First, it breaks the cpu-map child nodes naming convention in the
cpu-topology bindings. It also causes the arch_topology driver to skip
the A78 core nodes during its devicetree parsing, leading to at least
incorrect CPU capacity computation for them.

So, modify the override so the A78 cores are seen as core4 and core5
in the cluster0 node.

Fixes: 49b07ed22e37 ("arm64: dts: mediatek: add support for MT8370 SoC")
Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@xxxxxxxxxxxxx>
---
The patch has been tested on Mediatek Genio 510-EVK board, that
integrates a MT8379 SoC with a kernel based on linux-next tree
(tag: next-20261116)
---
arch/arm64/boot/dts/mediatek/mt8370.dtsi | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/mediatek/mt8370.dtsi b/arch/arm64/boot/dts/mediatek/mt8370.dtsi
index 7ac8b8d03494..3fa48f2e6a6a 100644
--- a/arch/arm64/boot/dts/mediatek/mt8370.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8370.dtsi
@@ -16,8 +16,16 @@ cpus {

cpu-map {
cluster0 {
- /delete-node/ core4;
- /delete-node/ core5;
+ core4 {
+ cpu = <&cpu6>;
+ };
+
+ core5 {
+ cpu = <&cpu7>;
+ };
+
+ /delete-node/ core6;
+ /delete-node/ core7;
};
};
};

---
base-commit: 38c8be16846f10f3a710351357e4f4ace7254c8e
change-id: 20261117-mt8370-fix-cpu-map-core-order-0a95d9e87802

Best regards,
--
Louis-Alexis Eyraud <louisalexis.eyraud@xxxxxxxxxxxxx>