Skip to content

Commit b96b42d

Browse files
committed
arm64: dts: qcom: msm8916-lenovo-phab: add BMS
Signed-off-by: Oleksandr Knyshuk <kigen745@gmail.com>
1 parent 97aabfb commit b96b42d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

arch/arm64/boot/dts/qcom/msm8916-lenovo-phab.dts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,22 @@
3535
};
3636
};
3737

38+
battery: battery {
39+
compatible = "simple-battery";
40+
voltage-min-design-microvolt = <3200000>;
41+
voltage-max-design-microvolt = <4350000>;
42+
ocv-capacity-celsius = <25>;
43+
ocv-capacity-table-0 = <4336000 100>, <4267000 95>,
44+
<4210000 90>, <4155000 85>, <4104000 80>, <4059000 75>,
45+
<3996000 70>, <3960000 65>, <3924000 60>, <3838000 55>,
46+
<3797000 50>, <3783000 45>, <3772000 40>, <3760000 35>,
47+
<3742000 30>, <3721000 25>, <3700000 20>, <3686000 16>,
48+
<3684000 13>, <3681000 11>, <3677000 10>, <3672000 9>,
49+
<3662000 8>, <3653000 7>, <3644000 6>, <3610000 5>,
50+
<3556000 4>, <3486000 3>, <3392000 2>, <3296000 1>,
51+
<3200000 0>;
52+
};
53+
3854
gpio-keys {
3955
compatible = "gpio-keys";
4056
pinctrl-0 = <&gpio_keys_default>;
@@ -118,6 +134,12 @@
118134
};
119135
};
120136

137+
&pm8916_bms {
138+
monitored-battery = <&battery>;
139+
//power-supplies = <&charger>;
140+
status = "okay";
141+
};
142+
121143
&pm8916_resin {
122144
linux,code = <KEY_VOLUMEDOWN>;
123145
status = "okay";

0 commit comments

Comments
 (0)