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 55ee8dc..364adf4 100644 (file)
        };
 };
 
+&pmi8998_charger {
+       status = "okay";
+};
+
 &q6afedai {
        qi2s@22 {
                reg = <22>;
index 6cdda97..623a826 100644 (file)
        };
 };
 
+&pmi8998_charger {
+       monitored-battery = <&battery>;
+};
+
 &sound {
        model = "OnePlus 6";
        audio-routing = "RX_BIAS", "MCLK",
index d82c0d4..9471ada 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