^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) =======================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Kernel driver for Mellanox systems LEDs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) =======================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Provide system LED support for the nex Mellanox systems:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) "msx6710", "msx6720", "msb7700", "msn2700", "msx1410",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) "msn2410", "msb7800", "msn2740", "msn2100".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) Description
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) -----------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Driver provides the following LEDs for the systems "msx6710", "msx6720",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) "msb7700", "msn2700", "msx1410", "msn2410", "msb7800", "msn2740":
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) - mlxcpld:fan1:green
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) - mlxcpld:fan1:red
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - mlxcpld:fan2:green
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) - mlxcpld:fan2:red
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) - mlxcpld:fan3:green
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) - mlxcpld:fan3:red
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) - mlxcpld:fan4:green
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) - mlxcpld:fan4:red
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) - mlxcpld:psu:green
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) - mlxcpld:psu:red
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) - mlxcpld:status:green
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) - mlxcpld:status:red
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) "status"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) - CPLD reg offset: 0x20
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) - Bits [3:0]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) "psu"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) - CPLD reg offset: 0x20
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) - Bits [7:4]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) "fan1"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) - CPLD reg offset: 0x21
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) - Bits [3:0]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) "fan2"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) - CPLD reg offset: 0x21
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) - Bits [7:4]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) "fan3"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) - CPLD reg offset: 0x22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) - Bits [3:0]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) "fan4"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) - CPLD reg offset: 0x22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) - Bits [7:4]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) Color mask for all the above LEDs:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) [bit3,bit2,bit1,bit0] or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) [bit7,bit6,bit5,bit4]:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) - [0,0,0,0] = LED OFF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) - [0,1,0,1] = Red static ON
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) - [1,1,0,1] = Green static ON
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) - [0,1,1,0] = Red blink 3Hz
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) - [1,1,1,0] = Green blink 3Hz
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) - [0,1,1,1] = Red blink 6Hz
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) - [1,1,1,1] = Green blink 6Hz
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) Driver provides the following LEDs for the system "msn2100":
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) - mlxcpld:fan:green
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) - mlxcpld:fan:red
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) - mlxcpld:psu1:green
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) - mlxcpld:psu1:red
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) - mlxcpld:psu2:green
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) - mlxcpld:psu2:red
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) - mlxcpld:status:green
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) - mlxcpld:status:red
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) - mlxcpld:uid:blue
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) "status"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) - CPLD reg offset: 0x20
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) - Bits [3:0]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) "fan"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) - CPLD reg offset: 0x21
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) - Bits [3:0]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) "psu1"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) - CPLD reg offset: 0x23
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) - Bits [3:0]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) "psu2"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) - CPLD reg offset: 0x23
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) - Bits [7:4]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) "uid"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) - CPLD reg offset: 0x24
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) - Bits [3:0]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) Color mask for all the above LEDs, excepted uid:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) [bit3,bit2,bit1,bit0] or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) [bit7,bit6,bit5,bit4]:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) - [0,0,0,0] = LED OFF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) - [0,1,0,1] = Red static ON
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) - [1,1,0,1] = Green static ON
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) - [0,1,1,0] = Red blink 3Hz
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) - [1,1,1,0] = Green blink 3Hz
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) - [0,1,1,1] = Red blink 6Hz
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) - [1,1,1,1] = Green blink 6Hz
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) Color mask for uid LED:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) [bit3,bit2,bit1,bit0]:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) - [0,0,0,0] = LED OFF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) - [1,1,0,1] = Blue static ON
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) - [1,1,1,0] = Blue blink 3Hz
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) - [1,1,1,1] = Blue blink 6Hz
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) Driver supports HW blinking at 3Hz and 6Hz frequency (50% duty cycle).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) For 3Hz duty cylce is about 167 msec, for 6Hz is about 83 msec.