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

Commit fde362e2 authored by shiwgupt's avatar shiwgupt Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: qcom: Add flash pinctrl gpio for holi Pro

Configure the sensor strobe, torch, hwen, tx gpios for camera.

CRs-Fixed: 2938922
Change-Id: I5409878ada998eff886ec05e6a726e62a72896c5
parent da219ba7
Loading
Loading
Loading
Loading
+116 −0
Original line number Diff line number Diff line
@@ -1094,6 +1094,122 @@
			};
		};

		cam_flash_strobe_active: cam_flash_strobe_active {
			/* STROBE */
			mux {
				pins = "gpio51";
				function = "gpio";
			};

			config {
				pins = "gpio51";
				bias-disable; /* No PULL */
				drive-strength = <2>; /* 2 MA */
			};
		};

		cam_flash_strobe_suspend: cam_flash_strobe_suspend {
			/* STROBE */
			mux {
				pins = "gpio51";
				function = "gpio";
			};

			config {
				pins = "gpio51";
				bias-pull-down; /* PULL DOWN */
				drive-strength = <2>; /* 2 MA */
				output-low;
			};
		};

		cam_flash_torch_active: cam_flash_torch_active {
			/* TORCH */
			mux {
				pins = "gpio27";
				function = "gpio";
			};

			config {
				pins = "gpio27";
				bias-disable; /* No PULL */
				drive-strength = <2>; /* 2 MA */
			};
		};

		cam_flash_torch_suspend: cam_flash_torch_suspend {
			/* TORCH */
			mux {
				pins = "gpio27";
				function = "gpio";
			};

			config {
				pins = "gpio27";
				bias-pull-down; /* PULL DOWN */
				drive-strength = <2>; /* 2 MA */
				output-low;
			};
		};

		cam_flash_hwen_active: cam_flash_hwen_active {
			/* HWEN */
			mux {
				pins = "gpio52";
				function = "gpio";
			};

			config {
				pins = "gpio52";
				bias-disable; /* No PULL */
				drive-strength = <2>; /* 2 MA */
			};
		};

		cam_flash_hwen_suspend: cam_flash_hwen_suspend {
			/* HWEN */
			mux {
				pins = "gpio52";
				function = "gpio";
			};

			config {
				pins = "gpio52";
				bias-pull-down; /* PULL DOWN */
				drive-strength = <2>; /* 2 MA */
				output-low;
			};
		};

		cam_flash_tx_active: cam_flash_tx_active {
			/* TX */
			mux {
				pins = "gpio119";
				function = "gpio";
			};

			config {
				pins = "gpio119";
				bias-disable; /* No PULL */
				drive-strength = <2>; /* 2 MA */
			};
		};

		cam_flash_tx_suspend: cam_flash_tx_suspend {
			/* TX */
			mux {
				pins = "gpio119";
				function = "gpio";
			};

			config {
				pins = "gpio119";
				bias-pull-down; /* PULL DOWN */
				drive-strength = <2>; /* 2 MA */
				output-low;
			};
		};

		pm8008_active: pm8008_active {
			mux {
				pins = "gpio58";