]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
hwmon: (tmp108) Add NXP p3t1085 support
authorFrank Li <Frank.Li@nxp.com>
Mon, 11 Nov 2024 17:31:59 +0000 (12:31 -0500)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 12 Nov 2024 21:54:55 +0000 (13:54 -0800)
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>
Documentation/hwmon/tmp108.rst
drivers/hwmon/Kconfig
drivers/hwmon/tmp108.c

index 6df7cf1b42f4915c54f41f3e178813814d81ab87..bc4941d98268195b99a89e720887c95734eb575c 100644 (file)
@@ -3,6 +3,14 @@ Kernel driver tmp108
 
 Supported chips:
 
+  * NXP P3T1085
+
+    Prefix: 'p3t1085'
+
+    Addresses scanned: none
+
+    Datasheet: https://www.nxp.com/docs/en/data-sheet/P3T1085UK.pdf
+
   * Texas Instruments TMP108
 
     Prefix: 'tmp108'
index 863b61330c0afb9bc1366c9ff7e1893f20be2383..7b9b52fa731cb5581443c4a5a3d1819e646e7bb2 100644 (file)
@@ -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.
index a82bbc959eb1537678012601e73f81a2427a09bb..b561b452d8d39adc9f1c72947784bf328730ffd1 100644 (file)
@@ -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", },
        {}
 };