Skip to content

Commit 06a9a71

Browse files
Jean Delvaregregkh
authored andcommitted
hwmon: (jc42) Add support for ST Microelectronics STTS2002 and STTS3000
commit 4de8612 upstream. These are fully compatible with Jedec JC 42.4 as far as I can see. Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: Guenter Roeck <guenter.roeck@ericsson.com> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f9e1584 commit 06a9a71

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

‎Documentation/hwmon/jc42‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ Supported chips:
4848
Datasheets:
4949
http://www.st.com/stonline/products/literature/ds/13447/stts424.pdf
5050
http://www.st.com/stonline/products/literature/ds/13448/stts424e02.pdf
51+
* ST Microelectronics STTS2002, STTS3000
52+
Prefix: 'stts2002', 'stts3000'
53+
Addresses scanned: I2C 0x18 - 0x1f
54+
Datasheets:
55+
http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00225278.pdf
56+
http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATA_BRIEF/CD00270920.pdf
5157
* JEDEC JC 42.4 compliant temperature sensor chips
5258
Prefix: 'jc42'
5359
Addresses scanned: I2C 0x18 - 0x1f

‎drivers/hwmon/Kconfig‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ config SENSORS_JC42
498498
temperature sensors, which are used on many DDR3 memory modules for
499499
mobile devices and servers. Support will include, but not be limited
500500
to, ADT7408, CAT34TS02, CAT6095, MAX6604, MCP9805, MCP98242, MCP98243,
501-
MCP9843, SE97, SE98, STTS424(E), TSE2002B3, and TS3000B3.
501+
MCP9843, SE97, SE98, STTS424(E), STTS2002, STTS3000, TSE2002B3, and
502+
TS3000B3.
502503

503504
This driver can also be built as a module. If so, the module
504505
will be called jc42.

‎drivers/hwmon/jc42.c‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ static const unsigned short normal_i2c[] = {
113113
#define STTS424E_DEVID 0x0000
114114
#define STTS424E_DEVID_MASK 0xfffe
115115

116+
#define STTS2002_DEVID 0x0300
117+
#define STTS2002_DEVID_MASK 0xffff
118+
119+
#define STTS3000_DEVID 0x0200
120+
#define STTS3000_DEVID_MASK 0xffff
121+
116122
static u16 jc42_hysteresis[] = { 0, 1500, 3000, 6000 };
117123

118124
struct jc42_chips {
@@ -133,6 +139,8 @@ static struct jc42_chips jc42_chips[] = {
133139
{ NXP_MANID, SE98_DEVID, SE98_DEVID_MASK },
134140
{ STM_MANID, STTS424_DEVID, STTS424_DEVID_MASK },
135141
{ STM_MANID, STTS424E_DEVID, STTS424E_DEVID_MASK },
142+
{ STM_MANID, STTS2002_DEVID, STTS2002_DEVID_MASK },
143+
{ STM_MANID, STTS3000_DEVID, STTS3000_DEVID_MASK },
136144
};
137145

138146
/* Each client has this additional data */
@@ -171,6 +179,8 @@ static const struct i2c_device_id jc42_id[] = {
171179
{ "se97b", 0 },
172180
{ "se98", 0 },
173181
{ "stts424", 0 },
182+
{ "stts2002", 0 },
183+
{ "stts3000", 0 },
174184
{ "tse2002b3", 0 },
175185
{ "ts3000b3", 0 },
176186
{ }

0 commit comments

Comments
 (0)