From: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
To: Geert Uytterhoeven <geert+renesas@glider.be>,
devicetree@vger.kernel.org, linux-pm@vger.kernel.org
Cc: linux-renesas-soc@vger.kernel.org,
"Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
Subject: [PATCH 3/3] thermal: rcar_gen3_thermal: Add r8a779a0 support
Date: Thu, 26 Nov 2020 23:30:28 +0100 [thread overview]
Message-ID: <20201126223028.3119044-4-niklas.soderlund+renesas@ragnatech.se> (raw)
In-Reply-To: <20201126223028.3119044-1-niklas.soderlund+renesas@ragnatech.se>
Add support for R-Car V3U. The new THCODE values are taken from the
example in the datasheet.
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
---
drivers/thermal/rcar_gen3_thermal.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/thermal/rcar_gen3_thermal.c b/drivers/thermal/rcar_gen3_thermal.c
index 94f2c133a47f66b6..75c69fe6e9553f25 100644
--- a/drivers/thermal/rcar_gen3_thermal.c
+++ b/drivers/thermal/rcar_gen3_thermal.c
@@ -60,13 +60,14 @@
#define MCELSIUS(temp) ((temp) * 1000)
#define GEN3_FUSE_MASK 0xFFF
-#define TSC_MAX_NUM 3
+#define TSC_MAX_NUM 4
/* default THCODE values if FUSEs are missing */
static const int thcodes[TSC_MAX_NUM][3] = {
{ 3397, 2800, 2221 },
{ 3393, 2795, 2216 },
{ 3389, 2805, 2237 },
+ { 3415, 2694, 2195 },
};
/* Structure for thermal temperature calculation */
@@ -276,6 +277,10 @@ static const struct of_device_id rcar_gen3_thermal_dt_ids[] = {
.compatible = "renesas,r8a77980-thermal",
.data = &rcar_gen3_ths_tj_1,
},
+ {
+ .compatible = "renesas,r8a779a0-thermal",
+ .data = &rcar_gen3_ths_tj_1,
+ },
{},
};
MODULE_DEVICE_TABLE(of, rcar_gen3_thermal_dt_ids);
--
2.29.2
next prev parent reply other threads:[~2020-11-26 22:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-26 22:30 [PATCH 0/3] thermal: Add support for R-Car V3U (r8a779a0) Niklas Söderlund
2020-11-26 22:30 ` [PATCH 1/3] dt-bindings: thermal: rcar-gen3-thermal: Add r8a779a0 support Niklas Söderlund
2020-12-08 18:11 ` Rob Herring
2020-12-11 13:09 ` [thermal: thermal/next] " thermal-bot for Niklas Söderlund
2020-12-16 2:52 ` [PATCH 1/3] " Yoshihiro Shimoda
2020-11-26 22:30 ` [PATCH 2/3] arm64: dts: renesas: r8a779a0: Add thermal support Niklas Söderlund
2021-01-05 10:27 ` Geert Uytterhoeven
2020-11-26 22:30 ` Niklas Söderlund [this message]
2020-12-11 13:09 ` [thermal: thermal/next] thermal: rcar_gen3_thermal: Add r8a779a0 support thermal-bot for Niklas Söderlund
2021-01-05 10:29 ` [PATCH 3/3] " Geert Uytterhoeven
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=20201126223028.3119044-4-niklas.soderlund+renesas@ragnatech.se \
--to=niklas.soderlund+renesas@ragnatech.se \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=linux-pm@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.