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 | }; |
| 126 | }; |