Commit e58cf964 authored by Joel Selvaraj's avatar Joel Selvaraj Committed by Bjorn Andersson

arm64: dts: qcom: sdm845-xiaomi-beryllium: enable pmi8998 charger

Enable the pmi8998 charger and define some basic battery properties.
Signed-off-by: default avatarJoel Selvaraj <joelselvaraj.oss@gmail.com>
Signed-off-by: default avatarCaleb Connolly <caleb.connolly@linaro.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230524-pmi8998-charger-dts-v2-5-2a5c77d2ff0c@linaro.org
parent e5d83d4d
......@@ -115,6 +115,14 @@ rmtfs_mem: memory@f6301000 {
};
};
battery: battery {
compatible = "simple-battery";
charge-full-design-microamp-hours = <4000000>;
voltage-min-design-microvolt = <3400000>;
voltage-max-design-microvolt = <4400000>;
};
vreg_s4a_1p8: vreg-s4a-1p8 {
compatible = "regulator-fixed";
regulator-name = "vreg_s4a_1p8";
......@@ -341,6 +349,12 @@ &pmi8998_wled {
qcom,cabc;
};
&pmi8998_charger {
monitored-battery = <&battery>;
status = "okay";
};
&pm8998_resin {
linux,code = <KEY_VOLUMEDOWN>;
status = "okay";
......
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