[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200708071942.22595-10-frank@allwinnertech.com>
Date: Wed, 8 Jul 2020 15:19:35 +0800
From: Frank Lee <frank@...winnertech.com>
To: robh+dt@...nel.org, mripard@...nel.org, wens@...e.org,
mturquette@...libre.com, sboyd@...nel.org,
gregory.clement@...tlin.com, tglx@...utronix.de,
jason@...edaemon.net, maz@...nel.org,
srinivas.kandagatla@...aro.org, linus.walleij@...aro.org,
anarsoul@...il.com, tiny.windzz@...il.com, rui.zhang@...el.com,
daniel.lezcano@...aro.org, amit.kucheria@...durent.com,
lee.jones@...aro.org, p.zabel@...gutronix.de, clabbe@...libre.com,
icenowy@...c.io, megous@...ous.com, stefan@...mex.com,
bage@...utronix.de
Cc: devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, linux-clk@...r.kernel.org,
linux-i2c@...r.kernel.org, linux-gpio@...r.kernel.org,
linux-pm@...r.kernel.org, huangshuosheng@...winnertech.com,
liyong@...winnertech.com, Frank Lee <frank@...winnertech.com>
Subject: [PATCH v3 09/16] thermal: sun8i: Add A100's THS controller support
This patch add thermal sensor controller support for A100,
which is similar to the previous ones.
Signed-off-by: Frank Lee <frank@...winnertech.com>
Reviewed-by: Yangtao Li <tiny.windzz@...il.com>
---
drivers/thermal/sun8i_thermal.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/thermal/sun8i_thermal.c
index f423d44..f8b1307 100644
--- a/drivers/thermal/sun8i_thermal.c
+++ b/drivers/thermal/sun8i_thermal.c
@@ -590,6 +590,19 @@ static int sun8i_ths_remove(struct platform_device *pdev)
.calc_temp = sun8i_ths_calc_temp,
};
+static const struct ths_thermal_chip sun50i_a100_ths = {
+ .sensor_num = 3,
+ .has_bus_clk_reset = true,
+ .ft_deviation = 8000,
+ .offset = 187744,
+ .scale = 672,
+ .temp_data_base = SUN50I_H6_THS_TEMP_DATA,
+ .calibrate = sun50i_h6_ths_calibrate,
+ .init = sun50i_h6_thermal_init,
+ .irq_ack = sun50i_h6_irq_ack,
+ .calc_temp = sun8i_ths_calc_temp,
+};
+
static const struct ths_thermal_chip sun50i_h5_ths = {
.sensor_num = 2,
.has_mod_clk = true,
@@ -619,6 +632,7 @@ static int sun8i_ths_remove(struct platform_device *pdev)
{ .compatible = "allwinner,sun8i-h3-ths", .data = &sun8i_h3_ths },
{ .compatible = "allwinner,sun8i-r40-ths", .data = &sun8i_r40_ths },
{ .compatible = "allwinner,sun50i-a64-ths", .data = &sun50i_a64_ths },
+ { .compatible = "allwinner,sun50i-a100-ths", .data = &sun50i_a100_ths },
{ .compatible = "allwinner,sun50i-h5-ths", .data = &sun50i_h5_ths },
{ .compatible = "allwinner,sun50i-h6-ths", .data = &sun50i_h6_ths },
{ /* sentinel */ },
--
1.9.1
Powered by blists - more mailing lists