arm64: dts: qcom: sdm845-oneplus: enable pmi8998 charger
authorCaleb Connolly <caleb.connolly@linaro.org>
Fri, 26 May 2023 21:50:22 +0000 (22:50 +0100)
committerBjorn Andersson <andersson@kernel.org>
Tue, 13 Jun 2023 22:21:29 +0000 (15:21 -0700)
Enable the pmi8998 charger on both devices, enabling charging speeds
above the default 500mA limit the bootloader sets.

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-3-2a5c77d2ff0c@linaro.org
arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts

index 55ee8dcf27c39a9651977aed847ab7a86f0b9c36..364adf416c4f0f96e85452bdede799f1467bac7c 100644 (file)
        };
 };
 
+&pmi8998_charger {
+       status = "okay";
+};
+
 &q6afedai {
        qi2s@22 {
                reg = <22>;
index 6cdda971bb4bfefcf1cbaf21225baf10b69ac058..623a826b18a3ec5a98f91a939e494206006b133f 100644 (file)
        };
 };
 
+&pmi8998_charger {
+       monitored-battery = <&battery>;
+};
+
 &sound {
        model = "OnePlus 6";
        audio-routing = "RX_BIAS", "MCLK",
index d82c0d4407f061a5ed1311aa158aa3f3b4df4f22..9471ada0d6ad8bd44cc58a6efa07f7eb27921af9 100644 (file)
                        "AMIC5", "MIC BIAS3";
 };
 
+&pmi8998_charger {
+       monitored-battery = <&battery>;
+};
+
 /*
  * The TFA9894 codec is currently unsupported.
  * We need to delete the node to allow the soundcard