imx8mp: read temperature

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8mp: read temperature

674 Views
arno_0
Contributor III

Would like to read temperature of SoC. It looks like as it should work with:

cat /sys/devices/virtual/thermal/thermal_zone0/temp

cat /sys/devices/virtual/thermal/thermal_zone1/temp

but I cat a read error that Resource temporarily unavailable.

So what can be the reason for that? In kernel there are drivers for nxp, I guess it is the imx_thermal.c. Do I miss something? Anything I have to do in devicetree?  As of now  it shouldn't do any action like thermal shutdown, just return temperature.

 

0 Kudos
Reply
0 Replies