hwmon: (ucd9000) Add support for UCD90160 Power Supply Sequencer
authorMatt Weber <matthew.weber@rockwellcollins.com>
Sat, 20 Aug 2016 02:08:45 +0000 (21:08 -0500)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 9 Sep 2016 04:34:16 +0000 (21:34 -0700)
The UCD90160 Power Supply Sequencer reuses the existing register layout,
so just an id addition was required.

Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Ronak Desai <ronak.desai@rockwellcollins.com>
[groeck: Updated description, ordered alphabetically, added documentation]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/ucd9000
drivers/hwmon/pmbus/Kconfig
drivers/hwmon/pmbus/ucd9000.c

index 805e33edb978b7f21c92f2d1ee001431a8ee9ac0..262e713e60ffffd1469091a28bd04a05280a1a6b 100644 (file)
@@ -2,12 +2,13 @@ Kernel driver ucd9000
 =====================
 
 Supported chips:
-  * TI UCD90120, UCD90124, UCD9090, and UCD90910
-    Prefixes: 'ucd90120', 'ucd90124', 'ucd9090', 'ucd90910'
+  * TI UCD90120, UCD90124, UCD90160, UCD9090, and UCD90910
+    Prefixes: 'ucd90120', 'ucd90124', 'ucd90160', 'ucd9090', 'ucd90910'
     Addresses scanned: -
     Datasheets:
        http://focus.ti.com/lit/ds/symlink/ucd90120.pdf
        http://focus.ti.com/lit/ds/symlink/ucd90124.pdf
+       http://focus.ti.com/lit/ds/symlink/ucd90160.pdf
        http://focus.ti.com/lit/ds/symlink/ucd9090.pdf
        http://focus.ti.com/lit/ds/symlink/ucd90910.pdf
 
@@ -32,6 +33,13 @@ interrupts, cascading, or other system functions. Twelve of these pins offer PWM
 functionality. Using these pins, the UCD90124 offers support for fan control,
 margining, and general-purpose PWM functions.
 
+The UCD90160 is a 16-rail PMBus/I2C addressable power-supply sequencer and
+monitor. The device integrates a 12-bit ADC for monitoring up to 16 power-supply
+voltage inputs. Twenty-six GPIO pins can be used for power supply enables,
+power-on reset signals, external interrupts, cascading, or other system
+functions. Twelve of these pins offer PWM functionality. Using these pins, the
+UCD90160 offers support for margining, and general-purpose PWM functions.
+
 The UCD9090 is a 10-rail PMBus/I2C addressable power-supply sequencer and
 monitor. The device integrates a 12-bit ADC for monitoring up to 10 power-supply
 voltage inputs. Twenty-three GPIO pins can be used for power supply enables,
index 054d3d863802b558106f43e542b613d159bd2a82..cad1229b7e17220dbc51aa0282338cca34aa537f 100644 (file)
@@ -126,12 +126,12 @@ config SENSORS_TPS40422
          be called tps40422.
 
 config SENSORS_UCD9000
-       tristate "TI UCD90120, UCD90124, UCD9090, UCD90910"
+       tristate "TI UCD90120, UCD90124, UCD90160, UCD9090, UCD90910"
        default n
        help
          If you say yes here you get hardware monitoring support for TI
-         UCD90120, UCD90124, UCD9090, UCD90910 Sequencer and System Health
-         Controllers.
+         UCD90120, UCD90124, UCD90160, UCD9090, UCD90910, Sequencer and System
+         Health Controllers.
 
          This driver can also be built as a module. If so, the module will
          be called ucd9000.
index fbb1479d3ad453f852c44d1bf02477ac89e67f61..3e3aa950277f4340ee12451d764838a1341671c4 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/i2c/pmbus.h>
 #include "pmbus.h"
 
-enum chips { ucd9000, ucd90120, ucd90124, ucd9090, ucd90910 };
+enum chips { ucd9000, ucd90120, ucd90124, ucd90160, ucd9090, ucd90910 };
 
 #define UCD9000_MONITOR_CONFIG         0xd5
 #define UCD9000_NUM_PAGES              0xd6
@@ -112,6 +112,7 @@ static const struct i2c_device_id ucd9000_id[] = {
        {"ucd9000", ucd9000},
        {"ucd90120", ucd90120},
        {"ucd90124", ucd90124},
+       {"ucd90160", ucd90160},
        {"ucd9090", ucd9090},
        {"ucd90910", ucd90910},
        {}