SPRACZ5 December 2021 DRA821U , DRA821U-Q1 , DRA829J , DRA829J-Q1 , DRA829V , DRA829V-Q1 , TDA4VM , TDA4VM-Q1
This kicks in at the very end when temperature is close to max thresholds of the SoC.
This needs one time register programming to be done. Below is the complete programming sequence that can be done from the Linux user space in absence of thermal driver:
devmem2 0x42050010 w 0x2e60305
The above table gives ADC code Vs Temperature in centigrade for few temperatures. In case other temperatures are needed, use Table 5-1897 equation to get the alert threshold values for a particular temperature.
For more information, see the Temperature Translation table in the DRA829/TDA4VM/AM752x Technical Reference Manual
Please use Silicon Revision 1.1 since Silicon Revision 1.0 has PVT sensor accuracy issue and the shutdown might happen at an offset of ± 20C.
Enable the individual sensors maxtemp_alert bit (Note: bit 4 (CONT) and bit 6 (CLRZ) are already set so keeping them set):
devmem2 0x42050300 w 0x850
devmem2 0x42050320 w 0x850
devmem2 0x42050340 w 0x850
devmem2 0x42050360 w 0x850
devmem2 0x42050380 w 0x850
The global max temp alert generation bit to 1.
devmem2 0x4205000c w 0x1