msm8974-leds.dtsi 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. /*
  2. * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. &pm8941_lsid1 {
  14. qcom,leds@d000 {
  15. status = "okay";
  16. qcom,rgb_0 {
  17. label = "rgb";
  18. linux,name = "led:rgb_red";
  19. qcom,mode = "pwm";
  20. qcom,pwm-channel = <6>;
  21. qcom,pwm-us = <1000>;
  22. qcom,max-current = <12>;
  23. qcom,default-state = "off";
  24. qcom,id = <3>;
  25. linux,default-trigger =
  26. "battery-charging";
  27. };
  28. qcom,rgb_1 {
  29. label = "rgb";
  30. linux,name = "led:rgb_green";
  31. qcom,mode = "pwm";
  32. qcom,pwm-channel = <5>;
  33. qcom,pwm-us = <1000>;
  34. qcom,max-current = <12>;
  35. qcom,default-state = "off";
  36. qcom,id = <4>;
  37. linux,default-trigger = "battery-full";
  38. };
  39. qcom,rgb_2 {
  40. label = "rgb";
  41. linux,name = "led:rgb_blue";
  42. qcom,mode = "pwm";
  43. qcom,pwm-channel = <4>;
  44. qcom,pwm-us = <1000>;
  45. qcom,max-current = <12>;
  46. qcom,id = <5>;
  47. status = "disabled";
  48. };
  49. };
  50. qcom,leds@d100 {
  51. status = "disabled";
  52. };
  53. qcom,leds@d200 {
  54. status = "disabled";
  55. };
  56. qcom,leds@d300 {
  57. status = "okay";
  58. pm8941_flash0: qcom,flash_0 {
  59. qcom,max-current = <1000>;
  60. qcom,default-state = "off";
  61. qcom,headroom = <3>;
  62. qcom,duration = <1280>;
  63. qcom,clamp-curr = <200>;
  64. qcom,startup-dly = <3>;
  65. qcom,safety-timer;
  66. label = "flash";
  67. linux,default-trigger =
  68. "flash0_trigger";
  69. qcom,id = <1>;
  70. linux,name = "led:flash_0";
  71. qcom,current = <625>;
  72. };
  73. pm8941_flash1: qcom,flash_1 {
  74. qcom,max-current = <1000>;
  75. qcom,default-state = "off";
  76. qcom,headroom = <3>;
  77. qcom,duration = <1280>;
  78. qcom,clamp-curr = <200>;
  79. qcom,startup-dly = <3>;
  80. qcom,safety-timer;
  81. linux,default-trigger =
  82. "flash1_trigger";
  83. label = "flash";
  84. qcom,id = <2>;
  85. linux,name = "led:flash_1";
  86. qcom,current = <625>;
  87. };
  88. pm8941_torch: qcom,flash_torch {
  89. qcom,max-current = <200>;
  90. qcom,default-state = "off";
  91. qcom,headroom = <0>;
  92. qcom,startup-dly = <1>;
  93. linux,default-trigger =
  94. "torch_trigger";
  95. label = "flash";
  96. qcom,id = <2>;
  97. linux,name = "led:flash_torch";
  98. qcom,current = <200>;
  99. qcom,torch-enable;
  100. };
  101. };
  102. qcom,leds@d400 {
  103. status = "disabled";
  104. };
  105. qcom,leds@d500 {
  106. status = "disabled";
  107. };
  108. qcom,leds@d600 {
  109. status = "disabled";
  110. };
  111. qcom,leds@d700 {
  112. status = "disabled";
  113. };
  114. qcom,leds@e200 {
  115. status = "okay";
  116. qcom,kpdbl1 {
  117. label = "kpdbl";
  118. linux,name = "kpdbl-pwm-1";
  119. qcom,mode = "pwm";
  120. qcom,pwm-channel = <8>;
  121. qcom,pwm-us = <1000>;
  122. qcom,id = <7>;
  123. qcom,max-current = <20>;
  124. qcom,row-id = <0>;
  125. qcom,row-src-en;
  126. qcom,always-on;
  127. qcom,start-idx = <1>;
  128. qcom,ramp-step-ms = <120>;
  129. qcom,duty-pcts = [00 00 00 00 64
  130. 64 00 00 00 00];
  131. qcom,use-blink;
  132. qcom,in-order-command-processing;
  133. };
  134. qcom,kpdbl2 {
  135. label = "kpdbl";
  136. linux,name = "kpdbl-pwm-2";
  137. qcom,mode = "pwm";
  138. qcom,pwm-channel = <9>;
  139. qcom,pwm-us = <1000>;
  140. qcom,id = <7>;
  141. qcom,max-current = <20>;
  142. qcom,row-id = <1>;
  143. qcom,row-src-en;
  144. qcom,start-idx = <1>;
  145. qcom,ramp-step-ms = <120>;
  146. qcom,duty-pcts = [00 00 00 00 64
  147. 64 00 00 00 00];
  148. qcom,use-blink;
  149. qcom,in-order-command-processing;
  150. };
  151. qcom,kpdbl3 {
  152. label = "kpdbl";
  153. linux,name = "kpdbl-pwm-3";
  154. qcom,mode = "pwm";
  155. qcom,pwm-channel = <10>;
  156. qcom,pwm-us = <1000>;
  157. qcom,id = <7>;
  158. qcom,max-current = <20>;
  159. qcom,row-id = <2>;
  160. qcom,row-src-en;
  161. qcom,start-idx = <1>;
  162. qcom,ramp-step-ms = <120>;
  163. qcom,duty-pcts = [00 00 00 00 64
  164. 64 00 00 00 00];
  165. qcom,use-blink;
  166. qcom,in-order-command-processing;
  167. };
  168. qcom,kpdbl4 {
  169. label = "kpdbl";
  170. linux,name = "kpdbl-pwm-4";
  171. qcom,mode = "pwm";
  172. qcom,pwm-channel = <11>;
  173. qcom,pwm-us = <1000>;
  174. qcom,id = <7>;
  175. qcom,max-current = <20>;
  176. qcom,row-id = <3>;
  177. qcom,row-src-en;
  178. qcom,start-idx = <1>;
  179. qcom,ramp-step-ms = <120>;
  180. qcom,duty-pcts = [00 00 00 00 64
  181. 64 00 00 00 00];
  182. qcom,use-blink;
  183. qcom,in-order-command-processing;
  184. };
  185. };
  186. };