blob: 8ba3470a5d9ecf80a300c7e2bf7ddf38d89e2370 [file] [log] [blame]
Amy Maloche24de28b2012-09-17 12:09:56 -07001/*
2 * Copyright (c) 2012, 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
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 };
42 };
43
44 qcom,leds@d100 {
45 status = "disabled";
46 };
47
Amy Malochee8a4c1c2012-11-27 19:07:22 -080048 qcom,leds@d200 {
Amy Maloche24de28b2012-09-17 12:09:56 -070049 status = "disabled";
50 };
51
52 qcom,leds@d300 {
53 status = "okay";
Sreesudhan Ramakrish Ramkumard53503f2012-10-18 10:42:27 -070054 pm8941_flash0: qcom,flash_0 {
Amy Maloche24de28b2012-09-17 12:09:56 -070055 qcom,max-current = <1000>;
56 qcom,default-state = "off";
57 qcom,headroom = <0>;
58 qcom,duration = <1280>;
59 qcom,clamp-curr = <200>;
60 qcom,startup-dly = <1>;
61 qcom,safety-timer;
62 label = "flash";
63 linux,default-trigger =
64 "flash0_trigger";
65 qcom,id = <1>;
66 linux,name = "led:flash_0";
67 qcom,current = <625>;
68 };
69
Sreesudhan Ramakrish Ramkumard53503f2012-10-18 10:42:27 -070070 pm8941_flash1: qcom,flash_1 {
Amy Maloche24de28b2012-09-17 12:09:56 -070071 qcom,max-current = <1000>;
72 qcom,default-state = "off";
73 qcom,headroom = <0>;
74 qcom,duration = <1280>;
75 qcom,clamp-curr = <200>;
76 qcom,startup-dly = <1>;
77 qcom,safety-timer;
78 linux,default-trigger =
79 "flash1_trigger";
80 label = "flash";
81 qcom,id = <2>;
82 linux,name = "led:flash_1";
83 qcom,current = <625>;
84 };
85 };
86
87 qcom,leds@d400 {
88 status = "disabled";
89 };
90
91 qcom,leds@d500 {
92 status = "disabled";
93 };
94
95 qcom,leds@d600 {
96 status = "disabled";
97 };
98
99 qcom,leds@d700 {
100 status = "disabled";
101 };
102 };
103};
104