From 69e3b53a68894388f4b99d8073ea83109a38c9d5 Mon Sep 17 00:00:00 2001 From: shiwgupt Date: Mon, 24 May 2021 10:52:46 +0530 Subject: [PATCH] ARM: dts: qcom: Add flash pinctrl gpio for blair Configure the flash strobe, torch, hwen, tx gpios for camera. CRs-Fixed: 2954621 Change-Id: I8c486e57bc6cdfb25f76d9ade0edb72d177956fb --- qcom/blair-pinctrl.dtsi | 116 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) diff --git a/qcom/blair-pinctrl.dtsi b/qcom/blair-pinctrl.dtsi index 9cb472d3e943..1302fa7d9dec 100644 --- a/qcom/blair-pinctrl.dtsi +++ b/qcom/blair-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";