[][kernel][mt7988][lvts][Add multiple thermal zones support]

[Description]
Add multiple thermal zones support.

We originally only registered one thermal zone (zone0) to
obtain the maximum temperature monitored in the entire IC.

If there are areas on the IC that exhibit higher termperatures,
we would not be able to determine which area is causing it.
Therefore, we have added zones 1 to 8 to obtain temperatures
from different thermal sensors. (For now, the thermal framework
supports only 1 sensor per zone.)

Thermal zones 1 to 8 represent thermal sensors 0 to 7.

Test Command:
cat /sys/class/thermal/thermal_zone[0~8]/type
cat /sys/class/thermal/thermal_zone[0~8]/temp

Test Result:
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone0/type
soc_thermal
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone0/temp
46263
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone1/type
mcusys_thermal0
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone1/temp
44339
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone2/type
mcusys_thermal1
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone2/temp
44489
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone3/type
eth2p5g_thermal0
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone3/temp
44489
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone4/type
eth2p5g_thermal1
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone4/temp
44451
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone5/type
tops_thermal0
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone5/temp
45338
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone6/type
tops_thermal1
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone6/temp
45513
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone7/type
ethsys_thermal0
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone7/temp
46050
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone8/type
ethsys_thermal1
root@OpenWrt:/# cat /sys/class/thermal/thermal_zone8/temp
46275

[Release-log]
N/A


Change-Id: I0464d001355d63b461d1a29f8c178183c42818bf
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/9106476
1 file changed