u-boot/arch/arm/mach-imx
Sébastien Szymanski 985268107d imx: fdt: fix cooling-device property corruption
The function disable_thermal_cpu_nodes() corrupts the cooling-device
property.
For example, booting an i.MX93 devices with only one A55 core (IMX93x1)
with the cooling-device property set to:

$ dtc -I dtb foo.dtb | grep cooling-device
cooling-device = <0x08 0xffffffff 0xffffffff 0x09 0xffffffff 0xffffffff>;

Linux shows the following error at boot:

[    1.715189] OF: /thermal-zones/cpu-thermal/cooling-maps/map0: could not find phandle 1083699869
[    1.723977] thermal_sys: Add a cooling_device property with at least one device
[    1.731285] thermal thermal_zone0: binding zone cpu-thermal with cdev thermal-devfreq-0 failed:-2

because the cooling-device property in the device tree passed to the
kernel is

$ dtc -I dtb /sys/firmware/fdt | grep cooling-device
cooling-device = <0x4097f29d 0x00 0xb05aef9d>;

The issue is because the wrong variable type is passed to the function
fdt_setprop() called in the function disable_thermal_cpu_nodes(). With
the variable type fixed, the error at boot is gone and the property is
properly set:

$ dtc -I dtb /sys/firmware/fdt | grep cooling-device
cooling-device = <0x08 0xffffffff 0xffffffff>;

Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
2025-01-16 10:16:47 -03:00
..
imx8 imx: mach: imx8: fdt: set correct frequencies for the industrial SoC 2024-12-15 12:34:25 -03:00
imx8m arm: imx8m: add OP-TEE node 2025-01-16 10:16:02 -03:00
imx8ulp arch: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD 2024-10-11 11:44:47 -06:00
imx9 imx: imx91_evk: switch to BOOTSTD 2025-01-16 10:15:41 -03:00
imxrt Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
mx3 arm: Remove mx31pdk board 2020-07-09 20:58:06 +05:30
mx5 arch: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD 2024-10-11 11:44:47 -06:00
mx6 imx: hab: Make imx_hab_is_enabled dependent on FIELD_RETURN 2024-11-09 08:53:36 -03:00
mx7 arm: mach-imx: move snvs module 2024-11-09 08:55:04 -03:00
mx7ulp imx: hab: Make imx_hab_is_enabled dependent on FIELD_RETURN 2024-11-09 08:53:36 -03:00
mxs Kconfig: Remove all default n/no options 2023-10-30 15:32:49 -04:00
cache.c arm: mach: imx: Remove duplicate newlines 2024-07-15 12:12:17 -06:00
cmd_bmode.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
cmd_dek.c cmd: Make use of U_BOOT_LONGHELP when missing 2024-06-26 13:17:51 -06:00
cmd_hdmidet.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
cmd_mfgprot.c ARM: imx: Drop bogus newline 2024-10-04 09:17:02 -03:00
cmd_nandbcb.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
cpu.c arch: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD 2024-10-11 11:44:47 -06:00
ddrmc-vf610-calibration.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
ddrmc-vf610-calibration.h doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
ddrmc-vf610.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
ele_ahab.c imx: ele_ahab: Add HUK derivation support 2024-08-30 15:50:36 -03:00
fdt.c imx: fdt: fix cooling-device property corruption 2025-01-16 10:16:47 -03:00
hab.c imx: hab: Make imx_hab_is_enabled dependent on FIELD_RETURN 2024-11-09 08:53:36 -03:00
i2c-mxv7.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
image-container.c Merge patch series "provide names for emmc hardware partitions" 2024-09-05 12:13:24 -06:00
imx_bootaux.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
init.c ARM: imx: Add support for switching primary/secondary boot mode to bmode 2020-08-17 17:54:01 +02:00
iomux-v3.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
Kconfig ARM: imx: Wrap i.MX config options in MACH_IMX 2024-09-02 13:23:36 -03:00
mac.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
Makefile arm: mach-imx: imx8m: re-use SNVS init routine 2024-11-09 08:55:04 -03:00
misc.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
mmc_env.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
mmdc_size.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
priblob.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
rdc-sema.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
romapi.c imx: fix get_boot_device() for imx8 2023-05-02 10:57:32 +02:00
sata.c arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
snvs.c arm: mach-imx: move snvs module 2024-11-09 08:55:04 -03:00
snvs.h arm: mach-imx: move snvs module 2024-11-09 08:55:04 -03:00
speed.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
spl.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
spl_imx_romapi.c spl: Create a function to init spl_load_info 2024-08-23 15:58:42 -06:00
spl_qspi.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
spl_sd.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
syscounter.c arch: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD 2024-10-11 11:44:47 -06:00
timer.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
video.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00