Re: [PATCH v4 2/2] thermal: Add support for Airoha EN7581 thermal sensor

From: Christian Marangi
Date: Wed Dec 04 2024 - 03:10:28 EST


On Thu, Nov 14, 2024 at 10:19:19PM +0100, Christian Marangi wrote:
> 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.
>
> Signed-off-by: Christian Marangi <ansuelsmth@xxxxxxxxx>
> ---
> Changes v4:
> - Handle offset and slope in priv driver
> Changes v3:
> - Handle thermal_zone_device moved in different header
> - Enable interrupt after thermal register
> - Use new way to provide slope and offset
> Changes v2:
> - Add missing Makefile and Kconfig entry (somehow not included in v1)
> - Sort include header
> - Add missing bitfield.h
>
> drivers/thermal/Kconfig | 9 +
> drivers/thermal/Makefile | 1 +
> drivers/thermal/airoha_thermal.c | 480 +++++++++++++++++++++++++++++++
> 3 files changed, 490 insertions(+)
> create mode 100644 drivers/thermal/airoha_thermal.c
>

Hi Daniel,

sorry if I get annoying just to not lose track of this on my side,
I dropped the sysfs change and now it's handled in priv... Should be ok
now?

--
Ansuel