* [PATCH 1/2] device-tree: bindinds: add NXP PCT2075 as compatible device to LM75
@ 2019-07-11 12:45 Daniel Mack
2019-07-11 12:45 ` [PATCH 2/2] drivers: hwmon: lm75: add support for PCT2075 Daniel Mack
2019-07-13 13:24 ` [PATCH 1/2] device-tree: bindinds: add NXP PCT2075 as compatible device to LM75 Guenter Roeck
0 siblings, 2 replies; 4+ messages in thread
From: Daniel Mack @ 2019-07-11 12:45 UTC (permalink / raw)
To: linux-hwmon; +Cc: devicetree, linux, jdelvare, Daniel Mack
The PCT2075 is compatible to other chips that are already handled by
the LM75 driver.
Signed-off-by: Daniel Mack <daniel@zonque.org>
---
Documentation/devicetree/bindings/hwmon/lm75.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/hwmon/lm75.txt b/Documentation/devicetree/bindings/hwmon/lm75.txt
index 12d8cf7cf592..bfb22b249708 100644
--- a/Documentation/devicetree/bindings/hwmon/lm75.txt
+++ b/Documentation/devicetree/bindings/hwmon/lm75.txt
@@ -15,6 +15,7 @@ Required properties:
"maxim,max31725",
"maxim,max31726",
"maxim,mcp980x",
+ "nxp,pct2075",
"st,stds75",
"st,stlm75",
"microchip,tcn75",
--
2.21.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] drivers: hwmon: lm75: add support for PCT2075
2019-07-11 12:45 [PATCH 1/2] device-tree: bindinds: add NXP PCT2075 as compatible device to LM75 Daniel Mack
@ 2019-07-11 12:45 ` Daniel Mack
2019-07-13 13:30 ` Guenter Roeck
2019-07-13 13:24 ` [PATCH 1/2] device-tree: bindinds: add NXP PCT2075 as compatible device to LM75 Guenter Roeck
1 sibling, 1 reply; 4+ messages in thread
From: Daniel Mack @ 2019-07-11 12:45 UTC (permalink / raw)
To: linux-hwmon; +Cc: devicetree, linux, jdelvare, Daniel Mack
The NXP PCT2075 is largely compatible with other chips already supported
by the LM75 driver. It uses an 11-bit resolution and defaults to 100 ms
sampling period. The datasheet is here:
https://www.nxp.com/docs/en/data-sheet/PCT2075.pdf
Signed-off-by: Daniel Mack <daniel@zonque.org>
---
drivers/hwmon/lm75.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index 447af07450f1..a8aba628468e 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -49,6 +49,7 @@ enum lm75_type { /* keep sorted in alphabetical order */
max6626,
max31725,
mcp980x,
+ pct2075,
stds75,
stlm75,
tcn75,
@@ -353,6 +354,10 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id)
data->resolution = 9;
data->sample_time = MSEC_PER_SEC / 8;
break;
+ case pct2075:
+ data->resolution = 11;
+ data->sample_time = MSEC_PER_SEC / 10;
+ break;
case mcp980x:
data->resolution_limits = 9;
/* fall through */
@@ -428,6 +433,7 @@ static const struct i2c_device_id lm75_ids[] = {
{ "max31725", max31725, },
{ "max31726", max31725, },
{ "mcp980x", mcp980x, },
+ { "pct2075", pct2075, },
{ "stds75", stds75, },
{ "stlm75", stlm75, },
{ "tcn75", tcn75, },
@@ -496,6 +502,10 @@ static const struct of_device_id lm75_of_match[] = {
.compatible = "maxim,mcp980x",
.data = (void *)mcp980x
},
+ {
+ .compatible = "nxp,pct2075",
+ .data = (void *)pct2075
+ },
{
.compatible = "st,stds75",
.data = (void *)stds75
--
2.21.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] device-tree: bindinds: add NXP PCT2075 as compatible device to LM75
2019-07-11 12:45 [PATCH 1/2] device-tree: bindinds: add NXP PCT2075 as compatible device to LM75 Daniel Mack
2019-07-11 12:45 ` [PATCH 2/2] drivers: hwmon: lm75: add support for PCT2075 Daniel Mack
@ 2019-07-13 13:24 ` Guenter Roeck
1 sibling, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2019-07-13 13:24 UTC (permalink / raw)
To: Daniel Mack; +Cc: linux-hwmon, devicetree, jdelvare
On Thu, Jul 11, 2019 at 02:45:03PM +0200, Daniel Mack wrote:
> The PCT2075 is compatible to other chips that are already handled by
> the LM75 driver.
>
> Signed-off-by: Daniel Mack <daniel@zonque.org>
Applied to hwmon-next.
Thanks,
Guenter
> ---
> Documentation/devicetree/bindings/hwmon/lm75.txt | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/hwmon/lm75.txt b/Documentation/devicetree/bindings/hwmon/lm75.txt
> index 12d8cf7cf592..bfb22b249708 100644
> --- a/Documentation/devicetree/bindings/hwmon/lm75.txt
> +++ b/Documentation/devicetree/bindings/hwmon/lm75.txt
> @@ -15,6 +15,7 @@ Required properties:
> "maxim,max31725",
> "maxim,max31726",
> "maxim,mcp980x",
> + "nxp,pct2075",
> "st,stds75",
> "st,stlm75",
> "microchip,tcn75",
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] drivers: hwmon: lm75: add support for PCT2075
2019-07-11 12:45 ` [PATCH 2/2] drivers: hwmon: lm75: add support for PCT2075 Daniel Mack
@ 2019-07-13 13:30 ` Guenter Roeck
0 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2019-07-13 13:30 UTC (permalink / raw)
To: Daniel Mack; +Cc: linux-hwmon, devicetree, jdelvare
On Thu, Jul 11, 2019 at 02:45:04PM +0200, Daniel Mack wrote:
> The NXP PCT2075 is largely compatible with other chips already supported
> by the LM75 driver. It uses an 11-bit resolution and defaults to 100 ms
> sampling period. The datasheet is here:
>
> https://www.nxp.com/docs/en/data-sheet/PCT2075.pdf
>
> Signed-off-by: Daniel Mack <daniel@zonque.org>
Applied to hwmon-next. Note that I also updated Documentation/hwmon/lm75.rst.
Guenter
> ---
> drivers/hwmon/lm75.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
> index 447af07450f1..a8aba628468e 100644
> --- a/drivers/hwmon/lm75.c
> +++ b/drivers/hwmon/lm75.c
> @@ -49,6 +49,7 @@ enum lm75_type { /* keep sorted in alphabetical order */
> max6626,
> max31725,
> mcp980x,
> + pct2075,
> stds75,
> stlm75,
> tcn75,
> @@ -353,6 +354,10 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id)
> data->resolution = 9;
> data->sample_time = MSEC_PER_SEC / 8;
> break;
> + case pct2075:
> + data->resolution = 11;
> + data->sample_time = MSEC_PER_SEC / 10;
> + break;
> case mcp980x:
> data->resolution_limits = 9;
> /* fall through */
> @@ -428,6 +433,7 @@ static const struct i2c_device_id lm75_ids[] = {
> { "max31725", max31725, },
> { "max31726", max31725, },
> { "mcp980x", mcp980x, },
> + { "pct2075", pct2075, },
> { "stds75", stds75, },
> { "stlm75", stlm75, },
> { "tcn75", tcn75, },
> @@ -496,6 +502,10 @@ static const struct of_device_id lm75_of_match[] = {
> .compatible = "maxim,mcp980x",
> .data = (void *)mcp980x
> },
> + {
> + .compatible = "nxp,pct2075",
> + .data = (void *)pct2075
> + },
> {
> .compatible = "st,stds75",
> .data = (void *)stds75
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-07-13 13:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-11 12:45 [PATCH 1/2] device-tree: bindinds: add NXP PCT2075 as compatible device to LM75 Daniel Mack
2019-07-11 12:45 ` [PATCH 2/2] drivers: hwmon: lm75: add support for PCT2075 Daniel Mack
2019-07-13 13:30 ` Guenter Roeck
2019-07-13 13:24 ` [PATCH 1/2] device-tree: bindinds: add NXP PCT2075 as compatible device to LM75 Guenter Roeck
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).