Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU Temperature sensor gives incorrect reading #9

Open
easytarget opened this issue Sep 19, 2024 · 2 comments
Open

CPU Temperature sensor gives incorrect reading #9

easytarget opened this issue Sep 19, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@easytarget
Copy link
Owner

easytarget commented Sep 19, 2024

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.

  • Eg this may be 'fixable'
  • Looking at device trees for other D1 based boards might bear fruit.

Good candidate for a DT overlay first project.

@easytarget easytarget added enhancement New feature or request good first issue Good for newcomers labels Sep 19, 2024
@easytarget
Copy link
Owner Author

Maybe they go he offset and stepping wrong here:
https://patchwork.kernel.org/project/linux-riscv/patch/[email protected]/#25642582

@easytarget easytarget changed the title CPU Temp CPU Temperature sensor gives incorrect reading Sep 20, 2024
@easytarget easytarget added bug Something isn't working and removed good first issue Good for newcomers bug Something isn't working labels Sep 20, 2024
@easytarget
Copy link
Owner Author

easytarget commented Sep 20, 2024

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.. ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant