1 Kernel driver mlxreg-fan
2 ========================
4 Provides FAN control for the next Mellanox systems:
5 QMB700, equipped with 40x200GbE InfiniBand ports;
6 MSN3700, equipped with 32x200GbE or 16x400GbE Ethernet ports;
7 MSN3410, equipped with 6x400GbE plus 48x50GbE Ethernet ports;
8 MSN3800, equipped with 64x1000GbE Ethernet ports;
9 These are the Top of the Rack systems, equipped with Mellanox switch
10 board with Mellanox Quantum or Spectrume-2 devices.
11 FAN controller is implemented by the programmable device logic.
13 The default registers offsets set within the programmable device is as
25 - fan10 (tacho10) 0xed
26 - fan11 (tacho11) 0xee
27 - fan12 (tacho12) 0xef
28 This setup can be re-programmed with other registers.
30 Author: Vadim Pasternak <vadimp@mellanox.com>
35 The driver implements a simple interface for driving a fan connected to
36 a PWM output and tachometer inputs.
37 This driver obtains PWM and tachometers registers location according to
38 the system configuration and creates FAN/PWM hwmon objects and a cooling
39 device. PWM and tachometers are sensed through the on-board programmable
40 device, which exports its register map. This device could be attached to
41 any bus type, for which register mapping is supported.
42 Single instance is created with one PWM control, up to 12 tachometers and
43 one cooling device. It could be as many instances as programmable device
45 The driver exposes the fan to the user space through the hwmon's and
46 thermal's sysfs interfaces.
48 /sys files in hwmon subsystem
49 -----------------------------
51 fan[1-12]_fault - RO files for tachometers TACH1-TACH12 fault indication
52 fan[1-12]_input - RO files for tachometers TACH1-TACH12 input (in RPM)
53 pwm1 - RW file for fan[1-12] target duty cycle (0..255)
55 /sys files in thermal subsystem
56 -------------------------------
58 cur_state - RW file for current cooling state of the cooling device
60 max_state - RO file for maximum cooling state of the cooling device