On Wed, 2026-06-03 at 13:00 +0000, Tudor Ambarus wrote:
> Add driver for the Thermal Management Unit (TMU) managed via the Alive
> Clock and Power Manager (ACPM), found on Samsung Exynos SoCs such as
> the Google GS101.
> 
> The TMU on the GS101 utilizes a hybrid management model shared between
> the Application Processor (AP) and the ACPM firmware. The driver
> maintains direct memory-mapped access to the TMU interrupt pending
> registers to identify thermal events, while delegating functional
> tasks - such as sensor initialization, threshold configuration, and
> temperature acquisition, to the ACPM firmware via the ACPM IPC
> protocol.
> 
> Signed-off-by: Tudor Ambarus <[email protected]>
> Acked-by: Krzysztof Kozlowski <[email protected]>
> ---
>  drivers/thermal/samsung/Kconfig    |  19 ++
>  drivers/thermal/samsung/Makefile   |   2 +
>  drivers/thermal/samsung/acpm-tmu.c | 651 
> +++++++++++++++++++++++++++++++++++++
>  3 files changed, 672 insertions(+)
> 
> diff --git a/drivers/thermal/samsung/Kconfig b/drivers/thermal/samsung/Kconfig
> index f4eff5a41a84..bf9fb52e848e 100644
> --- a/drivers/thermal/samsung/Kconfig
> +++ b/drivers/thermal/samsung/Kconfig
> @@ -9,3 +9,22 @@ config EXYNOS_THERMAL
>         the TMU, reports temperature and handles cooling action if defined.
>         This driver uses the Exynos core thermal APIs and TMU configuration
>         data from the supported SoCs.
> +
> +config EXYNOS_ACPM_THERMAL
> +     tristate "Exynos ACPM thermal management unit driver"
> +     depends on THERMAL_OF
> +     depends on HAS_IOMEM
> +     depends on EXYNOS_ACPM_PROTOCOL
> +     default ARCH_EXYNOS
> +     help
> +       Support for the Thermal Management Unit (TMU) on Samsung Exynos SoCs
> +       utilizing the ACPM IPC protocol, such as the Google GS101.
> +
> +       The TMU on these platforms is managed through a hybrid architecture.
> +       This driver handles direct register access for thermal interrupt 
> status
> +       monitoring and communicates with the Alive Clock and Power Manager
> +       (ACPM) firmware via the ACPM IPC protocol for functional sensor 
> control
> +       and configuration.
> +
> +       Select this if you want to monitor device temperature and enable
> +       thermal mitigation on Samsung Exynos ACPM based devices.

If you're sending a new version, it might make sense to add a brief
clarification to the existing CONFIG_EXYNOS_THERMAL in that it only
supports (the older?) non-ACPM designs.

In any case:
Reviewed-by: André Draszik <[email protected]>

Reply via email to