leds-lp55xx.txt 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. Binding for TI/National Semiconductor LP55xx Led Drivers
  2. Required properties:
  3. - compatible: "national,lp5521" or "national,lp5523" or "ti,lp5562"
  4. - reg: I2C slave address
  5. - clock-mode: Input clock mode, (0: automode, 1: internal, 2: external)
  6. Each child has own specific current settings
  7. - led-cur: Current setting at each led channel (mA x10, 0 if led is not connected)
  8. - max-cur: Maximun current at each led channel.
  9. Optional properties:
  10. - label: Used for naming LEDs
  11. Alternatively, each child can have specific channel name
  12. - chan-name: Name of each channel name
  13. example 1) LP5521
  14. 3 LED channels, external clock used. Channel names are 'lp5521_pri:channel0',
  15. 'lp5521_pri:channel1' and 'lp5521_pri:channel2'
  16. lp5521@32 {
  17. compatible = "national,lp5521";
  18. reg = <0x32>;
  19. label = "lp5521_pri";
  20. clock-mode = /bits/ 8 <2>;
  21. chan0 {
  22. led-cur = /bits/ 8 <0x2f>;
  23. max-cur = /bits/ 8 <0x5f>;
  24. };
  25. chan1 {
  26. led-cur = /bits/ 8 <0x2f>;
  27. max-cur = /bits/ 8 <0x5f>;
  28. };
  29. chan2 {
  30. led-cur = /bits/ 8 <0x2f>;
  31. max-cur = /bits/ 8 <0x5f>;
  32. };
  33. };
  34. example 2) LP5523
  35. 9 LED channels with specific name. Internal clock used.
  36. The I2C slave address is configurable with ASEL1 and ASEL0 pins.
  37. Available addresses are 32/33/34/35h.
  38. ASEL1 ASEL0 Address
  39. -------------------------
  40. GND GND 32h
  41. GND VEN 33h
  42. VEN GND 34h
  43. VEN VEN 35h
  44. lp5523@32 {
  45. compatible = "national,lp5523";
  46. reg = <0x32>;
  47. clock-mode = /bits/ 8 <1>;
  48. chan0 {
  49. chan-name = "d1";
  50. led-cur = /bits/ 8 <0x14>;
  51. max-cur = /bits/ 8 <0x20>;
  52. };
  53. chan1 {
  54. chan-name = "d2";
  55. led-cur = /bits/ 8 <0x14>;
  56. max-cur = /bits/ 8 <0x20>;
  57. };
  58. chan2 {
  59. chan-name = "d3";
  60. led-cur = /bits/ 8 <0x14>;
  61. max-cur = /bits/ 8 <0x20>;
  62. };
  63. chan3 {
  64. chan-name = "d4";
  65. led-cur = /bits/ 8 <0x14>;
  66. max-cur = /bits/ 8 <0x20>;
  67. };
  68. chan4 {
  69. chan-name = "d5";
  70. led-cur = /bits/ 8 <0x14>;
  71. max-cur = /bits/ 8 <0x20>;
  72. };
  73. chan5 {
  74. chan-name = "d6";
  75. led-cur = /bits/ 8 <0x14>;
  76. max-cur = /bits/ 8 <0x20>;
  77. };
  78. chan6 {
  79. chan-name = "d7";
  80. led-cur = /bits/ 8 <0x14>;
  81. max-cur = /bits/ 8 <0x20>;
  82. };
  83. chan7 {
  84. chan-name = "d8";
  85. led-cur = /bits/ 8 <0x14>;
  86. max-cur = /bits/ 8 <0x20>;
  87. };
  88. chan8 {
  89. chan-name = "d9";
  90. led-cur = /bits/ 8 <0x14>;
  91. max-cur = /bits/ 8 <0x20>;
  92. };
  93. };
  94. example 3) LP5562
  95. 4 channels are defined.
  96. lp5562@30 {
  97. compatible = "ti,lp5562";
  98. reg = <0x30>;
  99. clock-mode = /bits/8 <2>;
  100. chan0 {
  101. chan-name = "R";
  102. led-cur = /bits/ 8 <0x20>;
  103. max-cur = /bits/ 8 <0x60>;
  104. };
  105. chan1 {
  106. chan-name = "G";
  107. led-cur = /bits/ 8 <0x20>;
  108. max-cur = /bits/ 8 <0x60>;
  109. };
  110. chan2 {
  111. chan-name = "B";
  112. led-cur = /bits/ 8 <0x20>;
  113. max-cur = /bits/ 8 <0x60>;
  114. };
  115. chan3 {
  116. chan-name = "W";
  117. led-cur = /bits/ 8 <0x20>;
  118. max-cur = /bits/ 8 <0x60>;
  119. };
  120. };