Skip to content

Commit f193f79

Browse files
mellanoxbmcdvhart
authored andcommitted
Documentation/ABI: Add documentation mlxreg-io sysfs interfaces
Add documentation for mlxreg-io platform driver sysfs interfaces to allow user space access for system resets control, reset causes monitoring, programmable devices version reading and device selection control. Signed-off-by: Vadim Pasternak <vadimp@mellanox.com> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
1 parent 8871f5e commit f193f79

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
2+
asic_health
3+
4+
Date: June 2018
5+
KernelVersion: 4.19
6+
Contact: Vadim Pasternak <vadimpmellanox.com>
7+
Description: This file shows ASIC health status. The possible values are:
8+
0 - health failed, 2 - health OK, 3 - ASIC in booting state.
9+
10+
The files are read only.
11+
12+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
13+
cpld1_version
14+
cpld2_version
15+
16+
Date: June 2018
17+
KernelVersion: 4.19
18+
Contact: Vadim Pasternak <vadimpmellanox.com>
19+
Description: These files show with which CPLD versions have been burned
20+
on carrier and switch boards.
21+
22+
The files are read only.
23+
24+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/select_iio
25+
Date: June 2018
26+
KernelVersion: 4.19
27+
Contact: Vadim Pasternak <vadimpmellanox.com>
28+
Description: This file allows iio devices selection.
29+
30+
Attribute select_iio can be written with 0 or with 1. It
31+
selects which one of iio devices can be accessed.
32+
33+
The file is read/write.
34+
35+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu1_on
36+
/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu2_on
37+
/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_cycle
38+
/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_down
39+
Date: June 2018
40+
KernelVersion: 4.19
41+
Contact: Vadim Pasternak <vadimpmellanox.com>
42+
Description: These files allow asserting system power cycling, switching
43+
power supply units on and off and system's main power domain
44+
shutdown.
45+
Expected behavior:
46+
When pwr_cycle is written 1: auxiliary power domain will go
47+
down and after short period (about 1 second) up.
48+
When psu1_on or psu2_on is written 1, related unit will be
49+
disconnected from the power source, when written 0 - connected.
50+
If both are written 1 - power supplies main power domain will
51+
go down.
52+
When pwr_down is written 1, system's main power domain will go
53+
down.
54+
55+
The files are write only.
56+
57+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
58+
reset_aux_pwr_or_ref
59+
reset_asic_thermal
60+
reset_hotswap_or_wd
61+
reset_fw_reset
62+
reset_long_pb
63+
reset_main_pwr_fail
64+
reset_short_pb
65+
reset_sw_reset
66+
Date: June 2018
67+
KernelVersion: 4.19
68+
Contact: Vadim Pasternak <vadimpmellanox.com>
69+
Description: These files show the system reset cause, as following: power
70+
auxiliary outage or power refresh, ASIC thermal shutdown,
71+
hotswap or watchdog, firmware reset, long press power button,
72+
short press power button, software reset. Value 1 in file means
73+
this is reset cause, 0 - otherwise. Only one of the above
74+
causes could be 1 at the same time, representing only last
75+
reset cause.
76+
77+
The files are read only.

0 commit comments

Comments
 (0)