Skip to content

Commit ed61998

Browse files
affenull2345TravMurav
authored andcommitted
ARM: dts: qcom: msm8905-nokia-argon: enable LBC and BMS
Signed-off-by: Otto Pflüger <otto.pflueger@abscue.de>
1 parent 151c0e1 commit ed61998

File tree

1 file changed

+36
-6
lines changed

1 file changed

+36
-6
lines changed

arch/arm/boot/dts/qcom/qcom-msm8905-nokia-argon.dts

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,25 @@
4141
default-brightness-level = <10>;
4242
};
4343

44+
bat: battery {
45+
compatible = "simple-battery";
46+
voltage-min-design-microvolt = <3400000>;
47+
voltage-max-design-microvolt = <4400000>;
48+
energy-full-design-microwatt-hours = <5850000>;
49+
charge-full-design-microamp-hours = <1500000>;
50+
51+
ocv-capacity-celsius = <25>;
52+
ocv-capacity-table-0 = <4380000 100>, <4292000 95>,
53+
<4234000 90>, <4190000 85>, <4158000 80>, <4125000 75>,
54+
<4090000 70>, <4040000 65>, <3988000 60>, <3950000 55>,
55+
<3925000 50>, <3880000 45>, <3840000 40>, <3800000 35>,
56+
<3784000 30>, <3761000 25>, <3743000 20>, <3722000 16>,
57+
<3702000 13>, <3690000 11>, <3688000 10>, <3687000 9>,
58+
<3685000 8>, <3683000 7>, <3677000 6>, <3656000 5>,
59+
<3612000 4>, <3554000 3>, <3462000 2>, <3322000 1>,
60+
<3000000 0>;
61+
};
62+
4463
gpio-keys {
4564
compatible = "gpio-keys";
4665
pinctrl-0 = <&gpio_key_active &lid_switch_active>;
@@ -175,6 +194,21 @@
175194
status = "okay";
176195
};
177196

197+
&pm8909_bms {
198+
monitored-battery = <&bat>;
199+
power-supplies = <&pm8909_charger>;
200+
status = "okay";
201+
};
202+
203+
&pm8909_charger {
204+
qcom,fast-charge-safe-current = <360000>;
205+
qcom,fast-charge-safe-voltage = <4350000>;
206+
207+
monitored-battery = <&bat>;
208+
209+
status = "okay";
210+
};
211+
178212
&pm8909_pwm {
179213
pinctrl-0 = <&pwm_out>;
180214
pinctrl-names = "default";
@@ -186,10 +220,6 @@
186220
status = "okay";
187221
};
188222

189-
&pm8909_usbin {
190-
status = "okay";
191-
};
192-
193223
&pm8909_vib {
194224
status = "okay";
195225
};
@@ -204,12 +234,12 @@
204234
};
205235

206236
&usb {
207-
extcon = <&pm8909_usbin>;
237+
extcon = <&pm8909_charger>;
208238
status = "okay";
209239
};
210240

211241
&usb_hs_phy {
212-
extcon = <&pm8909_usbin>;
242+
extcon = <&pm8909_charger>;
213243
};
214244

215245
&wcnss {

0 commit comments

Comments
 (0)