Skip to content
/ linux Public

Commit c7250b5

Browse files
sholeksandrgroeck
authored andcommitted
hwmon: (jc42) Add support for S-34TS04A
S-34TS04A is a JC42 compatible 2-wire serial EEPROM with temperature sensor from Seiko Instruments/ABLIC. Signed-off-by: Oleksandr Shamray <oleksandrs@nvidia.com> Reviewed-by: Vadim Pasternak <vadimp@nvidia.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent bd79021 commit c7250b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/hwmon/jc42.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ static const unsigned short normal_i2c[] = {
6363
#define STM_MANID 0x104a /* ST Microelectronics */
6464
#define GT_MANID 0x1c68 /* Giantec */
6565
#define GT_MANID2 0x132d /* Giantec, 2nd mfg ID */
66+
#define SI_MANID 0x1c85 /* Seiko Instruments */
6667

6768
/* SMBUS register */
6869
#define SMBUS_STMOUT BIT(7) /* SMBus time-out, active low */
@@ -156,6 +157,10 @@ static const unsigned short normal_i2c[] = {
156157
#define STTS3000_DEVID 0x0200
157158
#define STTS3000_DEVID_MASK 0xffff
158159

160+
/* Seiko Instruments */
161+
#define S34TS04A_DEVID 0x2221
162+
#define S34TS04A_DEVID_MASK 0xffff
163+
159164
static u16 jc42_hysteresis[] = { 0, 1500, 3000, 6000 };
160165

161166
struct jc42_chips {
@@ -186,6 +191,7 @@ static struct jc42_chips jc42_chips[] = {
186191
{ ONS_MANID, CAT34TS04_DEVID, CAT34TS04_DEVID_MASK },
187192
{ ONS_MANID, N34TS04_DEVID, N34TS04_DEVID_MASK },
188193
{ NXP_MANID, SE98_DEVID, SE98_DEVID_MASK },
194+
{ SI_MANID, S34TS04A_DEVID, S34TS04A_DEVID_MASK },
189195
{ STM_MANID, STTS424_DEVID, STTS424_DEVID_MASK },
190196
{ STM_MANID, STTS424E_DEVID, STTS424E_DEVID_MASK },
191197
{ STM_MANID, STTS2002_DEVID, STTS2002_DEVID_MASK },

0 commit comments

Comments
 (0)