Commit 0d89bfbc authored by Konrad Dybcio's avatar Konrad Dybcio Committed by Bjorn Andersson

arm64: dts: qcom: sm8450-nagara: Configure SLG51000 PMIC

Nagara devices use the Dialog SLG51000 PMIC for powering some camera
sensors. Add the required nodes to support it.
Signed-off-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221229103212.984324-7-konrad.dybcio@linaro.org
parent e9090691
......@@ -501,7 +501,58 @@ &i2c5 {
clock-frequency = <400000>;
status = "okay";
/* Dialog SLG51000 CMIC @ 75 */
pmic@75 {
compatible = "dlg,slg51000";
reg = <0x75>;
dlg,cs-gpios = <&pm8350b_gpios 1 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&cam_pwr_a_cs>;
regulators {
slg51000_a_ldo1: ldo1 {
regulator-name = "slg51000_a_ldo1";
regulator-min-microvolt = <2400000>;
regulator-max-microvolt = <3300000>;
};
slg51000_a_ldo2: ldo2 {
regulator-name = "slg51000_a_ldo2";
regulator-min-microvolt = <2400000>;
regulator-max-microvolt = <3300000>;
};
slg51000_a_ldo3: ldo3 {
regulator-name = "slg51000_a_ldo3";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3750000>;
};
slg51000_a_ldo4: ldo4 {
regulator-name = "slg51000_a_ldo4";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3750000>;
};
slg51000_a_ldo5: ldo5 {
regulator-name = "slg51000_a_ldo5";
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1200000>;
};
slg51000_a_ldo6: ldo6 {
regulator-name = "slg51000_a_ldo6";
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1200000>;
};
slg51000_a_ldo7: ldo7 {
regulator-name = "slg51000_a_ldo7";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3750000>;
};
};
};
};
&i2c9 {
......@@ -600,6 +651,15 @@ vol_down_n: vol-down-n-state {
};
&pm8350b_gpios {
cam_pwr_a_cs: cam-pwr-a-cs-state {
pins = "gpio1";
function = "normal";
qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
power-source = <1>;
drive-push-pull;
output-high;
};
snapshot_n: snapshot-n-state {
pins = "gpio5";
function = "normal";
......
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