Skip to content

Commit 705107b

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

File tree

1 file changed

+39
-2
lines changed

1 file changed

+39
-2
lines changed

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

Lines changed: 39 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

@@ -88,9 +107,27 @@
88107
status = "okay";
89108
};
90109

110+
&pm8916_bms {
111+
monitored-battery = <&battery>;
112+
power-supplies = <&pm8916_charger>;
113+
114+
status = "okay";
115+
};
116+
117+
&pm8916_charger {
118+
qcom,vdd-safe = <4200000>;
119+
qcom,ibat-safe = <500000>;
120+
121+
monitored-battery = <&battery>;
122+
123+
status = "okay";
124+
};
125+
126+
#if 0
91127
&pm8916_usbin {
92128
status = "okay";
93129
};
130+
#endif
94131

95132
&sdhc_1 {
96133
pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
@@ -109,14 +146,14 @@
109146
};
110147

111148
&usb {
112-
extcon = <&pm8916_usbin>;
149+
extcon = <&pm8916_charger>;
113150
usb-role-switch;
114151

115152
status = "okay";
116153
};
117154

118155
&usb_hs_phy {
119-
extcon = <&pm8916_usbin>;
156+
extcon = <&pm8916_charger>;
120157
};
121158

122159
&wcnss {

0 commit comments

Comments
 (0)