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

Commit dd4c8347 authored by Darshan Kumsi Srinivasa's avatar Darshan Kumsi Srinivasa
Browse files

ARM: dts: msm: Enable camera flash for QM215



Add gpio based flash device node to enable flash
and torch on qm215.

Change-Id: I9585810e50b9db840c7180cbbe4ce497bcd66352
Signed-off-by: default avatarDarshan Kumsi Srinivasa <darssr@codeaurora.org>
parent d60b5f4f
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -124,3 +124,21 @@ led_flash_rear: qcom,camera-flash@0 {
		qcom,max-current = <1500>;
		qcom,max-duration = <1200>;
	};


Example:

flash0: qcom,camera-flash {
		cell-index = <0>;
		compatible = "qcom,qm215-gpio-flash";
		qcom,flash-type = <2>;
		gpios = <&tlmm 34 0>;
			<&tlmm 33 0>;
		qcom,gpio-req-tbl-num = <0 1>;
		qcom,gpio-req-tbl-flags = <1 0>;
		qcom,gpio-flash-en = <0>;
		qcom,gpio-flash-now = <1>;
		qcom,gpio-req-tbl-label = "CAM_FLASH",
			"CAM_TORCH";
		status = "ok";
	};
+16 −0
Original line number Diff line number Diff line
@@ -100,6 +100,21 @@
		qcom,clock-rates = <19200000 0>;
	};

	flash0: qcom,camera-flash {
		cell-index = <0>;
		compatible = "qcom,qm215-gpio-flash";
		qcom,flash-type = <2>;
		gpios = <&tlmm 34 0>,
			<&tlmm 33 0>;
		qcom,gpio-req-tbl-num = <0 1>;
		qcom,gpio-req-tbl-flags = <1 0>;
		qcom,gpio-flash-en = <0>;
		qcom,gpio-flash-now = <1>;
		qcom,gpio-req-tbl-label = "CAM_FLASH",
				"CAM_TORCH";
		status = "ok";
	};

	qcom,camera@0 {
		cell-index = <0>;
		compatible = "qcom,camera";
@@ -107,6 +122,7 @@
		qcom,csiphy-sd-index = <0>;
		qcom,csid-sd-index = <0>;
		qcom,mount-angle = <90>;
		qcom,led-flash-src = <&flash0>;
		qcom,actuator-src = <&actuator0>;
		qcom,eeprom-src = <&eeprom0>;
		cam_vana-supply = <&pm8916_l16>;