123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- /*
- * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
- &pm8941_lsid1 {
- qcom,leds@d000 {
- status = "okay";
- qcom,rgb_0 {
- label = "rgb";
- linux,name = "led:rgb_red";
- qcom,mode = "pwm";
- qcom,pwm-channel = <6>;
- qcom,pwm-us = <1000>;
- qcom,max-current = <12>;
- qcom,default-state = "off";
- qcom,id = <3>;
- linux,default-trigger =
- "battery-charging";
- };
- qcom,rgb_1 {
- label = "rgb";
- linux,name = "led:rgb_green";
- qcom,mode = "pwm";
- qcom,pwm-channel = <5>;
- qcom,pwm-us = <1000>;
- qcom,max-current = <12>;
- qcom,default-state = "off";
- qcom,id = <4>;
- linux,default-trigger = "battery-full";
- };
- qcom,rgb_2 {
- label = "rgb";
- linux,name = "led:rgb_blue";
- qcom,mode = "pwm";
- qcom,pwm-channel = <4>;
- qcom,pwm-us = <1000>;
- qcom,max-current = <12>;
- qcom,id = <5>;
- status = "disabled";
- };
- };
- qcom,leds@d100 {
- status = "disabled";
- };
- qcom,leds@d200 {
- status = "disabled";
- };
- qcom,leds@d300 {
- status = "okay";
- pm8941_flash0: qcom,flash_0 {
- qcom,max-current = <1000>;
- qcom,default-state = "off";
- qcom,headroom = <3>;
- qcom,duration = <1280>;
- qcom,clamp-curr = <200>;
- qcom,startup-dly = <3>;
- qcom,safety-timer;
- label = "flash";
- linux,default-trigger =
- "flash0_trigger";
- qcom,id = <1>;
- linux,name = "led:flash_0";
- qcom,current = <625>;
- };
- pm8941_flash1: qcom,flash_1 {
- qcom,max-current = <1000>;
- qcom,default-state = "off";
- qcom,headroom = <3>;
- qcom,duration = <1280>;
- qcom,clamp-curr = <200>;
- qcom,startup-dly = <3>;
- qcom,safety-timer;
- linux,default-trigger =
- "flash1_trigger";
- label = "flash";
- qcom,id = <2>;
- linux,name = "led:flash_1";
- qcom,current = <625>;
- };
- pm8941_torch: qcom,flash_torch {
- qcom,max-current = <200>;
- qcom,default-state = "off";
- qcom,headroom = <0>;
- qcom,startup-dly = <1>;
- linux,default-trigger =
- "torch_trigger";
- label = "flash";
- qcom,id = <2>;
- linux,name = "led:flash_torch";
- qcom,current = <200>;
- qcom,torch-enable;
- };
- };
- qcom,leds@d400 {
- status = "disabled";
- };
- qcom,leds@d500 {
- status = "disabled";
- };
- qcom,leds@d600 {
- status = "disabled";
- };
- qcom,leds@d700 {
- status = "disabled";
- };
- qcom,leds@e200 {
- status = "okay";
- qcom,kpdbl1 {
- label = "kpdbl";
- linux,name = "kpdbl-pwm-1";
- qcom,mode = "pwm";
- qcom,pwm-channel = <8>;
- qcom,pwm-us = <1000>;
- qcom,id = <7>;
- qcom,max-current = <20>;
- qcom,row-id = <0>;
- qcom,row-src-en;
- qcom,always-on;
- qcom,start-idx = <1>;
- qcom,ramp-step-ms = <120>;
- qcom,duty-pcts = [00 00 00 00 64
- 64 00 00 00 00];
- qcom,use-blink;
- qcom,in-order-command-processing;
- };
- qcom,kpdbl2 {
- label = "kpdbl";
- linux,name = "kpdbl-pwm-2";
- qcom,mode = "pwm";
- qcom,pwm-channel = <9>;
- qcom,pwm-us = <1000>;
- qcom,id = <7>;
- qcom,max-current = <20>;
- qcom,row-id = <1>;
- qcom,row-src-en;
- qcom,start-idx = <1>;
- qcom,ramp-step-ms = <120>;
- qcom,duty-pcts = [00 00 00 00 64
- 64 00 00 00 00];
- qcom,use-blink;
- qcom,in-order-command-processing;
- };
- qcom,kpdbl3 {
- label = "kpdbl";
- linux,name = "kpdbl-pwm-3";
- qcom,mode = "pwm";
- qcom,pwm-channel = <10>;
- qcom,pwm-us = <1000>;
- qcom,id = <7>;
- qcom,max-current = <20>;
- qcom,row-id = <2>;
- qcom,row-src-en;
- qcom,start-idx = <1>;
- qcom,ramp-step-ms = <120>;
- qcom,duty-pcts = [00 00 00 00 64
- 64 00 00 00 00];
- qcom,use-blink;
- qcom,in-order-command-processing;
- };
- qcom,kpdbl4 {
- label = "kpdbl";
- linux,name = "kpdbl-pwm-4";
- qcom,mode = "pwm";
- qcom,pwm-channel = <11>;
- qcom,pwm-us = <1000>;
- qcom,id = <7>;
- qcom,max-current = <20>;
- qcom,row-id = <3>;
- qcom,row-src-en;
- qcom,start-idx = <1>;
- qcom,ramp-step-ms = <120>;
- qcom,duty-pcts = [00 00 00 00 64
- 64 00 00 00 00];
- qcom,use-blink;
- qcom,in-order-command-processing;
- };
- };
- };
|