Skip to content

thermal: mediatek: Add LVTS architecture thermal controller

Michael Kao linux-arm-kernel linux-devicetree linux-mediatek linux-pm lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 7 repliesIn review
  2. v23 patches 1 replySuperseded
  3. v13 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- [2/3]
- change the expression in the lvts_temp_to_raw to dev_s64.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3thermal: mediatek: Relocate driver to mediatek folderdrivers/thermal/Kconfig drivers/thermal/Makefile drivers/thermal/mediatek/Kconfig +2 more+29 -115 replies
2/3thermal: mediatek: Add LVTS drivers for SoC theraml zonesdrivers/thermal/mediatek/Kconfig drivers/thermal/mediatek/Makefile drivers/thermal/mediatek/soc_temp_lvts.c +1 more+1610 -01 reply
3/3dt-bindings: thermal: Add binding document for mt6873 thermal controllerDocumentation/devicetree/bindings/thermal/mediatek-thermal-lvts.yaml+81 -01 reply

Reviews trailers per patch

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

PatchRob Herring
1/3
2/3
3/3R-b

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

Read the v3 thread

Cover letter [v3,0/3] thermal: mediatek: Add LVTS architecture thermal controller

This patch move thermal files related to Mediatek to the mediatek folder. And introduce the new architecture LVTS (low pressure thermal sensor) driver to report the highest temperature in the SoC and record the highest temperature sensor, each sensor as a hot zone.
The LVTS body is divided into two parts, the LVTS controller and the LVTS device. The LVTS controller can connect up to 4 LVTS devices, and each LVTS device can connect up to 7 TSMCUs.

The architecture will be the first to be used on mt6873 and mt8192.

Change in v3:
- [2/3]
- change the expression in the lvts_temp_to_raw to dev_s64.

Change in v2:
- Rebase to kernel-5.11-rc1.
- [2/3]
- sort headers
- remove initial value 0 of msr_raw in the lvts_temp_to_raw.
- disconstruct the api of lvts_read_tc_msr_raw.
- add the initial value max_temp = 0 and compare e.q. in the lvts_read_all_tc_temperature.
- add the return with invalid number in the lvts_init.

This patch depends on [1].

[1]https://patchwork.kernel.org/project/linux-mediatek/cover/[email protected]/

Michael Kao (3):
thermal: mediatek: Relocate driver to mediatek folder
thermal: mediatek: Add LVTS drivers for SoC theraml zones
dt-bindings: thermal: Add binding document for mt6873 thermal
controller

 .../thermal/mediatek-thermal-lvts.yaml        |   81 ++
 drivers/thermal/Kconfig                       |   14 +-
 drivers/thermal/Makefile                      |    2 +-
 drivers/thermal/mediatek/Kconfig              |   33 +
 drivers/thermal/mediatek/Makefile             |    2 +
 .../{mtk_thermal.c => mediatek/soc_temp.c}    |    0
 drivers/thermal/mediatek/soc_temp_lvts.c      | 1287 +++++++++++++++++
 drivers/thermal/mediatek/soc_temp_lvts.h      |  312 ++++
 8 files changed, 1720 insertions(+), 11 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/thermal/mediatek-thermal-lvts.yaml
 create mode 100644 drivers/thermal/mediatek/Kconfig
 create mode 100644 drivers/thermal/mediatek/Makefile
 rename drivers/thermal/{mtk_thermal.c => mediatek/soc_temp.c} (100%)
 create mode 100644 drivers/thermal/mediatek/soc_temp_lvts.c
 create mode 100644 drivers/thermal/mediatek/soc_temp_lvts.h
Signature · 1 line
2.18.0