From: Louis Yu
Add suspend/resume callback to disable/enable Mediatek thermal sensor
respectively. Since thermal power domain is off in suspend, thermal driver
needs re-initialization during resume.
Signed-off-by: Louis Yu
Signed-off-by: Michael Kao
---
This patch series base on these patches
From: Louis Yu
Add suspend/resume callback to disable/enable Mediatek thermal sensor
respectively. Since thermal power domain is off in suspend, thermal driver
needs re-initialization during resume.
Signed-off-by: Louis Yu
Signed-off-by: Michael Kao
---
This patch series base on these patches
This patchset supports for mt8183 chip to mtk_thermal.c.
MT8183 has six temperature sensors and two thermal
controllers. It has different calibration coefficent with
past project, and doesn't need to select bank.
As a result, we add the common architecture for scalability.
change in v2:
1.Add fix
From: Michael Kao
Add calibration item in thermal_data to support
the project with different calibration coefficient.
Signed-off-by: Michael Kao
---
drivers/thermal/mtk_thermal.c | 19 ++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git
From: Michael Kao
For past ic designs, the thermal controller should select banks before
reading the thermal sensor.
And the new ic design architecture removes this mechanism.
Signed-off-by: Michael Kao
---
drivers/thermal/mtk_thermal.c | 20 ++--
1 file changed, 14
From: Michael Kao
This patch adds binding document for mt8183 thermal controller.
Signed-off-by: Michael Kao
---
Documentation/devicetree/bindings/thermal/mediatek-thermal.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/thermal/mediatek-thermal.txt
From: Michael Kao
The index of msr and adcpnp should match the sensor
which belongs to the selected bank in the for loop.
Fixes: b7cf0053738c ("thermal: Add Mediatek thermal driver for mt2701.")
Signed-off-by: Michael Kao
---
drivers/thermal/mtk_thermal.c | 6 --
1 file changed, 4
From: Michael Kao
MT8183 has two built-in thermal controllers with total six thermal
sensors. And it doesn't have bank, so doesn't need to select bank.
This patch adds support for mt8183.
Signed-off-by: Michael Kao
---
drivers/thermal/mtk_thermal.c | 99
From: Michael Kao
Each project has different number of vts settings.
For the MT2701 just have to set three vts, but the
original code flow add five unnecessary vts.
Add common index of vts settings for scalablity,
and reduce the setting of unnecessary vts.
Signed-off-by: Michael Kao
---
From: Michael Kao
One thermal controller can read four sensors at most,
so we need to add controller_offset for the project with
more than four sensors to reuse the same register settings.
Signed-off-by: Michael Kao
---
drivers/thermal/mtk_thermal.c | 79
From: Michael Kao
This patch adds binding document for mt8183 thermal controller.
Signed-off-by: Michael Kao
---
Documentation/devicetree/bindings/thermal/mediatek-thermal.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/thermal/mediatek-thermal.txt
From: Michael Kao
One thermal controller can read four sensors at most,
so we need to add controller_offset for the project with
more than four sensors to reuse the same register settings.
Signed-off-by: Michael Kao
---
drivers/thermal/mtk_thermal.c | 79
From: Michael Kao
MT8183 has two built-in thermal controllers with total six thermal
sensors. And it doesn't have bank, so doesn't need to select bank.
This patch adds support for mt8183.
Signed-off-by: Michael Kao
---
drivers/thermal/mtk_thermal.c | 98
From: Michael Kao
The index of msr and adcpnp should match the sensor
which belongs to the selected bank in the for loop.
Signed-off-by: Michael Kao
---
drivers/thermal/mtk_thermal.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/thermal/mtk_thermal.c
From: Michael Kao
Each project has different number of vts settings.
For the MT2701 just have to set three vts, but the
original code flow add five unnecessary vts.
Add common index of vts settings for scalablity,
and reduce the setting of unnecessary vts.
Signed-off-by: Michael Kao
---
From: Michael Kao
For past ic designs, the thermal controller should select banks before
reading the thermal sensor.
And the new ic design architecture removes this mechanism.
Signed-off-by: Michael Kao
---
drivers/thermal/mtk_thermal.c | 20 ++--
1 file changed, 14
From: Michael Kao
Add calibration item in thermal_data to support
the project with different calibration coefficient.
Signed-off-by: Michael Kao
---
drivers/thermal/mtk_thermal.c | 19 ++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git
From: Michael Kao
This patchset supports for mt8183 chip to mtk_thermal.c.
MT8183 has six temperature sensors and two thermal
controllers. It has different calibration coefficent with
past project, and doesn't need to select bank.
As a result, we add the common architecture for scalability.
18 matches
Mail list logo