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

Commit 57c752ef authored by Jigarkumar Zala's avatar Jigarkumar Zala
Browse files

ARM: dts: msm: Add LED support for Dual Camera for SDM845 target



Add Flash/Torch LED support for Dual Camera. This change give
access to enable/disable LED to both rear sensors. Only one
sensor has the access to enable/disable LED at given time.

Change-Id: I69e42c0f0665ff8276df5f708bcb49f36c3e8c1c
Signed-off-by: default avatarJigarkumar Zala <jzala@codeaurora.org>
parent e9012ff7
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -22,10 +22,20 @@
		status = "ok";
	};

	led_flash_front: qcom,camera-flash@1 {
	led_flash_rear_aux: qcom,camera-flash@1 {
		cell-index = <1>;
		reg = <0x01 0x00>;
		compatible = "qcom,camera-flash";
		flash-source = <&pmi8998_flash0 &pmi8998_flash1>;
		torch-source = <&pmi8998_torch0 &pmi8998_torch1 >;
		switch-source = <&pmi8998_switch0>;
		status = "ok";
	};

	led_flash_front: qcom,camera-flash@2 {
		cell-index = <2>;
		reg = <0x02 0x00>;
		compatible = "qcom,camera-flash";
		flash-source = <&pmi8998_flash2>;
		torch-source = <&pmi8998_torch2>;
		switch-source = <&pmi8998_switch1>;
@@ -306,6 +316,7 @@
		sensor-position-pitch = <0>;
		sensor-position-yaw = <180>;
		actuator-src = <&actuator_rear_aux>;
		led-flash-src = <&led_flash_rear_aux>;
		eeprom-src = <&eeprom_rear_aux>;
		cam_vdig-supply = <&camera_ldo>;
		cam_vio-supply = <&pm8998_lvs1>;
+12 −1
Original line number Diff line number Diff line
@@ -22,10 +22,20 @@
		status = "ok";
	};

	led_flash_front: qcom,camera-flash@1 {
	led_flash_rear_aux: qcom,camera-flash@1 {
		cell-index = <1>;
		reg = <0x01 0x00>;
		compatible = "qcom,camera-flash";
		flash-source = <&pmi8998_flash0 &pmi8998_flash1>;
		torch-source = <&pmi8998_torch0 &pmi8998_torch1>;
		switch-source = <&pmi8998_switch0>;
		status = "ok";
	};

	led_flash_front: qcom,camera-flash@2 {
		cell-index = <2>;
		reg = <0x02 0x00>;
		compatible = "qcom,camera-flash";
		flash-source = <&pmi8998_flash2>;
		torch-source = <&pmi8998_torch2>;
		switch-source = <&pmi8998_switch1>;
@@ -306,6 +316,7 @@
		sensor-position-pitch = <0>;
		sensor-position-yaw = <180>;
		actuator-src = <&actuator_rear_aux>;
		led-flash-src = <&led_flash_rear_aux>;
		eeprom-src = <&eeprom_rear_aux>;
		cam_vdig-supply = <&camera_ldo>;
		cam_vio-supply = <&pm8998_lvs1>;
+6 −0
Original line number Diff line number Diff line
@@ -142,6 +142,12 @@
	/delete-property/ switch-source;
};

&led_flash_rear_aux {
	/delete-property/ flash-source;
	/delete-property/ torch-source;
	/delete-property/ switch-source;
};

&led_flash_front {
	/delete-property/ flash-source;
	/delete-property/ torch-source;