From: Joel Selvaraj Date: Fri, 26 May 2023 21:50:24 +0000 (+0100) Subject: arm64: dts: qcom: sdm845-xiaomi-beryllium: enable pmi8998 charger X-Git-Tag: v6.6.7~2515^2~13^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e58cf964157bb2f875155a2dcf68f3a8db0da2e3;p=platform%2Fkernel%2Flinux-starfive.git arm64: dts: qcom: sdm845-xiaomi-beryllium: enable pmi8998 charger Enable the pmi8998 charger and define some basic battery properties. Signed-off-by: Joel Selvaraj Signed-off-by: Caleb Connolly Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20230524-pmi8998-charger-dts-v2-5-2a5c77d2ff0c@linaro.org --- diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi index 1915643..f7fd897 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi @@ -115,6 +115,14 @@ }; }; + 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 @@ qcom,cabc; }; +&pmi8998_charger { + monitored-battery = <&battery>; + + status = "okay"; +}; + &pm8998_resin { linux,code = ; status = "okay";