Skip to content

Commit dfcbae9

Browse files
ARM: dts: qcom: msm8909-acer-t01: Add LBC and BMS
Signed-off-by: Raymond Hackley <[email protected]>
1 parent a6ad808 commit dfcbae9

File tree

1 file changed

+36
-7
lines changed

1 file changed

+36
-7
lines changed

arch/arm/boot/dts/qcom/qcom-msm8909-acer-t01.dts

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,25 @@
3232
default-brightness-level = <255>;
3333
};
3434

35+
bat: battery {
36+
compatible = "simple-battery";
37+
voltage-min-design-microvolt = <3400000>;
38+
voltage-max-design-microvolt = <4350000>;
39+
energy-full-design-microwatt-hours = <7600000>;
40+
charge-full-design-microamp-hours = <2000000>;
41+
42+
ocv-capacity-celsius = <25>;
43+
ocv-capacity-table-0 = <4335000 100>, <4265000 95>,
44+
<4207000 90>, <4152000 85>, <4101000 80>, <4051000 75>,
45+
<3995000 70>, <3958000 65>, <3921000 60>, <3874000 55>,
46+
<3838000 50>, <3815000 45>, <3797000 40>, <3783000 35>,
47+
<3772000 30>, <3763000 25>, <3744000 20>, <3718000 16>,
48+
<3692000 13>, <3689000 11>, <3688000 10>, <3687000 9>,
49+
<3685000 8>, <3683000 7>, <3679000 6>, <3663000 5>,
50+
<3620000 4>, <3555000 3>, <3461000 2>, <3312000 1>,
51+
<3000000 0>;
52+
};
53+
3554
flash-led-controller {
3655
compatible = "sgmicro,sgm3140";
3756
enable-gpios = <&tlmm 17 GPIO_ACTIVE_HIGH>;
@@ -144,6 +163,21 @@
144163
status = "okay";
145164
};
146165

166+
&pm8909_bms {
167+
monitored-battery = <&bat>;
168+
power-supplies = <&pm8909_charger>;
169+
status = "okay";
170+
};
171+
172+
&pm8909_charger {
173+
qcom,fast-charge-safe-current = <630000>;
174+
qcom,fast-charge-safe-voltage = <4300000>;
175+
176+
monitored-battery = <&bat>;
177+
178+
status = "okay";
179+
};
180+
147181
&pm8909_pwm {
148182
pinctrl-0 = <&pwm_out>;
149183
pinctrl-names = "default";
@@ -155,10 +189,6 @@
155189
status = "okay";
156190
};
157191

158-
&pm8909_usbin {
159-
status = "okay";
160-
};
161-
162192
&pm8909_vib {
163193
status = "okay";
164194
};
@@ -173,13 +203,12 @@
173203
};
174204

175205
&usb {
176-
extcon = <&pm8909_usbin>;
177-
dr_mode = "peripheral";
206+
extcon = <&pm8909_charger>;
178207
status = "okay";
179208
};
180209

181210
&usb_hs_phy {
182-
extcon = <&pm8909_usbin>;
211+
extcon = <&pm8909_charger>;
183212
};
184213

185214
&wcnss {

0 commit comments

Comments
 (0)