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