|
32 | 32 | default-brightness-level = <255>;
|
33 | 33 | };
|
34 | 34 |
|
| 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 | + |
35 | 54 | flash-led-controller {
|
36 | 55 | compatible = "sgmicro,sgm3140";
|
37 | 56 | enable-gpios = <&tlmm 17 GPIO_ACTIVE_HIGH>;
|
|
144 | 163 | status = "okay";
|
145 | 164 | };
|
146 | 165 |
|
| 166 | +&pm8909_bms { |
| 167 | + monitored-battery = <&bat>; |
| 168 | + power-supplies = <&pm8909_charger>; |
| 169 | + status = "okay"; |
| 170 | +}; |
| 171 | + |
| 172 | +&pm8909_charger { |
| 173 | + qcom,fast-charge-safe-current = <630000>; |
| 174 | + qcom,fast-charge-safe-voltage = <4300000>; |
| 175 | + |
| 176 | + monitored-battery = <&bat>; |
| 177 | + |
| 178 | + status = "okay"; |
| 179 | +}; |
| 180 | + |
147 | 181 | &pm8909_pwm {
|
148 | 182 | pinctrl-0 = <&pwm_out>;
|
149 | 183 | pinctrl-names = "default";
|
|
155 | 189 | status = "okay";
|
156 | 190 | };
|
157 | 191 |
|
158 |
| -&pm8909_usbin { |
159 |
| - status = "okay"; |
160 |
| -}; |
161 |
| - |
162 | 192 | &pm8909_vib {
|
163 | 193 | status = "okay";
|
164 | 194 | };
|
|
173 | 203 | };
|
174 | 204 |
|
175 | 205 | &usb {
|
176 |
| - extcon = <&pm8909_usbin>; |
177 |
| - dr_mode = "peripheral"; |
| 206 | + extcon = <&pm8909_charger>; |
178 | 207 | status = "okay";
|
179 | 208 | };
|
180 | 209 |
|
181 | 210 | &usb_hs_phy {
|
182 |
| - extcon = <&pm8909_usbin>; |
| 211 | + extcon = <&pm8909_charger>; |
183 | 212 | };
|
184 | 213 |
|
185 | 214 | &wcnss {
|
|
0 commit comments