Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932142Ab0FYQE5 (ORCPT ); Fri, 25 Jun 2010 12:04:57 -0400 Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133]:40093 "EHLO ppsw-33.csi.cam.ac.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752364Ab0FYQE4 (ORCPT ); Fri, 25 Jun 2010 12:04:56 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Message-ID: <4C24D458.4020407@jic23.retrosnub.co.uk> Date: Fri, 25 Jun 2010 17:07:52 +0100 From: Jonathan Cameron User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100426 Thunderbird/3.0.4 MIME-Version: 1.0 To: Guenter Roeck CC: Jean Delvare , Hans de Goede , Mark Brown , Andrew Morton , Samuel Ortiz , linux-kernel@vger.kernel.org, lm-sensors@lm-sensors.org Subject: Re: [lm-sensors] [PATCH v2 2/3] hwmon: SMM665 driver documentation References: <1277476832-28480-1-git-send-email-guenter.roeck@ericsson.com> <1277476832-28480-3-git-send-email-guenter.roeck@ericsson.com> In-Reply-To: <1277476832-28480-3-git-send-email-guenter.roeck@ericsson.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6628 Lines: 174 On 06/25/10 15:40, Guenter Roeck wrote: Looks good to me, if you are respinning for any reason, perhaps say where the summit website is? Acked-by: Jonathan Cameron > Signed-off-by: Guenter Roeck > --- > Documentation/hwmon/smm665 | 151 ++++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 151 insertions(+), 0 deletions(-) > create mode 100644 Documentation/hwmon/smm665 > > diff --git a/Documentation/hwmon/smm665 b/Documentation/hwmon/smm665 > new file mode 100644 > index 0000000..8c08f63 > --- /dev/null > +++ b/Documentation/hwmon/smm665 > @@ -0,0 +1,151 @@ > +Kernel driver smm665 > +==================== > + > +Supported chips: > + * Summit Microelectronics SMM465 > + Prefix: 'smm465' > + Addresses scanned: - > + Datasheet: Publicly available at the Summit Microelectronics website. > + * Summit Microelectronics SMM665, SMM665B > + Prefix: 'smm665' > + Addresses scanned: - > + Datasheet: Publicly available at the Summit Microelectronics website. > + * Summit Microelectronics SMM665C > + Prefix: 'smm665c' > + Addresses scanned: - > + Datasheet: Publicly available at the Summit Microelectronics website. > + * Summit Microelectronics SMM764 > + Prefix: 'smm764' > + Addresses scanned: - > + Datasheet: Publicly available at the Summit Microelectronics website. > + * Summit Microelectronics SMM766 > + Prefix: 'smm766' > + Addresses scanned: - > + Datasheet: Publicly available at the Summit Microelectronics website. > + > +Author: Guenter Roeck > + > + > +Module Parameters > +----------------- > + > +* vref: int > + Default: 1250 (mV) > + Reference voltage on VREF_ADC pin in mV. It should not be necessary to set > + this parameter unless a non-default reference voltage is used. > + > + > +Description > +----------- > + > +[From datasheet] The SMM665 is an Active DC Output power supply Controller > +that monitors, margins and cascade sequences power. The part monitors six > +power supply channels as well as VDD, 12V input, two general-purpose analog > +inputs and an internal temperature sensor using a 10-bit ADC. > + > +Each monitored channel has its own high and low limits, plus a critical > +limit. > + > +Support for SMM465, SMM764, and SMM766 has been implemented but is untested. > + > + > +Usage Notes > +----------- > + > +This driver does not probe for devices, since there is no register which > +can be safely used to identify the chip. You will have to instantiate > +the devices explicitly. When instantiating the device, you have to specify > +its configuration register address. > + > +Example: the following will load the driver for an SMM665 at address 0x57 > +on I2C bus #1: > +$ modprobe smm665 > +$ echo smm665 0x57 > /sys/bus/i2c/devices/i2c-1/new_device > + > + > +Sysfs entries > +------------- > + > +This driver uses the values in the datasheet to convert ADC register values > +into the values specified in the sysfs-interface document. All attributes are > +read only. > + > +Min, max, lcrit, and crit values are used by the chip to trigger external signals > +and/or other activity. Triggered signals can include HEALTHY, RST, Power Off, > +or Fault depending on the chip configuration. The driver reports values as lcrit > +or crit if exceeding the limits triggers RST, Power Off, or Fault, and as min or > +max otherwise. For details please see the SMM665 datasheet. > + > +For SMM465 and SMM764, values for Channel E and F are reported but undefined. > + > +in1_input 12V input voltage (mV) > +in2_input 3.3V (VDD) input voltage (mV) > +in3_input Channel A voltage (mV) > +in4_input Channel B voltage (mV) > +in5_input Channel C voltage (mV) > +in6_input Channel D voltage (mV) > +in7_input Channel E voltage (mV) > +in8_input Channel F voltage (mV) > +in9_input AIN1 voltage (mV) > +in10_input AIN2 voltage (mV) > + > +in1_min 12v input minimum voltage (mV) > +in2_min 3.3V (VDD) input minimum voltage (mV) > +in3_min Channel A minimum voltage (mV) > +in4_min Channel B minimum voltage (mV) > +in5_min Channel C minimum voltage (mV) > +in6_min Channel D minimum voltage (mV) > +in7_min Channel E minimum voltage (mV) > +in8_min Channel F minimum voltage (mV) > +in9_min AIN1 minimum voltage (mV) > +in10_min AIN2 minimum voltage (mV) > + > +in1_max 12v input maximum voltage (mV) > +in2_max 3.3V (VDD) input maximum voltage (mV) > +in3_max Channel A maximum voltage (mV) > +in4_max Channel B maximum voltage (mV) > +in5_max Channel C maximum voltage (mV) > +in6_max Channel D maximum voltage (mV) > +in7_max Channel E maximum voltage (mV) > +in8_max Channel F maximum voltage (mV) > +in9_max AIN1 maximum voltage (mV) > +in10_max AIN2 maximum voltage (mV) > + > +in1_lcrit 12v input critical minimum voltage (mV) > +in2_lcrit 3.3V (VDD) input critical minimum voltage (mV) > +in3_lcrit Channel A critical minimum voltage (mV) > +in4_lcrit Channel B critical minimum voltage (mV) > +in5_lcrit Channel C critical minimum voltage (mV) > +in6_lcrit Channel D critical minimum voltage (mV) > +in7_lcrit Channel E critical minimum voltage (mV) > +in8_lcrit Channel F critical minimum voltage (mV) > +in9_lcrit AIN1 critical minimum voltage (mV) > +in10_lcrit AIN2 critical minimum voltage (mV) > + > +in1_crit 12v input critical maximum voltage (mV) > +in2_crit 3.3V (VDD) input critical maximum voltage (mV) > +in3_crit Channel A critical maximum voltage (mV) > +in4_crit Channel B critical maximum voltage (mV) > +in5_crit Channel C critical maximum voltage (mV) > +in6_crit Channel D critical maximum voltage (mV) > +in7_crit Channel E critical maximum voltage (mV) > +in8_crit Channel F critical maximum voltage (mV) > +in9_crit AIN1 critical maximum voltage (mV) > +in10_crit AIN2 critical maximum voltage (mV) > + > +in1_fault 12v input fault > +in2_fault 3.3V (VDD) input fault > +in3_fault Channel A fault > +in4_fault Channel B fault > +in5_fault Channel C fault > +in6_fault Channel D fault > +in7_fault Channel E fault > +in8_fault Channel F fault > +in9_fault AIN1 fault > +in10_fault AIN2 fault > + > +temp1_input Chip tempererature > +temp1_min Mimimum chip tempererature > +temp1_max Maximum chip tempererature > +temp1_crit Critical chip tempererature > +temp1_fault Temperature fault -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/