[RESEND PATCH] thermal: mediatek: add suspend/resume callback

2019-10-09 Thread michael.kao
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

[PATCH] thermal: mediatek: add suspend/resume callback

2019-07-02 Thread michael.kao
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

[PATCH v2,0/7] Add Mediatek thermal dirver for mt8183

2019-02-20 Thread 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. change in v2: 1.Add fix

[PATCH v2,3/7] thermal: mediatek: add calibration item

2019-02-20 Thread michael.kao
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

[PATCH v2,5/7] thermal: mediatek: add flag for bank selection

2019-02-20 Thread 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

[PATCH v2,6/7] dt-bindings: thermal: add binding document for mt8183 thermal controller

2019-02-20 Thread michael.kao
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

[PATCH v2,1/7] thermal: mediatek: fix register index error

2019-02-20 Thread michael.kao
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

[PATCH v2,7/7] thermal: mediatek: add support for MT8183

2019-02-20 Thread michael.kao
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

[PATCH v2,2/7] thermal: mediatek: add common index of vts settings.

2019-02-20 Thread michael.kao
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 ---

[PATCH v2,4/7] thermal: mediatek: add thermal controller offset

2019-02-20 Thread 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

[PATCH 6/7] dt-bindings: thermal: add binding document for mt8183 thermal controller

2019-01-31 Thread michael.kao
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

[PATCH 4/7] thermal: mediatek: add thermal controller offset

2019-01-31 Thread 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

[PATCH 7/7] thermal: mediatek: add support for MT8183

2019-01-31 Thread michael.kao
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

[PATCH 1/7] thermal: mediatek: fix register index error

2019-01-31 Thread michael.kao
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

[PATCH 2/7] thermal: mediatek: add common index of vts settings.

2019-01-31 Thread michael.kao
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 ---

[PATCH 5/7] thermal: mediatek: add flag for bank selection

2019-01-31 Thread 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

[PATCH 3/7] thermal: mediatek: add calibration item

2019-01-31 Thread michael.kao
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

[PATCH 0/7] Add Mediatek thermal dirver for mt8183

2019-01-31 Thread michael.kao
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.