Re: [PATCH v16 1/2] thermal: loongson-2: add thermal management support

From: Daniel Lezcano
Date: Thu Aug 17 2023 - 03:32:40 EST


On 17/08/2023 04:10, Yinbo Zhu wrote:
This patch adds the support for Loongson-2 thermal sensor controller,
which can support maximum four sensor selectors that corresponding to four
sets of thermal control registers and one set of sampling register. The
sensor selector can selector a speific thermal sensor as temperature input.
The sampling register is used to obtain the temperature in real time, the
control register GATE field is used to set the threshold of high or low
temperature, when the input temperature is higher than the high temperature
threshold or lower than the low temperature threshold, an interrupt will
occur.

Signed-off-by: zhanghongchen <zhanghongchen@xxxxxxxxxxx>
Signed-off-by: Yinbo Zhu <zhuyinbo@xxxxxxxxxxx>
---
Change in v16:
1. Remove the test and message in the context of
devm_thermal_add_hwmon_sysfs.

Applied, thanks