0001 =======================================
0002 Kernel driver for Mellanox systems LEDs
0003 =======================================
0004
0005 Provide system LED support for the nex Mellanox systems:
0006 "msx6710", "msx6720", "msb7700", "msn2700", "msx1410",
0007 "msn2410", "msb7800", "msn2740", "msn2100".
0008
0009 Description
0010 -----------
0011 Driver provides the following LEDs for the systems "msx6710", "msx6720",
0012 "msb7700", "msn2700", "msx1410", "msn2410", "msb7800", "msn2740":
0013
0014 - mlxcpld:fan1:green
0015 - mlxcpld:fan1:red
0016 - mlxcpld:fan2:green
0017 - mlxcpld:fan2:red
0018 - mlxcpld:fan3:green
0019 - mlxcpld:fan3:red
0020 - mlxcpld:fan4:green
0021 - mlxcpld:fan4:red
0022 - mlxcpld:psu:green
0023 - mlxcpld:psu:red
0024 - mlxcpld:status:green
0025 - mlxcpld:status:red
0026
0027 "status"
0028 - CPLD reg offset: 0x20
0029 - Bits [3:0]
0030
0031 "psu"
0032 - CPLD reg offset: 0x20
0033 - Bits [7:4]
0034
0035 "fan1"
0036 - CPLD reg offset: 0x21
0037 - Bits [3:0]
0038
0039 "fan2"
0040 - CPLD reg offset: 0x21
0041 - Bits [7:4]
0042
0043 "fan3"
0044 - CPLD reg offset: 0x22
0045 - Bits [3:0]
0046
0047 "fan4"
0048 - CPLD reg offset: 0x22
0049 - Bits [7:4]
0050
0051 Color mask for all the above LEDs:
0052
0053 [bit3,bit2,bit1,bit0] or
0054 [bit7,bit6,bit5,bit4]:
0055
0056 - [0,0,0,0] = LED OFF
0057 - [0,1,0,1] = Red static ON
0058 - [1,1,0,1] = Green static ON
0059 - [0,1,1,0] = Red blink 3Hz
0060 - [1,1,1,0] = Green blink 3Hz
0061 - [0,1,1,1] = Red blink 6Hz
0062 - [1,1,1,1] = Green blink 6Hz
0063
0064 Driver provides the following LEDs for the system "msn2100":
0065
0066 - mlxcpld:fan:green
0067 - mlxcpld:fan:red
0068 - mlxcpld:psu1:green
0069 - mlxcpld:psu1:red
0070 - mlxcpld:psu2:green
0071 - mlxcpld:psu2:red
0072 - mlxcpld:status:green
0073 - mlxcpld:status:red
0074 - mlxcpld:uid:blue
0075
0076 "status"
0077 - CPLD reg offset: 0x20
0078 - Bits [3:0]
0079
0080 "fan"
0081 - CPLD reg offset: 0x21
0082 - Bits [3:0]
0083
0084 "psu1"
0085 - CPLD reg offset: 0x23
0086 - Bits [3:0]
0087
0088 "psu2"
0089 - CPLD reg offset: 0x23
0090 - Bits [7:4]
0091
0092 "uid"
0093 - CPLD reg offset: 0x24
0094 - Bits [3:0]
0095
0096 Color mask for all the above LEDs, excepted uid:
0097
0098 [bit3,bit2,bit1,bit0] or
0099 [bit7,bit6,bit5,bit4]:
0100
0101 - [0,0,0,0] = LED OFF
0102 - [0,1,0,1] = Red static ON
0103 - [1,1,0,1] = Green static ON
0104 - [0,1,1,0] = Red blink 3Hz
0105 - [1,1,1,0] = Green blink 3Hz
0106 - [0,1,1,1] = Red blink 6Hz
0107 - [1,1,1,1] = Green blink 6Hz
0108
0109 Color mask for uid LED:
0110 [bit3,bit2,bit1,bit0]:
0111
0112 - [0,0,0,0] = LED OFF
0113 - [1,1,0,1] = Blue static ON
0114 - [1,1,1,0] = Blue blink 3Hz
0115 - [1,1,1,1] = Blue blink 6Hz
0116
0117 Driver supports HW blinking at 3Hz and 6Hz frequency (50% duty cycle).
0118 For 3Hz duty cylce is about 167 msec, for 6Hz is about 83 msec.