Hikey thermal sensor failed to register

Hi,

I enabled “CONFIG_HISI_THERMAL” in config and during boot I see below in dmesg

[ 0.710494] hisi_thermal f7030700.tsensor: THERMAL ALARM: T > 0
[ 0.710554] hisi_thermal f7030700.tsensor: failed to register sensor id 0: -19
[ 0.710559] hisi_thermal f7030700.tsensor: failed to register thermal sensor: -19
[ 0.710577] hisi_thermal f7030700.tsensor: failed to register sensor id 1: -19
[ 0.710581] hisi_thermal f7030700.tsensor: failed to register thermal sensor: -19
[ 0.725933] hisi_thermal f7030700.tsensor: failed to register sensor id 3: -19
[ 0.726007] hisi_thermal f7030700.tsensor: failed to register thermal sensor: -19

I am using 4.9 kernel and uboot.

Any pointer on above issue? Is there some additional config or so needs to be enabled?

Thanks,
Ivid

Hi @ivid, this log is expected. You could see there have no error reporting for sensor id 2, we only use thermal sensor id 2 and don’t use other sensor ids. So the log reports the failed binding for sensor id 0/1/3.

So can we continue to discuss the thermal issue in the ticket “Hikey 620 shutdown after heating up”?

Thank you @leo-yan for the explanation and for help in thermal issue