1f193f798SVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
2f193f798SVadim Pasternak							asic_health
3f193f798SVadim Pasternak
4f193f798SVadim PasternakDate:		June 2018
5f193f798SVadim PasternakKernelVersion:	4.19
6f193f798SVadim PasternakContact:	Vadim Pasternak <vadimpmellanox.com>
7f193f798SVadim PasternakDescription:	This file shows ASIC health status. The possible values are:
8f193f798SVadim Pasternak		0 - health failed, 2 - health OK, 3 - ASIC in booting state.
9f193f798SVadim Pasternak
10f193f798SVadim Pasternak		The files are read only.
11f193f798SVadim Pasternak
12f193f798SVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
13f193f798SVadim Pasternak							cpld1_version
14f193f798SVadim Pasternak							cpld2_version
15f193f798SVadim PasternakDate:		June 2018
16f193f798SVadim PasternakKernelVersion:	4.19
17f193f798SVadim PasternakContact:	Vadim Pasternak <vadimpmellanox.com>
18f193f798SVadim PasternakDescription:	These files show with which CPLD versions have been burned
19f193f798SVadim Pasternak		on carrier and switch boards.
20f193f798SVadim Pasternak
21f193f798SVadim Pasternak		The files are read only.
22f193f798SVadim Pasternak
2352675da1SVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
242752e344SVadim Pasternak							fan_dir
252752e344SVadim Pasternak
262752e344SVadim PasternakDate:		December 2018
272752e344SVadim PasternakKernelVersion:	5.0
282752e344SVadim PasternakContact:	Vadim Pasternak <vadimpmellanox.com>
292752e344SVadim PasternakDescription:	This file shows the system fans direction:
302752e344SVadim Pasternak		forward direction - relevant bit is set 0;
312752e344SVadim Pasternak		reversed direction - relevant bit is set 1.
322752e344SVadim Pasternak
332752e344SVadim Pasternak		The files are read only.
342752e344SVadim Pasternak
352752e344SVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
362752e344SVadim Pasternak							jtag_enable
3752675da1SVadim Pasternak
3852675da1SVadim PasternakDate:		November 2018
39522e4ee6SDarren Hart (VMware)KernelVersion:	5.0
4052675da1SVadim PasternakContact:	Vadim Pasternak <vadimpmellanox.com>
4152675da1SVadim PasternakDescription:	These files show with which CPLD versions have been burned
4252675da1SVadim Pasternak		on LED board.
4352675da1SVadim Pasternak
4452675da1SVadim Pasternak		The files are read only.
4552675da1SVadim Pasternak
4652675da1SVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
4752675da1SVadim Pasternak							jtag_enable
4852675da1SVadim Pasternak
4952675da1SVadim PasternakDate:		November 2018
50522e4ee6SDarren Hart (VMware)KernelVersion:	5.0
5152675da1SVadim PasternakContact:	Vadim Pasternak <vadimpmellanox.com>
5252675da1SVadim PasternakDescription:	These files enable and disable the access to the JTAG domain.
5352675da1SVadim Pasternak		By default access to the JTAG domain is disabled.
5452675da1SVadim Pasternak
5552675da1SVadim Pasternak		The file is read/write.
5652675da1SVadim Pasternak
57f193f798SVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/select_iio
58f193f798SVadim PasternakDate:		June 2018
59f193f798SVadim PasternakKernelVersion:	4.19
60f193f798SVadim PasternakContact:	Vadim Pasternak <vadimpmellanox.com>
61f193f798SVadim PasternakDescription:	This file allows iio devices selection.
62f193f798SVadim Pasternak
63f193f798SVadim Pasternak		Attribute select_iio can be written with 0 or with 1. It
64f193f798SVadim Pasternak		selects which one of iio devices can be accessed.
65f193f798SVadim Pasternak
66f193f798SVadim Pasternak		The file is read/write.
67f193f798SVadim Pasternak
68f193f798SVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu1_on
69f193f798SVadim Pasternak		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu2_on
70f193f798SVadim Pasternak		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_cycle
71f193f798SVadim Pasternak		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_down
72f193f798SVadim PasternakDate:		June 2018
73f193f798SVadim PasternakKernelVersion:	4.19
74f193f798SVadim PasternakContact:	Vadim Pasternak <vadimpmellanox.com>
75f193f798SVadim PasternakDescription:	These files allow asserting system power cycling, switching
76f193f798SVadim Pasternak		power supply units on and off and system's main power domain
77f193f798SVadim Pasternak		shutdown.
78f193f798SVadim Pasternak		Expected behavior:
79f193f798SVadim Pasternak		When pwr_cycle is written 1: auxiliary power domain will go
80f193f798SVadim Pasternak		down and after short period (about 1 second) up.
81f193f798SVadim Pasternak		When  psu1_on or psu2_on is written 1, related unit will be
82f193f798SVadim Pasternak		disconnected from the power source, when written 0 - connected.
83f193f798SVadim Pasternak		If both are written 1 - power supplies main power domain will
84f193f798SVadim Pasternak		go down.
85f193f798SVadim Pasternak		When pwr_down is written 1, system's main power domain will go
86f193f798SVadim Pasternak		down.
87f193f798SVadim Pasternak
88f193f798SVadim Pasternak		The files are write only.
89f193f798SVadim Pasternak
90f193f798SVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
91f193f798SVadim Pasternak							reset_aux_pwr_or_ref
92f193f798SVadim Pasternak							reset_asic_thermal
93a34e1343SVadim Pasternak							reset_hotswap_or_halt
94f193f798SVadim Pasternak							reset_hotswap_or_wd
95f193f798SVadim Pasternak							reset_fw_reset
96f193f798SVadim Pasternak							reset_long_pb
97f193f798SVadim Pasternak							reset_main_pwr_fail
98f193f798SVadim Pasternak							reset_short_pb
99f193f798SVadim Pasternak							reset_sw_reset
100f193f798SVadim PasternakDate:		June 2018
101f193f798SVadim PasternakKernelVersion:	4.19
102f193f798SVadim PasternakContact:	Vadim Pasternak <vadimpmellanox.com>
103f193f798SVadim PasternakDescription:	These files show the system reset cause, as following: power
104a34e1343SVadim Pasternak		auxiliary outage or power refresh, ASIC thermal shutdown, halt,
105a34e1343SVadim Pasternak		hotswap, watchdog, firmware reset, long press power button,
106f193f798SVadim Pasternak		short press power button, software reset. Value 1 in file means
107f193f798SVadim Pasternak		this is reset cause, 0 - otherwise. Only one of the above
108f193f798SVadim Pasternak		causes could be 1 at the same time, representing only last
109f193f798SVadim Pasternak		reset cause.
110f193f798SVadim Pasternak
111f193f798SVadim Pasternak		The files are read only.
11252675da1SVadim Pasternak
11352675da1SVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
11452675da1SVadim Pasternak						reset_comex_pwr_fail
11552675da1SVadim Pasternak						reset_from_comex
11652675da1SVadim Pasternak						reset_system
11752675da1SVadim Pasternak						reset_voltmon_upgrade_fail
11852675da1SVadim Pasternak
11952675da1SVadim PasternakDate:		November 2018
120522e4ee6SDarren Hart (VMware)KernelVersion:	5.0
12152675da1SVadim PasternakContact:	Vadim Pasternak <vadimpmellanox.com>
12252675da1SVadim PasternakDescription:	These files show the system reset cause, as following: ComEx
12352675da1SVadim Pasternak		power fail, reset from ComEx, system platform reset, reset
12452675da1SVadim Pasternak		due to voltage monitor devices upgrade failure,
12552675da1SVadim Pasternak		Value 1 in file means this is reset cause, 0 - otherwise.
12652675da1SVadim Pasternak		Only one bit could be 1 at the same time, representing only
12752675da1SVadim Pasternak		the last reset cause.
12852675da1SVadim Pasternak
12952675da1SVadim Pasternak		The files are read only.
130ba07e3aaSVadim Pasternak
131ba07e3aaSVadim PasternakDate:		June 2019
132ba07e3aaSVadim PasternakKernelVersion:	5.3
133ba07e3aaSVadim PasternakContact:	Vadim Pasternak <vadimpmellanox.com>
134ba07e3aaSVadim PasternakDescription:	These files show the system reset cause, as following:
135ba07e3aaSVadim Pasternak		COMEX thermal shutdown; wathchdog power off or reset was derived
136ba07e3aaSVadim Pasternak		by one of the next components: COMEX, switch board or by Small Form
137ba07e3aaSVadim Pasternak		Factor mezzanine, reset requested from ASIC, reset cuased by BIOS
138ba07e3aaSVadim Pasternak		reload. Value 1 in file means this is reset cause, 0 - otherwise.
139ba07e3aaSVadim Pasternak		Only one of the above causes could be 1 at the same time, representing
140ba07e3aaSVadim Pasternak		only last reset cause.
141ba07e3aaSVadim Pasternak
142ba07e3aaSVadim Pasternak		The files are read only.
143ba07e3aaSVadim Pasternak
144ba07e3aaSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_comex_thermal
145ba07e3aaSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_comex_wd
146ba07e3aaSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_from_asic
147ba07e3aaSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_reload_bios
148ba07e3aaSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_sff_wd
149ba07e3aaSVadim PasternakWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_swb_wd
150