xref: /OK3568_Linux_fs/kernel/Documentation/ABI/stable/sysfs-driver-mlxreg-io (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/asic_health
2*4882a593SmuzhiyunDate:		June 2018
3*4882a593SmuzhiyunKernelVersion:	4.19
4*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
5*4882a593SmuzhiyunDescription:	This file shows ASIC health status. The possible values are:
6*4882a593Smuzhiyun		0 - health failed, 2 - health OK, 3 - ASIC in booting state.
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun		The files are read only.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld1_version
11*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld2_version
12*4882a593SmuzhiyunDate:		June 2018
13*4882a593SmuzhiyunKernelVersion:	4.19
14*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
15*4882a593SmuzhiyunDescription:	These files show with which CPLD versions have been burned
16*4882a593Smuzhiyun		on carrier and switch boards.
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun		The files are read only.
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/fan_dir
21*4882a593SmuzhiyunDate:		December 2018
22*4882a593SmuzhiyunKernelVersion:	5.0
23*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
24*4882a593SmuzhiyunDescription:	This file shows the system fans direction:
25*4882a593Smuzhiyun		forward direction - relevant bit is set 0;
26*4882a593Smuzhiyun		reversed direction - relevant bit is set 1.
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun		The files are read only.
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld3_version
31*4882a593SmuzhiyunDate:		November 2018
32*4882a593SmuzhiyunKernelVersion:	5.0
33*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
34*4882a593SmuzhiyunDescription:	These files show with which CPLD versions have been burned
35*4882a593Smuzhiyun		on LED or Gearbox board.
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun		The files are read only.
38*4882a593Smuzhiyun
39*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/jtag_enable
40*4882a593SmuzhiyunDate:		November 2018
41*4882a593SmuzhiyunKernelVersion:	5.0
42*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
43*4882a593SmuzhiyunDescription:	These files enable and disable the access to the JTAG domain.
44*4882a593Smuzhiyun		By default access to the JTAG domain is disabled.
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun		The file is read/write.
47*4882a593Smuzhiyun
48*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/select_iio
49*4882a593SmuzhiyunDate:		June 2018
50*4882a593SmuzhiyunKernelVersion:	4.19
51*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
52*4882a593SmuzhiyunDescription:	This file allows iio devices selection.
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun		Attribute select_iio can be written with 0 or with 1. It
55*4882a593Smuzhiyun		selects which one of iio devices can be accessed.
56*4882a593Smuzhiyun
57*4882a593Smuzhiyun		The file is read/write.
58*4882a593Smuzhiyun
59*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu1_on
60*4882a593Smuzhiyun		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu2_on
61*4882a593Smuzhiyun		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_cycle
62*4882a593Smuzhiyun		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_down
63*4882a593SmuzhiyunDate:		June 2018
64*4882a593SmuzhiyunKernelVersion:	4.19
65*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
66*4882a593SmuzhiyunDescription:	These files allow asserting system power cycling, switching
67*4882a593Smuzhiyun		power supply units on and off and system's main power domain
68*4882a593Smuzhiyun		shutdown.
69*4882a593Smuzhiyun		Expected behavior:
70*4882a593Smuzhiyun		When pwr_cycle is written 1: auxiliary power domain will go
71*4882a593Smuzhiyun		down and after short period (about 1 second) up.
72*4882a593Smuzhiyun		When  psu1_on or psu2_on is written 1, related unit will be
73*4882a593Smuzhiyun		disconnected from the power source, when written 0 - connected.
74*4882a593Smuzhiyun		If both are written 1 - power supplies main power domain will
75*4882a593Smuzhiyun		go down.
76*4882a593Smuzhiyun		When pwr_down is written 1, system's main power domain will go
77*4882a593Smuzhiyun		down.
78*4882a593Smuzhiyun
79*4882a593Smuzhiyun		The files are write only.
80*4882a593Smuzhiyun
81*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_aux_pwr_or_ref
82*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_asic_thermal
83*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_hotswap_or_halt
84*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_hotswap_or_wd
85*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_fw_reset
86*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_long_pb
87*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_main_pwr_fail
88*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_short_pb
89*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_sw_reset
90*4882a593SmuzhiyunDate:		June 2018
91*4882a593SmuzhiyunKernelVersion:	4.19
92*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
93*4882a593SmuzhiyunDescription:	These files show the system reset cause, as following: power
94*4882a593Smuzhiyun		auxiliary outage or power refresh, ASIC thermal shutdown, halt,
95*4882a593Smuzhiyun		hotswap, watchdog, firmware reset, long press power button,
96*4882a593Smuzhiyun		short press power button, software reset. Value 1 in file means
97*4882a593Smuzhiyun		this is reset cause, 0 - otherwise. Only one of the above
98*4882a593Smuzhiyun		causes could be 1 at the same time, representing only last
99*4882a593Smuzhiyun		reset cause.
100*4882a593Smuzhiyun
101*4882a593Smuzhiyun		The files are read only.
102*4882a593Smuzhiyun
103*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_comex_pwr_fail
104*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_from_comex
105*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_system
106*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_voltmon_upgrade_fail
107*4882a593SmuzhiyunDate:		November 2018
108*4882a593SmuzhiyunKernelVersion:	5.0
109*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
110*4882a593SmuzhiyunDescription:	These files show the system reset cause, as following: ComEx
111*4882a593Smuzhiyun		power fail, reset from ComEx, system platform reset, reset
112*4882a593Smuzhiyun		due to voltage monitor devices upgrade failure,
113*4882a593Smuzhiyun		Value 1 in file means this is reset cause, 0 - otherwise.
114*4882a593Smuzhiyun		Only one bit could be 1 at the same time, representing only
115*4882a593Smuzhiyun		the last reset cause.
116*4882a593Smuzhiyun
117*4882a593Smuzhiyun		The files are read only.
118*4882a593Smuzhiyun
119*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld4_version
120*4882a593SmuzhiyunDate:		November 2018
121*4882a593SmuzhiyunKernelVersion:	5.0
122*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
123*4882a593SmuzhiyunDescription:	These files show with which CPLD versions have been burned
124*4882a593Smuzhiyun		on LED board.
125*4882a593Smuzhiyun
126*4882a593Smuzhiyun		The files are read only.
127*4882a593Smuzhiyun
128*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_comex_thermal
129*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_comex_wd
130*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_from_asic
131*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_reload_bios
132*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_sff_wd
133*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_swb_wd
134*4882a593SmuzhiyunDate:		June 2019
135*4882a593SmuzhiyunKernelVersion:	5.3
136*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
137*4882a593SmuzhiyunDescription:	These files show the system reset cause, as following:
138*4882a593Smuzhiyun		COMEX thermal shutdown; wathchdog power off or reset was derived
139*4882a593Smuzhiyun		by one of the next components: COMEX, switch board or by Small Form
140*4882a593Smuzhiyun		Factor mezzanine, reset requested from ASIC, reset cuased by BIOS
141*4882a593Smuzhiyun		reload. Value 1 in file means this is reset cause, 0 - otherwise.
142*4882a593Smuzhiyun		Only one of the above causes could be 1 at the same time, representing
143*4882a593Smuzhiyun		only last reset cause.
144*4882a593Smuzhiyun
145*4882a593Smuzhiyun		The files are read only.
146*4882a593Smuzhiyun
147*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/config1
148*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/config2
149*4882a593SmuzhiyunDate:		January 2020
150*4882a593SmuzhiyunKernelVersion:	5.6
151*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
152*4882a593SmuzhiyunDescription:	These files show system static topology identification
153*4882a593Smuzhiyun		like system's static I2C topology, number and type of FPGA
154*4882a593Smuzhiyun		devices within the system and so on.
155*4882a593Smuzhiyun
156*4882a593Smuzhiyun		The files are read only.
157*4882a593Smuzhiyun
158*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_ac_pwr_fail
159*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_platform
160*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_soc
161*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_sw_pwr_off
162*4882a593SmuzhiyunDate:		January 2020
163*4882a593SmuzhiyunKernelVersion:	5.6
164*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
165*4882a593SmuzhiyunDescription:	These files show the system reset causes, as following: reset
166*4882a593Smuzhiyun		due to AC power failure, reset invoked from software by
167*4882a593Smuzhiyun		assertion reset signal through CPLD. reset caused by signal
168*4882a593Smuzhiyun		asserted by SOC through ACPI register, reset invoked from
169*4882a593Smuzhiyun		software by assertion power off signal through CPLD.
170*4882a593Smuzhiyun
171*4882a593Smuzhiyun		The files are read only.
172*4882a593Smuzhiyun
173*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pcie_asic_reset_dis
174*4882a593SmuzhiyunDate:		January 2020
175*4882a593SmuzhiyunKernelVersion:	5.6
176*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
177*4882a593SmuzhiyunDescription:	This file allows to retain ASIC up during PCIe root complex
178*4882a593Smuzhiyun		reset, when attribute is set 1.
179*4882a593Smuzhiyun
180*4882a593Smuzhiyun		The file is read/write.
181*4882a593Smuzhiyun
182*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/vpd_wp
183*4882a593SmuzhiyunDate:		January 2020
184*4882a593SmuzhiyunKernelVersion:	5.6
185*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
186*4882a593SmuzhiyunDescription:	This file allows to overwrite system VPD hardware wrtie
187*4882a593Smuzhiyun		protection when attribute is set 1.
188*4882a593Smuzhiyun
189*4882a593Smuzhiyun		The file is read/write.
190*4882a593Smuzhiyun
191*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/voltreg_update_status
192*4882a593SmuzhiyunDate:		January 2020
193*4882a593SmuzhiyunKernelVersion:	5.6
194*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
195*4882a593SmuzhiyunDescription:	This file exposes the configuration update status of burnable
196*4882a593Smuzhiyun		voltage regulator devices. The status values are as following:
197*4882a593Smuzhiyun		0 - OK; 1 - CRC failure; 2 = I2C failure; 3 - in progress.
198*4882a593Smuzhiyun
199*4882a593Smuzhiyun		The file is read only.
200*4882a593Smuzhiyun
201*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ufm_version
202*4882a593SmuzhiyunDate:		January 2020
203*4882a593SmuzhiyunKernelVersion:	5.6
204*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
205*4882a593SmuzhiyunDescription:	This file exposes the firmware version of burnable voltage
206*4882a593Smuzhiyun		regulator devices.
207*4882a593Smuzhiyun
208*4882a593Smuzhiyun		The file is read only.
209*4882a593Smuzhiyun
210*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld1_pn
211*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld2_pn
212*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld3_pn
213*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld4_pn
214*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld1_version_min
215*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld2_version_min
216*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld3_version_min
217*4882a593SmuzhiyunWhat:		/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld4_version_min
218*4882a593SmuzhiyunDate:		July 2020
219*4882a593SmuzhiyunKernelVersion:	5.9
220*4882a593SmuzhiyunContact:	Vadim Pasternak <vadimpmellanox.com>
221*4882a593SmuzhiyunDescription:	These files show with which CPLD part numbers and minor
222*4882a593Smuzhiyun		versions have been burned CPLD devices equipped on a
223*4882a593Smuzhiyun		system.
224*4882a593Smuzhiyun
225*4882a593Smuzhiyun		The files are read only.
226