Skip to content

Commit 118a72d

Browse files
affenull2345stephan-gh
authored andcommitted
ARM: dts: qcom: msm8909-nokia-leo-common: enable LBC and BMS
Signed-off-by: Otto Pflüger <otto.pflueger@abscue.de>
1 parent 74e062c commit 118a72d

File tree

1 file changed

+36
-6
lines changed

1 file changed

+36
-6
lines changed

arch/arm/boot/dts/qcom/qcom-msm8909-nokia-leo-common.dtsi

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,25 @@
5050
default-brightness-level = <10>;
5151
};
5252

53+
bat: battery {
54+
compatible = "simple-battery";
55+
voltage-min-design-microvolt = <3400000>;
56+
voltage-max-design-microvolt = <4200000>;
57+
energy-full-design-microwatt-hours = <5700000>;
58+
charge-full-design-microamp-hours = <1500000>;
59+
60+
ocv-capacity-celsius = <25>;
61+
ocv-capacity-table-0 = <4186000 100>, <4122000 95>,
62+
<4078000 90>, <4033000 85>, <3982000 80>, <3958000 75>,
63+
<3928000 70>, <3899000 65>, <3866000 60>, <3831000 55>,
64+
<3808000 50>, <3793000 45>, <3782000 40>, <3775000 35>,
65+
<3769000 30>, <3758000 25>, <3740000 20>, <3718000 16>,
66+
<3696000 13>, <3689000 11>, <3688000 10>, <3687000 9>,
67+
<3685000 8>, <3682000 7>, <3672000 6>, <3643000 5>,
68+
<3596000 4>, <3532000 3>, <3448000 2>, <3315000 1>,
69+
<3000000 0>;
70+
};
71+
5372
gpio-keys {
5473
compatible = "gpio-keys";
5574
pinctrl-0 = <&gpio_key_active>;
@@ -153,6 +172,21 @@
153172
status = "okay";
154173
};
155174

175+
&pm8909_bms {
176+
monitored-battery = <&bat>;
177+
power-supplies = <&pm8909_charger>;
178+
status = "okay";
179+
};
180+
181+
&pm8909_charger {
182+
qcom,fast-charge-safe-current = <270000>;
183+
qcom,fast-charge-safe-voltage = <4150000>;
184+
185+
monitored-battery = <&bat>;
186+
187+
status = "okay";
188+
};
189+
156190
&pm8909_pwm {
157191
pinctrl-0 = <&pwm_out>;
158192
pinctrl-names = "default";
@@ -164,17 +198,13 @@
164198
status = "okay";
165199
};
166200

167-
&pm8909_usbin {
168-
status = "okay";
169-
};
170-
171201
&usb {
172-
extcon = <&pm8909_usbin>;
202+
extcon = <&pm8909_charger>;
173203
status = "okay";
174204
};
175205

176206
&usb_hs_phy {
177-
extcon = <&pm8909_usbin>;
207+
extcon = <&pm8909_charger>;
178208
};
179209

180210
&wcnss {

0 commit comments

Comments
 (0)