leds-mlxcpld.rst 2.4 KB

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