* [PATCH 0/2] drivers: hwmon: ntc-thermistor: add Murata ncp18wm474
@ 2025-10-01 11:45 Sascha Hauer
2025-10-01 11:45 ` [PATCH 1/2] " Sascha Hauer
2025-10-01 11:45 ` [PATCH 2/2] dt-bindings: hwmon: ntc-thermistor: Add Murata ncp18wm474 NTC Sascha Hauer
0 siblings, 2 replies; 6+ messages in thread
From: Sascha Hauer @ 2025-10-01 11:45 UTC (permalink / raw)
To: Jean Delvare, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Linus Walleij
Cc: linux-hwmon, linux-kernel, devicetree, Sascha Hauer,
Emil Dahl Juhl
This series adds support for the Murata ncp18wm474 NTC.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
Emil Dahl Juhl (1):
drivers: hwmon: ntc-thermistor: add Murata ncp18wm474
Sascha Hauer (1):
dt-bindings: hwmon: ntc-thermistor: Add Murata ncp18wm474 NTC
.../devicetree/bindings/hwmon/ntc-thermistor.yaml | 1 +
drivers/hwmon/ntc_thermistor.c | 43 ++++++++++++++++++++++
2 files changed, 44 insertions(+)
---
base-commit: 50c19e20ed2ef359cf155a39c8462b0a6351b9fa
change-id: 20251001-ntc-thermistor-ncp18wm474-b19114b0b59f
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/2] drivers: hwmon: ntc-thermistor: add Murata ncp18wm474
2025-10-01 11:45 [PATCH 0/2] drivers: hwmon: ntc-thermistor: add Murata ncp18wm474 Sascha Hauer
@ 2025-10-01 11:45 ` Sascha Hauer
2025-10-02 21:36 ` Guenter Roeck
2025-10-01 11:45 ` [PATCH 2/2] dt-bindings: hwmon: ntc-thermistor: Add Murata ncp18wm474 NTC Sascha Hauer
1 sibling, 1 reply; 6+ messages in thread
From: Sascha Hauer @ 2025-10-01 11:45 UTC (permalink / raw)
To: Jean Delvare, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Linus Walleij
Cc: linux-hwmon, linux-kernel, devicetree, Sascha Hauer,
Emil Dahl Juhl
From: Emil Dahl Juhl <juhl.emildahl@gmail.com>
Add support for the Murata NCP18WM474 NTC.
Compensation table has been constructed by linear interpolation between
well defined points[1] on the resistance vs. temperature graph in the
datasheet[2]. The readouts of the graph has been done to the best of my
abilities, but the compensation table will be subject to inaccuracies
nonetheless.
[1] -40, -25, 0, 25, 50, 75, 100, 125 degrees
[2] https://www.murata.com/en-eu/api/pdfdownloadapi?cate=&partno=NCP18WM474E03RB
Signed-off-by: Emil Dahl Juhl <juhl.emildahl@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
drivers/hwmon/ntc_thermistor.c | 43 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c
index d21f7266c4119b3d0190cafd0f376874535de5cf..d6b48178343dbbf268f54004c1f6e39d97fbd532 100644
--- a/drivers/hwmon/ntc_thermistor.c
+++ b/drivers/hwmon/ntc_thermistor.c
@@ -24,6 +24,7 @@ enum ntc_thermistor_type {
TYPE_NCPXXWF104,
TYPE_NCPXXWL333,
TYPE_NCPXXXH103,
+ TYPE_NCPXXWM474,
};
struct ntc_compensation {
@@ -46,6 +47,7 @@ enum {
NTC_NCP18WB473,
NTC_NCP21WB473,
NTC_SSG1404001221,
+ NTC_NCP18WM474,
NTC_LAST,
};
@@ -60,6 +62,7 @@ static const struct platform_device_id ntc_thermistor_id[] = {
[NTC_NCP18WB473] = { "ncp18wb473", TYPE_NCPXXWB473 },
[NTC_NCP21WB473] = { "ncp21wb473", TYPE_NCPXXWB473 },
[NTC_SSG1404001221] = { "ssg1404_001221", TYPE_NCPXXWB473 },
+ [NTC_NCP18WM474] = { "ncp18wm474", TYPE_NCPXXWM474 },
[NTC_LAST] = { },
};
MODULE_DEVICE_TABLE(platform, ntc_thermistor_id);
@@ -217,6 +220,43 @@ static const struct ntc_compensation ncpXXxh103[] = {
{ .temp_c = 125, .ohm = 531 },
};
+static const struct ntc_compensation ncpXXwm474[] = {
+ { .temp_c = -40, .ohm = 10900000 },
+ { .temp_c = -35, .ohm = 9600000 },
+ { .temp_c = -30, .ohm = 8300000 },
+ { .temp_c = -25, .ohm = 7000000 },
+ { .temp_c = -20, .ohm = 5980000 },
+ { .temp_c = -15, .ohm = 4960000 },
+ { .temp_c = -10, .ohm = 3940000 },
+ { .temp_c = -5, .ohm = 2920000 },
+ { .temp_c = 0, .ohm = 1900000 },
+ { .temp_c = 5, .ohm = 1614000 },
+ { .temp_c = 10, .ohm = 1328000 },
+ { .temp_c = 15, .ohm = 1042000 },
+ { .temp_c = 20, .ohm = 756000 },
+ { .temp_c = 25, .ohm = 470000 },
+ { .temp_c = 30, .ohm = 404000 },
+ { .temp_c = 35, .ohm = 338000 },
+ { .temp_c = 40, .ohm = 272000 },
+ { .temp_c = 45, .ohm = 206000 },
+ { .temp_c = 50, .ohm = 140000 },
+ { .temp_c = 55, .ohm = 122000 },
+ { .temp_c = 60, .ohm = 104000 },
+ { .temp_c = 65, .ohm = 86000 },
+ { .temp_c = 70, .ohm = 68000 },
+ { .temp_c = 75, .ohm = 50000 },
+ { .temp_c = 80, .ohm = 44200 },
+ { .temp_c = 85, .ohm = 38400 },
+ { .temp_c = 90, .ohm = 32600 },
+ { .temp_c = 95, .ohm = 26800 },
+ { .temp_c = 100, .ohm = 21000 },
+ { .temp_c = 105, .ohm = 18600 },
+ { .temp_c = 110, .ohm = 16200 },
+ { .temp_c = 115, .ohm = 13800 },
+ { .temp_c = 120, .ohm = 11400 },
+ { .temp_c = 125, .ohm = 9000 },
+};
+
/*
* The following compensation tables are from the specifications in EPCOS NTC
* Thermistors Datasheets
@@ -319,6 +359,7 @@ static const struct ntc_type ntc_type[] = {
NTC_TYPE(TYPE_NCPXXWF104, ncpXXwf104),
NTC_TYPE(TYPE_NCPXXWL333, ncpXXwl333),
NTC_TYPE(TYPE_NCPXXXH103, ncpXXxh103),
+ NTC_TYPE(TYPE_NCPXXWM474, ncpXXwm474),
};
/*
@@ -675,6 +716,8 @@ static const struct of_device_id ntc_match[] = {
.data = &ntc_thermistor_id[NTC_NCP21WB473] },
{ .compatible = "samsung,1404-001221",
.data = &ntc_thermistor_id[NTC_SSG1404001221] },
+ { .compatible = "murata,ncp18wm474",
+ .data = &ntc_thermistor_id[NTC_NCP18WM474] },
/* Usage of vendor name "ntc" is deprecated */
{ .compatible = "ntc,ncp03wb473",
--
2.47.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] dt-bindings: hwmon: ntc-thermistor: Add Murata ncp18wm474 NTC
2025-10-01 11:45 [PATCH 0/2] drivers: hwmon: ntc-thermistor: add Murata ncp18wm474 Sascha Hauer
2025-10-01 11:45 ` [PATCH 1/2] " Sascha Hauer
@ 2025-10-01 11:45 ` Sascha Hauer
2025-10-02 18:34 ` Conor Dooley
2025-10-02 21:34 ` Guenter Roeck
1 sibling, 2 replies; 6+ messages in thread
From: Sascha Hauer @ 2025-10-01 11:45 UTC (permalink / raw)
To: Jean Delvare, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Linus Walleij
Cc: linux-hwmon, linux-kernel, devicetree, Sascha Hauer
Add Murata ncp18wm474 [1] NTC to the ntc-thermistor binding.
[1] https://www.murata.com/en-eu/api/pdfdownloadapi?cate=&partno=NCP18WM474E03RB
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
Documentation/devicetree/bindings/hwmon/ntc-thermistor.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/hwmon/ntc-thermistor.yaml b/Documentation/devicetree/bindings/hwmon/ntc-thermistor.yaml
index b8e500e6cd9f861fbbabd79a14d882341dbb387c..dc8bc4c6df34dfe79517044beebddad2a9700f56 100644
--- a/Documentation/devicetree/bindings/hwmon/ntc-thermistor.yaml
+++ b/Documentation/devicetree/bindings/hwmon/ntc-thermistor.yaml
@@ -75,6 +75,7 @@ properties:
- const: murata,ncp15wl333
- const: murata,ncp03wf104
- const: murata,ncp15xh103
+ - const: murata,ncp18wm474
- const: samsung,1404-001221
# Deprecated "ntc," compatible strings
- const: ntc,ncp15wb473
--
2.47.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] dt-bindings: hwmon: ntc-thermistor: Add Murata ncp18wm474 NTC
2025-10-01 11:45 ` [PATCH 2/2] dt-bindings: hwmon: ntc-thermistor: Add Murata ncp18wm474 NTC Sascha Hauer
@ 2025-10-02 18:34 ` Conor Dooley
2025-10-02 21:34 ` Guenter Roeck
1 sibling, 0 replies; 6+ messages in thread
From: Conor Dooley @ 2025-10-02 18:34 UTC (permalink / raw)
To: Sascha Hauer
Cc: Jean Delvare, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Linus Walleij, linux-hwmon, linux-kernel,
devicetree
[-- Attachment #1: Type: text/plain, Size: 52 bytes --]
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] dt-bindings: hwmon: ntc-thermistor: Add Murata ncp18wm474 NTC
2025-10-01 11:45 ` [PATCH 2/2] dt-bindings: hwmon: ntc-thermistor: Add Murata ncp18wm474 NTC Sascha Hauer
2025-10-02 18:34 ` Conor Dooley
@ 2025-10-02 21:34 ` Guenter Roeck
1 sibling, 0 replies; 6+ messages in thread
From: Guenter Roeck @ 2025-10-02 21:34 UTC (permalink / raw)
To: Sascha Hauer
Cc: Jean Delvare, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Linus Walleij, linux-hwmon, linux-kernel, devicetree
On Wed, Oct 01, 2025 at 01:45:28PM +0200, Sascha Hauer wrote:
> Add Murata ncp18wm474 [1] NTC to the ntc-thermistor binding.
>
> [1] https://www.murata.com/en-eu/api/pdfdownloadapi?cate=&partno=NCP18WM474E03RB
>
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> Acked-by: Conor Dooley <conor.dooley@microchip.com>
Applied to hwmon-next.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] drivers: hwmon: ntc-thermistor: add Murata ncp18wm474
2025-10-01 11:45 ` [PATCH 1/2] " Sascha Hauer
@ 2025-10-02 21:36 ` Guenter Roeck
0 siblings, 0 replies; 6+ messages in thread
From: Guenter Roeck @ 2025-10-02 21:36 UTC (permalink / raw)
To: Sascha Hauer
Cc: Jean Delvare, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Linus Walleij, linux-hwmon, linux-kernel, devicetree,
Emil Dahl Juhl
On Wed, Oct 01, 2025 at 01:45:27PM +0200, Sascha Hauer wrote:
> From: Emil Dahl Juhl <juhl.emildahl@gmail.com>
>
> Add support for the Murata NCP18WM474 NTC.
> Compensation table has been constructed by linear interpolation between
> well defined points[1] on the resistance vs. temperature graph in the
> datasheet[2]. The readouts of the graph has been done to the best of my
> abilities, but the compensation table will be subject to inaccuracies
> nonetheless.
>
> [1] -40, -25, 0, 25, 50, 75, 100, 125 degrees
> [2] https://www.murata.com/en-eu/api/pdfdownloadapi?cate=&partno=NCP18WM474E03RB
>
> Signed-off-by: Emil Dahl Juhl <juhl.emildahl@gmail.com>
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Applied to hwmon-next.
Guenter
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-10-02 21:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-01 11:45 [PATCH 0/2] drivers: hwmon: ntc-thermistor: add Murata ncp18wm474 Sascha Hauer
2025-10-01 11:45 ` [PATCH 1/2] " Sascha Hauer
2025-10-02 21:36 ` Guenter Roeck
2025-10-01 11:45 ` [PATCH 2/2] dt-bindings: hwmon: ntc-thermistor: Add Murata ncp18wm474 NTC Sascha Hauer
2025-10-02 18:34 ` Conor Dooley
2025-10-02 21:34 ` 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).