提交 f5f633b1 编写于 作者: B Balsam CHIHI 提交者: Rafael J. Wysocki

thermal/drivers/mediatek: Add the Low Voltage Thermal Sensor driver

The Low Voltage Thermal Sensor (LVTS) is a multiple sensors, multi
controllers contained in a thermal domain.

A thermal domains can be the MCU or the AP.

Each thermal domains contain up to seven controllers, each thermal
controller handle up to four thermal sensors.

The LVTS has two Finite State Machines (FSM), one to handle the
functionin temperatures range like hot or cold temperature and another
one to handle monitoring trip point. The FSM notifies via interrupts
when a trip point is crossed.

The interrupt is managed at the thermal controller level, so when an
interrupt occurs, the driver has to find out which sensor triggered
such an interrupt.

The sampling of the thermal can be filtered or immediate. For the
former, the LVTS measures several points and applies a low pass
filter.
Signed-off-by: NBalsam CHIHI <bchihi@baylibre.com>
Reviewed-by: NAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>

On MT8195 Tomato Chromebook:
Tested-by: NAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230209105628.50294-5-bchihi@baylibre.comSigned-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 498e2f7a
...@@ -18,4 +18,20 @@ config MTK_SOC_THERMAL ...@@ -18,4 +18,20 @@ config MTK_SOC_THERMAL
This driver configures thermal controllers to collect This driver configures thermal controllers to collect
temperature via AUXADC interface. temperature via AUXADC interface.
config MTK_LVTS_THERMAL
tristate "LVTS Thermal Driver for MediaTek SoCs"
depends on HAS_IOMEM
help
Enable this option if you want to get SoC temperature
information for supported MediaTek platforms.
This driver configures LVTS (Low Voltage Thermal Sensor)
thermal controllers to collect temperatures via ASIF
(Analog Serial Interface).
config MTK_LVTS_THERMAL_DEBUGFS
bool "LVTS thermal debugfs"
depends on MTK_LVTS_THERMAL && DEBUG_FS
help
Enable this option to debug the internals of the device driver.
endif endif
obj-$(CONFIG_MTK_SOC_THERMAL) += auxadc_thermal.o obj-$(CONFIG_MTK_SOC_THERMAL) += auxadc_thermal.o
obj-$(CONFIG_MTK_LVTS_THERMAL) += lvts_thermal.o
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册