Skip to content

Commit 07d9d9b

Browse files
archeYRstephan-gh
authored andcommitted
arm64: dts: qcom: msm8939-wingtech-wt82918: Add fuel gauge
Signed-off-by: Adam Słaboń <asaillen@protonmail.com>
1 parent 9b1c701 commit 07d9d9b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

arch/arm64/boot/dts/qcom/msm8939-wingtech-wt82918.dtsi

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,25 @@
2525
default-brightness-level = <128>;
2626
};
2727

28+
battery: battery {
29+
compatible = "simple-battery";
30+
device-chemistry = "lithium-ion-polymer";
31+
voltage-min-design-microvolt = <3400000>;
32+
voltage-max-design-microvolt = <4400000>;
33+
energy-full-design-microwatt-hours = <10450000>;
34+
charge-full-design-microamp-hours = <2750000>;
35+
36+
ocv-capacity-celsius = <25>;
37+
ocv-capacity-table-0 = <4365000 100>, <4314000 95>, <4253000 90>,
38+
<4194000 85>, <4137000 80>, <4084000 75>, <4032000 70>,
39+
<3983000 65>, <3936000 60>, <3888000 55>, <3852000 50>,
40+
<3826000 45>, <3806000 40>, <3789000 35>, <3779000 30>,
41+
<3769000 25>, <3740000 20>, <3712000 16>, <3702000 13>,
42+
<3692000 11>, <3690000 10>, <3688000 9>, <3687000 8>,
43+
<3685000 7>, <3680000 6>, <3663000 5>, <3618000 4>,
44+
<3558000 3>, <3478000 2>, <3352000 1>, <3000000 0>;
45+
};
46+
2847
flash-led-controller {
2948
compatible = "sgmicro,sgm3140";
3049
enable-gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
@@ -136,6 +155,11 @@
136155
reg = <0x0 0x86800000 0x0 0x5500000>;
137156
};
138157

158+
&pm8916_bms {
159+
monitored-battery = <&battery>;
160+
status = "okay";
161+
};
162+
139163
&pm8916_pwm {
140164
pinctrl-0 = <&pwm_out>;
141165
pinctrl-names = "default";

0 commit comments

Comments
 (0)