mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
12dfb002ca
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
34 lines
688 B
Text
34 lines
688 B
Text
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* SDM845 OnePlus 6 (enchilada) device tree.
|
|
*
|
|
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#include "sdm845-oneplus-common.dtsi"
|
|
|
|
/ {
|
|
model = "OnePlus 6";
|
|
compatible = "oneplus,enchilada", "qcom,sdm845";
|
|
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 {
|
|
status = "okay";
|
|
|
|
compatible = "samsung,sofef00";
|
|
};
|
|
|
|
&bq27441_fg {
|
|
monitored-battery = <&battery>;
|
|
};
|