Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57064792 authored by Devesh Jhunjhunwala's avatar Devesh Jhunjhunwala Committed by Kyle Yan
Browse files

ARM: dts: msm: Add torch nodes to flash-led for pmicobalt



Add support for torch mode by adding torch nodes to the
flash-led device for pmicobalt. Also update the dt-bindings
documentation accordingly.

CRs-Fixed: 1024187
Change-Id: I640106abcf05949f2570efd42f925f1f73bdaa81
Signed-off-by: default avatarDevesh Jhunjhunwala <deveshj@codeaurora.org>
parent bb4f495a
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -29,8 +29,8 @@ serve as an overall switch.
			  not required for switch node.
- qcom,max-current	: Maximum current allowed on this LED. Valid values should be
			  integer from 0 to 1500 inclusive. Flash 2 should have maximum current of
			  750 per hardware requirement. Unit is mA. This is not required for switch
			  node.
			  750 per hardware requirement. Unit is mA. For torch, the maximum current
			  is clamped at 500 mA. This is not required for the switch node.
- qcom,duration-ms	: Required property for flash nodes but not needed for torch. Integer
			  type specifying flash duration. Values are from 10ms to 1280ms with
			  10ms resolution. This is not required for switch node.
@@ -107,7 +107,7 @@ Example:
		pmi8998_torch0: qcom,torch_0 {
			label = "torch";
			qcom,led-name = "led:torch_0";
			qcom,max-current = <200>;
			qcom,max-current = <500>;
			qcom,default-led-trigger =
						"torch0_trigger";
			qcom,id = <0>;
@@ -119,7 +119,7 @@ Example:
		pmi8998_torch1: qcom,torch_1 {
			label = "torch";
			qcom,led-name = "led:torch_1";
			qcom,max-current = <200>;
			qcom,max-current = <500>;
			qcom,default-led-trigger =
						"torch1_trigger";
			qcom,id = <1>;
@@ -131,7 +131,7 @@ Example:
		pmi8998_torch2: qcom,torch_2 {
			label = "torch";
			qcom,led-name = "led:torch_2";
			qcom,max-current = <200>;
			qcom,max-current = <500>;
			qcom,default-led-trigger =
						"torch2_trigger";
			qcom,id = <2>;
+39 −6
Original line number Diff line number Diff line
@@ -565,8 +565,7 @@
				label = "flash";
				qcom,led-name = "led:flash_0";
				qcom,max-current = <1500>;
				qcom,default-led-trigger =
							"flash0_trigger";
				qcom,default-led-trigger = "flash0_trigger";
				qcom,id = <0>;
				qcom,duration-ms = <1280>;
				qcom,ires-ua = <12500>;
@@ -578,8 +577,7 @@
				label = "flash";
				qcom,led-name = "led:flash_1";
				qcom,max-current = <1500>;
				qcom,default-led-trigger =
							"flash1_trigger";
				qcom,default-led-trigger = "flash1_trigger";
				qcom,id = <1>;
				qcom,duration-ms = <1280>;
				qcom,ires-ua = <12500>;
@@ -591,8 +589,7 @@
				label = "flash";
				qcom,led-name = "led:flash_2";
				qcom,max-current = <750>;
				qcom,default-led-trigger =
							"flash2_trigger";
				qcom,default-led-trigger = "flash2_trigger";
				qcom,id = <2>;
				qcom,duration-ms = <1280>;
				qcom,ires-ua = <12500>;
@@ -603,6 +600,42 @@
				pinctrl-1 = <&led_disable>;
			};

			pmicobalt_torch0: qcom,torch_0 {
				label = "torch";
				qcom,led-name = "led:torch_0";
				qcom,max-current = <500>;
				qcom,default-led-trigger = "torch0_trigger";
				qcom,id = <0>;
				qcom,ires-ua = <12500>;
				qcom,hdrm-voltage-mv = <325>;
				qcom,hdrm-vol-hi-lo-win-mv = <100>;
			};

			pmicobalt_torch1: qcom,torch_1 {
				label = "torch";
				qcom,led-name = "led:torch_1";
				qcom,max-current = <500>;
				qcom,default-led-trigger = "torch1_trigger";
				qcom,id = <1>;
				qcom,ires-ua = <12500>;
				qcom,hdrm-voltage-mv = <325>;
				qcom,hdrm-vol-hi-lo-win-mv = <100>;
			};

			pmicobalt_torch2: qcom,torch_2 {
				label = "torch";
				qcom,led-name = "led:torch_2";
				qcom,max-current = <500>;
				qcom,default-led-trigger = "torch2_trigger";
				qcom,id = <2>;
				qcom,ires-ua = <12500>;
				qcom,hdrm-voltage-mv = <325>;
				qcom,hdrm-vol-hi-lo-win-mv = <100>;
				pinctrl-names = "led_enable","led_disable";
				pinctrl-0 = <&led_enable>;
				pinctrl-1 = <&led_disable>;
			};

			pmicobalt_switch: qcom,led_switch {
				label = "switch";
				qcom,led-name = "led:switch";