Skip to content

Commit fd5d1a9

Browse files
committed
arm64: dts: qcom: msm8916-thwc-mf601xx: Add LBC and BMS
Signed-off-by: Yang Xiwen <forbidden405@outlook.com>
1 parent 1585ec8 commit fd5d1a9

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

arch/arm64/boot/dts/qcom/msm8916-thwc-mf601xx.dtsi

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,25 @@
2929
};
3030
};
3131

32+
battery: battery {
33+
compatible = "simple-battery";
34+
voltage-min-design-microvolt = <3400000>;
35+
voltage-max-design-microvolt = <4200000>;
36+
energy-full-design-microwatt-hours = <7770000>;
37+
charge-full-design-microamp-hours = <2100000>;
38+
39+
ocv-capacity-celsius = <25>;
40+
ocv-capacity-table-0 = <4189000 100>, <4073000 95>,
41+
<4044000 90>, <4039000 85>, <4032000 80>, <4025000 75>,
42+
<4008000 70>, <3974000 65>, <3953000 60>, <3912000 55>,
43+
<3884000 50>, <3858000 45>, <3849000 40>, <3839000 35>,
44+
<3816000 30>, <3774000 25>, <3690000 20>, <3647000 16>,
45+
<3611000 13>, <3539000 11>, <3477000 10>, <3421000 9>,
46+
<3388000 8>, <3364000 7>, <3328000 6>, <3235000 5>,
47+
<3174000 4>, <3096000 3>, <3062000 2>, <3035000 1>,
48+
<3000000 0>;
49+
};
50+
3251
gpio-keys {
3352
compatible = "gpio-keys";
3453

@@ -84,6 +103,22 @@
84103
status = "okay";
85104
};
86105

106+
&pm8916_bms {
107+
monitored-battery = <&battery>;
108+
power-supplies = <&pm8916_charger>;
109+
110+
status = "okay";
111+
};
112+
113+
&pm8916_charger {
114+
qcom,vdd-safe = <4200000>;
115+
qcom,ibat-safe = <500000>;
116+
117+
monitored-battery = <&battery>;
118+
119+
status = "okay";
120+
};
121+
87122
&pm8916_usbin {
88123
status = "okay";
89124
};
@@ -105,14 +140,14 @@
105140
};
106141

107142
&usb {
108-
extcon = <&pm8916_usbin>;
143+
extcon = <&pm8916_charger>;
109144
usb-role-switch;
110145

111146
status = "okay";
112147
};
113148

114149
&usb_hs_phy {
115-
extcon = <&pm8916_usbin>;
150+
extcon = <&pm8916_charger>;
116151
};
117152

118153
&wcnss {

0 commit comments

Comments
 (0)