mbox series

[0/3] thermal: rcar_gen3: Use temperature approximation from datasheet

Message ID 20240307110216.2962918-1-niklas.soderlund+renesas@ragnatech.se (mailing list archive)
Headers show
Series thermal: rcar_gen3: Use temperature approximation from datasheet | expand

Message

Niklas Söderlund March 7, 2024, 11:02 a.m. UTC
Hello,

When the driver was first added the temperature approximation was 
reversed engineered from an out-of-tree driver as the datasheets of the 
time did not contain this information. Recent datasheets, both Gen3 and 
Gen4, now contains this information.

This series changes the temperature approximation formula to match 
what's described in the datasheets. It has been tested on both Gen3 and 
Gen4 with minimal changes in temperatures reported.

Patch 1 is a cleanup making the scope of a constant more clear. Patch 3 
increases the granularity of the readout to 1 decimal to match recent 
datasheets. While Patch 2 is the real work changing the approximation 
formula.

Niklas Söderlund (3):
  thermal: rcar_gen3: Move Tj_T storage to shared private data
  thermal: rcar_gen3: Update temperature approximation calculation
  thermal: rcar_gen3: Increase granularity of readings

 drivers/thermal/rcar_gen3_thermal.c | 144 ++++++++++++++++------------
 1 file changed, 81 insertions(+), 63 deletions(-)