Amy Maloche | 24de28b | 2012-09-17 12:09:56 -0700 | [diff] [blame] | 1 | /* |
Asaf Penso | 001cc3a | 2013-01-21 21:15:10 +0200 | [diff] [blame] | 2 | * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. |
Amy Maloche | 24de28b | 2012-09-17 12:09:56 -0700 | [diff] [blame] | 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 | |
David Collins | 73cdb63 | 2013-06-17 17:24:45 -0700 | [diff] [blame] | 14 | &pm8941_lsid1 { |
| 15 | qcom,leds@d000 { |
| 16 | status = "okay"; |
| 17 | qcom,rgb_0 { |
| 18 | label = "rgb"; |
| 19 | linux,name = "led:rgb_red"; |
| 20 | qcom,mode = "pwm"; |
| 21 | qcom,pwm-channel = <6>; |
| 22 | qcom,pwm-us = <1000>; |
| 23 | qcom,max-current = <12>; |
| 24 | qcom,default-state = "off"; |
| 25 | qcom,id = <3>; |
| 26 | linux,default-trigger = |
| 27 | "battery-charging"; |
Amy Maloche | 24de28b | 2012-09-17 12:09:56 -0700 | [diff] [blame] | 28 | }; |
| 29 | |
David Collins | 73cdb63 | 2013-06-17 17:24:45 -0700 | [diff] [blame] | 30 | qcom,rgb_1 { |
| 31 | label = "rgb"; |
| 32 | linux,name = "led:rgb_green"; |
| 33 | qcom,mode = "pwm"; |
| 34 | qcom,pwm-channel = <5>; |
| 35 | qcom,pwm-us = <1000>; |
| 36 | qcom,max-current = <12>; |
| 37 | qcom,default-state = "off"; |
| 38 | qcom,id = <4>; |
| 39 | linux,default-trigger = "battery-full"; |
Amy Maloche | 24de28b | 2012-09-17 12:09:56 -0700 | [diff] [blame] | 40 | }; |
| 41 | |
David Collins | 73cdb63 | 2013-06-17 17:24:45 -0700 | [diff] [blame] | 42 | qcom,rgb_2 { |
| 43 | label = "rgb"; |
| 44 | linux,name = "led:rgb_blue"; |
| 45 | qcom,mode = "pwm"; |
| 46 | qcom,pwm-channel = <4>; |
| 47 | qcom,pwm-us = <1000>; |
| 48 | qcom,max-current = <12>; |
| 49 | qcom,id = <5>; |
Amy Maloche | 24de28b | 2012-09-17 12:09:56 -0700 | [diff] [blame] | 50 | status = "disabled"; |
| 51 | }; |
| 52 | }; |
Amy Maloche | 24de28b | 2012-09-17 12:09:56 -0700 | [diff] [blame] | 53 | |
David Collins | 73cdb63 | 2013-06-17 17:24:45 -0700 | [diff] [blame] | 54 | qcom,leds@d100 { |
| 55 | status = "disabled"; |
| 56 | }; |
| 57 | |
| 58 | qcom,leds@d200 { |
| 59 | status = "disabled"; |
| 60 | }; |
| 61 | |
| 62 | qcom,leds@d300 { |
| 63 | status = "okay"; |
| 64 | pm8941_flash0: qcom,flash_0 { |
| 65 | qcom,max-current = <1000>; |
| 66 | qcom,default-state = "off"; |
| 67 | qcom,headroom = <3>; |
| 68 | qcom,duration = <1280>; |
| 69 | qcom,clamp-curr = <200>; |
| 70 | qcom,startup-dly = <3>; |
| 71 | qcom,safety-timer; |
| 72 | label = "flash"; |
| 73 | linux,default-trigger = |
| 74 | "flash0_trigger"; |
| 75 | qcom,id = <1>; |
| 76 | linux,name = "led:flash_0"; |
| 77 | qcom,current = <625>; |
| 78 | }; |
| 79 | |
| 80 | pm8941_flash1: qcom,flash_1 { |
| 81 | qcom,max-current = <1000>; |
| 82 | qcom,default-state = "off"; |
| 83 | qcom,headroom = <3>; |
| 84 | qcom,duration = <1280>; |
| 85 | qcom,clamp-curr = <200>; |
| 86 | qcom,startup-dly = <3>; |
| 87 | qcom,safety-timer; |
| 88 | linux,default-trigger = |
| 89 | "flash1_trigger"; |
| 90 | label = "flash"; |
| 91 | qcom,id = <2>; |
| 92 | linux,name = "led:flash_1"; |
| 93 | qcom,current = <625>; |
| 94 | }; |
| 95 | |
| 96 | pm8941_torch: qcom,flash_torch { |
| 97 | qcom,max-current = <200>; |
| 98 | qcom,default-state = "off"; |
| 99 | qcom,headroom = <0>; |
| 100 | qcom,startup-dly = <1>; |
| 101 | linux,default-trigger = |
| 102 | "torch_trigger"; |
| 103 | label = "flash"; |
| 104 | qcom,id = <2>; |
| 105 | linux,name = "led:flash_torch"; |
| 106 | qcom,current = <200>; |
| 107 | qcom,torch-enable; |
| 108 | }; |
| 109 | }; |
| 110 | |
| 111 | qcom,leds@d400 { |
| 112 | status = "disabled"; |
| 113 | }; |
| 114 | |
| 115 | qcom,leds@d500 { |
| 116 | status = "disabled"; |
| 117 | }; |
| 118 | |
| 119 | qcom,leds@d600 { |
| 120 | status = "disabled"; |
| 121 | }; |
| 122 | |
| 123 | qcom,leds@d700 { |
| 124 | status = "disabled"; |
| 125 | }; |
Mohan Pallaka | 6e8ba21 | 2013-04-25 11:43:45 +0530 | [diff] [blame] | 126 | |
| 127 | qcom,leds@e200 { |
| 128 | status = "okay"; |
| 129 | |
| 130 | qcom,kpdbl1 { |
| 131 | label = "kpdbl"; |
| 132 | linux,name = "kpdbl-pwm-1"; |
| 133 | qcom,mode = "pwm"; |
| 134 | qcom,pwm-channel = <8>; |
| 135 | qcom,pwm-us = <1000>; |
| 136 | qcom,id = <7>; |
| 137 | qcom,max-current = <20>; |
| 138 | qcom,row-id = <0>; |
| 139 | qcom,row-src-en; |
| 140 | qcom,always-on; |
| 141 | }; |
| 142 | |
| 143 | qcom,kpdbl2 { |
| 144 | label = "kpdbl"; |
| 145 | linux,name = "kpdbl-lut-2"; |
| 146 | qcom,mode = "lpg"; |
| 147 | qcom,pwm-channel = <9>; |
| 148 | qcom,pwm-us = <1000>; |
| 149 | qcom,start-idx = <1>; |
| 150 | qcom,duty-pcts = [00 00 00 00 64 |
| 151 | 64 00 00 00 00]; |
| 152 | qcom,id = <7>; |
| 153 | qcom,max-current = <20>; |
| 154 | qcom,row-id = <1>; |
| 155 | qcom,row-src-en; |
| 156 | }; |
| 157 | |
| 158 | qcom,kpdbl3 { |
| 159 | label = "kpdbl"; |
| 160 | linux,name = "kpdbl-pwm-3"; |
| 161 | qcom,mode = "pwm"; |
| 162 | qcom,pwm-channel = <10>; |
| 163 | qcom,pwm-us = <1000>; |
| 164 | qcom,id = <7>; |
| 165 | qcom,max-current = <20>; |
| 166 | qcom,row-id = <2>; |
| 167 | qcom,row-src-en; |
| 168 | }; |
| 169 | |
| 170 | qcom,kpdbl4 { |
| 171 | label = "kpdbl"; |
| 172 | linux,name = "kpdbl-pwm-4"; |
| 173 | qcom,mode = "pwm"; |
| 174 | qcom,pwm-channel = <11>; |
| 175 | qcom,pwm-us = <1000>; |
| 176 | qcom,id = <7>; |
| 177 | qcom,max-current = <20>; |
| 178 | qcom,row-id = <3>; |
| 179 | qcom,row-src-en; |
| 180 | }; |
| 181 | }; |
David Collins | 73cdb63 | 2013-06-17 17:24:45 -0700 | [diff] [blame] | 182 | }; |