Temperature Sensors

I was searching if there are integrated temperature sensors for the CPU? And if so are they at cluster level or core level?

Hi, @hrexha

The hi3660 SoC thermal is based on cluster level: https://android.googlesource.com/kernel/hikey-linaro/+/f518fe49bbaa28b46734b65905214ea857412595^!/#F0

IIRC, the thermal ID is corresponding to different modules:

ID 0: cluster 0
ID 1: cluster 1
ID 3: modem

Thanks for the reply @leo-yan.
Does it work on linux installation, i want to be sure before to buy the product.

If “Linux installation” means AOSP android building, I can confirm the thermal driver has been enabled in all kernel versions (4.4, 4.9 and 4.14).

If you mean Debian installation, e.g. the Debian release: http://snapshots.linaro.org/96boards/hikey/linaro/debian/latest/, it doesn’t enable thermal driver for Hikey960. The kernel or DTS must miss thermal related code or building thermal module.

The last thing is if you want to work on mainline kernel, the Hikey960 thermal driver has been merged into Linux mainline kernel, but Hikey960 USB/UFS patches are out of mainline kernel tree, so mainline kernel has difficulty to directly experiment thermal on it.

@leo-yan sorry i was meaning debian or ubuntu possibly., but unfortunately as you are saying i might have problems in that area. Do you know any development board with integrated temp sensors?
Thanks .