* [PATCH 1/2] dt-bindings: hwmon: (lm75) Add binding for NXP P3T1750
@ 2025-07-25 9:58 Lakshay Piplani
2025-07-25 9:58 ` [PATCH 2/2] hwmon: (lm75) Add NXP P3T1750 support Lakshay Piplani
2025-07-25 10:10 ` [PATCH 1/2] dt-bindings: hwmon: (lm75) Add binding for NXP P3T1750 Krzysztof Kozlowski
0 siblings, 2 replies; 3+ messages in thread
From: Lakshay Piplani @ 2025-07-25 9:58 UTC (permalink / raw)
To: linux-kernel, jdelvare, linux, linux-hwmon, corbet, linux-doc,
robh, krzk+dt, conor+dt, devicetree
Cc: vikash.bansal, priyanka.jain, shashank.rebbapragada,
Lakshay Piplani
Add "nxp,p3t1750" to the lm75 compatible list.
Signed-off-by: Lakshay Piplani <lakshay.piplani@nxp.com>
---
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 c38255243f57..d0fa98eb38b1 100644
--- a/Documentation/devicetree/bindings/hwmon/lm75.yaml
+++ b/Documentation/devicetree/bindings/hwmon/lm75.yaml
@@ -29,6 +29,7 @@ properties:
- maxim,max31726
- maxim,mcp980x
- nxp,p3t1755
+ - nxp,p3t1750
- nxp,pct2075
- st,stds75
- st,stlm75
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] hwmon: (lm75) Add NXP P3T1750 support
2025-07-25 9:58 [PATCH 1/2] dt-bindings: hwmon: (lm75) Add binding for NXP P3T1750 Lakshay Piplani
@ 2025-07-25 9:58 ` Lakshay Piplani
2025-07-25 10:10 ` [PATCH 1/2] dt-bindings: hwmon: (lm75) Add binding for NXP P3T1750 Krzysztof Kozlowski
1 sibling, 0 replies; 3+ messages in thread
From: Lakshay Piplani @ 2025-07-25 9:58 UTC (permalink / raw)
To: linux-kernel, jdelvare, linux, linux-hwmon, corbet, linux-doc,
robh, krzk+dt, conor+dt, devicetree
Cc: vikash.bansal, priyanka.jain, shashank.rebbapragada,
Lakshay Piplani
Add support for lm75 compatible NXP P3T1750
temperature sensor.
Signed-off-by: Lakshay Piplani <lakshay.piplani@nxp.com>
---
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 c6a54bbca3c5..84e690824fee 100644
--- a/Documentation/hwmon/lm75.rst
+++ b/Documentation/hwmon/lm75.rst
@@ -121,9 +121,9 @@ Supported chips:
https://www.ti.com/product/TMP1075
- * NXP LM75B, P3T1755, PCT2075
+ * NXP LM75B, P3T1755, PCT2075, 'P3T1750'
- Prefix: 'lm75b', 'p3t1755', 'pct2075'
+ Prefix: 'lm75b', 'p3t1755', 'pct2075', 'p3t1750'
Addresses scanned: none
@@ -135,6 +135,8 @@ Supported chips:
https://www.nxp.com/docs/en/data-sheet/PCT2075.pdf
+ https://www.nxp.com/docs/en/data-sheet/P3T1750DP.pdf
+
* AMS OSRAM AS6200
Prefix: 'as6200'
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index 9b4875e2fd8d..979057f02748 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -40,6 +40,7 @@ enum lm75_type { /* keep sorted in alphabetical order */
max31725,
mcp980x,
p3t1755,
+ p3t1750,
pct2075,
stds75,
stlm75,
@@ -229,6 +230,13 @@ static const struct lm75_params device_params[] = {
.num_sample_times = 4,
.sample_times = (unsigned int []){ 28, 55, 110, 220 },
},
+ [p3t1750] = {
+ .clr_mask = 1 << 1 | 1 << 7, /* disable SMBAlert and one-shot */
+ .default_resolution = 12,
+ .default_sample_time = 55,
+ .num_sample_times = 4,
+ .sample_times = (unsigned int []){ 28, 55, 110, 220 },
+ },
[pct2075] = {
.default_resolution = 11,
.default_sample_time = MSEC_PER_SEC / 10,
@@ -806,6 +814,7 @@ static const struct i2c_device_id lm75_i2c_ids[] = {
{ "max31726", max31725, },
{ "mcp980x", mcp980x, },
{ "p3t1755", p3t1755, },
+ { "p3t1750", p3t1750, },
{ "pct2075", pct2075, },
{ "stds75", stds75, },
{ "stlm75", stlm75, },
@@ -920,6 +929,10 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = {
.compatible = "nxp,p3t1755",
.data = (void *)p3t1755
},
+ {
+ .compatible = "nxp,p3t1750",
+ .data = (void *)p3t1750
+ },
{
.compatible = "nxp,pct2075",
.data = (void *)pct2075
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] dt-bindings: hwmon: (lm75) Add binding for NXP P3T1750
2025-07-25 9:58 [PATCH 1/2] dt-bindings: hwmon: (lm75) Add binding for NXP P3T1750 Lakshay Piplani
2025-07-25 9:58 ` [PATCH 2/2] hwmon: (lm75) Add NXP P3T1750 support Lakshay Piplani
@ 2025-07-25 10:10 ` Krzysztof Kozlowski
1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-07-25 10:10 UTC (permalink / raw)
To: Lakshay Piplani, linux-kernel, jdelvare, linux, linux-hwmon,
corbet, linux-doc, robh, krzk+dt, conor+dt, devicetree
Cc: vikash.bansal, priyanka.jain, shashank.rebbapragada
On 25/07/2025 11:58, Lakshay Piplani wrote:
> Add "nxp,p3t1750" to the lm75 compatible list.
>
> Signed-off-by: Lakshay Piplani <lakshay.piplani@nxp.com>
> ---
> 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 c38255243f57..d0fa98eb38b1 100644
> --- a/Documentation/devicetree/bindings/hwmon/lm75.yaml
> +++ b/Documentation/devicetree/bindings/hwmon/lm75.yaml
> @@ -29,6 +29,7 @@ properties:
> - maxim,max31726
> - maxim,mcp980x
> - nxp,p3t1755
> + - nxp,p3t1750
Same comment to NXP as usually. I really wished NXP stopped repeating
the same issues:
Does not look like keeping order.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-07-25 10:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-25 9:58 [PATCH 1/2] dt-bindings: hwmon: (lm75) Add binding for NXP P3T1750 Lakshay Piplani
2025-07-25 9:58 ` [PATCH 2/2] hwmon: (lm75) Add NXP P3T1750 support Lakshay Piplani
2025-07-25 10:10 ` [PATCH 1/2] dt-bindings: hwmon: (lm75) Add binding for NXP P3T1750 Krzysztof Kozlowski
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).