[PATCH 2/3] thermal: armada: add support for AP807 thermal data

Miquel Raynal miquel.raynal at bootlin.com
Fri Jun 16 05:56:00 PDT 2023


Hi Russell,

rmk+kernel at armlinux.org.uk wrote on Fri, 16 Jun 2023 12:50:42 +0100:

> From: Alex Leibovich <alexl at marvell.com>
> 
> 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 at marvell.com>
> Tested-by: sa_ip-sw-jenkins <sa_ip-sw-jenkins at marvell.com>
> Reviewed-by: Stefan Chulski <stefanc at marvell.com>
> Signed-off-by: Russell King (Oracle) <rmk+kernel at armlinux.org.uk>

Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>

> ---
>  drivers/thermal/armada_thermal.c | 32 ++++++++++++++++++++++++++++++--
>  1 file changed, 30 insertions(+), 2 deletions(-)
> 


Thanks,
Miquèl



More information about the linux-arm-kernel mailing list