root/lm-sensors/trunk/doc/chips/eeprom @ 1040

Revision 1040, 5.8 KB (checked in by mds, 12 years ago)

documentation updates on eeproms

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1Kernel driver `eeprom.o'
2========================
3
4Status: Complete and well-tested
5
6Supported chips:
7  * Any EEPROM chip in the designated address range
8    Prefix `eeprom'
9    Addresses scanned: I2C 0x50 - 0x57 (inclusive)
10    Datasheets: Publicly available from Atmel (www.atmel.com),
11                Fairchild (www.fairchildsemi.com), and
12                Microchip (www.microchip.com)
13
14        Chip    Size (bits)     Address
15        24C01    1K             0x50 (shadows at 0x51 - 0x57)
16        24C01A   1K             0x50 - 0x57 (Typical device on DIMMs)
17        24C02    2K             0x50 - 0x57
18        24C04    4K             0x50, 0x52, 0x54, 0x56
19                                (additional data at 0x51, 0x53, 0x55, 0x57)
20        24C08    8K             0x50, 0x54 (additional data at 0x51, 0x52,
21                                0x53, 0x55, 0x56, 0x57)
22        24C16   16K             0x50 (additional data at 0x51 - 0x57)
23
24
25Author: Frodo Looijaard <frodol@dds.nl> and Philip Edelbrock
26        <phil@netroedge.com>
27
28
29Module Parameters
30-----------------
31
32* checksum: int
33  Only accept eeproms whose checksum is correct
34* force: short array (min = 1, max = 48)
35  List of adapter,address pairs to boldly assume to be present
36* force_eeprom: short array (min = 1, max = 48)
37  List of adapter,address pairs which are unquestionably assumed to contain
38  a `eeprom' chip
39* ignore: short array (min = 1, max = 48)
40  List of adapter,address pairs not to scan
41* ignore_range: short array (min = 1, max = 48)
42  List of adapter,start-addr,end-addr triples not to scan
43* probe: short array (min = 1, max = 48)
44  List of adapter,address pairs to scan additionally
45* probe_range: short array (min = 1, max = 48)
46  List of adapter,start-addr,end-addr triples to scan additionally
47
48
49Description
50-----------
51
52This is a simple EEPROM module meant to enable reading the first 128 bytes
53of an EEPROM (on a SDRAM DIMM). However, it will access serial EEPROMs
54on any I2C adapter. This module will probably need to be
55expanded.  A /dev file interface would probably be more effective.
56This module was a programming exercise to get used to the new project
57organization laid out by Frodo, but it should be at least completely
58effective for decoding the contents of EEPROMs on DIMMs.
59
60DIMMS will typically contain a 24C01A or 24C02. The other devices
61will not be found on a DIMM because they respond to more than one
62address.
63
64DDC Monitors may contain any device. Often a 24C01, which responds
65to all 8 addresses, is found. See the 'ddcmon' driver which has
66specialized /proc entries for DDC monitors. If the eeprom driver is
67loaded before the ddcmon driver and there is no 'ignore' line in the
68/etc/sensors.conf file, the eeprom driver will latch onto the DDC monitor
69eeprom.
70
71
72Lacking functionality:
73
74* Read bytes 128-255.  There is no technical restriction for not doing
75this, but making a zillion dataxx-xx files would be a bit rediculous.
76EEPROMs on DIMMs shouldn't use the contents past byte 128, so we are fine.
77
78* Full support for larger devices (24C04, 24C08, 24C16). These are
79not typically found on a PC. These devices will appear as separate
80devices at multiple addresses, with every other 128-byte block inaccessable
81because of the missing 128-255 functionality.
82
83* Support for really large devices (24C32, 24C64, 24C128, 24C256, 24C5412).
84These devices require two-byte address fields and are not supported.
85
86* Enable Writing.  Again, no technical reason why not, but making it easy
87to change the contents of the EEPROMs (on DIMMs anyway) also makes it easy
88to disable the DIMMs until the values are restored somehow.
89
90
91Use:
92
93After inserting the module (and any other required smbus/i2c modules), you
94should have some EEPROM directories in /proc/sys/dev/sensors/ of names such
95as "eeprom-i2c-0-50".  Inside each of these is a series of files which
96represent 16 bytes blocks from the EEPROM.  The data is in decimal (base
9710) delimited by spaces.
98
99Note:
100
101EEPROMs reported are not nessesarily all from DIMMs.  Xeon processors, for
102example, have serial EEPROMs in them connected to the SMBus which will be
103found by the module.  Take care to ignore the output of decode_dimms.pl for
104these EEPROMs.
105
106The driver caches the data from the monitor and only rereads it
107from the eeprom if the cache is more than 5 minutes old.
108
109
110DECODE_DIMMS.PL
111---------------
112
113This Perl script attempts to make sense of the first 128 bytes of a SDRAM
114PC-100 DIMM.  Using the 'Serial Presence Detect (SPD)' Spec (Rev1.2a)** from
115Intel.  When finished, it will decode and report all the values defined in
116the spec.  Much of the information is technical timing and interfacing info
117(probably not all used by the Bios or clocking IC.
118
119Note: During testing, we noticed that many DIMMs have trucated SPD records.
120I'm not sure if these conform to an old spec, or if the manufacturers are
121simply just taking short-cuts.  But, many DIMMs have all zeros stored past
122byte 21.  I asked an Intel SDRAM tester, Sat Kolli (skolli@smartm.com),
123about this and this is what he had to say:
124
125"[...] Now in terms of SPD contents, you are right that people do all kinds
126of things. The way to insure that any module works is to look for the most
127basic information, such as module bank density, number of banks, and device
128addresses. That will give you the module size and what devices are used. It
129is very difficult to verify if the module is PC-100, because of
130inconsistencies between spd data from different manufacturers. You could
131read the timing information or the special Intel bytes (126 & 127) but I do
132not know how many program that information.These inconsistencies may be
133minimized if you or your customers stay with some of the better known
134manufacturers."  (Thanks goes to Sat Kolli for his comments and help)
135
136Use:
137
138After inserting the nessesary modules, run the script!
139
140Notes:
141
142The script assumes that Perl can be found at /usr/bin/perl.  If different,
143you will need to adjust the first line of the file accordingly, or else
144you will get a strange "decode_dimms.pl: no such file or directory" error.
145
146Also note that the script assumes that _all_ the eeproms belong to DIMMs,
147which may not be the case.
Note: See TracBrowser for help on using the browser.