Skip to content

Conversation

@avian2
Copy link

@avian2 avian2 commented Feb 25, 2025

This makes makes it possible to read the last actual temperature sensor readout, and temperatures at last VCO and PHY calibations from separate files in debugfs.

Previously "mt76/temperature" in debugfs only showed last PHY calibration temperature, not last readout, which was confusing.

I'm not sure what the units are supposed to be here. The arithmetic in the code looks suspiciously like conversion from Celsius to Fahrenheit. On a MT7610E (TP-Link Archer C20 v1) I get read outs of around 82-86 while an IR thermometer on the actual chip shows around 30 degrees Celsius, so it roughly makes sense that it's in degrees Fahrenheit.

In any case, the resolution of the readout isn't that great, only roughly 2 degrees Celsius/4 degrees Fahrenheit.

This makes makes it possible to read the last actual temperature sensor
readout, and temperatures at last VCO and PHY calibations from separate files
in debugfs.

Previously "mt76/temperature" in debugfs only showed last PHY calibration
temperature, not last readout, which was confusing.

I'm not sure what the units are supposed to be here. The arithmetic in the code
looks suspiciously like conversion from Celsius to Fahrenheit. On a MT7610E
(TP-Link Archer C20 v1) I get read outs of around 82-86 while an IR thermometer
on the actual chip shows around 30 degrees Celsius, so it roughly makes sense
that it's in degrees Fahrenheit.

In any case, the resolution of the readout isn't that great, only roughly 2
degrees Celsius/4 degrees Fahrenheit.

Signed-off-by: Tomaz Solc <tomaz.solc@tablix.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant