diff options
author | Frank Li <Frank.Li@nxp.com> | 2024-11-11 12:31:59 -0500 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-11-12 13:54:55 -0800 |
commit | 11d35624d7696a64724160199fc94587010d7cb2 (patch) | |
tree | 56a040fd5781811a733f70800f0e8838b78f2ef9 /drivers/hwmon | |
parent | 4585580781d69d8627e15f027873e46282ea3787 (diff) | |
download | lwn-11d35624d7696a64724160199fc94587010d7cb2.tar.gz lwn-11d35624d7696a64724160199fc94587010d7cb2.zip |
hwmon: (tmp108) Add NXP p3t1085 support
Add compatible string 'nxp,p3t1085' since p3t1085's register layout is the
same as tmp108.
The p3t1085 supports I3C interface.
Update document tmp108.rst and Kconfig's help context.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Message-ID: <20241111-p3t1085-v3-2-bff511550aad@nxp.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/Kconfig | 2 | ||||
-rw-r--r-- | drivers/hwmon/tmp108.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index 863b61330c0a..7b9b52fa731c 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -2300,7 +2300,7 @@ config SENSORS_TMP108 select REGMAP_I2C help If you say yes here you get support for Texas Instruments TMP108 - sensor chips. + sensor chips and NXP P3T1085. This driver can also be built as a module. If so, the module will be called tmp108. diff --git a/drivers/hwmon/tmp108.c b/drivers/hwmon/tmp108.c index a82bbc959eb1..b561b452d8d3 100644 --- a/drivers/hwmon/tmp108.c +++ b/drivers/hwmon/tmp108.c @@ -420,6 +420,7 @@ MODULE_DEVICE_TABLE(i2c, tmp108_i2c_ids); #ifdef CONFIG_OF static const struct of_device_id tmp108_of_ids[] = { + { .compatible = "nxp,p3t1085", }, { .compatible = "ti,tmp108", }, {} }; |