Skip to content

Commit c4d3662

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

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>;
@@ -140,6 +159,21 @@
140159
status = "okay";
141160
};
142161

162+
&pm8909_bms {
163+
monitored-battery = <&bat>;
164+
power-supplies = <&pm8909_charger>;
165+
status = "okay";
166+
};
167+
168+
&pm8909_charger {
169+
qcom,fast-charge-safe-current = <630000>;
170+
qcom,fast-charge-safe-voltage = <4300000>;
171+
172+
monitored-battery = <&bat>;
173+
174+
status = "okay";
175+
};
176+
143177
&pm8909_pwm {
144178
pinctrl-0 = <&pwm_out>;
145179
pinctrl-names = "default";
@@ -151,10 +185,6 @@
151185
status = "okay";
152186
};
153187

154-
&pm8909_usbin {
155-
status = "okay";
156-
};
157-
158188
&pm8909_vib {
159189
status = "okay";
160190
};
@@ -169,13 +199,12 @@
169199
};
170200

171201
&usb {
172-
extcon = <&pm8909_usbin>;
173-
dr_mode = "peripheral";
202+
extcon = <&pm8909_charger>;
174203
status = "okay";
175204
};
176205

177206
&usb_hs_phy {
178-
extcon = <&pm8909_usbin>;
207+
extcon = <&pm8909_charger>;
179208
};
180209

181210
&wcnss {

0 commit comments

Comments
 (0)