public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Schultz <d.schultz@phytec.de>
To: Nishanth Menon <nm@ti.com>
Cc: vigneshr@ti.com, kristo@kernel.org, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, upstream@lists.phytec.de
Subject: Re: [PATCH 2/3] arm64: dts: ti: k3-am62a: Set Critical Temp. to 105C
Date: Fri, 2 May 2025 21:11:16 +0200	[thread overview]
Message-ID: <9964aeaa-0169-4596-a33d-c56bdb6edae3@phytec.de> (raw)
In-Reply-To: <20250502144934.t6hjiwp2f64ovb34@deeply>


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@phytec.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
>>

  reply	other threads:[~2025-05-02 19:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-02 14:26 [PATCH 1/3] arm64: dts: ti: k3-am62a: Enable CPU freq throttling on thermal alert Daniel Schultz
2025-05-02 14:26 ` [PATCH 2/3] arm64: dts: ti: k3-am62a: Set Critical Temp. to 105C Daniel Schultz
2025-05-02 14:49   ` Nishanth Menon
2025-05-02 19:11     ` Daniel Schultz [this message]
2025-05-05 13:12       ` Nishanth Menon
2025-05-05 13:36         ` Daniel Schultz
2025-05-02 14:26 ` [PATCH 3/3] arm64: dts: ti: k3-am62x-phyboard-lyra-gpio-fan: Update cooling maps Daniel Schultz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9964aeaa-0169-4596-a33d-c56bdb6edae3@phytec.de \
    --to=d.schultz@phytec.de \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kristo@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nm@ti.com \
    --cc=robh@kernel.org \
    --cc=upstream@lists.phytec.de \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox