Skip to contentSkip to conversation

hwmon: tmp102: Add support for TMP110 and TMP113 devices

PATCH Applied Flaviu Nistor 2 participants 2 messages Feb 25 – Mar 1

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 hwmon: tmp102: Add support for TMP110 and TMP113 devices

TMP110 and TMP113 temperature sensors are software compatible with TMP102 sensor but have different accuracy (maximum error).

---
Changes in v2:
- Drop the binding change since no ACK from devicetree maintainer.
- Update only the Kconfig and documentation.
- Link to v1: https://lore.kernel.org/all/[email protected]/

 Documentation/hwmon/tmp102.rst | 21 +++++++++++++++++++++
 drivers/hwmon/Kconfig          |  4 ++--
 2 files changed, 23 insertions(+), 2 deletions(-)
Documentation/hwmon/tmp102.rst +21 -0
index b1f585531a88..3c2cb5bab1e9 100644
@@ -11,6 +11,22 @@ Supported chips:
 
     Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp102.html
 
+  * Texas Instruments TMP110
+
+    Prefix: 'tmp110'
+
+    Addresses scanned: none
+
+    Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp110.html
+
+  * Texas Instruments TMP113
+
+    Prefix: 'tmp113'
+
+    Addresses scanned: none
+
+    Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp113.html
+
 Author:
 
 	Steven King <[email protected]>
@@ -27,5 +43,10 @@ operating temperature has a minimum of -55 C and a maximum of +150 C.
 The TMP102 has a programmable update rate that can select between 8, 4, 1, and
 0.5 Hz. (Currently the driver only supports the default of 4 Hz).
 
+The TMP110 and TMP113 are software compatible with TMP102, but have different
+accuracy (maximum error) specifications. The TMP110 has an accuracy (maximum error)
+of 1.0 degree, TMP113 has an accuracy (maximum error) of 0.3 degree, while TMP102
+has an accuracy (maximum error) of 2.0 degree.
+
 The driver provides the common sysfs-interface for temperatures (see
 Documentation/hwmon/sysfs-interface.rst under Temperatures).
drivers/hwmon/Kconfig +2 -2
index 12763950d11f..3956d385bf05 100644
@@ -2337,8 +2337,8 @@ config SENSORS_TMP102
 	depends on I2C
 	select REGMAP_I2C
 	help
-	  If you say yes here you get support for Texas Instruments TMP102
-	  sensor chips.
+	  If you say yes here you get support for Texas Instruments TMP102,
+	  TMP110 and TMP113 sensor chips.
 
 	  This driver can also be built as a module. If so, the module
 	  will be called tmp102.
Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 4 lines · Flaviu Nistor

TMP110 and TMP113 temperature sensors are software compatible with TMP102 sensor but have different accuracy (maximum error).

Applied.

Thanks,
Guenter