leds-mlxcpld.txt 2.2 KB

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