ti-lmu.txt 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. TI LMU (Lighting Management Unit) device tree bindings
  2. TI LMU driver supports lighting devices below.
  3. Name Child nodes
  4. ------ ---------------------------------
  5. LM3631 Backlight and regulator
  6. LM3632 Backlight and regulator
  7. LM3633 Backlight, LED and fault monitor
  8. LM3695 Backlight
  9. LM36274 Backlight and regulator
  10. Required properties:
  11. - compatible: Should be one of:
  12. "ti,lm3631"
  13. "ti,lm3632"
  14. "ti,lm3633"
  15. "ti,lm3695"
  16. "ti,lm36274"
  17. - reg: I2C slave address.
  18. 0x11 for LM3632
  19. 0x29 for LM3631
  20. 0x36 for LM3633
  21. 0x63 for LM3695
  22. 0x11 for LM36274
  23. Optional properties:
  24. - enable-gpios: A GPIO specifier for hardware enable pin.
  25. - ramp-up-us: Current ramping from one brightness level to
  26. the a higher brightness level.
  27. Range from 2048 us - 117.44 s
  28. - ramp-down-us: Current ramping from one brightness level to
  29. the a lower brightness level.
  30. Range from 2048 us - 117.44 s
  31. - ti,brightness-resolution - This determines whether to use 8 bit brightness
  32. mode or 11 bit brightness mode. If this value is
  33. not set the device is defaulted to the preferred
  34. 8bit brightness mode per 7.3.4.1 of the data
  35. sheet. This setting can either be in the parent
  36. node or as part of the LED child nodes. This
  37. is determined by the part itself if the strings
  38. have a common brightness register or individual
  39. brightness registers.
  40. The values are 255 (8bit) or 2047 (11bit).
  41. Required node:
  42. - backlight: All LMU devices have backlight child nodes.
  43. For the properties, please refer to [1].
  44. Optional nodes:
  45. - fault-monitor: Hardware fault monitoring driver for LM3633 and LM3697.
  46. Required properties:
  47. - compatible: Should be one of:
  48. "ti,lm3633-fault-monitor"
  49. - leds: LED properties for LM3633. Please refer to [2].
  50. LED properties for LM36274. Please refer to [4].
  51. - regulators: Regulator properties for LM3631 and LM3632.
  52. Please refer to [3].
  53. [1] ../leds/backlight/ti-lmu-backlight.txt
  54. [2] ../leds/leds-lm3633.txt
  55. [3] ../regulator/lm363x-regulator.txt
  56. [4] ../leds/leds-lm36274.txt
  57. lm3631@29 {
  58. compatible = "ti,lm3631";
  59. reg = <0x29>;
  60. regulators {
  61. compatible = "ti,lm363x-regulator";
  62. vboost {
  63. regulator-name = "lcd_boost";
  64. regulator-min-microvolt = <4500000>;
  65. regulator-max-microvolt = <6350000>;
  66. regulator-always-on;
  67. };
  68. vcont {
  69. regulator-name = "lcd_vcont";
  70. regulator-min-microvolt = <1800000>;
  71. regulator-max-microvolt = <3300000>;
  72. };
  73. voref {
  74. regulator-name = "lcd_voref";
  75. regulator-min-microvolt = <4000000>;
  76. regulator-max-microvolt = <6000000>;
  77. };
  78. vpos {
  79. regulator-name = "lcd_vpos";
  80. regulator-min-microvolt = <4000000>;
  81. regulator-max-microvolt = <6000000>;
  82. regulator-boot-on;
  83. };
  84. vneg {
  85. regulator-name = "lcd_vneg";
  86. regulator-min-microvolt = <4000000>;
  87. regulator-max-microvolt = <6000000>;
  88. regulator-boot-on;
  89. };
  90. };
  91. backlight {
  92. compatible = "ti,lm3631-backlight";
  93. lcd_bl {
  94. led-sources = <0 1>;
  95. ramp-up-us = <300000>;
  96. };
  97. };
  98. };
  99. lm3632@11 {
  100. compatible = "ti,lm3632";
  101. reg = <0x11>;
  102. enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; /* PC2 */
  103. regulators {
  104. compatible = "ti,lm363x-regulator";
  105. enable-gpios = <&pioC 0 GPIO_ACTIVE_HIGH>,
  106. <&pioC 1 GPIO_ACTIVE_HIGH>;
  107. vboost {
  108. regulator-name = "lcd_boost";
  109. regulator-min-microvolt = <4500000>;
  110. regulator-max-microvolt = <6400000>;
  111. regulator-always-on;
  112. };
  113. vpos {
  114. regulator-name = "lcd_vpos";
  115. regulator-min-microvolt = <4000000>;
  116. regulator-max-microvolt = <6000000>;
  117. };
  118. vneg {
  119. regulator-name = "lcd_vneg";
  120. regulator-min-microvolt = <4000000>;
  121. regulator-max-microvolt = <6000000>;
  122. };
  123. };
  124. backlight {
  125. compatible = "ti,lm3632-backlight";
  126. pwms = <&pwm0 0 10000 0>; /* pwm number, period, polarity */
  127. pwm-names = "lmu-backlight";
  128. lcd {
  129. led-sources = <0 1>;
  130. pwm-period = <10000>;
  131. };
  132. };
  133. };
  134. lm3633@36 {
  135. compatible = "ti,lm3633";
  136. reg = <0x36>;
  137. enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
  138. backlight {
  139. compatible = "ti,lm3633-backlight";
  140. main {
  141. label = "main_lcd";
  142. led-sources = <1 2>;
  143. ramp-up-us = <500000>;
  144. ramp-down-us = <500000>;
  145. };
  146. front {
  147. label = "front_lcd";
  148. led-sources = <0>;
  149. ramp-up-us = <1000000>;
  150. ramp-down-us = <0>;
  151. };
  152. };
  153. leds {
  154. compatible = "ti,lm3633-leds";
  155. chan1 {
  156. label = "status";
  157. led-sources = <1>;
  158. led-max-microamp = <6000>;
  159. };
  160. chan345 {
  161. label = "rgb";
  162. led-sources = <3 4 5>;
  163. led-max-microamp = <10000>;
  164. };
  165. };
  166. fault-monitor {
  167. compatible = "ti,lm3633-fault-monitor";
  168. };
  169. };
  170. lm3695@63 {
  171. compatible = "ti,lm3695";
  172. reg = <0x63>;
  173. enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
  174. backlight {
  175. compatible = "ti,lm3695-backlight";
  176. lcd {
  177. label = "bl";
  178. led-sources = <0 1>;
  179. };
  180. };
  181. };
  182. lm36274@11 {
  183. compatible = "ti,lm36274";
  184. #address-cells = <1>;
  185. #size-cells = <0>;
  186. reg = <0x11>;
  187. enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
  188. regulators {
  189. #address-cells = <1>;
  190. #size-cells = <0>;
  191. compatible = "ti,lm363x-regulator";
  192. enable-gpios = <&pioC 0 GPIO_ACTIVE_HIGH>,
  193. <&pioC 1 GPIO_ACTIVE_HIGH>;
  194. vboost {
  195. regulator-name = "lcd_boost";
  196. regulator-min-microvolt = <4000000>;
  197. regulator-max-microvolt = <7150000>;
  198. regulator-always-on;
  199. };
  200. vpos {
  201. regulator-name = "lcd_vpos";
  202. regulator-min-microvolt = <4000000>;
  203. regulator-max-microvolt = <6500000>;
  204. };
  205. vneg {
  206. regulator-name = "lcd_vneg";
  207. regulator-min-microvolt = <4000000>;
  208. regulator-max-microvolt = <6500000>;
  209. };
  210. };
  211. backlight {
  212. #address-cells = <1>;
  213. #size-cells = <0>;
  214. compatible = "ti,lm36274-backlight";
  215. led@0 {
  216. reg = <0>;
  217. led-sources = <0 2>;
  218. label = "white:backlight_cluster";
  219. linux,default-trigger = "backlight";
  220. };
  221. };
  222. };