i.MX8M mini TMU DC offset issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.MX8M mini TMU DC offset issue

跳至解决方案
911 次查看
Tori-san
Contributor III
Hello, According to the IMX8MMRM.pdf clause 5.4.6, hardware will do 1 point calibration. And when I tried the following command, response was shown below. "cat /sys/devices/virtual/thermal/thermal_zone0/slope" returns "1" and "cat /sys/devices/virtual/thermal/thermal_zone0/offset" returns "0". Does that mean hardware calibration use not slope-intercept form but linear function? Doesn't it mean that each IMX8M mini has no DC offset?
0 项奖励
1 解答
901 次查看
Yuri
NXP Employee
NXP Employee

@Tori-san 
Hello,

   In out BSP, we have the fsl,imx8mm-tmu driver implemented in /drivers/thermal/imx8mm_thermal.c, which is enabled by default. One thing to note is that (in tmu_get_temp) the driver will report the value stored in TRITSR as current temperature, which means that the 1-point hardware calibration value is returned. If the customer wants to do the 2-points software calibration, they will have to update the driver by applying the formula described in the RM on the values returned in the registers. To get the result, there is an interface for the driver in /sys/class/thermal.

Regards,
Yuri.

在原帖中查看解决方案

3 回复数
902 次查看
Yuri
NXP Employee
NXP Employee

@Tori-san 
Hello,

   In out BSP, we have the fsl,imx8mm-tmu driver implemented in /drivers/thermal/imx8mm_thermal.c, which is enabled by default. One thing to note is that (in tmu_get_temp) the driver will report the value stored in TRITSR as current temperature, which means that the 1-point hardware calibration value is returned. If the customer wants to do the 2-points software calibration, they will have to update the driver by applying the formula described in the RM on the values returned in the registers. To get the result, there is an interface for the driver in /sys/class/thermal.

Regards,
Yuri.

882 次查看
Tori-san
Contributor III
Hi Yuri, Thank you for your reply. I understood that the 1-point calibrated value will be stored in TRITSR (Addr: 3026_0020h) and it enabled by default. I also understood the 2-points calibration is not currently supported by im8mm_thermal.c. I interpret that the slope and offset under /sys/devices/virtual/thermal/thermal_zone0 are not used. Best regards, Tori-san.
881 次查看
Tori-san
Contributor III
Hi Tech Support. Is this community not supported by IE? It seems that line breaks are not worked.
0 项奖励