drivers: sensor: ntc_thermistor: Add Murata NCP15XH103

Murata NCP15XH103 compensation table added.

Signed-off-by: Jeff Daly <jeffd@silicom-usa.com>
This commit is contained in:
Jeff Daly 2024-03-29 21:57:40 -04:00 committed by Anas Nashif
parent 5dbfbbcca2
commit 7e0a334060
4 changed files with 45 additions and 1 deletions

View file

@ -8,7 +8,8 @@ config NTC_THERMISTOR
depends on DT_HAS_NTC_THERMISTOR_GENERIC_ENABLED || \
DT_HAS_EPCOS_B57861S0103A039_ENABLED || \
DT_HAS_MURATA_NCP15WB473_ENABLED || \
DT_HAS_TDK_NTCG163JF103FT1_ENABLED
DT_HAS_TDK_NTCG163JF103FT1_ENABLED || \
DT_HAS_MURATA_NCP15XH103_ENABLED
select ADC
help
Enable driver for Zephyr NTC Thermistor.

View file

@ -243,3 +243,29 @@ static __unused const struct ntc_compensation comp_tdk_ntcg163jf103ft1[] = {
DT_INST_FOREACH_STATUS_OKAY_VARGS(NTC_THERMISTOR_DEFINE, DT_DRV_COMPAT,
comp_tdk_ntcg163jf103ft1)
/* murata,ncp15xh103 */
#undef DT_DRV_COMPAT
#define DT_DRV_COMPAT murata_ncp15xh103
static __unused const struct ntc_compensation comp_murata_ncp15xh103[] = {
{ -25, 87558 },
{ -15, 53649 },
{ -5, 33892 },
{ 5, 22021 },
{ 15, 14673 },
{ 25, 10000 },
{ 35, 6947 },
{ 45, 4916 },
{ 55, 3535 },
{ 64, 2586 },
{ 75, 1924 },
{ 85, 1452 },
{ 95, 1109 },
{ 105, 858 },
{ 115, 671 },
{ 125, 531 },
};
DT_INST_FOREACH_STATUS_OKAY_VARGS(NTC_THERMISTOR_DEFINE, DT_DRV_COMPAT,
comp_murata_ncp15xh103)

View file

@ -0,0 +1,8 @@
# Copyright (c) 2024 Silicom Connectivity Solutions Ltd.
# SPDX-License-Identifier: Apache-2.0
description: MURATA NCP15XH103 thermistor
compatible: "murata,ncp15xh103"
include: ntc-thermistor.yaml

View file

@ -85,3 +85,12 @@ test_lm35: lm35 {
io-channels = <&adc0 0>;
status = "okay";
};
test_murata_ncp15xh103: murata-ncp15xh103 {
compatible = "murata,ncp15xh103";
io-channels = <&test_adc 0>;
pullup-uv = <3300000>;
pullup-ohm = <0>;
pulldown-ohm = <10000>;
connected-positive;
};