FriendlyARM NanoPi Neo2 Temp/CPU info

Hi, have tried to get an answer on the FriendlyARM forum with no luck. Have OpenWRT happily running on a number of Neo2 (Allwinner H5) boards. Trying to find out what kernel modules we need to have present to get cpu_freq/temperature readings from the CPU. Friendly's own OpenWRT build has this functional so we know it's possible. It's a pretty bare bones build without luci or any wireless firmware (just a processor module). Any suggestions very much appreciated.
Cheers Rob

being not familiar with the board.... some ideas...;

do you get anything from?

find /sys | grep thermal | grep temp

can you get a hold of a config.gz or .config from that OS?

Thanks for the suggestion and we found before that /sys/devices/virtual/thermal/thermal_zone0/temp wasn't there on our build. On the same rev hardware, with their OpenWRT build we get:

root@OpenWrt:~# find /sys | grep thermal | grep temp

/sys/devices/virtual/thermal/thermal_zone0/trip_point_3_temp
/sys/devices/virtual/thermal/thermal_zone0/trip_point_2_temp
/sys/devices/virtual/thermal/thermal_zone0/emul_temp
/sys/devices/virtual/thermal/thermal_zone0/trip_point_1_temp
/sys/devices/virtual/thermal/thermal_zone0/temp
/sys/devices/virtual/thermal/thermal_zone0/trip_point_0_temp
/sys/firmware/devicetree/base/thermal-zones/cpu_thermal/trips/cpu_crit/temperature
/sys/firmware/devicetree/base/thermal-zones/cpu_thermal/trips/cpu_very_hot/temperature
/sys/firmware/devicetree/base/thermal-zones/cpu_thermal/trips/cpu_hot/temperature
/sys/firmware/devicetree/base/thermal-zones/cpu_thermal/trips/cpu_warm/temperature

root@OpenWrt:~# cat /sys/devices/virtual/thermal/thermal_zone0/temp
35612

but nothing on ours (so it's clearly something we've missed in our kernel config I expect). I've asked for their buildroot config but haven't heard anything back ;(

Their build is on OpenWrt 18.06.1, r7258-5eb055306f,

Ours is on OpenWrt 18.06-SNAPSHOT, r7790-2999c34

There's no thermal driver in either OpenWrt or mainline kernel yet

http://linux-sunxi.org/Linux_mainlining_effort#Minor_drivers - "Thermal driver WIP: Philipp Rossak (embed-3d) v3-branch:"

A few unmerged PRs about it: