Commit 714a1cf2 authored by Konrad Dybcio's avatar Konrad Dybcio Committed by Bjorn Andersson

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: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230824-topic-tama_gpio-v1-3-014e9d198dce@linaro.orgSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent cb1e322c
...@@ -67,6 +67,36 @@ key-volume-up { ...@@ -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 { vph_pwr: vph-pwr-regulator {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
regulator-name = "vph_pwr"; regulator-name = "vph_pwr";
...@@ -592,6 +622,17 @@ snapshot_n: snapshot-n-state { ...@@ -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 { &pmi8998_wled {
default-brightness = <800>; default-brightness = <800>;
qcom,switching-freq = <800>; qcom,switching-freq = <800>;
...@@ -660,6 +701,14 @@ sde_dsi_sleep: sde-dsi-sleep-state { ...@@ -660,6 +701,14 @@ sde_dsi_sleep: sde-dsi-sleep-state {
bias-pull-down; 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 { sde_te_active_sleep: sde-te-active-sleep-state {
pins = "gpio10"; pins = "gpio10";
function = "mdp_vsync"; function = "mdp_vsync";
...@@ -667,6 +716,14 @@ sde_te_active_sleep: sde-te-active-sleep-state { ...@@ -667,6 +716,14 @@ sde_te_active_sleep: sde-te-active-sleep-state {
bias-pull-down; 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 { ts_default: ts-default-state {
reset-pins { reset-pins {
pins = "gpio99"; pins = "gpio99";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment