linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] thermal: rcar_gen3: Use temperature approximation from datasheet
@ 2024-03-07 11:02 Niklas Söderlund
  2024-03-07 11:02 ` [PATCH 1/3] thermal: rcar_gen3: Move Tj_T storage to shared private data Niklas Söderlund
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Niklas Söderlund @ 2024-03-07 11:02 UTC (permalink / raw)
  To: Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba,
	linux-pm
  Cc: Geert Uytterhoeven, linux-renesas-soc, Niklas Söderlund

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(-)

-- 
2.44.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-03-20 15:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-07 11:02 [PATCH 0/3] thermal: rcar_gen3: Use temperature approximation from datasheet Niklas Söderlund
2024-03-07 11:02 ` [PATCH 1/3] thermal: rcar_gen3: Move Tj_T storage to shared private data Niklas Söderlund
2024-03-20 12:47   ` Geert Uytterhoeven
2024-03-20 12:49   ` Geert Uytterhoeven
2024-03-07 11:02 ` [PATCH 2/3] thermal: rcar_gen3: Update temperature approximation calculation Niklas Söderlund
2024-03-20 13:22   ` Geert Uytterhoeven
2024-03-20 13:31     ` Geert Uytterhoeven
2024-03-20 15:07     ` Niklas Söderlund
2024-03-07 11:02 ` [PATCH 3/3] thermal: rcar_gen3: Increase granularity of readings Niklas Söderlund
2024-03-20 13:27   ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).