]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
thermal/drivers: Add support for Airoha EN7581 thermal sensor
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 11 May 2025 18:49:55 +0000 (20:49 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 16 May 2025 10:50:01 +0000 (12:50 +0200)
commit42de37f40e1bc818df216dfa0918c114cfb5941d
treee5f39b9054344fa4986fb044733a32bd60cc48a2
parentfd55708d58c4b1155dc224d2abfb7dd99e12af7a
thermal/drivers: Add support for Airoha EN7581 thermal sensor

Add support for Airoha EN7581 thermal sensor. This provide support for
reading the CPU or SoC Package sensor and to setup trip points for hot
and critical condition. An interrupt is fired to react on this and
doesn't require passive poll to read the temperature.

The thermal regs provide a way to read the ADC value from an external
register placed in the Chip SCU regs. Monitor will read this value and
fire an interrupt if the trip condition configured is reached.

The Thermal Trip and Interrupt logic is conceptually similar to Mediatek
LVTS Thermal but differ in register mapping and actual function/bug
workaround. The implementation only share some register names but from
functionality observation it's very different and used only for the
basic function of periodically poll the temp and trip the interrupt.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Link: https://lore.kernel.org/r/20250511185003.3754495-2-ansuelsmth@gmail.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/Kconfig
drivers/thermal/Makefile
drivers/thermal/airoha_thermal.c [new file with mode: 0644]