arm64: dts: qcom: sdm845-tama: Add camera GPIO regulators

Like on many other platforms, Tama devices utilize lots of GPIO-
enabled regulators for the camera sensors. Define them in the DT.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230824-topic-tama_gpio-v1-3-014e9d198dce@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
Konrad Dybcio
2023-08-24 11:58:54 +02:00
committed by Bjorn Andersson
parent cb1e322cb3
commit 714a1cf29d

View File

@@ -67,6 +67,36 @@ key-volume-up {
};
};
cam_vana_front_vreg: cam-vana-front-regulator {
compatible = "regulator-fixed";
regulator-name = "cam_vana_front_vreg";
gpio = <&tlmm 8 GPIO_ACTIVE_HIGH>;
enable-active-high;
pinctrl-0 = <&chat_cam_pwr_en>;
pinctrl-names = "default";
};
cam_vana_rear_vreg: cam-vana-rear-regulator {
compatible = "regulator-fixed";
regulator-name = "cam_vana_rear_vreg";
gpio = <&tlmm 27 GPIO_ACTIVE_HIGH>;
enable-active-high;
pinctrl-0 = <&main_cam_pwr_en>;
pinctrl-names = "default";
};
cam_vio_vreg: cam-vio-reagulator {
compatible = "regulator-fixed";
regulator-name = "cam_vio_vreg";
gpio = <&pmi8998_gpios 12 GPIO_ACTIVE_HIGH>;
enable-active-high;
pinctrl-0 = <&cam_io_en>;
pinctrl-names = "default";
};
vph_pwr: vph-pwr-regulator {
compatible = "regulator-fixed";
regulator-name = "vph_pwr";
@@ -592,6 +622,17 @@ snapshot_n: snapshot-n-state {
};
};
&pmi8998_gpios {
cam_io_en: cam-io-en-state {
pins = "gpio12";
function = "normal";
qcom,drive-strength = <3>;
power-source = <0>;
drive-push-pull;
output-low;
};
};
&pmi8998_wled {
default-brightness = <800>;
qcom,switching-freq = <800>;
@@ -660,6 +701,14 @@ sde_dsi_sleep: sde-dsi-sleep-state {
bias-pull-down;
};
chat_cam_pwr_en: chat-cam-pwr-en-state {
pins = "gpio8";
function = "gpio";
drive-strength = <2>;
bias-disable;
output-low;
};
sde_te_active_sleep: sde-te-active-sleep-state {
pins = "gpio10";
function = "mdp_vsync";
@@ -667,6 +716,14 @@ sde_te_active_sleep: sde-te-active-sleep-state {
bias-pull-down;
};
main_cam_pwr_en: main-cam-pwr-en-state {
pins = "gpio27";
function = "gpio";
drive-strength = <2>;
bias-disable;
output-low;
};
ts_default: ts-default-state {
reset-pins {
pins = "gpio99";