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 | |
| 14 | &spmi_bus { |
| 15 | qcom,pm8941@1 { |
| 16 | qcom,leds@d000 { |
| 17 | status = "okay"; |
| 18 | qcom,rgb_0 { |
| 19 | label = "rgb"; |
| 20 | linux,name = "led:rgb_red"; |
| 21 | qcom,mode = <0>; |
| 22 | qcom,pwm-channel = <6>; |
| 23 | qcom,pwm-us = <1000>; |
| 24 | qcom,max-current = <12>; |
| 25 | qcom,default-state = "off"; |
| 26 | qcom,id = <3>; |
| 27 | linux,default-trigger = |
| 28 | "battery-charging"; |
| 29 | }; |
| 30 | |
| 31 | qcom,rgb_1 { |
| 32 | label = "rgb"; |
| 33 | linux,name = "led:rgb_green"; |
| 34 | qcom,mode = <0>; |
| 35 | qcom,pwm-channel = <5>; |
| 36 | qcom,pwm-us = <1000>; |
| 37 | qcom,max-current = <12>; |
| 38 | qcom,default-state = "off"; |
| 39 | qcom,id = <4>; |
| 40 | linux,default-trigger = "battery-full"; |
| 41 | }; |
Asaf Penso | 001cc3a | 2013-01-21 21:15:10 +0200 | [diff] [blame] | 42 | |
| 43 | qcom,rgb_2 { |
| 44 | label = "rgb"; |
| 45 | linux,name = "led:rgb_blue"; |
| 46 | qcom,mode = <0>; |
| 47 | qcom,pwm-channel = <4>; |
| 48 | qcom,pwm-us = <1000>; |
| 49 | qcom,max-current = <12>; |
| 50 | qcom,id = <5>; |
| 51 | status = "disabled"; |
| 52 | }; |
Amy Maloche | 24de28b | 2012-09-17 12:09:56 -0700 | [diff] [blame] | 53 | }; |
| 54 | |
| 55 | qcom,leds@d100 { |
| 56 | status = "disabled"; |
| 57 | }; |
| 58 | |
Amy Maloche | e8a4c1c | 2012-11-27 19:07:22 -0800 | [diff] [blame] | 59 | qcom,leds@d200 { |
Amy Maloche | 24de28b | 2012-09-17 12:09:56 -0700 | [diff] [blame] | 60 | status = "disabled"; |
| 61 | }; |
| 62 | |
| 63 | qcom,leds@d300 { |
| 64 | status = "okay"; |
Sreesudhan Ramakrish Ramkumar | d53503f | 2012-10-18 10:42:27 -0700 | [diff] [blame] | 65 | pm8941_flash0: qcom,flash_0 { |
Amy Maloche | 24de28b | 2012-09-17 12:09:56 -0700 | [diff] [blame] | 66 | qcom,max-current = <1000>; |
| 67 | qcom,default-state = "off"; |
| 68 | qcom,headroom = <0>; |
| 69 | qcom,duration = <1280>; |
| 70 | qcom,clamp-curr = <200>; |
| 71 | qcom,startup-dly = <1>; |
| 72 | qcom,safety-timer; |
| 73 | label = "flash"; |
| 74 | linux,default-trigger = |
| 75 | "flash0_trigger"; |
| 76 | qcom,id = <1>; |
| 77 | linux,name = "led:flash_0"; |
| 78 | qcom,current = <625>; |
| 79 | }; |
| 80 | |
Sreesudhan Ramakrish Ramkumar | d53503f | 2012-10-18 10:42:27 -0700 | [diff] [blame] | 81 | pm8941_flash1: qcom,flash_1 { |
Amy Maloche | 24de28b | 2012-09-17 12:09:56 -0700 | [diff] [blame] | 82 | qcom,max-current = <1000>; |
| 83 | qcom,default-state = "off"; |
| 84 | qcom,headroom = <0>; |
| 85 | qcom,duration = <1280>; |
| 86 | qcom,clamp-curr = <200>; |
| 87 | qcom,startup-dly = <1>; |
| 88 | qcom,safety-timer; |
| 89 | linux,default-trigger = |
| 90 | "flash1_trigger"; |
| 91 | label = "flash"; |
| 92 | qcom,id = <2>; |
| 93 | linux,name = "led:flash_1"; |
| 94 | qcom,current = <625>; |
| 95 | }; |
Chun Zhang | 9fba5a3 | 2013-05-02 11:15:40 -0700 | [diff] [blame] | 96 | |
| 97 | pm8941_torch: qcom,flash_torch { |
| 98 | qcom,max-current = <200>; |
| 99 | qcom,default-state = "off"; |
| 100 | qcom,headroom = <0>; |
| 101 | qcom,startup-dly = <1>; |
| 102 | linux,default-trigger = |
| 103 | "torch_trigger"; |
| 104 | label = "flash"; |
| 105 | qcom,id = <2>; |
| 106 | linux,name = "led:flash_torch"; |
| 107 | qcom,current = <200>; |
| 108 | qcom,torch-enable; |
| 109 | }; |
Amy Maloche | 24de28b | 2012-09-17 12:09:56 -0700 | [diff] [blame] | 110 | }; |
| 111 | |
| 112 | qcom,leds@d400 { |
| 113 | status = "disabled"; |
| 114 | }; |
| 115 | |
| 116 | qcom,leds@d500 { |
| 117 | status = "disabled"; |
| 118 | }; |
| 119 | |
| 120 | qcom,leds@d600 { |
| 121 | status = "disabled"; |
| 122 | }; |
| 123 | |
| 124 | qcom,leds@d700 { |
| 125 | status = "disabled"; |
| 126 | }; |
| 127 | }; |
| 128 | }; |
| 129 | |