[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <9964aeaa-0169-4596-a33d-c56bdb6edae3@phytec.de>
Date: Fri, 2 May 2025 21:11:16 +0200
From: Daniel Schultz <d.schultz@...tec.de>
To: Nishanth Menon <nm@...com>
Cc: vigneshr@...com, kristo@...nel.org, robh@...nel.org, krzk+dt@...nel.org,
conor+dt@...nel.org, linux-arm-kernel@...ts.infradead.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
upstream@...ts.phytec.de
Subject: Re: [PATCH 2/3] arm64: dts: ti: k3-am62a: Set Critical Temp. to 105C
On 5/2/25 16:49, Nishanth Menon wrote:
> On 07:26-20250502, Daniel Schultz wrote:
>> The AM62Ax SoC supports two temperature ranges:
>> * A: -40 to 105C - Extended Industrial
>> * I: -40 to 125C - Automotive
>>
>> By default, use the lower limit (105 °C) so that any AM62A running
>> in Extended Industrial mode will shut down safely before overheating.
>>
>> If the bootloader detects an Automotive-grade device, it should
>> override this and raise the critical trip point to 125 °C.
>>
>> Signed-off-by: Daniel Schultz <d.schultz@...tec.de>
>> ---
>> arch/arm64/boot/dts/ti/k3-am62a-thermal.dtsi | 6 +++---
>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/arch/arm64/boot/dts/ti/k3-am62a-thermal.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-thermal.dtsi
>> index 39ff9118b6c4..40dcb9bab965 100644
>> --- a/arch/arm64/boot/dts/ti/k3-am62a-thermal.dtsi
>> +++ b/arch/arm64/boot/dts/ti/k3-am62a-thermal.dtsi
> Why not create a separate header for industrial grade and rename this as
> automotive grade and let the board file pick the right grade used on the
> board?
Mostly because I copied this from 10e7bfd8114c207ac and with the most
recent temperature fixups in U-Boot, we also have the missing bootloader
logic.
I would also prefer an out-of-the-box solution for that.
- Daniel
>
>> @@ -19,7 +19,7 @@ main0_alert: main0-alert {
>> };
>>
>> main0_crit: main0-crit {
>> - temperature = <125000>; /* milliCelsius */
>> + temperature = <105000>; /* milliCelsius */
>> hysteresis = <2000>; /* milliCelsius */
>> type = "critical";
>> };
>> @@ -50,7 +50,7 @@ main1_alert: main1-alert {
>> };
>>
>> main1_crit: main1-crit {
>> - temperature = <125000>; /* milliCelsius */
>> + temperature = <105000>; /* milliCelsius */
>> hysteresis = <2000>; /* milliCelsius */
>> type = "critical";
>> };
>> @@ -81,7 +81,7 @@ main2_alert: main2-alert {
>> };
>>
>> main2_crit: main2-crit {
>> - temperature = <125000>; /* milliCelsius */
>> + temperature = <105000>; /* milliCelsius */
>> hysteresis = <2000>; /* milliCelsius */
>> type = "critical";
>> };
>> --
>> 2.25.1
>>
Powered by blists - more mailing lists