1. 11 Dec, 2009 8 commits
  2. 10 Dec, 2009 20 commits
  3. 09 Dec, 2009 12 commits
    • Jean Delvare's avatar
      hwmon: (adt7475) Add VID support for the ADT7476 · 54fe4671
      Jean Delvare authored
      
      
      The ADT7476 has 5 dedicated pins for VID input, and the +12V input can
      optionally be used as a 6th VID pin. Add support for VID input.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      54fe4671
    • Jean Delvare's avatar
      hwmon: (adt7475) Add support for the ADT7476 · d8d2ee07
      Jean Delvare authored
      
      
      Add support for the Analog Devices ADT7476 chip. This chip is largely
      compatible with the ADT7473 and ADT7475, with additional features.
      In particular, it has 5 voltage inputs instead of 2, and VID input
      pins.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      d8d2ee07
    • Jean Delvare's avatar
      hwmon: (adt7475) Voltage attenuators can be bypassed · ebfaf1fb
      Jean Delvare authored
      
      
      It is possible to bypass the voltage attenuators on the +2.5V, Vccp,
      +5V and +12V voltage monitoring inputs. This is useful to connect
      other voltage channels than the ones the monitoring chip was
      originally designed for. When this feature is enabled, we must not
      include the scaling factors in our computations.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      ebfaf1fb
    • Jean Delvare's avatar
      hwmon: (adt7475) Print device information on probe · d07ca4ad
      Jean Delvare authored
      
      
      Print the device name and revision at probe time, as well as a list of
      all optional features which are available.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      d07ca4ad
    • Jean Delvare's avatar
      hwmon: (adt7475) Handle alternative pin functions · 378933c9
      Jean Delvare authored
      
      
      The TACH4 pin can be used for other functions, so fan4 may not always
      be available. Likewise, the PWM2 pin can be used for ALERT output, in
      which case pwm2 is not available
      
      For the ADT7490, the +2.5 Vin pin may also be used for other
      functions, in which case in0 is not available.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      378933c9
    • Jean Delvare's avatar
      hwmon: (adt7475) Move sysfs files removal to a separate function · 0f14480b
      Jean Delvare authored
      
      
      Move sysfs files removal to a separate function. The code is common to
      the device probing error path and the standard device removal path. As
      it will grow with future driver development, this avoids code
      duplication.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      0f14480b
    • Jean Delvare's avatar
      hwmon: (adt7475) Add support for the ADT7490 · 3d849981
      Jean Delvare authored
      
      
      Add support for the Analog Devices ADT7490 chip. This chip is largely
      compatible with the ADT7473 and ADT7475, with additional features.
      In particular, it has 6 voltage inputs instead of 2.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      3d849981
    • Jean Delvare's avatar
      hwmon: (adt7475) Improve device detection · d656b6fd
      Jean Delvare authored
      
      
      Check the value of register 0x3f as part of the device detection, to
      make it more robust.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      d656b6fd
    • Jean Delvare's avatar
      hwmon: (adt7475) Add missing static marker · 54ecb9e3
      Jean Delvare authored
      
      
      adt7475_attr_group is used internally only and can thus be marked
      static.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      54ecb9e3
    • Jean Delvare's avatar
      hwmon: (adt7475) Rework voltage inputs handling · cffb9dd0
      Jean Delvare authored
      
      
      Rework the handling of voltage inputs to make it possible and easy to
      support more inputs. This will be needed for the upcoming ADT7490
      support.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      cffb9dd0
    • Jean Delvare's avatar
      hwmon: (adt7475) Implement pwm_use_point2_pwm_at_crit · f99318b2
      Jean Delvare authored
      
      
      Implement the non-standard pwm_use_point2_pwm_at_crit sysfs attribute
      as the adt7473 driver did.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      f99318b2
    • Jean Delvare's avatar
      hwmon: (adt7475) Add support for the ADT7473 · b180d050
      Jean Delvare authored
      
      
      Add support for the ADT7473 to the adt7475 driver, and mark the
      adt7473 driver for removal. The ADT7473 and ADT7475 chips are almost
      the same chip and essentially compatible, so there's no point in
      having separate drivers for them.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      b180d050