hwmon: (jc42) Add support for ONSEMI N34TS04
authorGuenter Roeck <linux@roeck-us.net>
Mon, 8 Nov 2021 15:17:52 +0000 (07:17 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 26 Dec 2021 23:02:05 +0000 (15:02 -0800)
N34TS04 is a JC42.4 compatible temperature sensor from ONSEMI.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/jc42.c

index 4a03d01..cb347a6 100644 (file)
@@ -137,6 +137,9 @@ static const unsigned short normal_i2c[] = {
 #define CAT34TS04_DEVID                0x2200
 #define CAT34TS04_DEVID_MASK   0xfff0
 
+#define N34TS04_DEVID          0x2230
+#define N34TS04_DEVID_MASK     0xfff0
+
 /* ST Microelectronics */
 #define STTS424_DEVID          0x0101
 #define STTS424_DEVID_MASK     0xffff
@@ -181,6 +184,7 @@ static struct jc42_chips jc42_chips[] = {
        { ONS_MANID, CAT6095_DEVID, CAT6095_DEVID_MASK },
        { ONS_MANID, CAT34TS02C_DEVID, CAT34TS02C_DEVID_MASK },
        { ONS_MANID, CAT34TS04_DEVID, CAT34TS04_DEVID_MASK },
+       { ONS_MANID, N34TS04_DEVID, N34TS04_DEVID_MASK },
        { NXP_MANID, SE98_DEVID, SE98_DEVID_MASK },
        { STM_MANID, STTS424_DEVID, STTS424_DEVID_MASK },
        { STM_MANID, STTS424E_DEVID, STTS424E_DEVID_MASK },