thermal/drivers/sun8i: Add support for H616 THS controller
authorMartin Botka <martin.botka@somainline.org>
Mon, 19 Feb 2024 15:36:38 +0000 (15:36 +0000)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 11 Mar 2024 16:14:46 +0000 (17:14 +0100)
commit83620b3b04c663663c5f75d44db7a16077e4f02b
tree3b6866d1090838d173563d7a3ca178ab8eacf671
parentbd0b451bd40fbe42d5d36e3740c489d503636d48
thermal/drivers/sun8i: Add support for H616 THS controller

Add support for the thermal sensor found in H616 SoCs, is the same as
the H6 thermal sensor controller, but with four sensors.
Also the registers readings are wrong, unless a bit in the first SYS_CFG
register cleared, so set exercise the SRAM regmap to take care of that.

Signed-off-by: Martin Botka <martin.botka@somainline.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20240219153639.179814-7-andre.przywara@arm.com
drivers/thermal/sun8i_thermal.c