blob: 19d10512f6c0313c0d41f77bcba05fef02c2a7ec [file] [log] [blame]
Guenter Roeck4453d732010-08-09 17:21:08 -07001Kernel driver jc42
2==================
3
4Supported chips:
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -03005
Guenter Roeck4453d732010-08-09 17:21:08 -07006 * Analog Devices ADT7408
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -03007
Guenter Roeck4453d732010-08-09 17:21:08 -07008 Datasheets:
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -03009
Alexander A. Klimovd38b7e42020-07-19 20:25:39 +020010 https://www.analog.com/static/imported-files/data_sheets/ADT7408.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030011
Guenter Roeck175c4902014-04-15 22:07:30 -070012 * Atmel AT30TS00, AT30TS002A/B, AT30TSE004A
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030013
Guenter Roeck4453d732010-08-09 17:21:08 -070014 Datasheets:
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030015
Guenter Roeck1bd612a2012-03-05 11:13:52 -080016 http://www.atmel.com/Images/doc8585.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030017
Guenter Roeck175c4902014-04-15 22:07:30 -070018 http://www.atmel.com/Images/doc8711.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030019
Guenter Roeck175c4902014-04-15 22:07:30 -070020 http://www.atmel.com/Images/Atmel-8852-SEEPROM-AT30TSE002A-Datasheet.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030021
Guenter Roeck175c4902014-04-15 22:07:30 -070022 http://www.atmel.com/Images/Atmel-8868-DTS-AT30TSE004A-Datasheet.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030023
Guenter Roeck0ea2f1d2015-02-01 17:20:38 -080024 * IDT TSE2002B3, TSE2002GB2, TSE2004GB2, TS3000B3, TS3000GB0, TS3000GB2,
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030025
Guenter Roeck0ea2f1d2015-02-01 17:20:38 -080026 TS3001GB2
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030027
Guenter Roeck1bd612a2012-03-05 11:13:52 -080028 Datasheets:
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030029
Guenter Roeck0ea2f1d2015-02-01 17:20:38 -080030 Available from IDT web site
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030031
Guenter Roeck4453d732010-08-09 17:21:08 -070032 * Maxim MAX6604
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030033
Guenter Roeck4453d732010-08-09 17:21:08 -070034 Datasheets:
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030035
Guenter Roeck4453d732010-08-09 17:21:08 -070036 http://datasheets.maxim-ic.com/en/ds/MAX6604.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030037
Alison Schofielda31887d2016-06-27 17:23:27 -070038 * Microchip MCP9804, MCP9805, MCP9808, MCP98242, MCP98243, MCP98244, MCP9843
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030039
Guenter Roeck4453d732010-08-09 17:21:08 -070040 Datasheets:
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030041
Alexander A. Klimovd38b7e42020-07-19 20:25:39 +020042 https://ww1.microchip.com/downloads/en/DeviceDoc/22203C.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030043
Alexander A. Klimovd38b7e42020-07-19 20:25:39 +020044 https://ww1.microchip.com/downloads/en/DeviceDoc/21977b.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030045
Alexander A. Klimovd38b7e42020-07-19 20:25:39 +020046 https://ww1.microchip.com/downloads/en/DeviceDoc/25095A.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030047
Alexander A. Klimovd38b7e42020-07-19 20:25:39 +020048 https://ww1.microchip.com/downloads/en/DeviceDoc/21996a.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030049
Alexander A. Klimovd38b7e42020-07-19 20:25:39 +020050 https://ww1.microchip.com/downloads/en/DeviceDoc/22153c.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030051
Alexander A. Klimovd38b7e42020-07-19 20:25:39 +020052 https://ww1.microchip.com/downloads/en/DeviceDoc/22327A.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030053
Guenter Roeck86dda172012-03-08 08:20:24 -080054 * NXP Semiconductors SE97, SE97B, SE98, SE98A
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030055
Guenter Roeck4453d732010-08-09 17:21:08 -070056 Datasheets:
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030057
Alexander A. Klimovd38b7e42020-07-19 20:25:39 +020058 https://www.nxp.com/documents/data_sheet/SE97.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030059
Alexander A. Klimovd38b7e42020-07-19 20:25:39 +020060 https://www.nxp.com/documents/data_sheet/SE97B.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030061
Alexander A. Klimovd38b7e42020-07-19 20:25:39 +020062 https://www.nxp.com/documents/data_sheet/SE98.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030063
Alexander A. Klimovd38b7e42020-07-19 20:25:39 +020064 https://www.nxp.com/documents/data_sheet/SE98A.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030065
Guenter Roeck4453d732010-08-09 17:21:08 -070066 * ON Semiconductor CAT34TS02, CAT6095
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030067
Guenter Roeck4453d732010-08-09 17:21:08 -070068 Datasheet:
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030069
Alexander A. Klimovd38b7e42020-07-19 20:25:39 +020070 https://www.onsemi.com/pub_link/Collateral/CAT34TS02-D.PDF
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030071
Alexander A. Klimovd38b7e42020-07-19 20:25:39 +020072 https://www.onsemi.com/pub/Collateral/CAT6095-D.PDF
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030073
Guenter Roeck175c4902014-04-15 22:07:30 -070074 * ST Microelectronics STTS424, STTS424E02, STTS2002, STTS2004, STTS3000
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030075
Guenter Roeck4453d732010-08-09 17:21:08 -070076 Datasheets:
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030077
Guenter Roeck175c4902014-04-15 22:07:30 -070078 http://www.st.com/web/en/resource/technical/document/datasheet/CD00157556.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030079
Guenter Roeck175c4902014-04-15 22:07:30 -070080 http://www.st.com/web/en/resource/technical/document/datasheet/CD00157558.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030081
Guenter Roeck175c4902014-04-15 22:07:30 -070082 http://www.st.com/web/en/resource/technical/document/datasheet/CD00266638.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030083
Guenter Roeck175c4902014-04-15 22:07:30 -070084 http://www.st.com/web/en/resource/technical/document/datasheet/CD00225278.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030085
Guenter Roeck175c4902014-04-15 22:07:30 -070086 http://www.st.com/web/en/resource/technical/document/datasheet/DM00076709.pdf
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030087
Guenter Roeck4453d732010-08-09 17:21:08 -070088 * JEDEC JC 42.4 compliant temperature sensor chips
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030089
Clemens Ladischd5622f52011-02-16 08:02:08 -050090 Datasheet:
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030091
Clemens Ladischd5622f52011-02-16 08:02:08 -050092 http://www.jedec.org/sites/default/files/docs/4_01_04R19.pdf
Guenter Roeck4453d732010-08-09 17:21:08 -070093
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030094
Guenter Roeck86dda172012-03-08 08:20:24 -080095 Common for all chips:
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030096
Guenter Roeck86dda172012-03-08 08:20:24 -080097 Prefix: 'jc42'
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -030098
Guenter Roeck86dda172012-03-08 08:20:24 -080099 Addresses scanned: I2C 0x18 - 0x1f
100
Guenter Roeck4453d732010-08-09 17:21:08 -0700101Author:
Guenter Roecke3333e52013-02-20 20:58:42 -0800102 Guenter Roeck <linux@roeck-us.net>
Guenter Roeck4453d732010-08-09 17:21:08 -0700103
104
105Description
106-----------
107
Clemens Ladischd5622f52011-02-16 08:02:08 -0500108This driver implements support for JEDEC JC 42.4 compliant temperature sensors,
109which are used on many DDR3 memory modules for mobile devices and servers. Some
110systems use the sensor to prevent memory overheating by automatically throttling
111the memory controller.
112
Guenter Roeck4453d732010-08-09 17:21:08 -0700113The driver auto-detects the chips listed above, but can be manually instantiated
114to support other JC 42.4 compliant chips.
115
116Example: the following will load the driver for a generic JC 42.4 compliant
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -0300117temperature sensor at address 0x18 on I2C bus #1::
Guenter Roeck4453d732010-08-09 17:21:08 -0700118
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -0300119 # modprobe jc42
120 # echo jc42 0x18 > /sys/bus/i2c/devices/i2c-1/new_device
Guenter Roeck4453d732010-08-09 17:21:08 -0700121
122A JC 42.4 compliant chip supports a single temperature sensor. Minimum, maximum,
123and critical temperature can be configured. There are alarms for high, low,
124and critical thresholds.
125
126There is also an hysteresis to control the thresholds for resetting alarms.
127Per JC 42.4 specification, the hysteresis threshold can be configured to 0, 1.5,
1283.0, and 6.0 degrees C. Configured hysteresis values will be rounded to those
129limits. The chip supports only a single register to configure the hysteresis,
130which applies to all limits. This register can be written by writing into
131temp1_crit_hyst. Other hysteresis attributes are read-only.
132
Clemens Ladisch2c6315d2011-02-16 08:02:38 -0500133If the BIOS has configured the sensor for automatic temperature management, it
134is likely that it has locked the registers, i.e., that the temperature limits
135cannot be changed.
136
Guenter Roeck4453d732010-08-09 17:21:08 -0700137Sysfs entries
138-------------
139
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -0300140======================= ===========================================
Guenter Roeck4453d732010-08-09 17:21:08 -0700141temp1_input Temperature (RO)
Clemens Ladisch2c6315d2011-02-16 08:02:38 -0500142temp1_min Minimum temperature (RO or RW)
143temp1_max Maximum temperature (RO or RW)
144temp1_crit Critical high temperature (RO or RW)
Guenter Roeck4453d732010-08-09 17:21:08 -0700145
Clemens Ladisch2c6315d2011-02-16 08:02:38 -0500146temp1_crit_hyst Critical hysteresis temperature (RO or RW)
Guenter Roeck4453d732010-08-09 17:21:08 -0700147temp1_max_hyst Maximum hysteresis temperature (RO)
148
149temp1_min_alarm Temperature low alarm
150temp1_max_alarm Temperature high alarm
151temp1_crit_alarm Temperature critical alarm
Mauro Carvalho Chehabb32570a2019-04-17 06:46:27 -0300152======================= ===========================================