devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] thermal: sun8i: fix r40 ths number
@ 2020-01-06 17:46 Yangtao Li
  2020-01-06 17:46 ` [PATCH v2 2/2] ARM: dts: sun8i-r40: Add thermal sensor and thermal zones Yangtao Li
  0 siblings, 1 reply; 9+ messages in thread
From: Yangtao Li @ 2020-01-06 17:46 UTC (permalink / raw)
  To: robh+dt, mark.rutland, mripard, wens, anarsoul, rui.zhang,
	daniel.lezcano, amit.kucheria, megous, devicetree,
	linux-arm-kernel, linux-kernel, linux-pm
  Cc: Yangtao Li

According to the spec, r40 has 2 thermal sensors.
Sensor0 located in the CPU, another in the GPU.

Fixes: 730a45ccd9322 ("thermal/drivers/sun8i: Add thermal driver for H6/H5/H3/A64/A83T/R40")
Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Tested-on: sun8i-r40-bananapi-m2-ultra
---
 drivers/thermal/sun8i_thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/thermal/sun8i_thermal.c
index 23a5f4aa4be4..c5661d7c3e20 100644
--- a/drivers/thermal/sun8i_thermal.c
+++ b/drivers/thermal/sun8i_thermal.c
@@ -565,7 +565,7 @@ static const struct ths_thermal_chip sun8i_h3_ths = {
 };
 
 static const struct ths_thermal_chip sun8i_r40_ths = {
-	.sensor_num = 3,
+	.sensor_num = 2,
 	.offset = 251086,
 	.scale = 1130,
 	.has_mod_clk = true,
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-01-27  9:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-06 17:46 [PATCH v2 1/2] thermal: sun8i: fix r40 ths number Yangtao Li
2020-01-06 17:46 ` [PATCH v2 2/2] ARM: dts: sun8i-r40: Add thermal sensor and thermal zones Yangtao Li
2020-01-07  7:58   ` Maxime Ripard
2020-01-07  8:00     ` Chen-Yu Tsai
2020-01-09 11:51     ` Daniel Lezcano
2020-01-09 13:13       ` Maxime Ripard
2020-01-09 20:08         ` Daniel Lezcano
2020-01-26 13:01           ` Frank Lee
2020-01-27  9:47             ` Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).