From: Peter Griffin <peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
kernel-F5mvAk5X5gdBDgjK7y7TUQ@public.gmane.org,
patrice.chotard-qxv4g6HH51o@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
rui.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
edubezval-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Subject: [PATCH 09/19] thermal: sti: Remove obsolete STiH416 platform support.
Date: Wed, 14 Sep 2016 14:27:47 +0100 [thread overview]
Message-ID: <1473859677-9231-10-git-send-email-peter.griffin@linaro.org> (raw)
In-Reply-To: <1473859677-9231-1-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
STiH415/6 SoC support is being removed from the kernel.
This patch removes support from the thermal driver.
Also it updates the register defines and removes
the SoC and die prefix as neither of these are relevant
in the context of STiH407 based silicon (STiH415/6 were
dual die SoCs with an MPE die and SAS die).
Signed-off-by: Peter Griffin <peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: <rui.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: <edubezval-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
drivers/thermal/st/st_thermal_memmap.c | 34 ++++++++++++----------------------
1 file changed, 12 insertions(+), 22 deletions(-)
diff --git a/drivers/thermal/st/st_thermal_memmap.c b/drivers/thermal/st/st_thermal_memmap.c
index fc0c9e1..d53965d 100644
--- a/drivers/thermal/st/st_thermal_memmap.c
+++ b/drivers/thermal/st/st_thermal_memmap.c
@@ -15,10 +15,10 @@
#include "st_thermal.h"
-#define STIH416_MPE_CONF 0x0
-#define STIH416_MPE_STATUS 0x4
-#define STIH416_MPE_INT_THRESH 0x8
-#define STIH416_MPE_INT_EN 0xC
+#define CONF 0x0
+#define STATUS 0x4
+#define INT_THRESH 0x8
+#define INT_EN 0xC
/* Power control bits for the memory mapped thermal sensor */
#define THERMAL_PDN BIT(4)
@@ -31,11 +31,11 @@ static const struct reg_field st_mmap_thermal_regfields[MAX_REGFIELDS] = {
* written simultaneously for powering on and off the temperature
* sensor. regmap_update_bits() will be used to update the register.
*/
- [INT_THRESH_HI] = REG_FIELD(STIH416_MPE_INT_THRESH, 0, 7),
- [DCORRECT] = REG_FIELD(STIH416_MPE_CONF, 5, 9),
- [OVERFLOW] = REG_FIELD(STIH416_MPE_STATUS, 9, 9),
- [DATA] = REG_FIELD(STIH416_MPE_STATUS, 11, 18),
- [INT_ENABLE] = REG_FIELD(STIH416_MPE_INT_EN, 0, 0),
+ [INT_THRESH_HI] = REG_FIELD(INT_THRESH, 0, 7),
+ [DCORRECT] = REG_FIELD(CONF, 5, 9),
+ [OVERFLOW] = REG_FIELD(STATUS, 9, 9),
+ [DATA] = REG_FIELD(STATUS, 11, 18),
+ [INT_ENABLE] = REG_FIELD(INT_EN, 0, 0),
};
static irqreturn_t st_mmap_thermal_trip_handler(int irq, void *sdata)
@@ -54,7 +54,7 @@ static int st_mmap_power_ctrl(struct st_thermal_sensor *sensor,
const unsigned int mask = (THERMAL_PDN | THERMAL_SRSTN);
const unsigned int val = power_state ? mask : 0;
- return regmap_update_bits(sensor->regmap, STIH416_MPE_CONF, mask, val);
+ return regmap_update_bits(sensor->regmap, CONF, mask, val);
}
static int st_mmap_alloc_regfields(struct st_thermal_sensor *sensor)
@@ -114,7 +114,7 @@ static int st_mmap_register_enable_irq(struct st_thermal_sensor *sensor)
return st_mmap_enable_irq(sensor);
}
-static const struct regmap_config st_416mpe_regmap_config = {
+static const struct regmap_config st_thermal_regmap_config = {
.reg_bits = 32,
.val_bits = 32,
.reg_stride = 4,
@@ -139,7 +139,7 @@ static int st_mmap_regmap_init(struct st_thermal_sensor *sensor)
}
sensor->regmap = devm_regmap_init_mmio(dev, sensor->mmio_base,
- &st_416mpe_regmap_config);
+ &st_thermal_regmap_config);
if (IS_ERR(sensor->regmap)) {
dev_err(dev, "failed to initialise regmap\n");
return PTR_ERR(sensor->regmap);
@@ -156,15 +156,6 @@ static const struct st_thermal_sensor_ops st_mmap_sensor_ops = {
.enable_irq = st_mmap_enable_irq,
};
-/* Compatible device data stih416 mpe thermal sensor */
-static const struct st_thermal_compat_data st_416mpe_cdata = {
- .reg_fields = st_mmap_thermal_regfields,
- .ops = &st_mmap_sensor_ops,
- .calibration_val = 14,
- .temp_adjust_val = -95,
- .crit_temp = 120,
-};
-
/* Compatible device data stih407 thermal sensor */
static const struct st_thermal_compat_data st_407_cdata = {
.reg_fields = st_mmap_thermal_regfields,
@@ -175,7 +166,6 @@ static const struct st_thermal_compat_data st_407_cdata = {
};
static const struct of_device_id st_mmap_thermal_of_match[] = {
- { .compatible = "st,stih416-mpe-thermal", .data = &st_416mpe_cdata },
{ .compatible = "st,stih407-thermal", .data = &st_407_cdata },
{ /* sentinel */ }
};
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-09-14 13:27 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-14 13:27 [PATCH 00/19] [RESEND] Remove STiH415 and STiH416 SoC platform support Peter Griffin
2016-09-14 13:27 ` [PATCH 02/19] phy: stih41x-usb: Remove usb phy driver and dt binding documentation Peter Griffin
2016-09-23 15:06 ` Rob Herring
2016-10-18 7:47 ` Patrice Chotard
[not found] ` <778bd4b2-9e82-326b-f6e0-43360323d453-qxv4g6HH51o@public.gmane.org>
2016-10-18 8:52 ` [STLinux Kernel] " Patrice Chotard
2016-10-18 9:06 ` Kishon Vijay Abraham I
[not found] ` <1473859677-9231-3-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-11-15 13:07 ` Kishon Vijay Abraham I
[not found] ` <1473859677-9231-1-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-09-14 13:27 ` [PATCH 01/19] phy: phy-miphy365x: Remove miphy365 " Peter Griffin
[not found] ` <1473859677-9231-2-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-09-23 15:06 ` Rob Herring
2016-10-18 7:47 ` Patrice Chotard
[not found] ` <12506413-515f-1a33-a642-ede60287ca3b-qxv4g6HH51o@public.gmane.org>
2016-10-18 8:45 ` [STLinux Kernel] " Patrice Chotard
[not found] ` <75b370f3-a1cd-ac6e-ce8a-b77e4c0c3847-qxv4g6HH51o@public.gmane.org>
2016-10-18 9:18 ` Kishon Vijay Abraham I
2016-09-14 13:27 ` [PATCH 03/19] MAINTAINERS: Remove phy-miphy365x.c entry from STi arch Peter Griffin
2016-10-18 7:48 ` Patrice Chotard
2016-09-14 13:27 ` [PATCH 04/19] MAINTAINERS: Remove phy-stih41x-usb.c " Peter Griffin
[not found] ` <1473859677-9231-5-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-10-18 7:50 ` Patrice Chotard
2016-09-14 13:27 ` [PATCH 05/19] ARM: multi_v7_defconfig: Remove miphy365 phy Peter Griffin
[not found] ` <1473859677-9231-6-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-10-18 7:53 ` Patrice Chotard
2016-10-18 9:22 ` Patrice Chotard
2016-09-14 13:27 ` Peter Griffin [this message]
2016-09-14 13:27 ` [PATCH 11/19] watchdog: st_wdt: Remove support for obsolete platforms Peter Griffin
2016-09-14 22:16 ` Guenter Roeck
2016-09-14 13:27 ` [PATCH 13/19] pinctrl: st: Remove STiH415/6 SoC pinctrl driver support Peter Griffin
[not found] ` <1473859677-9231-14-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-09-15 12:33 ` Linus Walleij
2016-09-14 13:27 ` [PATCH 15/19] reset: sti: Remove STiH415/6 reset support Peter Griffin
[not found] ` <1473859677-9231-16-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-09-27 8:02 ` Philipp Zabel
2016-10-11 7:05 ` Patrice Chotard
2016-10-20 10:36 ` Philipp Zabel
2016-09-14 13:38 ` [PATCH 00/19] [RESEND] Remove STiH415 and STiH416 SoC platform support Arnd Bergmann
2016-09-14 14:04 ` Patrice Chotard
2016-09-15 7:01 ` Peter Griffin
2016-09-15 12:00 ` Arnd Bergmann
2016-09-19 8:56 ` Peter Griffin
2016-09-14 13:27 ` [PATCH 06/19] ARM: multi_v7_defconfig: Remove stih41x phy Kconfig symbol Peter Griffin
[not found] ` <1473859677-9231-7-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-10-18 7:53 ` Patrice Chotard
2016-09-14 13:27 ` [PATCH 07/19] ahci: st: Remove STiH416 dt example Peter Griffin
[not found] ` <1473859677-9231-8-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-09-16 15:54 ` Tejun Heo
2016-09-19 7:19 ` Patrice Chotard
2016-09-23 15:07 ` Rob Herring
2016-09-14 13:27 ` [PATCH 08/19] thermal: sti: Remove obsolete platforms from the DT doc Peter Griffin
[not found] ` <1473859677-9231-9-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-09-23 15:08 ` Rob Herring
2016-10-18 7:56 ` Patrice Chotard
2016-09-14 13:27 ` [PATCH 10/19] watchdog: bindings: Remove obsolete platforms from dt doc Peter Griffin
2016-09-14 22:16 ` Guenter Roeck
[not found] ` <1473859677-9231-11-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-09-23 15:08 ` Rob Herring
2016-10-08 14:04 ` Wim Van Sebroeck
2016-09-14 13:27 ` [PATCH 12/19] reset: sti: Remove obsolete platforms from dt binding doc Peter Griffin
2016-09-23 15:10 ` Rob Herring
2016-10-18 8:02 ` Patrice Chotard
2016-09-14 13:27 ` [PATCH 14/19] pinctrl: st: Remove obsolete platforms from pinctrl-st dt doc Peter Griffin
[not found] ` <1473859677-9231-15-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-09-15 12:37 ` Linus Walleij
2016-09-14 13:27 ` [PATCH 16/19] power: reset: st-poweroff: Remove obsolete platforms Peter Griffin
2016-09-19 19:34 ` Sebastian Reichel
2016-09-14 13:27 ` [PATCH 17/19] power: reset: st: Remove obsolete platforms from dt doc Peter Griffin
[not found] ` <1473859677-9231-18-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-09-19 19:34 ` Sebastian Reichel
2016-09-14 13:27 ` [PATCH 18/19] stmmac: dwmac-sti: Remove obsolete STi platforms Peter Griffin
2016-09-23 15:11 ` Rob Herring
2016-10-18 8:05 ` Patrice Chotard
[not found] ` <dcbb8065-b272-0a2f-8efb-c55217712caf-qxv4g6HH51o@public.gmane.org>
2016-10-18 8:59 ` [STLinux Kernel] " Patrice Chotard
2016-09-14 13:27 ` [PATCH 19/19] reset: sti: softreset: Remove obsolete platforms from dt binding doc Peter Griffin
[not found] ` <1473859677-9231-20-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-09-23 15:12 ` Rob Herring
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=1473859677-9231-10-git-send-email-peter.griffin@linaro.org \
--to=peter.griffin-qsej5fyqhm4dnm+yrofe0a@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=edubezval-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=kernel-F5mvAk5X5gdBDgjK7y7TUQ@public.gmane.org \
--cc=lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=patrice.chotard-qxv4g6HH51o@public.gmane.org \
--cc=rui.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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).