summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
diff options
context:
space:
mode:
authorCaleb Connolly <caleb@connolly.tech>2022-01-20 18:46:28 +0000
committerBjorn Andersson <bjorn.andersson@linaro.org>2022-01-31 18:30:54 -0600
commit12dfb002ca01feceac9eaa2cc8a55fdc9be4a9ae (patch)
treefa09c97b3c56a4f4fd60c1477ce5b68e6fd73e63 /arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
parentd1c10ab1494f09eb12fa6e58fc78bb28d44922ae (diff)
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-common.dtsi')
-rw-r--r--arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
index 511ca72f465e..1084d5ce9ac7 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
@@ -376,6 +376,17 @@
};
};
+&i2c10 {
+ status = "okay";
+ clock-frequency = <100000>;
+
+ bq27441_fg: bq27441-battery@55 {
+ compatible = "ti,bq27411";
+ status = "okay";
+ reg = <0x55>;
+ };
+};
+
&i2c12 {
status = "okay";
clock-frequency = <400000>;