|
41 | 41 | default-brightness-level = <10>; |
42 | 42 | }; |
43 | 43 |
|
| 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 | + |
44 | 63 | gpio-keys { |
45 | 64 | compatible = "gpio-keys"; |
46 | 65 | pinctrl-0 = <&gpio_key_active &lid_switch_active>; |
|
175 | 194 | status = "okay"; |
176 | 195 | }; |
177 | 196 |
|
| 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 | + |
178 | 212 | &pm8909_pwm { |
179 | 213 | pinctrl-0 = <&pwm_out>; |
180 | 214 | pinctrl-names = "default"; |
|
186 | 220 | status = "okay"; |
187 | 221 | }; |
188 | 222 |
|
189 | | -&pm8909_usbin { |
190 | | - status = "okay"; |
191 | | -}; |
192 | | - |
193 | 223 | &pm8909_vib { |
194 | 224 | status = "okay"; |
195 | 225 | }; |
|
204 | 234 | }; |
205 | 235 |
|
206 | 236 | &usb { |
207 | | - extcon = <&pm8909_usbin>; |
| 237 | + extcon = <&pm8909_charger>; |
208 | 238 | status = "okay"; |
209 | 239 | }; |
210 | 240 |
|
211 | 241 | &usb_hs_phy { |
212 | | - extcon = <&pm8909_usbin>; |
| 242 | + extcon = <&pm8909_charger>; |
213 | 243 | }; |
214 | 244 |
|
215 | 245 | &wcnss { |
|
0 commit comments