ti-lmu.txt 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. TI LMU (Lighting Management Unit) device tree bindings
  2. TI LMU driver supports lighting devices below.
  3. Name Child nodes
  4. ------ ---------------------------------
  5. LM3532 Backlight
  6. LM3631 Backlight and regulator
  7. LM3632 Backlight and regulator
  8. LM3633 Backlight, LED and fault monitor
  9. LM3695 Backlight
  10. LM3697 Backlight and fault monitor
  11. Required properties:
  12. - compatible: Should be one of:
  13. "ti,lm3532"
  14. "ti,lm3631"
  15. "ti,lm3632"
  16. "ti,lm3633"
  17. "ti,lm3695"
  18. "ti,lm3697"
  19. - reg: I2C slave address.
  20. 0x11 for LM3632
  21. 0x29 for LM3631
  22. 0x36 for LM3633, LM3697
  23. 0x38 for LM3532
  24. 0x63 for LM3695
  25. Optional property:
  26. - enable-gpios: A GPIO specifier for hardware enable pin.
  27. Required node:
  28. - backlight: All LMU devices have backlight child nodes.
  29. For the properties, please refer to [1].
  30. Optional nodes:
  31. - fault-monitor: Hardware fault monitoring driver for LM3633 and LM3697.
  32. Required properties:
  33. - compatible: Should be one of:
  34. "ti,lm3633-fault-monitor"
  35. "ti,lm3697-fault-monitor"
  36. - leds: LED properties for LM3633. Please refer to [2].
  37. - regulators: Regulator properties for LM3631 and LM3632.
  38. Please refer to [3].
  39. [1] ../leds/backlight/ti-lmu-backlight.txt
  40. [2] ../leds/leds-lm3633.txt
  41. [3] ../regulator/lm363x-regulator.txt
  42. lm3532@38 {
  43. compatible = "ti,lm3532";
  44. reg = <0x38>;
  45. enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
  46. backlight {
  47. compatible = "ti,lm3532-backlight";
  48. lcd {
  49. led-sources = <0 1 2>;
  50. ramp-up-msec = <30>;
  51. ramp-down-msec = <0>;
  52. };
  53. };
  54. };
  55. lm3631@29 {
  56. compatible = "ti,lm3631";
  57. reg = <0x29>;
  58. regulators {
  59. compatible = "ti,lm363x-regulator";
  60. vboost {
  61. regulator-name = "lcd_boost";
  62. regulator-min-microvolt = <4500000>;
  63. regulator-max-microvolt = <6350000>;
  64. regulator-always-on;
  65. };
  66. vcont {
  67. regulator-name = "lcd_vcont";
  68. regulator-min-microvolt = <1800000>;
  69. regulator-max-microvolt = <3300000>;
  70. };
  71. voref {
  72. regulator-name = "lcd_voref";
  73. regulator-min-microvolt = <4000000>;
  74. regulator-max-microvolt = <6000000>;
  75. };
  76. vpos {
  77. regulator-name = "lcd_vpos";
  78. regulator-min-microvolt = <4000000>;
  79. regulator-max-microvolt = <6000000>;
  80. regulator-boot-on;
  81. };
  82. vneg {
  83. regulator-name = "lcd_vneg";
  84. regulator-min-microvolt = <4000000>;
  85. regulator-max-microvolt = <6000000>;
  86. regulator-boot-on;
  87. };
  88. };
  89. backlight {
  90. compatible = "ti,lm3631-backlight";
  91. lcd_bl {
  92. led-sources = <0 1>;
  93. ramp-up-msec = <300>;
  94. };
  95. };
  96. };
  97. lm3632@11 {
  98. compatible = "ti,lm3632";
  99. reg = <0x11>;
  100. enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; /* PC2 */
  101. regulators {
  102. compatible = "ti,lm363x-regulator";
  103. ti,lcm-en1-gpio = <&pioC 0 GPIO_ACTIVE_HIGH>; /* PC0 */
  104. ti,lcm-en2-gpio = <&pioC 1 GPIO_ACTIVE_HIGH>; /* PC1 */
  105. vboost {
  106. regulator-name = "lcd_boost";
  107. regulator-min-microvolt = <4500000>;
  108. regulator-max-microvolt = <6400000>;
  109. regulator-always-on;
  110. };
  111. vpos {
  112. regulator-name = "lcd_vpos";
  113. regulator-min-microvolt = <4000000>;
  114. regulator-max-microvolt = <6000000>;
  115. };
  116. vneg {
  117. regulator-name = "lcd_vneg";
  118. regulator-min-microvolt = <4000000>;
  119. regulator-max-microvolt = <6000000>;
  120. };
  121. };
  122. backlight {
  123. compatible = "ti,lm3632-backlight";
  124. pwms = <&pwm0 0 10000 0>; /* pwm number, period, polarity */
  125. pwm-names = "lmu-backlight";
  126. lcd {
  127. led-sources = <0 1>;
  128. pwm-period = <10000>;
  129. };
  130. };
  131. };
  132. lm3633@36 {
  133. compatible = "ti,lm3633";
  134. reg = <0x36>;
  135. enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
  136. backlight {
  137. compatible = "ti,lm3633-backlight";
  138. main {
  139. label = "main_lcd";
  140. led-sources = <1 2>;
  141. ramp-up-msec = <500>;
  142. ramp-down-msec = <500>;
  143. };
  144. front {
  145. label = "front_lcd";
  146. led-sources = <0>;
  147. ramp-up-msec = <1000>;
  148. ramp-down-msec = <0>;
  149. };
  150. };
  151. leds {
  152. compatible = "ti,lm3633-leds";
  153. chan1 {
  154. label = "status";
  155. led-sources = <1>;
  156. led-max-microamp = <6000>;
  157. };
  158. chan345 {
  159. label = "rgb";
  160. led-sources = <3 4 5>;
  161. led-max-microamp = <10000>;
  162. };
  163. };
  164. fault-monitor {
  165. compatible = "ti,lm3633-fault-monitor";
  166. };
  167. };
  168. lm3695@63 {
  169. compatible = "ti,lm3695";
  170. reg = <0x63>;
  171. enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
  172. backlight {
  173. compatible = "ti,lm3695-backlight";
  174. lcd {
  175. label = "bl";
  176. led-sources = <0 1>;
  177. };
  178. };
  179. };
  180. lm3697@36 {
  181. compatible = "ti,lm3697";
  182. reg = <0x36>;
  183. enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
  184. backlight {
  185. compatible = "ti,lm3697-backlight";
  186. lcd {
  187. led-sources = <0 1 2>;
  188. ramp-up-msec = <200>;
  189. ramp-down-msec = <200>;
  190. };
  191. };
  192. fault-monitor {
  193. compatible = "ti,lm3697-fault-monitor";
  194. };
  195. };