diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 7a802016..08076c35 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -32,8 +32,7 @@ suggestions or problems. Added lm81 support to the adm9240 driver. Added DDC support and i2c-algo-bit layer to the i2c-voodoo3 bus driver. Added the RRD interface. - Author of the ddcmon, icspll, smbus-arp, smsc47m1, - vt1211, and vt8231 chip drivers. + Author of the smsc47m1, vt1211, and vt8231 chip drivers. * Bob Dougherty Author (with MDS) of the via686a driver. * Jonathan Teh Soon Yew and Alex van Kaam @@ -70,7 +69,7 @@ suggestions or problems. * Aurelien Jarno Author of the pcf8591 driver. * Abraham vd Merwe - Author of the LM92 and DS1307 drivers. + Author of the LM92 driver. * Mark M. Hoffman Author of the i2c-sis645 bus driver. Added Asus ASB100 Bach support to the w83781d driver. @@ -80,7 +79,7 @@ suggestions or problems. * Jean Delvare Author of the lm63, lm83, lm90 and w83l785ts SMBus chip drivers. Author of the f71805f and pc87360 Super-I/O chip drivers. - Author of the i2c-amd756-s4882 and pca9540 SMBus multiplexing drivers. + Author of the i2c-amd756-s4882 SMBus multiplexing driver. Perl scripts maintainer, tester, bug fixer, general support. * Vojtech Pavlik Author of the i2c-amd8111 bus driver. @@ -88,8 +87,6 @@ suggestions or problems. * Philip Pokorny Author of the LM85 chip driver. Author of the ADM1026 chip driver. -* Sascha Volkenandt - Author of the SAA1064 chip driver. * John Morris Author of the MAX6650 chip driver. * Reinhard Nissl diff --git a/README b/README index 8ba5687d..a8f04411 100644 --- a/README +++ b/README @@ -62,25 +62,15 @@ At least the following hardware sensor chips are supported: LM80, LM81, LM82, LM83, LM84, LM85, LM86, LM87, LM89, LM90, LM92, LM93, LM99, PC87360, PC87363, PC87364, PC87365, PC87366 - Philips NE1617, NE1617A, NE1619 + Philips NE1617, NE1617A, NE1619, PCF8591 SiS 5595, 950 embedded sensors SMSC 47M1xx embedded sensors, EMC6D100, EMC6D101, EMC6D102 TI THMC10 and THMC50 VIA Technologies VT1211, VT8231 and VT82C686A/B embedded sensors Winbond W83781D, W83782D, W83783S, W83791D, W83792D, W83627HF, W83627THF, W83637HF, W83687THF and W83697HF - - -We also support some miscellaneous chips: - Dallas DS1307 real time clock - Intel Xeon processor embedded EEPROMs - Linear Technologies LTC1710 - Philips Semiconductors PCF8574, PCF8591 - DDC Monitor embedded EEPROMs - SDRAM Dimms with Serial Presence Detect EEPROMs Smart Battery sensors IPMI-BMC sensors - Philips Semiconductors SAA1064 The list above may be out of date; diff --git a/doc/chips/SUMMARY b/doc/chips/SUMMARY index dabf5380..c3900b00 100644 --- a/doc/chips/SUMMARY +++ b/doc/chips/SUMMARY @@ -204,6 +204,9 @@ pc87360 pc87365 2 11 3 3 pwm no yes (LPC) pc87366 3-4 11 3 3 pwm no yes (LPC) +pcf8591 + pcf8591 - 2-4 - 1 dac yes no + sis5595 sis5595 0-1 4-5 2 - no yes @@ -262,48 +265,6 @@ xeontemp xeontemp 1 - - - yes no - -SUPPORTED NON-SENSOR CHIPS --------------------------- - -Driver Chips ------- ----- - -bmcsensors - An interface to an IPMI BMC (Baseboard management controller) - -bt869 - bt869 video modulator chip - -ddcmon - DDC-compliant monitor integrated eeproms - reads locations only - -ds1307 - real-time clock - -eeprom - Memory SPD (serial presence detect) eeproms - reads locations only - Xeon scratch eeproms - reads locations only - -ltc1710 - ltc1710 two switches only - -pca9540 - 2-channel I2C multiplexer - -pcf8574 & pcf8574a - Simple eight-bit parallel I/O - -pcf8591 - Quad A/D + one D/A - -saa1064 - 4-digit LED-driver - -smbus-arp - An SMBus 2.0 ARP client - - ----------------------------------------------------------------------------- COMPANY ID LIST diff --git a/doc/useful_addresses.html b/doc/useful_addresses.html index 073ea0a1..f829c3ba 100644 --- a/doc/useful_addresses.html +++ b/doc/useful_addresses.html @@ -86,10 +86,6 @@ implementations. Please report any other references you have found!


No datasheet available.
  • Hewlett Packard (Maxilife)
    Datasheets only under NDA.
  • -
  • Linear Technologies - (LTC1710) -
    Datasheets available for - download (choose "Special Functions").
  • Maxim IC (includes Dallas Semiconductor) (DS75, DS1621, DS1625, @@ -305,9 +301,6 @@ implementations. Please report any other references you have found!


    A paper on which the version 2 Makefile is based.
  • NTC thermistors
    A comprehensive description of the physics and mathematics of NTC thermistors.
  • -
  • Standard manufacturer's - identification code -
    The official list of Manufacturer IDs for EEPROMs.
  • About temperature sensors
    A web guide to devices that measure temperature. General information.
  • Measuring diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 51e42fac..8ab2bd9d 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -1388,20 +1388,17 @@ use vars qw(@pci_adapters_sis5595 @pci_adapters_sis645 @pci_adapters_sis96x); }, { name => "SPD EEPROM", - driver => "eeprom", - i2c_addrs => [0x50..0x57], - i2c_detect => sub { eeprom_detect(0, @_); }, - }, - { - name => "Sony Vaio EEPROM", - driver => "eeprom", - i2c_addrs => [0x57], - i2c_detect => sub { eeprom_detect(1, @_); }, + driver => "not-a-sensor", + # Can also live at 0x54-0x57, but we don't care: we only check + # for SPD and EDID EEPROMs because some hardware monitoring chips + # can live at 0x50-0x53. + i2c_addrs => [0x50..0x53], + i2c_detect => sub { eeprom_detect(@_); }, }, { name => "EDID EEPROM", - driver => "eeprom", - i2c_addrs => [0x50], + driver => "not-a-sensor", + i2c_addrs => [0x50..0x53], i2c_detect => sub { ddcmonitor_detect(@_); }, }, { @@ -1442,7 +1439,7 @@ use vars qw(@pci_adapters_sis5595 @pci_adapters_sis645 @pci_adapters_sis96x); }, { name => "Fintek F75111R/RG/N (GPIO)", - driver => "to-be-written", + driver => "not-a-sensor", i2c_addrs => [0x4e], # 0x37 not probed i2c_detect => sub { fintek_detect(1, @_); }, }, @@ -1488,42 +1485,12 @@ use vars qw(@pci_adapters_sis5595 @pci_adapters_sis645 @pci_adapters_sis96x); i2c_addrs => [0x2f], i2c_detect => sub { fintek_detect(7, @_); }, }, - { - name => "Philips Semiconductors SAA1064", - driver => "saa1064", - i2c_addrs => [0x38..0x3b], - i2c_detect => sub { saa1064_detect(@_); }, - }, { name => "Philips Semiconductors PCA9540", driver => "pca9540", i2c_addrs => [0x70], i2c_detect => sub { pca9540_detect(@_); }, }, - { - name => "Philips Semiconductors PCA9556", - driver => "to-be-written", - i2c_addrs => [0x18..0x1f], - i2c_detect => sub { pca9556_detect(@_); }, - }, - { - name => "Maxim MAX6900", - driver => "not-a-sensor", - i2c_addrs => [0x50], - i2c_detect => sub { max6900_detect(@_); }, - }, - { - name => "Smart Battery Charger", - driver => "to-be-written", - i2c_addrs => [0x09], - i2c_detect => sub { smartbatt_chgr_detect(@_); }, - }, - { - name => "Smart Battery Manager/Selector", - driver => "to-be-written", - i2c_addrs => [0x0a], - i2c_detect => sub { smartbatt_mgr_detect(@_); }, - }, { name => "Smart Battery", driver => "smartbatt", @@ -4806,58 +4773,25 @@ sub ite_alias_detect return 1; } -# $_[0]: Chip to detect (0 = SPD EEPROM, 1 = Sony Vaio EEPROM) -# $_[1]: A reference to the file descriptor to access this chip -# $_[2]: Address +# $_[0]: A reference to the file descriptor to access this chip +# $_[1]: Address # Returns: 8 for a memory eeprom -# 4 to 9 for a Sony Vaio eeprom # Registers used: # 0-63: SPD Data and Checksum -# 0x80-0x83: Sony Vaio Data ("PCG-") -# 0xe2, 0xe5, 0xe8, 0xeb, Oxee: Sony Vaio Timestamp constant bytes. -# 0x1a-0x1c: Sony Vaio MAC address -# This detection function is a bit tricky; this is to workaround -# wrong misdetection messages that would else arise. sub eeprom_detect { - my ($chip,$file,$addr) = @_; + my ($file, $addr) = @_; my $checksum = 0; # Check the checksum for validity (works for most DIMMs and RIMMs) - if ($chip == 0) { - for (my $i = 0; $i <= 62; $i++) { - $checksum += i2c_smbus_read_byte_data($file, $i); - } - $checksum &= 255; - - return 8 - if $checksum == i2c_smbus_read_byte_data($file, 63); - return; + for (my $i = 0; $i <= 62; $i++) { + $checksum += i2c_smbus_read_byte_data($file, $i); } + $checksum &= 255; - # Look for a Sony Vaio EEPROM ($chip == 1) - my $vaioconf = 1; - $vaioconf += 4 - if i2c_smbus_read_byte_data($file,0x80) == 0x50 - && i2c_smbus_read_byte_data($file,0x81) == 0x43 - && i2c_smbus_read_byte_data($file,0x82) == 0x47 - && i2c_smbus_read_byte_data($file,0x83) == 0x2d; - $vaioconf += 5 - if i2c_smbus_read_byte_data($file,0xe2) == 0x2f - && i2c_smbus_read_byte_data($file,0xe5) == 0x2f - && i2c_smbus_read_byte_data($file,0xe8) == 0x20 - && i2c_smbus_read_byte_data($file,0xeb) == 0x3a - && i2c_smbus_read_byte_data($file,0xee) == 0x3a; - $vaioconf += 3 - if i2c_smbus_read_byte_data($file,0x1a) == 0x08 - && i2c_smbus_read_byte_data($file,0x1b) == 0x00 - && i2c_smbus_read_byte_data($file,0x1c) == 0x46; - $vaioconf = 9 - if $vaioconf > 9; + return 8 + if $checksum == i2c_smbus_read_byte_data($file, 63); - if ($vaioconf > 1) { - return $vaioconf; - } return; } @@ -4880,7 +4814,7 @@ sub ddcmonitor_detect i2c_smbus_read_byte_data($file,0x06) == 0xFF and i2c_smbus_read_byte_data($file,0x07) == 0x00; - return (8,$addr+1,$addr+2,$addr+3,$addr+4,$addr+5,$addr+6,$addr+7); + return 8; } # $_[0]: A reference to the file descriptor to access this chip. @@ -5065,28 +4999,6 @@ sub fintek_detect return 7; } -# $_[0]: A reference to the file descriptor to access this chip. -# $_[1]: Address -# Returns: undef if not detected, 4 or 7 if detected -# Detection is based on the fact that the SAA1064 has only one readable -# register, and thus ignores the read address. This register can have value -# 0x80 (first read since power-up) or 0x00. -sub saa1064_detect -{ - my ($file,$addr) = @_; - my $status = i2c_smbus_read_byte_data ($file, 0x00); - - return if ($status & 0x7f) != 0x00; - - for (my $i=0 ; $i<256; $i++) { - return if i2c_smbus_read_byte_data ($file, $i) != 0x00; - } - - return 7 - if $status == 0x80; - return 4; -} - # $_[0]: A reference to the file descriptor to access this chip. # $_[1]: Address # Returns: undef if not detected, 1 if detected @@ -5105,138 +5017,6 @@ sub pca9540_detect return 1; } -# $_[0]: A reference to the file descriptor to access this chip. -# $_[1]: Address (unused) -# Returns: undef if not detected, 1 if detected -# Detection is rather difficult, since the PCA9556 only has 4 registers -# and no unused bit. We use the fact that the registers cycle over -# 4 addresses boundaries, and the logic rules between registers. -sub pca9556_detect -{ - my ($file, $addr) = @_; - my $input = i2c_smbus_read_byte_data($file, 0x00); - my $output = i2c_smbus_read_byte_data($file, 0x01); - my $invert = i2c_smbus_read_byte_data($file, 0x02); - my $config = i2c_smbus_read_byte_data($file, 0x03); - - # Pins configured for output (config = 0) must obey the following - # rule: input = output ^ invert - - return unless ($input & ~$config) == (($output ^ $invert) & ~$config); - - for (my $i = 5; $i < 254 ; $i+=4) { - return unless i2c_smbus_read_byte_data($file, $i) == $output; - return unless i2c_smbus_read_byte_data($file, $i+1) == $invert; - return unless i2c_smbus_read_byte_data($file, $i+2) == $config; - } - - return 1; -} - -# $_[0]: A reference to the file descriptor to access this chip. -# $_[1]: Address -# Returns: undef if not detected, 3 if detected -sub max6900_detect -{ - my ($file,$addr) = @_; - my $reg; - - # SEC - $reg = i2c_smbus_read_byte_data ($file, 0x81); - return if - ($reg & 0xF0) > 0x50 or - ($reg & 0x0F) > 9; - - # MIN - $reg = i2c_smbus_read_byte_data ($file, 0x83); - return if - ($reg & 0xF0) > 0x50 or - ($reg & 0x0F) > 9; - - # HR - $reg = i2c_smbus_read_byte_data ($file, 0x85); - return if - ($reg & 0x40) != 0x00 or - ($reg & 0x0F) > 9; - - # DATE - $reg = i2c_smbus_read_byte_data ($file, 0x87); - return if - $reg == 0x00 or - ($reg & 0xF0) > 0x30 or - ($reg & 0x0F) > 9; - - # MONTH - $reg = i2c_smbus_read_byte_data ($file, 0x89); - return if - $reg == 0x00 or - ($reg & 0xF0) > 0x10 or - ($reg & 0x0F) > 9; - - # DAY - $reg = i2c_smbus_read_byte_data ($file, 0x8B); - return if - $reg == 0 or - $reg > 7; - - # YEAR - $reg = i2c_smbus_read_byte_data ($file, 0x8D); - return if - ($reg & 0xF0) > 0x90 or - ($reg & 0x0F) > 9; - - # CONTROL - $reg = i2c_smbus_read_byte_data ($file, 0x8F); - return if - ($reg & 0x7F) != 0x00; - - # CENTURY - $reg = i2c_smbus_read_byte_data ($file, 0x93); - return if - ($reg & 0xF0) > 0x90 or - ($reg & 0x0F) > 9; - - return 3; -} - -# This checks for non-FFFF values for SpecInfo and Status. -# The address (0x09) is specified by the SMBus standard so it's likely -# that this really is a smart battery charger. -# $_[0]: A reference to the file descriptor to access this chip. -# $_[1]: Address -# Returns: 5 -sub smartbatt_chgr_detect -{ - my ($file,$addr) = @_; - # check some registers - if (i2c_smbus_read_word_data($file,0x11) == 0xffff) { - return; - } - if (i2c_smbus_read_word_data($file,0x13) == 0xffff) { - return; - } - return (5); -} - -# This checks for non-FFFF values for State and Info. -# The address (0x0a) is specified by the SMBus standard so it's likely -# that this really is a smart battery manager/selector. -# $_[0]: A reference to the file descriptor to access this chip. -# $_[1]: Address -# Returns: 5 -sub smartbatt_mgr_detect -{ - my ($file,$addr) = @_; - # check some registers - if (i2c_smbus_read_word_data($file,0x01) == 0xffff) { - return; - } - if (i2c_smbus_read_word_data($file,0x04) == 0xffff) { - return; - } - return (5); -} - # This checks for non-FFFF values for temperature, voltage, and current. # The address (0x0b) is specified by the SMBus standard so it's likely # that this really is a smart battery. @@ -5863,13 +5643,6 @@ sub main print " Misdetects:\n"; print_chips_report $chip->{misdetected}; } - - # People are easily confused - if ($chip->{driver} eq "eeprom") { - print "\n EEPROMs are *NOT* sensors! They are data storage chips commonly\n", - " found on memory modules (SPD), in monitors (EDID), or in some\n", - " laptops, for example.\n"; - } } print "\n";