]> git.ipfire.org Git - thirdparty/u-boot.git/commit
armv8/fsl-layerscape: fdt: Remove offline cores from cooling device maps
authorAnthony Pighin (Nokia) <anthony.pighin@nokia.com>
Wed, 3 Dec 2025 16:25:39 +0000 (16:25 +0000)
committerPeng Fan <peng.fan@nxp.com>
Thu, 11 Dec 2025 11:16:32 +0000 (19:16 +0800)
commitff7c10d89b1509d3843d2bbb37e357aa1ca55210
treee72027ab07a0c8735e7ebc52deb0fa297382e9a2
parente672d4a472279477d7f0c3c2c17721f12eb09158
armv8/fsl-layerscape: fdt: Remove offline cores from cooling device maps

Some processor families use a generic device tree, and rely on u-boot
fixups to massage that for lower core count personalities (i.e. NXP
LX2* family). For example, the LX2160A device tree will be used and
then modified to offline non-existent cores when running on an 8-core
LX2080A.

However, the cooling maps still contain references to the non-existent
core phandles, resulting in:

    OF: /thermal-zones/cluster6-7-thermal/cooling-maps/map0:
        could not find phandle 15

Rebuild the cooling maps as non-existent cores are deleted.

Signed-off-by: Anthony Pighin <anthony.pighin@nokia.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/fdt.c