easytarget / MQ-Pro-IO

Investigating the MangoPi MQ pro
12 stars 0 forks source link

CPU Temperature sensor gives incorrect reading #9

Open easytarget opened 1 month ago

easytarget commented 1 month ago

The CPU temperature as reported by lm-sensors is badly off.

https://github.com/easytarget/MQ-Pro-IO/blob/main/GPIO-examples.md#onboard-cpu-temperature-sensor

This might be a bad hardware situation but...

I think there is a reference that needs to be set in the device tree for the sensor; based on some things I noticed in passing in the tech spec for the D1.

Good candidate for a DT overlay first project.

easytarget commented 1 month ago

Maybe they go he offset and stepping wrong here: https://patchwork.kernel.org/project/linux-riscv/patch/20231217210629.131486-3-bigunclemax@gmail.com/#25642582

easytarget commented 1 month ago

The Thermal device has a voltage reference defined in some device trees, but some of the older ones from the initial rollout do not specify one. Humm.. ??