leds-netxbig.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. Binding for the CPLD LEDs (GPIO extension bus) found on some LaCie/Seagate
  2. boards (Example: 2Big/5Big Network v2, 2Big NAS).
  3. Required properties:
  4. - compatible: "lacie,netxbig-leds".
  5. - gpio-ext: Phandle for the gpio-ext bus.
  6. Optional properties:
  7. - timers: Timer array. Each timer entry is represented by three integers:
  8. Mode (gpio-ext bus), delay_on and delay_off.
  9. Each LED is represented as a sub-node of the netxbig-leds device.
  10. Required sub-node properties:
  11. - mode-addr: Mode register address on gpio-ext bus.
  12. - mode-val: Mode to value mapping. Each entry is represented by two integers:
  13. A mode and the corresponding value on the gpio-ext bus.
  14. - bright-addr: Brightness register address on gpio-ext bus.
  15. - max-brightness: Maximum brightness value.
  16. Optional sub-node properties:
  17. - label: Name for this LED. If omitted, the label is taken from the node name.
  18. - linux,default-trigger: Trigger assigned to the LED.
  19. Example:
  20. netxbig-leds {
  21. compatible = "lacie,netxbig-leds";
  22. gpio-ext = &gpio_ext;
  23. timers = <NETXBIG_LED_TIMER1 500 500
  24. NETXBIG_LED_TIMER2 500 1000>;
  25. blue-power {
  26. label = "netxbig:blue:power";
  27. mode-addr = <0>;
  28. mode-val = <NETXBIG_LED_OFF 0
  29. NETXBIG_LED_ON 1
  30. NETXBIG_LED_TIMER1 3
  31. NETXBIG_LED_TIMER2 7>;
  32. bright-addr = <1>;
  33. max-brightness = <7>;
  34. };
  35. red-power {
  36. label = "netxbig:red:power";
  37. mode-addr = <0>;
  38. mode-val = <NETXBIG_LED_OFF 0
  39. NETXBIG_LED_ON 2
  40. NETXBIG_LED_TIMER1 4>;
  41. bright-addr = <1>;
  42. max-brightness = <7>;
  43. };
  44. blue-sata0 {
  45. label = "netxbig:blue:sata0";
  46. mode-addr = <3>;
  47. mode-val = <NETXBIG_LED_OFF 0
  48. NETXBIG_LED_ON 7
  49. NETXBIG_LED_SATA 1
  50. NETXBIG_LED_TIMER1 3>;
  51. bright-addr = <2>;
  52. max-brightness = <7>;
  53. };
  54. red-sata0 {
  55. label = "netxbig:red:sata0";
  56. mode-addr = <3>;
  57. mode-val = <NETXBIG_LED_OFF 0
  58. NETXBIG_LED_ON 2
  59. NETXBIG_LED_TIMER1 4>;
  60. bright-addr = <2>;
  61. max-brightness = <7>;
  62. };
  63. blue-sata1 {
  64. label = "netxbig:blue:sata1";
  65. mode-addr = <4>;
  66. mode-val = <NETXBIG_LED_OFF 0
  67. NETXBIG_LED_ON 7
  68. NETXBIG_LED_SATA 1
  69. NETXBIG_LED_TIMER1 3>;
  70. bright-addr = <2>;
  71. max-brightness = <7>;
  72. };
  73. red-sata1 {
  74. label = "netxbig:red:sata1";
  75. mode-addr = <4>;
  76. mode-val = <NETXBIG_LED_OFF 0
  77. NETXBIG_LED_ON 2
  78. NETXBIG_LED_TIMER1 4>;
  79. bright-addr = <2>;
  80. max-brightness = <7>;
  81. };
  82. };