Guenter Roeck | 83f7649 | 2011-03-17 13:16:01 -0700 | [diff] [blame] | 1 | Kernel driver adm1275 |
| 2 | ===================== |
| 3 | |
| 4 | Supported chips: |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 5 | |
Guenter Roeck | 9271126 | 2012-02-24 03:40:53 -0800 | [diff] [blame] | 6 | * Analog Devices ADM1075 |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 7 | |
Guenter Roeck | 9271126 | 2012-02-24 03:40:53 -0800 | [diff] [blame] | 8 | Prefix: 'adm1075' |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 9 | |
Guenter Roeck | 9271126 | 2012-02-24 03:40:53 -0800 | [diff] [blame] | 10 | Addresses scanned: - |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 11 | |
Guenter Roeck | 9271126 | 2012-02-24 03:40:53 -0800 | [diff] [blame] | 12 | Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1075.pdf |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 13 | |
Guenter Roeck | 4ff0ce2 | 2018-03-10 18:59:04 -0800 | [diff] [blame] | 14 | * Analog Devices ADM1272 |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 15 | |
Guenter Roeck | 4ff0ce2 | 2018-03-10 18:59:04 -0800 | [diff] [blame] | 16 | Prefix: 'adm1272' |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 17 | |
Guenter Roeck | 4ff0ce2 | 2018-03-10 18:59:04 -0800 | [diff] [blame] | 18 | Addresses scanned: - |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 19 | |
Guenter Roeck | 4ff0ce2 | 2018-03-10 18:59:04 -0800 | [diff] [blame] | 20 | Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1272.pdf |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 21 | |
Guenter Roeck | 83f7649 | 2011-03-17 13:16:01 -0700 | [diff] [blame] | 22 | * Analog Devices ADM1275 |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 23 | |
Guenter Roeck | 83f7649 | 2011-03-17 13:16:01 -0700 | [diff] [blame] | 24 | Prefix: 'adm1275' |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 25 | |
Guenter Roeck | 83f7649 | 2011-03-17 13:16:01 -0700 | [diff] [blame] | 26 | Addresses scanned: - |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 27 | |
Guenter Roeck | 83f7649 | 2011-03-17 13:16:01 -0700 | [diff] [blame] | 28 | Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1275.pdf |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 29 | |
Guenter Roeck | 5cf231a | 2011-07-14 11:55:35 -0700 | [diff] [blame] | 30 | * Analog Devices ADM1276 |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 31 | |
Guenter Roeck | 5cf231a | 2011-07-14 11:55:35 -0700 | [diff] [blame] | 32 | Prefix: 'adm1276' |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 33 | |
Guenter Roeck | 5cf231a | 2011-07-14 11:55:35 -0700 | [diff] [blame] | 34 | Addresses scanned: - |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 35 | |
Guenter Roeck | 5cf231a | 2011-07-14 11:55:35 -0700 | [diff] [blame] | 36 | Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1276.pdf |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 37 | |
Guenter Roeck | 709066ac | 2015-07-05 11:04:56 -0700 | [diff] [blame] | 38 | * Analog Devices ADM1278 |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 39 | |
Guenter Roeck | 709066ac | 2015-07-05 11:04:56 -0700 | [diff] [blame] | 40 | Prefix: 'adm1278' |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 41 | |
Guenter Roeck | 709066ac | 2015-07-05 11:04:56 -0700 | [diff] [blame] | 42 | Addresses scanned: - |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 43 | |
Guenter Roeck | 709066ac | 2015-07-05 11:04:56 -0700 | [diff] [blame] | 44 | Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1278.pdf |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 45 | |
Guenter Roeck | 68a4038 | 2015-03-17 13:19:51 -0700 | [diff] [blame] | 46 | * Analog Devices ADM1293/ADM1294 |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 47 | |
Guenter Roeck | 68a4038 | 2015-03-17 13:19:51 -0700 | [diff] [blame] | 48 | Prefix: 'adm1293', 'adm1294' |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 49 | |
Guenter Roeck | 68a4038 | 2015-03-17 13:19:51 -0700 | [diff] [blame] | 50 | Addresses scanned: - |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 51 | |
Guenter Roeck | 68a4038 | 2015-03-17 13:19:51 -0700 | [diff] [blame] | 52 | Datasheet: http://www.analog.com/media/en/technical-documentation/data-sheets/ADM1293_1294.pdf |
Guenter Roeck | 83f7649 | 2011-03-17 13:16:01 -0700 | [diff] [blame] | 53 | |
Guenter Roeck | e3333e5 | 2013-02-20 20:58:42 -0800 | [diff] [blame] | 54 | Author: Guenter Roeck <linux@roeck-us.net> |
Guenter Roeck | 83f7649 | 2011-03-17 13:16:01 -0700 | [diff] [blame] | 55 | |
| 56 | |
| 57 | Description |
| 58 | ----------- |
| 59 | |
Guenter Roeck | 4ff0ce2 | 2018-03-10 18:59:04 -0800 | [diff] [blame] | 60 | This driver supports hardware monitoring for Analog Devices ADM1075, ADM1272, |
| 61 | ADM1275, ADM1276, ADM1278, ADM1293, and ADM1294 Hot-Swap Controller and |
| 62 | Digital Power Monitors. |
Guenter Roeck | 83f7649 | 2011-03-17 13:16:01 -0700 | [diff] [blame] | 63 | |
Guenter Roeck | 4ff0ce2 | 2018-03-10 18:59:04 -0800 | [diff] [blame] | 64 | ADM1075, ADM1272, ADM1275, ADM1276, ADM1278, ADM1293, and ADM1294 are hot-swap |
Guenter Roeck | 709066ac | 2015-07-05 11:04:56 -0700 | [diff] [blame] | 65 | controllers that allow a circuit board to be removed from or inserted into |
| 66 | a live backplane. They also feature current and voltage readback via an |
| 67 | integrated 12 bit analog-to-digital converter (ADC), accessed using a |
| 68 | PMBus interface. |
Guenter Roeck | 83f7649 | 2011-03-17 13:16:01 -0700 | [diff] [blame] | 69 | |
| 70 | The driver is a client driver to the core PMBus driver. Please see |
Mauro Carvalho Chehab | 7ebd8b66 | 2019-04-17 06:46:29 -0300 | [diff] [blame] | 71 | Documentation/hwmon/pmbus.rst for details on PMBus client drivers. |
Guenter Roeck | 83f7649 | 2011-03-17 13:16:01 -0700 | [diff] [blame] | 72 | |
| 73 | |
| 74 | Usage Notes |
| 75 | ----------- |
| 76 | |
| 77 | This driver does not auto-detect devices. You will have to instantiate the |
Mauro Carvalho Chehab | ccf988b | 2019-07-26 09:51:16 -0300 | [diff] [blame] | 78 | devices explicitly. Please see Documentation/i2c/instantiating-devices.rst for |
Guenter Roeck | 83f7649 | 2011-03-17 13:16:01 -0700 | [diff] [blame] | 79 | details. |
| 80 | |
Guenter Roeck | 9271126 | 2012-02-24 03:40:53 -0800 | [diff] [blame] | 81 | The ADM1075, unlike many other PMBus devices, does not support internal voltage |
| 82 | or current scaling. Reported voltages, currents, and power are raw measurements, |
| 83 | and will typically have to be scaled. |
| 84 | |
Kun Yi | 6e5c06a | 2018-10-17 15:26:39 -0700 | [diff] [blame] | 85 | The shunt value in micro-ohms can be set via device tree at compile-time. Please |
| 86 | refer to the Documentation/devicetree/bindings/hwmon/adm1275.txt for bindings |
| 87 | if the device tree is used. |
Guenter Roeck | 83f7649 | 2011-03-17 13:16:01 -0700 | [diff] [blame] | 88 | |
| 89 | Platform data support |
| 90 | --------------------- |
| 91 | |
| 92 | The driver supports standard PMBus driver platform data. Please see |
Mauro Carvalho Chehab | 7ebd8b66 | 2019-04-17 06:46:29 -0300 | [diff] [blame] | 93 | Documentation/hwmon/pmbus.rst for details. |
Guenter Roeck | 83f7649 | 2011-03-17 13:16:01 -0700 | [diff] [blame] | 94 | |
| 95 | |
| 96 | Sysfs entries |
| 97 | ------------- |
| 98 | |
Guenter Roeck | c576e30 | 2011-07-09 11:17:33 -0700 | [diff] [blame] | 99 | The following attributes are supported. Limits are read-write, history reset |
| 100 | attributes are write-only, all other attributes are read-only. |
Guenter Roeck | 83f7649 | 2011-03-17 13:16:01 -0700 | [diff] [blame] | 101 | |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 102 | ======================= ======================================================= |
Guenter Roeck | 68a4038 | 2015-03-17 13:19:51 -0700 | [diff] [blame] | 103 | inX_label "vin1" or "vout1" depending on chip variant and |
| 104 | configuration. On ADM1075, ADM1293, and ADM1294, |
| 105 | vout1 reports the voltage on the VAUX pin. |
| 106 | inX_input Measured voltage. |
| 107 | inX_min Minimum Voltage. |
| 108 | inX_max Maximum voltage. |
| 109 | inX_min_alarm Voltage low alarm. |
| 110 | inX_max_alarm Voltage high alarm. |
| 111 | inX_highest Historical maximum voltage. |
| 112 | inX_reset_history Write any value to reset history. |
Guenter Roeck | 83f7649 | 2011-03-17 13:16:01 -0700 | [diff] [blame] | 113 | |
| 114 | curr1_label "iout1" |
Guenter Roeck | 5cf231a | 2011-07-14 11:55:35 -0700 | [diff] [blame] | 115 | curr1_input Measured current. |
| 116 | curr1_max Maximum current. |
| 117 | curr1_max_alarm Current high alarm. |
Guenter Roeck | c5e6763 | 2011-08-02 11:08:57 -0700 | [diff] [blame] | 118 | curr1_lcrit Critical minimum current. Depending on the chip |
| 119 | configuration, either curr1_lcrit or curr1_crit is |
| 120 | supported, but not both. |
| 121 | curr1_lcrit_alarm Critical current low alarm. |
| 122 | curr1_crit Critical maximum current. Depending on the chip |
| 123 | configuration, either curr1_lcrit or curr1_crit is |
| 124 | supported, but not both. |
| 125 | curr1_crit_alarm Critical current high alarm. |
Guenter Roeck | c576e30 | 2011-07-09 11:17:33 -0700 | [diff] [blame] | 126 | curr1_highest Historical maximum current. |
| 127 | curr1_reset_history Write any value to reset history. |
Guenter Roeck | 9271126 | 2012-02-24 03:40:53 -0800 | [diff] [blame] | 128 | |
| 129 | power1_label "pin1" |
| 130 | power1_input Input power. |
Guenter Roeck | 68a4038 | 2015-03-17 13:19:51 -0700 | [diff] [blame] | 131 | power1_input_lowest Lowest observed input power. ADM1293 and ADM1294 only. |
| 132 | power1_input_highest Highest observed input power. |
Guenter Roeck | 9271126 | 2012-02-24 03:40:53 -0800 | [diff] [blame] | 133 | power1_reset_history Write any value to reset history. |
| 134 | |
Guenter Roeck | 4ff0ce2 | 2018-03-10 18:59:04 -0800 | [diff] [blame] | 135 | Power attributes are supported on ADM1075, ADM1272, |
| 136 | ADM1276, ADM1293, and ADM1294. |
Guenter Roeck | 709066ac | 2015-07-05 11:04:56 -0700 | [diff] [blame] | 137 | |
| 138 | temp1_input Chip temperature. |
Guenter Roeck | 709066ac | 2015-07-05 11:04:56 -0700 | [diff] [blame] | 139 | temp1_max Maximum chip temperature. |
| 140 | temp1_max_alarm Temperature alarm. |
| 141 | temp1_crit Critical chip temperature. |
| 142 | temp1_crit_alarm Critical temperature high alarm. |
| 143 | temp1_highest Highest observed temperature. |
| 144 | temp1_reset_history Write any value to reset history. |
| 145 | |
Guenter Roeck | 4ff0ce2 | 2018-03-10 18:59:04 -0800 | [diff] [blame] | 146 | Temperature attributes are supported on ADM1272 and |
| 147 | ADM1278. |
Mauro Carvalho Chehab | 1f234ff | 2019-04-17 06:46:26 -0300 | [diff] [blame] | 148 | ======================= ======================================================= |