Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/9] Add thermal sensor driver support for Mediatek MT8196
@ 2025-11-21 11:16 Laura Nao
  2025-11-21 11:16 ` [PATCH v4 1/9] dt-bindings: thermal: mediatek: Add LVTS thermal controller support for MT8196 Laura Nao
                   ` (8 more replies)
  0 siblings, 9 replies; 18+ messages in thread
From: Laura Nao @ 2025-11-21 11:16 UTC (permalink / raw)
  To: srini, robh, krzk+dt, conor+dt, rafael, daniel.lezcano, rui.zhang,
	lukasz.luba, matthias.bgg, angelogioacchino.delregno
  Cc: nfraprado, arnd, colin.i.king, u.kleine-koenig, andrew-ct.chen,
	lala.lin, bchihi, frank-w, wenst, fshao, devicetree, linux-kernel,
	linux-pm, linux-arm-kernel, linux-mediatek, kernel, Laura Nao

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>


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2025-11-25 11:11 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-21 11:16 [PATCH v4 0/9] Add thermal sensor driver support for Mediatek MT8196 Laura Nao
2025-11-21 11:16 ` [PATCH v4 1/9] dt-bindings: thermal: mediatek: Add LVTS thermal controller support for MT8196 Laura Nao
2025-11-21 11:16 ` [PATCH v4 2/9] thermal/drivers/mediatek/lvts: Make number of calibration offsets configurable Laura Nao
2025-11-24 18:25   ` Daniel Lezcano
2025-11-25 11:06     ` Laura Nao
2025-11-21 11:16 ` [PATCH v4 3/9] thermal/drivers/mediatek/lvts: Fail probe if temp_factor is zero Laura Nao
2025-11-21 13:00   ` AngeloGioacchino Del Regno
2025-11-24 17:56   ` Daniel Lezcano
2025-11-25 11:08     ` Laura Nao
2025-11-21 11:16 ` [PATCH v4 4/9] thermal: mediatek: lvts: Add platform ops to support alternative conversion logic Laura Nao
2025-11-21 13:00   ` AngeloGioacchino Del Regno
2025-11-21 13:02     ` Frank Wunderlich
2025-11-25 11:10       ` Laura Nao
2025-11-21 11:16 ` [PATCH v4 5/9] thermal/drivers/mediatek/lvts: Add lvts_temp_to_raw variant Laura Nao
2025-11-21 11:16 ` [PATCH v4 6/9] thermal/drivers/mediatek/lvts: Add support for ATP mode Laura Nao
2025-11-21 11:16 ` [PATCH v4 7/9] thermal/drivers/mediatek/lvts: Support MSR offset for 16-bit calibration data Laura Nao
2025-11-21 11:16 ` [PATCH v4 8/9] thermal/drivers/mediatek/lvts_thermal: Add MT8196 support Laura Nao
2025-11-21 11:16 ` [PATCH v4 9/9] dt-bindings: nvmem: mediatek: efuse: Add support for MT8196 Laura Nao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox