]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: toradex: verdin-am62p: Add fixup for critical trip points
authorJoão Paulo Gonçalves <joao.goncalves@toradex.com>
Mon, 23 Jun 2025 17:39:57 +0000 (14:39 -0300)
committerTom Rini <trini@konsulko.com>
Wed, 9 Jul 2025 14:40:03 +0000 (08:40 -0600)
While TI AM62P supports up to 125°C junction temperature, Tj, for
industrial and automotive parts, Toradex Verdin-AM62P hardware lifetime
guarantees consider a 105°C Tj. Fixup the device tree temperature
critical trip points to match the hardware specifications. The
implementation ensures the architecture code will not overwrite the
board specific changes by enabling CONFIG_OF_BOARD_SETUP_EXTENDED for
the Verdin-AM62P.

Signed-off-by: João Paulo Gonçalves <joao.goncalves@toradex.com>
Acked-by: Francesco Dolcini <francesco.dolcini@toradex.com>
board/toradex/verdin-am62p/verdin-am62p.c
configs/verdin-am62p_a53_defconfig

index 8b246e9d304331047dee2073b3fc4c45eceb8ed1..43d1c9312fe309f8b12e0cb2f64447942402a14f 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <config.h>
 #include <asm/arch/hardware.h>
+#include <asm/arch/k3-common-fdt.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <dm/uclass.h>
@@ -97,6 +98,13 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 }
 #endif
 
+#if IS_ENABLED(CONFIG_OF_BOARD_SETUP_EXTENDED)
+void ft_board_setup_ex(void *blob, struct bd_info *bd)
+{
+       fdt_fixup_thermal_critical_trips_k3(blob, 105);
+}
+#endif
+
 static void select_dt_from_module_version(void)
 {
        char variant[32];
index e782ad4faca78a0e7b171933461f145956cca3f0..e4a28050079b4dcce6778d1729c549d0e44e442f 100644 (file)
@@ -37,6 +37,7 @@ CONFIG_SPL_LOAD_FIT_ADDRESS=0x81000000
 CONFIG_BOOTSTD_FULL=y
 CONFIG_LEGACY_IMAGE_FORMAT=y
 CONFIG_BOOTDELAY=1
+CONFIG_OF_BOARD_SETUP_EXTENDED=y
 CONFIG_BOOTCOMMAND="bootflow scan -b"
 CONFIG_USE_PREBOOT=y
 CONFIG_PREBOOT="test -n ${fdtfile} || setenv fdtfile k3-am62p5-verdin-${variant}-${fdt_board}.dtb"