blob: 49966ed70ec682fdb1f02187cccb2139f26ca96e [file] [log] [blame]
Guenter Roeck83f76492011-03-17 13:16:01 -07001Kernel driver adm1275
2=====================
3
4Supported chips:
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -03005
Guenter Roeck92711262012-02-24 03:40:53 -08006 * Analog Devices ADM1075
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -03007
Guenter Roeck92711262012-02-24 03:40:53 -08008 Prefix: 'adm1075'
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -03009
Guenter Roeck92711262012-02-24 03:40:53 -080010 Addresses scanned: -
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030011
Guenter Roeck92711262012-02-24 03:40:53 -080012 Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1075.pdf
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030013
Guenter Roeck4ff0ce22018-03-10 18:59:04 -080014 * Analog Devices ADM1272
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030015
Guenter Roeck4ff0ce22018-03-10 18:59:04 -080016 Prefix: 'adm1272'
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030017
Guenter Roeck4ff0ce22018-03-10 18:59:04 -080018 Addresses scanned: -
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030019
Guenter Roeck4ff0ce22018-03-10 18:59:04 -080020 Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1272.pdf
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030021
Guenter Roeck83f76492011-03-17 13:16:01 -070022 * Analog Devices ADM1275
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030023
Guenter Roeck83f76492011-03-17 13:16:01 -070024 Prefix: 'adm1275'
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030025
Guenter Roeck83f76492011-03-17 13:16:01 -070026 Addresses scanned: -
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030027
Guenter Roeck83f76492011-03-17 13:16:01 -070028 Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1275.pdf
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030029
Guenter Roeck5cf231a2011-07-14 11:55:35 -070030 * Analog Devices ADM1276
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030031
Guenter Roeck5cf231a2011-07-14 11:55:35 -070032 Prefix: 'adm1276'
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030033
Guenter Roeck5cf231a2011-07-14 11:55:35 -070034 Addresses scanned: -
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030035
Guenter Roeck5cf231a2011-07-14 11:55:35 -070036 Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1276.pdf
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030037
Guenter Roeck709066ac2015-07-05 11:04:56 -070038 * Analog Devices ADM1278
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030039
Guenter Roeck709066ac2015-07-05 11:04:56 -070040 Prefix: 'adm1278'
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030041
Guenter Roeck709066ac2015-07-05 11:04:56 -070042 Addresses scanned: -
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030043
Guenter Roeck709066ac2015-07-05 11:04:56 -070044 Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1278.pdf
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030045
Guenter Roeck68a40382015-03-17 13:19:51 -070046 * Analog Devices ADM1293/ADM1294
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030047
Guenter Roeck68a40382015-03-17 13:19:51 -070048 Prefix: 'adm1293', 'adm1294'
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030049
Guenter Roeck68a40382015-03-17 13:19:51 -070050 Addresses scanned: -
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -030051
Guenter Roeck68a40382015-03-17 13:19:51 -070052 Datasheet: http://www.analog.com/media/en/technical-documentation/data-sheets/ADM1293_1294.pdf
Guenter Roeck83f76492011-03-17 13:16:01 -070053
Guenter Roecke3333e52013-02-20 20:58:42 -080054Author: Guenter Roeck <linux@roeck-us.net>
Guenter Roeck83f76492011-03-17 13:16:01 -070055
56
57Description
58-----------
59
Guenter Roeck4ff0ce22018-03-10 18:59:04 -080060This driver supports hardware monitoring for Analog Devices ADM1075, ADM1272,
61ADM1275, ADM1276, ADM1278, ADM1293, and ADM1294 Hot-Swap Controller and
62Digital Power Monitors.
Guenter Roeck83f76492011-03-17 13:16:01 -070063
Guenter Roeck4ff0ce22018-03-10 18:59:04 -080064ADM1075, ADM1272, ADM1275, ADM1276, ADM1278, ADM1293, and ADM1294 are hot-swap
Guenter Roeck709066ac2015-07-05 11:04:56 -070065controllers that allow a circuit board to be removed from or inserted into
66a live backplane. They also feature current and voltage readback via an
67integrated 12 bit analog-to-digital converter (ADC), accessed using a
68PMBus interface.
Guenter Roeck83f76492011-03-17 13:16:01 -070069
70The driver is a client driver to the core PMBus driver. Please see
Mauro Carvalho Chehab7ebd8b662019-04-17 06:46:29 -030071Documentation/hwmon/pmbus.rst for details on PMBus client drivers.
Guenter Roeck83f76492011-03-17 13:16:01 -070072
73
74Usage Notes
75-----------
76
77This driver does not auto-detect devices. You will have to instantiate the
Mauro Carvalho Chehabccf988b2019-07-26 09:51:16 -030078devices explicitly. Please see Documentation/i2c/instantiating-devices.rst for
Guenter Roeck83f76492011-03-17 13:16:01 -070079details.
80
Guenter Roeck92711262012-02-24 03:40:53 -080081The ADM1075, unlike many other PMBus devices, does not support internal voltage
82or current scaling. Reported voltages, currents, and power are raw measurements,
83and will typically have to be scaled.
84
Kun Yi6e5c06a2018-10-17 15:26:39 -070085The shunt value in micro-ohms can be set via device tree at compile-time. Please
86refer to the Documentation/devicetree/bindings/hwmon/adm1275.txt for bindings
87if the device tree is used.
Guenter Roeck83f76492011-03-17 13:16:01 -070088
89Platform data support
90---------------------
91
92The driver supports standard PMBus driver platform data. Please see
Mauro Carvalho Chehab7ebd8b662019-04-17 06:46:29 -030093Documentation/hwmon/pmbus.rst for details.
Guenter Roeck83f76492011-03-17 13:16:01 -070094
95
96Sysfs entries
97-------------
98
Guenter Roeckc576e302011-07-09 11:17:33 -070099The following attributes are supported. Limits are read-write, history reset
100attributes are write-only, all other attributes are read-only.
Guenter Roeck83f76492011-03-17 13:16:01 -0700101
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -0300102======================= =======================================================
Guenter Roeck68a40382015-03-17 13:19:51 -0700103inX_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.
106inX_input Measured voltage.
107inX_min Minimum Voltage.
108inX_max Maximum voltage.
109inX_min_alarm Voltage low alarm.
110inX_max_alarm Voltage high alarm.
111inX_highest Historical maximum voltage.
112inX_reset_history Write any value to reset history.
Guenter Roeck83f76492011-03-17 13:16:01 -0700113
114curr1_label "iout1"
Guenter Roeck5cf231a2011-07-14 11:55:35 -0700115curr1_input Measured current.
116curr1_max Maximum current.
117curr1_max_alarm Current high alarm.
Guenter Roeckc5e67632011-08-02 11:08:57 -0700118curr1_lcrit Critical minimum current. Depending on the chip
119 configuration, either curr1_lcrit or curr1_crit is
120 supported, but not both.
121curr1_lcrit_alarm Critical current low alarm.
122curr1_crit Critical maximum current. Depending on the chip
123 configuration, either curr1_lcrit or curr1_crit is
124 supported, but not both.
125curr1_crit_alarm Critical current high alarm.
Guenter Roeckc576e302011-07-09 11:17:33 -0700126curr1_highest Historical maximum current.
127curr1_reset_history Write any value to reset history.
Guenter Roeck92711262012-02-24 03:40:53 -0800128
129power1_label "pin1"
130power1_input Input power.
Guenter Roeck68a40382015-03-17 13:19:51 -0700131power1_input_lowest Lowest observed input power. ADM1293 and ADM1294 only.
132power1_input_highest Highest observed input power.
Guenter Roeck92711262012-02-24 03:40:53 -0800133power1_reset_history Write any value to reset history.
134
Guenter Roeck4ff0ce22018-03-10 18:59:04 -0800135 Power attributes are supported on ADM1075, ADM1272,
136 ADM1276, ADM1293, and ADM1294.
Guenter Roeck709066ac2015-07-05 11:04:56 -0700137
138temp1_input Chip temperature.
Guenter Roeck709066ac2015-07-05 11:04:56 -0700139temp1_max Maximum chip temperature.
140temp1_max_alarm Temperature alarm.
141temp1_crit Critical chip temperature.
142temp1_crit_alarm Critical temperature high alarm.
143temp1_highest Highest observed temperature.
144temp1_reset_history Write any value to reset history.
145
Guenter Roeck4ff0ce22018-03-10 18:59:04 -0800146 Temperature attributes are supported on ADM1272 and
147 ADM1278.
Mauro Carvalho Chehab1f234ff2019-04-17 06:46:26 -0300148======================= =======================================================