* [PATCH 1/2] hwmon: lm75: Add TI TMP1075 support
@ 2021-04-29 12:11 Robert Marko
2021-04-29 12:11 ` [PATCH 2/2] dt-bindings: hwmon: Add Texas Instruments TMP1075 Robert Marko
2021-05-03 15:40 ` [PATCH 1/2] hwmon: lm75: Add TI TMP1075 support Guenter Roeck
0 siblings, 2 replies; 5+ messages in thread
From: Robert Marko @ 2021-04-29 12:11 UTC (permalink / raw)
To: jdelvare, linux, corbet, linux-hwmon, linux-doc, linux-kernel,
robh+dt, devicetree
Cc: Robert Marko
TI TMP1075 is a LM75 compatible sensor, so lets
add support for it.
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
Documentation/hwmon/lm75.rst | 6 ++++--
drivers/hwmon/lm75.c | 13 +++++++++++++
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/Documentation/hwmon/lm75.rst b/Documentation/hwmon/lm75.rst
index 81257d5fc48f..8d0ab4ad5fb5 100644
--- a/Documentation/hwmon/lm75.rst
+++ b/Documentation/hwmon/lm75.rst
@@ -93,9 +93,9 @@ Supported chips:
https://www.st.com/resource/en/datasheet/stlm75.pdf
- * Texas Instruments TMP100, TMP101, TMP105, TMP112, TMP75, TMP75B, TMP75C, TMP175, TMP275
+ * Texas Instruments TMP100, TMP101, TMP105, TMP112, TMP75, TMP75B, TMP75C, TMP175, TMP275, TMP1075
- Prefixes: 'tmp100', 'tmp101', 'tmp105', 'tmp112', 'tmp175', 'tmp75', 'tmp75b', 'tmp75c', 'tmp275'
+ Prefixes: 'tmp100', 'tmp101', 'tmp105', 'tmp112', 'tmp175', 'tmp75', 'tmp75b', 'tmp75c', 'tmp275', 'tmp1075'
Addresses scanned: none
@@ -119,6 +119,8 @@ Supported chips:
https://www.ti.com/product/tmp275
+ https://www.ti.com/product/TMP1075
+
* NXP LM75B, PCT2075
Prefix: 'lm75b', 'pct2075'
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index e447febd121a..afdbb63237b9 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -50,6 +50,7 @@ enum lm75_type { /* keep sorted in alphabetical order */
tmp75,
tmp75b,
tmp75c,
+ tmp1075,
};
/**
@@ -293,6 +294,13 @@ static const struct lm75_params device_params[] = {
.clr_mask = 1 << 5, /*not one-shot mode*/
.default_resolution = 12,
.default_sample_time = MSEC_PER_SEC / 12,
+ },
+ [tmp1075] = { /* not one-shot mode, 27.5 ms sample rate */
+ .clr_mask = 1 << 5 | 1 << 6 | 1 << 7,
+ .default_resolution = 12,
+ .default_sample_time = 28,
+ .num_sample_times = 4,
+ .sample_times = (unsigned int []){ 28, 55, 110, 220 },
}
};
@@ -662,6 +670,7 @@ static const struct i2c_device_id lm75_ids[] = {
{ "tmp75", tmp75, },
{ "tmp75b", tmp75b, },
{ "tmp75c", tmp75c, },
+ { "tmp1075", tmp1075, },
{ /* LIST END */ }
};
MODULE_DEVICE_TABLE(i2c, lm75_ids);
@@ -771,6 +780,10 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = {
.compatible = "ti,tmp75c",
.data = (void *)tmp75c
},
+ {
+ .compatible = "ti,tmp1075",
+ .data = (void *)tmp1075
+ },
{ },
};
MODULE_DEVICE_TABLE(of, lm75_of_match);
--
2.31.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] dt-bindings: hwmon: Add Texas Instruments TMP1075
2021-04-29 12:11 [PATCH 1/2] hwmon: lm75: Add TI TMP1075 support Robert Marko
@ 2021-04-29 12:11 ` Robert Marko
2021-05-03 15:41 ` Guenter Roeck
2021-05-03 19:37 ` Rob Herring
2021-05-03 15:40 ` [PATCH 1/2] hwmon: lm75: Add TI TMP1075 support Guenter Roeck
1 sibling, 2 replies; 5+ messages in thread
From: Robert Marko @ 2021-04-29 12:11 UTC (permalink / raw)
To: jdelvare, linux, corbet, linux-hwmon, linux-doc, linux-kernel,
robh+dt, devicetree
Cc: Robert Marko
Document the DT compatible for TI TMP1075 which
is a LM75 compatible sensor.
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
Documentation/devicetree/bindings/hwmon/lm75.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/hwmon/lm75.yaml b/Documentation/devicetree/bindings/hwmon/lm75.yaml
index 96eed5cc7841..72980d083c21 100644
--- a/Documentation/devicetree/bindings/hwmon/lm75.yaml
+++ b/Documentation/devicetree/bindings/hwmon/lm75.yaml
@@ -30,6 +30,7 @@ properties:
- st,stds75
- st,stlm75
- microchip,tcn75
+ - ti,tmp1075
- ti,tmp100
- ti,tmp101
- ti,tmp105
--
2.31.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] hwmon: lm75: Add TI TMP1075 support
2021-04-29 12:11 [PATCH 1/2] hwmon: lm75: Add TI TMP1075 support Robert Marko
2021-04-29 12:11 ` [PATCH 2/2] dt-bindings: hwmon: Add Texas Instruments TMP1075 Robert Marko
@ 2021-05-03 15:40 ` Guenter Roeck
1 sibling, 0 replies; 5+ messages in thread
From: Guenter Roeck @ 2021-05-03 15:40 UTC (permalink / raw)
To: Robert Marko
Cc: jdelvare, corbet, linux-hwmon, linux-doc, linux-kernel, robh+dt,
devicetree
On Thu, Apr 29, 2021 at 02:11:49PM +0200, Robert Marko wrote:
> TI TMP1075 is a LM75 compatible sensor, so lets
> add support for it.
>
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Applied to hwmon-next.
Thanks,
Guenter
> ---
> Documentation/hwmon/lm75.rst | 6 ++++--
> drivers/hwmon/lm75.c | 13 +++++++++++++
> 2 files changed, 17 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/hwmon/lm75.rst b/Documentation/hwmon/lm75.rst
> index 81257d5fc48f..8d0ab4ad5fb5 100644
> --- a/Documentation/hwmon/lm75.rst
> +++ b/Documentation/hwmon/lm75.rst
> @@ -93,9 +93,9 @@ Supported chips:
>
> https://www.st.com/resource/en/datasheet/stlm75.pdf
>
> - * Texas Instruments TMP100, TMP101, TMP105, TMP112, TMP75, TMP75B, TMP75C, TMP175, TMP275
> + * Texas Instruments TMP100, TMP101, TMP105, TMP112, TMP75, TMP75B, TMP75C, TMP175, TMP275, TMP1075
>
> - Prefixes: 'tmp100', 'tmp101', 'tmp105', 'tmp112', 'tmp175', 'tmp75', 'tmp75b', 'tmp75c', 'tmp275'
> + Prefixes: 'tmp100', 'tmp101', 'tmp105', 'tmp112', 'tmp175', 'tmp75', 'tmp75b', 'tmp75c', 'tmp275', 'tmp1075'
>
> Addresses scanned: none
>
> @@ -119,6 +119,8 @@ Supported chips:
>
> https://www.ti.com/product/tmp275
>
> + https://www.ti.com/product/TMP1075
> +
> * NXP LM75B, PCT2075
>
> Prefix: 'lm75b', 'pct2075'
> diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
> index e447febd121a..afdbb63237b9 100644
> --- a/drivers/hwmon/lm75.c
> +++ b/drivers/hwmon/lm75.c
> @@ -50,6 +50,7 @@ enum lm75_type { /* keep sorted in alphabetical order */
> tmp75,
> tmp75b,
> tmp75c,
> + tmp1075,
> };
>
> /**
> @@ -293,6 +294,13 @@ static const struct lm75_params device_params[] = {
> .clr_mask = 1 << 5, /*not one-shot mode*/
> .default_resolution = 12,
> .default_sample_time = MSEC_PER_SEC / 12,
> + },
> + [tmp1075] = { /* not one-shot mode, 27.5 ms sample rate */
> + .clr_mask = 1 << 5 | 1 << 6 | 1 << 7,
> + .default_resolution = 12,
> + .default_sample_time = 28,
> + .num_sample_times = 4,
> + .sample_times = (unsigned int []){ 28, 55, 110, 220 },
> }
> };
>
> @@ -662,6 +670,7 @@ static const struct i2c_device_id lm75_ids[] = {
> { "tmp75", tmp75, },
> { "tmp75b", tmp75b, },
> { "tmp75c", tmp75c, },
> + { "tmp1075", tmp1075, },
> { /* LIST END */ }
> };
> MODULE_DEVICE_TABLE(i2c, lm75_ids);
> @@ -771,6 +780,10 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = {
> .compatible = "ti,tmp75c",
> .data = (void *)tmp75c
> },
> + {
> + .compatible = "ti,tmp1075",
> + .data = (void *)tmp1075
> + },
> { },
> };
> MODULE_DEVICE_TABLE(of, lm75_of_match);
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] dt-bindings: hwmon: Add Texas Instruments TMP1075
2021-04-29 12:11 ` [PATCH 2/2] dt-bindings: hwmon: Add Texas Instruments TMP1075 Robert Marko
@ 2021-05-03 15:41 ` Guenter Roeck
2021-05-03 19:37 ` Rob Herring
1 sibling, 0 replies; 5+ messages in thread
From: Guenter Roeck @ 2021-05-03 15:41 UTC (permalink / raw)
To: Robert Marko
Cc: jdelvare, corbet, linux-hwmon, linux-doc, linux-kernel, robh+dt,
devicetree
On Thu, Apr 29, 2021 at 02:11:50PM +0200, Robert Marko wrote:
> Document the DT compatible for TI TMP1075 which
> is a LM75 compatible sensor.
>
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Tentatively applied to hwmon-next (unless there are objections
from dt maintainers, which seems unlikely).
Thanks,
Guenter
> ---
> Documentation/devicetree/bindings/hwmon/lm75.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/hwmon/lm75.yaml b/Documentation/devicetree/bindings/hwmon/lm75.yaml
> index 96eed5cc7841..72980d083c21 100644
> --- a/Documentation/devicetree/bindings/hwmon/lm75.yaml
> +++ b/Documentation/devicetree/bindings/hwmon/lm75.yaml
> @@ -30,6 +30,7 @@ properties:
> - st,stds75
> - st,stlm75
> - microchip,tcn75
> + - ti,tmp1075
> - ti,tmp100
> - ti,tmp101
> - ti,tmp105
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] dt-bindings: hwmon: Add Texas Instruments TMP1075
2021-04-29 12:11 ` [PATCH 2/2] dt-bindings: hwmon: Add Texas Instruments TMP1075 Robert Marko
2021-05-03 15:41 ` Guenter Roeck
@ 2021-05-03 19:37 ` Rob Herring
1 sibling, 0 replies; 5+ messages in thread
From: Rob Herring @ 2021-05-03 19:37 UTC (permalink / raw)
To: Robert Marko
Cc: corbet, devicetree, linux-kernel, linux-doc, linux-hwmon,
robh+dt, jdelvare, linux
On Thu, 29 Apr 2021 14:11:50 +0200, Robert Marko wrote:
> Document the DT compatible for TI TMP1075 which
> is a LM75 compatible sensor.
>
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> ---
> Documentation/devicetree/bindings/hwmon/lm75.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-05-03 19:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-29 12:11 [PATCH 1/2] hwmon: lm75: Add TI TMP1075 support Robert Marko
2021-04-29 12:11 ` [PATCH 2/2] dt-bindings: hwmon: Add Texas Instruments TMP1075 Robert Marko
2021-05-03 15:41 ` Guenter Roeck
2021-05-03 19:37 ` Rob Herring
2021-05-03 15:40 ` [PATCH 1/2] hwmon: lm75: Add TI TMP1075 support 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).