On 24.05.2023 19:38, Caleb Connolly wrote: > From: Joel Selvaraj <joelselvaraj.oss@xxxxxxxxx> > > Enable the pmi8998 charger and define some basic battery properties. > > Signed-off-by: Joel Selvaraj <joelselvaraj.oss@xxxxxxxxx> > Signed-off-by: Caleb Connolly <caleb.connolly@xxxxxxxxxx> > --- > .../arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > 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 1915643f1c49..2060b31648fc 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 @@ 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,11 @@ &pmi8998_wled { > qcom,cabc; > }; > > +&pmi8998_charger { > + status = "okay"; > + monitored-battery = <&battery>; status last, please Konrad > +}; > + > &pm8998_resin { > linux,code = <KEY_VOLUMEDOWN>; > status = "okay"; >