[PATCH v4 0/9] Add thermal sensor driver support for Mediatek MT8196

Laura Nao posted 9 patches 1 week, 3 days ago
There is a newer version of this series
.../devicetree/bindings/nvmem/mediatek,efuse.yaml  |   1 +
.../bindings/thermal/mediatek,lvts-thermal.yaml    |   2 +
drivers/thermal/mediatek/lvts_thermal.c            | 307 +++++++++++++++++++--
.../dt-bindings/thermal/mediatek,lvts-thermal.h    |  26 ++
4 files changed, 315 insertions(+), 21 deletions(-)
[PATCH v4 0/9] Add thermal sensor driver support for Mediatek MT8196
Posted by Laura Nao 1 week, 3 days ago
This patch series extends the MediaTek LVTS thermal driver to support the
MT8196 SoC.

MT8196 requires a different implementation of the lvts_temp_to_raw()
function.

To support this, the series introduces:

- A new struct lvts_platform_ops to allow platform-specific
  conversion logic between raw sensor values and temperature
- A variant of the lvts_temp_to_raw() implementation
- Platform data and controller definitions for MT8196

Link to v3: https://lore.kernel.org/all/20251016142158.740242-1-laura.nao@collabora.com/

Changes in v4:
- Dropped v1/v2 suffixes, replaced with mt7988/mt8196
- Added lvts_raw_to_temp/lvts_temp_to_raw functions, which return the 
  corresponding SoC-specific ops.
- Changed probe logic to fail when temp_factor == 0, dropped checks at
  runtime
- Dropped R-b/T-b tags on affected patches (3 and 4)

---
Laura Nao (9):
      dt-bindings: thermal: mediatek: Add LVTS thermal controller support for MT8196
      thermal/drivers/mediatek/lvts: Make number of calibration offsets configurable
      thermal/drivers/mediatek/lvts: Fail probe if temp_factor is zero
      thermal: mediatek: lvts: Add platform ops to support alternative conversion logic
      thermal/drivers/mediatek/lvts: Add lvts_temp_to_raw variant
      thermal/drivers/mediatek/lvts: Add support for ATP mode
      thermal/drivers/mediatek/lvts: Support MSR offset for 16-bit calibration data
      thermal/drivers/mediatek/lvts_thermal: Add MT8196 support
      dt-bindings: nvmem: mediatek: efuse: Add support for MT8196

 .../devicetree/bindings/nvmem/mediatek,efuse.yaml  |   1 +
 .../bindings/thermal/mediatek,lvts-thermal.yaml    |   2 +
 drivers/thermal/mediatek/lvts_thermal.c            | 307 +++++++++++++++++++--
 .../dt-bindings/thermal/mediatek,lvts-thermal.h    |  26 ++
 4 files changed, 315 insertions(+), 21 deletions(-)
---
base-commit: abadc219d77ce0e61fcac0147cc6cc69164af43e
change-id: 20251121-mt8196-lvts-v4-a61fb5c27216

Best regards,
-- 
Laura Nao <laura.nao@collabora.com>