[PATCH 0/3] thermal: samsung: acpm-tmu: Add Exynos850 support
Alexey Klimov <[email protected]>
| Newsgroups | org.kernel.vger.linux-samsung-soc,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pm |
|---|---|
| Message-ID | <[email protected]> |
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. There are some updates to be made (rework defines a little bit and get rid of hardcoded values in exynos850_tmu_init() but it will be useful to get feedback about patch 2/3 which is refactoring acpm-tmu to support more than one SoC. Dependencies ============ This series is done on top of the following series from Tudor: v8 gs101 acpm-tmu support https://lore.kernel.org/linux-samsung-soc/[email protected]/ Signed-off-by: Alexey Klimov <[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 | 460 +++++++++++++++++++-- 2 files changed, 445 insertions(+), 41 deletions(-) --- base-commit: a1c3227fc1a1cd83cd7fceb93406da4e37fe06eb change-id: 20260708-acpm-tmu-e850-support-e02765ebc9e3 prerequisite-message-id: [email protected] prerequisite-patch-id: 335add736ef8f6753c3bdd94f19747aa4b9e782b prerequisite-patch-id: e254a5f13d367da94d4bd299304859baa9409f0b prerequisite-patch-id: 45efb8d607e3380686135441c62eb6c2747e70e3 prerequisite-patch-id: 718107c8283ea4a449d9838b57966e1c319f32b5 prerequisite-patch-id: 45b02a84dacb09cd95969b638caa64960f73d242 Best regards, -- Alexey Klimov <[email protected]>