|
50 | 50 | default-brightness-level = <10>; |
51 | 51 | }; |
52 | 52 |
|
| 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 | + |
53 | 72 | gpio-keys { |
54 | 73 | compatible = "gpio-keys"; |
55 | 74 | pinctrl-0 = <&gpio_key_active>; |
|
153 | 172 | status = "okay"; |
154 | 173 | }; |
155 | 174 |
|
| 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 | + |
156 | 190 | &pm8909_pwm { |
157 | 191 | pinctrl-0 = <&pwm_out>; |
158 | 192 | pinctrl-names = "default"; |
|
164 | 198 | status = "okay"; |
165 | 199 | }; |
166 | 200 |
|
167 | | -&pm8909_usbin { |
168 | | - status = "okay"; |
169 | | -}; |
170 | | - |
171 | 201 | &usb { |
172 | | - extcon = <&pm8909_usbin>; |
| 202 | + extcon = <&pm8909_charger>; |
173 | 203 | status = "okay"; |
174 | 204 | }; |
175 | 205 |
|
176 | 206 | &usb_hs_phy { |
177 | | - extcon = <&pm8909_usbin>; |
| 207 | + extcon = <&pm8909_charger>; |
178 | 208 | }; |
179 | 209 |
|
180 | 210 | &wcnss { |
|
0 commit comments