mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: Jean Delvare <khali@linux-fr.org>,
	Randy Dunlap <rdunlap@xenotime.net>,
	Andrew Morton <akpm@linux-foundation.org>,
	"Ira W. Snyder" <iws@ovro.caltech.edu>,
	"Darrick J. Wong" <djwong@us.ibm.com>,
	"Ben Dooks (embedded platforms)" <ben-linux@fluff.org>,
	Hans de Goede <hdegoede@redhat.com>,
	Mark Brown <broonie@opensource.wolfsonmicro.com>,
	Samuel Ortiz <sameo@linux.intel.com>,
	Crane Cai <crane.cai@amd.com>,
	Linus Walleij <linus.walleij@stericsson.com>,
	Ralf Baechle <ralf@linux-mips.org>
Cc: lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org,
	linux-i2c@vger.kernel.org,
	Guenter Roeck <guenter.roeck@ericsson.com>
Subject: [PATCH/RFC 3/4] hwmon: pmbus driver documentation
Date: Mon, 28 Jun 2010 14:56:53 -0700	[thread overview]
Message-ID: <1277762214-15155-4-git-send-email-guenter.roeck@ericsson.com> (raw)
In-Reply-To: <1277762214-15155-1-git-send-email-guenter.roeck@ericsson.com>

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
---
 Documentation/hwmon/pmbus |  117 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 117 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/hwmon/pmbus

diff --git a/Documentation/hwmon/pmbus b/Documentation/hwmon/pmbus
new file mode 100644
index 0000000..7661a35
--- /dev/null
+++ b/Documentation/hwmon/pmbus
@@ -0,0 +1,117 @@
+Kernel driver pmbus
+====================
+
+Supported chips:
+  * Ericsson BMR45X series
+    DC/DC Converter
+    Prefix: 'bmr45x'
+    Addresses scanned: -
+    Datasheets: Publicly available at the Ericsson website.
+  * Linear Technology LTC2978
+    Octal PMBus Power Supply Monitor and Controller
+    Prefix: 'ltc2978'
+    Addresses scanned: -
+    Datasheet: Publicly available at the Linear Technology website.
+  * Maxim MAX16064
+    Quad Power-Supply Controller
+    Prefix: 'max16064'
+    Addresses scanned: -
+    Datasheet: Publicly available at the Maxim website.
+  * Maxim MAX8688
+    Digital Power-Supply Controller/Monitor
+    Prefix: 'max8688'
+    Addresses scanned: -
+    Datasheet: Publicly available at the Maxim website.
+  * Texas Instruments UCD92xx
+    Digital PWM System Controller
+    Prefix: 'ucd921x', 'ucd9220', 'ucd9240'
+    Addresses scanned: -
+    Datasheets: Publicly available at the Philips website.
+  * Generic PMBus devices
+    Prefix: 'pmbus'
+    Addresses scanned: -
+    Datasheet: n.a.
+
+Author: Guenter Roeck <guenter.roeck@ericsson.com>
+
+
+Description
+-----------
+
+This driver supports hardware montoring for various PMBus compliant devices.
+It supports voltage, current, power, and temperature sensors as supported
+by the device.
+
+Each monitored channel has its own high and low limits, plus a critical
+limit.
+
+
+Usage Notes
+-----------
+
+This driver does not probe for PMBus devices, since there is no register
+which can be safely used to identify the chip (The MFG_ID register is not
+supported by all chips), and since there is no well defined address range for
+PMBus devices. You will have to instantiate the devices explicitly.
+
+Example: the following will load the driver for an LTC2978 at address 0x60
+on I2C bus #1:
+$ modprobe pmbus
+$ echo ltc2978 0x60 > /sys/bus/i2c/devices/i2c-1/new_device
+
+
+Sysfs entries
+-------------
+
+When probing the chip, the driver identifies which PMBus registers are
+supported, and determines available sensors from this information.
+Attribute files only exist if respective sensors are suported by the chip.
+Labels are provided to inform the user about the sensor associated with
+a given sysfs entry.
+
+The following attributes are supported. Limit attributes are read-write; all
+other attributes are read-only.
+
+inX_input		Measured Voltage. From READ_VIN or READ_VOUT register.
+inX_min			Minumum Voltage. From VIN_UV_WARN_LIMIT or
+			VOUT_UV_WARN_LIMIT register.
+inX_max			Maximum Voltage. From VIN_OV_WARN_LIMIT or
+			VOUT_OV_WARN_LIMIT register.
+inX_min_alarm		From VOLTAGE_UV_WARNING status.
+inX_max_alarm		From VOLTAGE_OV_WARNING status.
+inX_min_fault		From VOLTAGE_UV_FAULT status.
+inX_max_fault		From VOLTAGE_OV_FAULT status.
+inX_label		"vin" or "voutY"
+
+currX_input		Measured Current. From READ_IIN or READ_IOUT register.
+currX_min		Minumum Current. For output current only.
+			From IOUT_UC_FAULT_LIMIT register.
+currX_max		Maximum Current. From IIN_OC_WARN_LIMIT or
+			IOUT_OC_WARN_LIMIT register.
+currX_min_alarm		For output current only. From IOUT_UC_FAULT status.
+currX_max_alarm		From IIN_OC_WARNING or IOUT_OC_WARNING status.
+currX_label		"iin" or "vinY"
+
+powerX_input		Measured Power. From READ_PIN or READ_POUT register.
+powerX_cap		Power limit. From POUT_MAX register.
+powerX_max		Power limit. From PIN_OP_WARN_LIMIT or
+			POUT_OP_WARN_LIMIT register.
+powerX_crit		Critical power limit. From POUT_OP_FAULT_LIMIT register.
+powerX_alarm		From POUT_OP_WARNING status.
+powerX_label		"pin" or "poutY"
+
+tempX_input		Measured tempererature. From READ_TEMPERATURE_X
+			register.
+tempX_min		Mimimum tempererature. From UT_WARN_LIMIT register.
+tempX_max		Maximum tempererature. From OT_WARN_LIMIT register.
+tempX_crit		Critical high tempererature. From OT_FAULT_LIMIT
+			register.
+tempX_min_alarm		Chip temperature low alarm. Set by comparing
+			READ_TEMPERATURE_X with UT_WARN_LIMIT if
+			TEMP_UT_WARNING status is set.
+tempX_max_alarm		Chip temperature high alarm. Set by comparing
+			READ_TEMPERATURE_X with OT_WARN_LIMIT if
+			TEMP_OT_WARNING status is set.
+tempX_crit_alarm	Chip temperature critical alarm. Set by comparing
+			READ_TEMPERATURE_X with OT_FAULT_LIMIT if
+			TEMP_OT_FAULT status is set.
-- 
1.7.0.87.g0901d


  parent reply	other threads:[~2010-06-28 21:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-28 21:56 [PATCH/RFC 0/4] hwmon: PMBus device driver Guenter Roeck
2010-06-28 21:56 ` [PATCH/RFC 1/4] hwmon: i2c PMBus device emulator Guenter Roeck
2010-06-28 21:56 ` [PATCH/RFC 2/4] hwmon: PMBus device driver Guenter Roeck
2010-06-29 13:40   ` Jonathan Cameron
2010-06-29 14:31     ` Guenter Roeck
2010-06-28 21:56 ` Guenter Roeck [this message]
2010-06-28 21:56 ` [PATCH/RFC 4/4] hwmon: sysfs API updates Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1277762214-15155-4-git-send-email-guenter.roeck@ericsson.com \
    --to=guenter.roeck@ericsson.com \
    --cc=akpm@linux-foundation.org \
    --cc=ben-linux@fluff.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=crane.cai@amd.com \
    --cc=djwong@us.ibm.com \
    --cc=hdegoede@redhat.com \
    --cc=iws@ovro.caltech.edu \
    --cc=khali@linux-fr.org \
    --cc=linus.walleij@stericsson.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lm-sensors@lm-sensors.org \
    --cc=ralf@linux-mips.org \
    --cc=rdunlap@xenotime.net \
    --cc=sameo@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®