Skip to content

thermal: samsung: acpm-tmu: Add Exynos850 support

Alexey Klimov linux-devicetree linux-pm linux-samsung-soc lkml 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20260708-acpm-tmu-e850-support-e02765ebc9e3

Versions newest first · linked by author and title

  1. v2 Latest3 patches 5 repliesIn review
  2. v13 patches 1 replySuperseded

Changes in v2 from the cover letter

- rebased;
- reworked defines and hardcoded values a bit;
- removed efuse_value from acpm_tmu_sensor struct;
- regmap renamed to "exynos850_tmu_regs" from "e850_tmu_regs";
- checked ret value from regmap_read/update_bits calls;
- dev_err() -> dev_err_ratelimited() and return error if clearing
irq failed in exynos850_handle_irqs();
- exynos850_tmu_update_thresholds() tries to restore sensor state
if failed;
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: thermal: gs101-tmu: add Exynos850 compatibleDocumentation/devicetree/bindings/thermal/google,gs101-tmu-top.yaml+18 -81 reply
2/3thermal: samsung: acpm-tmu: refactor SoC-specific operations into driver datadrivers/thermal/samsung/acpm-tmu.c+82 -311 reply
3/3thermal: samsung: acpm-tmu: add Exynos850 supportdrivers/thermal/samsung/acpm-tmu.c+480 -11 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchRob Herring (Arm)Tudor Ambarus
1/3A-b R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] thermal: samsung: acpm-tmu: Add Exynos850 support

This series adds support for the Thermal Management Unit found on the Samsung Exynos850 SoC to the existing acpm-tmu driver.

The acpm-tmu driver was recently introduced to support a hybrid thermal architecture where hardware management is shared between the kernel and the ACPM firmware.

However, the distribution of responsibilities between the Application Processor and the firmware varies depending on the SoC:

1. GS101 (Existing):
The ACPM firmware handles sensor initialization, threshold configuration, and temperature reading via ACPM IPC. The kernel only uses MMIO to read the interrupt pending registers.

2. Exynos850 (This series):
The firmware implements a much smaller subset of TMU IPC commands (temperature readings, TMU suspend/resume, basic TMU init). The driver should use direct MMIO register access to support the remaining functionality.

In this series the patch 2/3 prepares the acpm-tmu driver by moving the hardcoded GS101 IPC calls into SoC-specific callbacks: tz_control, tmu_init, tmu_update_thresholds, and tmu_check_and_clear_irqs. The patch 3/3 implements actual Exynos850 support.

Tested with:

tmu_top: thermal-sensor@100a0000 {
	compatible = "samsung,exynos850-tmu-top";
	reg = <0x10070000 0x800>;
	interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>;
	clocks = <&cmu_peri CLK_GOUT_BUSIF_TMU_PCLK>;
	samsung,acpm-ipc = <&acpm_ipc>;
	#thermal-sensor-cells = <1>;
};

and corresponding thermal zones.

---
Changes in v2:
- rebased;
- reworked defines and hardcoded values a bit;
- removed efuse_value from acpm_tmu_sensor struct;
- regmap renamed to "exynos850_tmu_regs" from "e850_tmu_regs";
- checked ret value from regmap_read/update_bits calls;
- dev_err() -> dev_err_ratelimited() and return error if clearing
irq failed in exynos850_handle_irqs();
- exynos850_tmu_update_thresholds() tries to restore sensor state
if failed;
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Alexey Klimov (3):
dt-bindings: thermal: gs101-tmu: add Exynos850 compatible
thermal: samsung: acpm-tmu: refactor SoC-specific operations into driver data
thermal: samsung: acpm-tmu: add Exynos850 support

 .../bindings/thermal/google,gs101-tmu-top.yaml     |  26 +-
 drivers/thermal/samsung/acpm-tmu.c                 | 588 ++++++++++++++++++++-
 2 files changed, 577 insertions(+), 37 deletions(-)

---
base-commit: 7cfbf79c66c63e807ea452abf0546e6f6d6833a6
change-id: 20261118-acpm-tmu-e850-support-d10e9018719b

Best regards,

Signature · 1 line
Alexey Klimov <[email protected]>