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

Commit 3d406486 authored by Suman Mukherjee's avatar Suman Mukherjee
Browse files

ARM: dts: msm: camera: Changes to enable flash on 8909 QRD



Add GPIO pin control needed for led flash.
Change the torch sequence from 1,0 to 0,1

Change-Id: Ib75af8543402ce4e7c94ce7285dc1360c0f41407
Signed-off-by: default avatarSuman Mukherjee <sumam@codeaurora.org>
parent 0e827fea
Loading
Loading
Loading
Loading
+15 −12
Original line number Diff line number Diff line
/*
 * Copyright (c) 2017 The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-18 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
@@ -11,6 +11,8 @@
 * GNU General Public License for more details.
 */
&soc {

	msm_gpio: pinctrl@1000000 {
		SY7803_default: SY7803_default {
			mux {
				/* CLK, DATA */
@@ -24,6 +26,7 @@
				drive-strength = <2>; /* 2 MA */
			};
		};
	};

	flash_SY7803:flashlight {
		compatible = "qcom,leds-gpio-flash";
@@ -33,7 +36,7 @@
		qcom,flash-en = <&msm_gpio 31 0>;
		qcom,flash-now = <&msm_gpio 32 0>;
		qcom,op-seq = "flash_en", "flash_now";
		qcom,torch-seq-val = <1 0>;
		qcom,torch-seq-val = <0 1>;
		qcom,flash-seq-val = <1 1>;
		linux,name = "flashlight";
		linux,default-trigger = "flashlight-trigger";