What are the conditions for assertion of the THERM_ALERT_N signal in AGX Orin?
Which parameter is asserted at what degree?
Is this related to the BPMP Thermal Framework below?
I am not currently facing any problems regarding THERM_ALERT_N signal.
I just want to know the specific conditions under which the THERM_ALERT_N signal is asserted.
There’s a tmp451 thermal sensor on AGX Orin, THERM_ALERT_N is a input pin to detect the high temperature.
There’s no interrupt handling for this pin currently. (i.e. it would do nothing even when this pin tiggered)
But TEMP_THERM would be asserted when the temperature is too high (107C) and causing shutdown.
You could refer to the the following logs from your dmesg.
If THERM_ALERT_N is meant to be an input pin, is this pin intended to be used to receive alerts of rising temperatures from a system temperature sensor external to the Jetson module or a host MCU monitoring the total system temperature?
Is the TEMP_THERM signal used inside the Jetson module and not exposed externally like the THERM_ALERT_N pin?
Are you saying that the AGX Orin module is configured as shown in the figure below?
If so, what is the THERM_ALERT_N pin provided as an external input pin for?
THERM_ALERT_N is output from TMP451 indicating the thermal alerts.
It is an input pin for AGX Orin SoC, but it is an output pin for the module so that the design guide is right.
You could also refer to thermal design guide for more thermal management details.
TMP451 assert signal is output from the THERM_ALERT_N (L56) pin.
TMP451 is asserted above 107°C.
That is, the THERM_ALERT_N (L56) pin can only be used as a signal to monitor whether the TMP451 has reached 107°C.
Is my understanding as mentioned above correct?
Also, is it possible to change 107°C, the HW shutdown temperature of TMP451, to the user’s desired temperature?
It could be configured through the shutdown-limit in device tree as following.
TMP451_soc: temp-sensor@4c {
status = "okay";
#thermal-sensor-cells = <1>;
compatible = "ti,tmp451";
reg = <TMP451_SLAVE_ADDR>;
sensor-name = "tmp451-ext";
supported-hwrev = <1>;
offset = <REMOTE_SENS_OFFSET>; /* Actual value will be programmed as REMOTE_SENS_OFFSET/4 */
conv-rate = <0x06>;
extended-rage = <1>;
interrupt-parent = <&tegra_main_gpio>;
interrupts = <TEMP_ALERT IRQ_TYPE_LEVEL_LOW>;
temp-alert-gpio = <&tegra_main_gpio TEMP_ALERT 0>;
/* vdd-supply configured in power tree */
loc {
/* set to maximum for not having local shutdown */
shutdown-limit = <107>;
};
ext {
shutdown-limit = <REMOTE_SENS_SHUTDOWN_LIMIT>;
};
};
and you could check the current configuration from the dmesg as I shared before.
Please let me clarify one last point.
Am I correct in understanding that the HW shutdown by TEMP_THERM is triggered as soon as the assertion of the THERM_ALERT_N signal is observed?
In other words, it cannot be used to alert the outside before Jetson is forced to HW shutdown?