xref: /linux/Documentation/hwmon/adm1275.rst (revision 621cde16e49b3ecf7d59a8106a20aaebfb4a59a9)
17ebd8b66SMauro Carvalho ChehabKernel driver adm1275
27ebd8b66SMauro Carvalho Chehab=====================
37ebd8b66SMauro Carvalho Chehab
47ebd8b66SMauro Carvalho ChehabSupported chips:
57ebd8b66SMauro Carvalho Chehab
67ebd8b66SMauro Carvalho Chehab  * Analog Devices ADM1075
77ebd8b66SMauro Carvalho Chehab
87ebd8b66SMauro Carvalho Chehab    Prefix: 'adm1075'
97ebd8b66SMauro Carvalho Chehab
107ebd8b66SMauro Carvalho Chehab    Addresses scanned: -
117ebd8b66SMauro Carvalho Chehab
127ebd8b66SMauro Carvalho Chehab    Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1075.pdf
137ebd8b66SMauro Carvalho Chehab
147ebd8b66SMauro Carvalho Chehab  * Analog Devices ADM1272
157ebd8b66SMauro Carvalho Chehab
167ebd8b66SMauro Carvalho Chehab    Prefix: 'adm1272'
177ebd8b66SMauro Carvalho Chehab
187ebd8b66SMauro Carvalho Chehab    Addresses scanned: -
197ebd8b66SMauro Carvalho Chehab
207ebd8b66SMauro Carvalho Chehab    Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1272.pdf
217ebd8b66SMauro Carvalho Chehab
227ebd8b66SMauro Carvalho Chehab  * Analog Devices ADM1275
237ebd8b66SMauro Carvalho Chehab
247ebd8b66SMauro Carvalho Chehab    Prefix: 'adm1275'
257ebd8b66SMauro Carvalho Chehab
267ebd8b66SMauro Carvalho Chehab    Addresses scanned: -
277ebd8b66SMauro Carvalho Chehab
287ebd8b66SMauro Carvalho Chehab    Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1275.pdf
297ebd8b66SMauro Carvalho Chehab
307ebd8b66SMauro Carvalho Chehab  * Analog Devices ADM1276
317ebd8b66SMauro Carvalho Chehab
327ebd8b66SMauro Carvalho Chehab    Prefix: 'adm1276'
337ebd8b66SMauro Carvalho Chehab
347ebd8b66SMauro Carvalho Chehab    Addresses scanned: -
357ebd8b66SMauro Carvalho Chehab
367ebd8b66SMauro Carvalho Chehab    Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1276.pdf
377ebd8b66SMauro Carvalho Chehab
387ebd8b66SMauro Carvalho Chehab  * Analog Devices ADM1278
397ebd8b66SMauro Carvalho Chehab
407ebd8b66SMauro Carvalho Chehab    Prefix: 'adm1278'
417ebd8b66SMauro Carvalho Chehab
427ebd8b66SMauro Carvalho Chehab    Addresses scanned: -
437ebd8b66SMauro Carvalho Chehab
447ebd8b66SMauro Carvalho Chehab    Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1278.pdf
457ebd8b66SMauro Carvalho Chehab
46*91630090SJose Ramon San Buenaventura  * Analog Devices ADM1281
47*91630090SJose Ramon San Buenaventura
48*91630090SJose Ramon San Buenaventura    Prefix: 'adm1281'
49*91630090SJose Ramon San Buenaventura
50*91630090SJose Ramon San Buenaventura    Addresses scanned: -
51*91630090SJose Ramon San Buenaventura
52*91630090SJose Ramon San Buenaventura    Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/adm1281.pdf
53*91630090SJose Ramon San Buenaventura
547ebd8b66SMauro Carvalho Chehab  * Analog Devices ADM1293/ADM1294
557ebd8b66SMauro Carvalho Chehab
567ebd8b66SMauro Carvalho Chehab    Prefix: 'adm1293', 'adm1294'
577ebd8b66SMauro Carvalho Chehab
587ebd8b66SMauro Carvalho Chehab    Addresses scanned: -
597ebd8b66SMauro Carvalho Chehab
60f12d634fSAlexander A. Klimov    Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/ADM1293_1294.pdf
617ebd8b66SMauro Carvalho Chehab
627ebd8b66SMauro Carvalho ChehabAuthor: Guenter Roeck <linux@roeck-us.net>
637ebd8b66SMauro Carvalho Chehab
647ebd8b66SMauro Carvalho Chehab
657ebd8b66SMauro Carvalho ChehabDescription
667ebd8b66SMauro Carvalho Chehab-----------
677ebd8b66SMauro Carvalho Chehab
687ebd8b66SMauro Carvalho ChehabThis driver supports hardware monitoring for Analog Devices ADM1075, ADM1272,
69*91630090SJose Ramon San BuenaventuraADM1275, ADM1276, ADM1278, ADM1281, ADM1293, and ADM1294 Hot-Swap Controller and
707ebd8b66SMauro Carvalho ChehabDigital Power Monitors.
717ebd8b66SMauro Carvalho Chehab
72*91630090SJose Ramon San BuenaventuraADM1075, ADM1272, ADM1275, ADM1276, ADM1278, ADM1281, ADM1293, and ADM1294 are hot-swap
737ebd8b66SMauro Carvalho Chehabcontrollers that allow a circuit board to be removed from or inserted into
747ebd8b66SMauro Carvalho Chehaba live backplane. They also feature current and voltage readback via an
757ebd8b66SMauro Carvalho Chehabintegrated 12 bit analog-to-digital converter (ADC), accessed using a
767ebd8b66SMauro Carvalho ChehabPMBus interface.
777ebd8b66SMauro Carvalho Chehab
787ebd8b66SMauro Carvalho ChehabThe driver is a client driver to the core PMBus driver. Please see
797ebd8b66SMauro Carvalho ChehabDocumentation/hwmon/pmbus.rst for details on PMBus client drivers.
807ebd8b66SMauro Carvalho Chehab
817ebd8b66SMauro Carvalho Chehab
827ebd8b66SMauro Carvalho ChehabUsage Notes
837ebd8b66SMauro Carvalho Chehab-----------
847ebd8b66SMauro Carvalho Chehab
857ebd8b66SMauro Carvalho ChehabThis driver does not auto-detect devices. You will have to instantiate the
86ccf988b6SMauro Carvalho Chehabdevices explicitly. Please see Documentation/i2c/instantiating-devices.rst for
877ebd8b66SMauro Carvalho Chehabdetails.
887ebd8b66SMauro Carvalho Chehab
897ebd8b66SMauro Carvalho ChehabThe ADM1075, unlike many other PMBus devices, does not support internal voltage
907ebd8b66SMauro Carvalho Chehabor current scaling. Reported voltages, currents, and power are raw measurements,
917ebd8b66SMauro Carvalho Chehaband will typically have to be scaled.
927ebd8b66SMauro Carvalho Chehab
937ebd8b66SMauro Carvalho ChehabThe shunt value in micro-ohms can be set via device tree at compile-time. Please
9415d4a6f7SKrzysztof Kozlowskirefer to the Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml for bindings
957ebd8b66SMauro Carvalho Chehabif the device tree is used.
967ebd8b66SMauro Carvalho Chehab
977ebd8b66SMauro Carvalho ChehabPlatform data support
987ebd8b66SMauro Carvalho Chehab---------------------
997ebd8b66SMauro Carvalho Chehab
1007ebd8b66SMauro Carvalho ChehabThe driver supports standard PMBus driver platform data. Please see
1017ebd8b66SMauro Carvalho ChehabDocumentation/hwmon/pmbus.rst for details.
1027ebd8b66SMauro Carvalho Chehab
1037ebd8b66SMauro Carvalho Chehab
1047ebd8b66SMauro Carvalho ChehabSysfs entries
1057ebd8b66SMauro Carvalho Chehab-------------
1067ebd8b66SMauro Carvalho Chehab
1077ebd8b66SMauro Carvalho ChehabThe following attributes are supported. Limits are read-write, history reset
1087ebd8b66SMauro Carvalho Chehabattributes are write-only, all other attributes are read-only.
1097ebd8b66SMauro Carvalho Chehab
1107ebd8b66SMauro Carvalho Chehab======================= =======================================================
1117ebd8b66SMauro Carvalho ChehabinX_label		"vin1" or "vout1" depending on chip variant and
1127ebd8b66SMauro Carvalho Chehab			configuration. On ADM1075, ADM1293, and ADM1294,
1137ebd8b66SMauro Carvalho Chehab			vout1 reports the voltage on the VAUX pin.
1147ebd8b66SMauro Carvalho ChehabinX_input		Measured voltage.
1157ebd8b66SMauro Carvalho ChehabinX_min			Minimum Voltage.
1167ebd8b66SMauro Carvalho ChehabinX_max			Maximum voltage.
1177ebd8b66SMauro Carvalho ChehabinX_min_alarm		Voltage low alarm.
1187ebd8b66SMauro Carvalho ChehabinX_max_alarm		Voltage high alarm.
1197ebd8b66SMauro Carvalho ChehabinX_highest		Historical maximum voltage.
1207ebd8b66SMauro Carvalho ChehabinX_reset_history	Write any value to reset history.
1217ebd8b66SMauro Carvalho Chehab
1227ebd8b66SMauro Carvalho Chehabcurr1_label		"iout1"
1237ebd8b66SMauro Carvalho Chehabcurr1_input		Measured current.
1247ebd8b66SMauro Carvalho Chehabcurr1_max		Maximum current.
1257ebd8b66SMauro Carvalho Chehabcurr1_max_alarm		Current high alarm.
1267ebd8b66SMauro Carvalho Chehabcurr1_lcrit		Critical minimum current. Depending on the chip
1277ebd8b66SMauro Carvalho Chehab			configuration, either curr1_lcrit or curr1_crit is
1287ebd8b66SMauro Carvalho Chehab			supported, but not both.
1297ebd8b66SMauro Carvalho Chehabcurr1_lcrit_alarm	Critical current low alarm.
1307ebd8b66SMauro Carvalho Chehabcurr1_crit		Critical maximum current. Depending on the chip
1317ebd8b66SMauro Carvalho Chehab			configuration, either curr1_lcrit or curr1_crit is
1327ebd8b66SMauro Carvalho Chehab			supported, but not both.
1337ebd8b66SMauro Carvalho Chehabcurr1_crit_alarm	Critical current high alarm.
1347ebd8b66SMauro Carvalho Chehabcurr1_highest		Historical maximum current.
1357ebd8b66SMauro Carvalho Chehabcurr1_reset_history	Write any value to reset history.
1367ebd8b66SMauro Carvalho Chehab
1377ebd8b66SMauro Carvalho Chehabpower1_label		"pin1"
1387ebd8b66SMauro Carvalho Chehabpower1_input		Input power.
1397ebd8b66SMauro Carvalho Chehabpower1_input_lowest	Lowest observed input power. ADM1293 and ADM1294 only.
1407ebd8b66SMauro Carvalho Chehabpower1_input_highest	Highest observed input power.
1417ebd8b66SMauro Carvalho Chehabpower1_reset_history	Write any value to reset history.
1427ebd8b66SMauro Carvalho Chehab
1437ebd8b66SMauro Carvalho Chehab			Power attributes are supported on ADM1075, ADM1272,
1447ebd8b66SMauro Carvalho Chehab			ADM1276, ADM1293, and ADM1294.
1457ebd8b66SMauro Carvalho Chehab
1467ebd8b66SMauro Carvalho Chehabtemp1_input		Chip temperature.
1477ebd8b66SMauro Carvalho Chehabtemp1_max		Maximum chip temperature.
1487ebd8b66SMauro Carvalho Chehabtemp1_max_alarm		Temperature alarm.
1497ebd8b66SMauro Carvalho Chehabtemp1_crit		Critical chip temperature.
1507ebd8b66SMauro Carvalho Chehabtemp1_crit_alarm	Critical temperature high alarm.
1517ebd8b66SMauro Carvalho Chehabtemp1_highest		Highest observed temperature.
1527ebd8b66SMauro Carvalho Chehabtemp1_reset_history	Write any value to reset history.
1537ebd8b66SMauro Carvalho Chehab
1547ebd8b66SMauro Carvalho Chehab			Temperature attributes are supported on ADM1272 and
155*91630090SJose Ramon San Buenaventura			ADM1278, and ADM1281.
1567ebd8b66SMauro Carvalho Chehab======================= =======================================================
157