From fde362e28b35daaf579c04e6aebd5052c297b9a3 Mon Sep 17 00:00:00 2001 From: shiwgupt Date: Wed, 19 May 2021 16:17:25 +0530 Subject: [PATCH] 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 --- qcom/holi-pinctrl.dtsi | 116 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) diff --git a/qcom/holi-pinctrl.dtsi b/qcom/holi-pinctrl.dtsi index 7ef2bf71ba05..07fd5d75b622 100644 --- a/qcom/holi-pinctrl.dtsi +++ b/qcom/holi-pinctrl.dtsi @@ -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";