sunxi: Add OPP table, cpu voltage control, cpu thermal sensor for Xunlong Orange...
authorVitalij Alshevsky <v_alshevsky@tut.by>
Thu, 29 Mar 2018 05:36:12 +0000 (08:36 +0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 22 Sep 2018 19:29:21 +0000 (21:29 +0200)
commitd867a91e4e86741c722d2d2f8e5f6cf5d1287dad
tree320fbaba17b4d8fe9e16ece5f34ffa619e3a8151
parent87d7a596eca7809a7845d507fd32d0e52230f11e
sunxi: Add OPP table, cpu voltage control, cpu thermal sensor for Xunlong Orange Pi PC

Temperature info:
 cat /sys/class/thermal/thermal_zone0/temp
Scaling governors info (performance or powersave):
 cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
 echo "powersave" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Warning! For hard working system active cooling must be

Tests resulte with stress [menuconfig>tools>stress]:
Temp after test with passive cooling (aluminum heat sink) about 78-82C
Idle temp about 30-36C

for i in 480000 816000 1008000 1296000 1440000 ; do
 echo "cur temp: `cat /sys/class/thermal/thermal_zone0/temp`"
 echo "set freq to: " $i
 echo $i >/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
 stress -t 300 --cpu 4 --vm 2 --vm-bytes 512MB --io 4
 echo "temp after test: `cat /sys/class/thermal/thermal_zone0/temp`"
 sleep 60
done

Signed-off-by: Vitalij Alshevsky <v_alshevsky@tut.by>
target/linux/sunxi/cortexa7/config-default
target/linux/sunxi/patches-4.14/050-sun8i-H3-Orange-Pi-PC-cpufreq-thermal.patch [new file with mode: 0644]