How to enable temperature monitoring in IMX7D?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable temperature monitoring in IMX7D?

113 Views
Contributor I

Hello,

I just want to check how to enable temp monitoring in imx7d?

I have a custom im7d board and I cant seem to find where to enable temp monitoring in /sys/class/thermal

In my menuconfig, I can confirm that below is enabled.

Device Drivers > Generic Thermal sysfs driver >Temperature sensor driver for i.MX SoCs

However, after loading the kernel no thermal zone was loaded in sysfs.

root@myboard:~# ls /sys/class/thermal/ 

root@myboard:~#

I'm expecting something like below  (based from my imx7dsabresd board)

root@imx7dsabresd:~# ls /sys/class/thermal/                                                                         
cooling_device0/ cooling_device1/ thermal_zone0/

root@imx7dsabresd:~#

BTW, I'm using Yocto Zeus.

Thanks

Javer

Labels (1)
0 Kudos
6 Replies

11 Views
NXP TechSupport
NXP TechSupport

Hi Javer

one can try settings described in sect.2.9.4 Menu Configuration Options

i.MX Linux Reference Manual

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

11 Views
Contributor I

Hello Igor,

Good day!

Yes, I already implemented that as I have explained above.

pastedImage_1.png

I'm thinking if there is any pin that can affect this?

Or is there any modification in device-tree I need to implement?

Thanks,

Javer

0 Kudos

11 Views
NXP TechSupport
NXP TechSupport

Hi Javer

 

what bsp used in the case, suggest to try nxp releases from

source.codeaurora.org/external/imx/linux-imx  repository

linux-imx - i.MX Linux kernel 

 

Best regards
igor

0 Kudos

11 Views
Contributor I

Hello Igor,

Additional information:

I put my software build in an SD card and put in imx7dsabre board.

There I can find below.

root@myboard:~# ls /sys/class/thermal/                                                                         
cooling_device0/ cooling_device1/ thermal_zone0/

root@myboard:~#

But everytime I put the SD card in our custom board.

I cant find anything insie thermal folder

root@myboard:~# ls /sys/class/thermal/

root@myboard:~#

The difference between my board and sabresd board is the PMIC.

Is that affects the driver for thermal?

Thanks,

Javer

0 Kudos

11 Views
NXP TechSupport
NXP TechSupport

Hi Javer

>The difference between my board and sabresd board is the PMIC.

>Is that affects the driver for thermal?

I think yes as all these drivers :  thermal, pmic, pmic regulator, cpu frequency scaling

(CPUFREQ) are tightly coupled with each other. So it is necessary to port new

pmic using sect.2.5 Power Management  i.MX Linux Reference Manual

i.MX Porting Guide

Best regards
igor

0 Kudos

11 Views
Contributor I

Hello Igor,

Below is what I'm currently using.

https://source.codeaurora.org/external/imx/imx-manifest  -b imx-linux-zeus -m imx-5.4.3-2.0.0.xml

Thanks,

Javer

0 Kudos