From: Frank Lee <frank@allwinnertech.com>
To: anarsoul@gmail.com, tiny.windzz@gmail.com, rui.zhang@intel.com,
daniel.lezcano@linaro.org, amit.kucheria@verdurent.com,
robh+dt@kernel.org, mripard@kernel.org, wens@csie.org,
linux-pm@vger.kernel.org
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, huangshuosheng@allwinnertech.com,
liyong@allwinnertech.com, Yangtao Li <frank@allwinnertech.com>
Subject: [PATCH v5 09/16] thermal: sun8i: Add A100's THS controller support
Date: Fri, 24 Jul 2020 15:11:43 +0800 [thread overview]
Message-ID: <48cc75920b5c69027134626157089d8b94942711.1595572867.git.frank@allwinnertech.com> (raw)
In-Reply-To: <cover.1595572867.git.frank@allwinnertech.com>
From: Yangtao Li <frank@allwinnertech.com>
This patch add thermal sensor controller support for A100,
which is similar to the previous ones.
Signed-off-by: Yangtao Li <frank@allwinnertech.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 f423d44b9290..f8b13071a6f4 100644
--- a/drivers/thermal/sun8i_thermal.c
+++ b/drivers/thermal/sun8i_thermal.c
@@ -590,6 +590,19 @@ static const struct ths_thermal_chip sun50i_a64_ths = {
.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 const struct of_device_id of_ths_match[] = {
{ .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 */ },
--
2.24.0
next prev parent reply other threads:[~2020-07-24 7:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-24 6:52 [PATCH v5 00/16] Allwinner A100 Initial support Frank Lee
2020-07-24 7:10 ` [PATCH v5 07/16] dt-bindings: thermal: sun8i: Add binding for A100's THS controller Frank Lee
2020-08-25 8:45 ` Maxime Ripard
2020-07-24 7:11 ` [PATCH v5 08/16] thermal: sun8i: add TEMP_CALIB_MASK for calibration data in sun50i_h6_ths_calibrate Frank Lee
2020-08-25 8:46 ` Maxime Ripard
2020-07-24 7:11 ` Frank Lee [this message]
2020-08-25 8:46 ` [PATCH v5 09/16] thermal: sun8i: Add A100's THS controller support Maxime Ripard
2020-07-30 1:20 ` [PATCH v5 00/16] Allwinner A100 Initial support Frank Lee
2020-08-24 7:44 ` Frank Lee
2020-08-24 8:03 ` Lee Jones
2020-08-25 8:55 ` Maxime Ripard
2020-08-25 13:51 ` Wolfram Sang
2020-08-25 13:53 ` Lee Jones
2020-08-28 10:02 ` Linus Walleij
2020-08-28 11:20 ` Frank Lee
2020-09-01 9:35 ` Maxime Ripard
2020-09-12 10:36 ` Linus Walleij
2020-09-22 15:37 ` Daniel Lezcano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48cc75920b5c69027134626157089d8b94942711.1595572867.git.frank@allwinnertech.com \
--to=frank@allwinnertech.com \
--cc=amit.kucheria@verdurent.com \
--cc=anarsoul@gmail.com \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=huangshuosheng@allwinnertech.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=liyong@allwinnertech.com \
--cc=mripard@kernel.org \
--cc=robh+dt@kernel.org \
--cc=rui.zhang@intel.com \
--cc=tiny.windzz@gmail.com \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).