thermal/drivers/armada: Add support for AP807 thermal data
authorAlex Leibovich <alexl@marvell.com>
Fri, 16 Jun 2023 11:50:42 +0000 (12:50 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 26 Jun 2023 10:03:14 +0000 (12:03 +0200)
commit62a094e757a75b5d0a63dfe17a7c17ab2da330fd
treeb12d17bf757d43afafd2301b5f297c280ce453b9
parent705fd8f189124eae20f746a374d1cb63856d06b7
thermal/drivers/armada: Add support for AP807 thermal data

Add support for the AP807 die thermal data. This is the same as AP806,
except for the coefficients.

ap807 values taken from TSENSE_ADC_16FFC spec, which says:
T(in Celsius) = T(code)*TSENE_GAIN+TSENE_OFFSET
where in default:
TSENE_OFFSET = 128.9
TSENE_GAIN = 0.394

Signed-off-by: Alex Leibovich <alexl@marvell.com>
Tested-by: sa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com>
Reviewed-by: Stefan Chulski <stefanc@marvell.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/E1qA7yU-00Ea4u-Je@rmk-PC.armlinux.org.uk
drivers/thermal/armada_thermal.c