summaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
diff options
context:
space:
mode:
authorCaleb Connolly <caleb@connolly.tech>2022-01-20 19:46:28 +0100
committerBjorn Andersson <bjorn.andersson@linaro.org>2022-02-01 01:30:54 +0100
commit12dfb002ca01feceac9eaa2cc8a55fdc9be4a9ae (patch)
treefa09c97b3c56a4f4fd60c1477ce5b68e6fd73e63 /arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
parentarm64: dts: qcom: ipq6018: fix usb reference period (diff)
downloadlinux-12dfb002ca01feceac9eaa2cc8a55fdc9be4a9ae.tar.xz
linux-12dfb002ca01feceac9eaa2cc8a55fdc9be4a9ae.zip
arm64: dts: qcom: sdm845-oneplus-*: add fuel gauge
The OnePlus 6 and 6T feature a BQ27411 fuel gauge for reading the battery stats. Enable it and add a simple battery to document the battery specs of each device. Signed-off-by: Caleb Connolly <caleb@connolly.tech> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220120184546.499030-1-caleb@connolly.tech
Diffstat (limited to 'arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts')
-rw-r--r--arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts b/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
index 5936b47dee5f..bf2cf92e8976 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
@@ -13,6 +13,14 @@
chassis-type = "handset";
qcom,msm-id = <0x141 0x20001>;
qcom,board-id = <8 0 17819 22>;
+
+ battery: battery {
+ compatible = "simple-battery";
+
+ charge-full-design-microamp-hours = <3300000>;
+ voltage-min-design-microvolt = <3400000>;
+ voltage-max-design-microvolt = <4400000>;
+ };
};
&display_panel {
@@ -20,3 +28,7 @@
compatible = "samsung,sofef00";
};
+
+&bq27441_fg {
+ monitored-battery = <&battery>;
+};