arm64: dts: qcom: sdm845-xiaomi-beryllium: enable pmi8998 charger
authorJoel Selvaraj <joelselvaraj.oss@gmail.com>
Fri, 26 May 2023 21:50:24 +0000 (22:50 +0100)
committerBjorn Andersson <andersson@kernel.org>
Tue, 13 Jun 2023 22:21:29 +0000 (15:21 -0700)
Enable the pmi8998 charger and define some basic battery properties.

Signed-off-by: Joel Selvaraj <joelselvaraj.oss@gmail.com>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230524-pmi8998-charger-dts-v2-5-2a5c77d2ff0c@linaro.org
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi

index 1915643..f7fd897 100644 (file)
                };
        };
 
+       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";
        qcom,cabc;
 };
 
+&pmi8998_charger {
+       monitored-battery = <&battery>;
+
+       status = "okay";
+};
+
 &pm8998_resin {
        linux,code = <KEY_VOLUMEDOWN>;
        status = "okay";