|
29 | 29 | }; |
30 | 30 | }; |
31 | 31 |
|
| 32 | + battery: battery { |
| 33 | + compatible = "simple-battery"; |
| 34 | + voltage-min-design-microvolt = <3400000>; |
| 35 | + voltage-max-design-microvolt = <4200000>; |
| 36 | + energy-full-design-microwatt-hours = <7770000>; |
| 37 | + charge-full-design-microamp-hours = <2100000>; |
| 38 | + |
| 39 | + ocv-capacity-celsius = <25>; |
| 40 | + ocv-capacity-table-0 = <4189000 100>, <4073000 95>, |
| 41 | + <4044000 90>, <4039000 85>, <4032000 80>, <4025000 75>, |
| 42 | + <4008000 70>, <3974000 65>, <3953000 60>, <3912000 55>, |
| 43 | + <3884000 50>, <3858000 45>, <3849000 40>, <3839000 35>, |
| 44 | + <3816000 30>, <3774000 25>, <3690000 20>, <3647000 16>, |
| 45 | + <3611000 13>, <3539000 11>, <3477000 10>, <3421000 9>, |
| 46 | + <3388000 8>, <3364000 7>, <3328000 6>, <3235000 5>, |
| 47 | + <3174000 4>, <3096000 3>, <3062000 2>, <3035000 1>, |
| 48 | + <3000000 0>; |
| 49 | + }; |
| 50 | + |
32 | 51 | gpio-keys { |
33 | 52 | compatible = "gpio-keys"; |
34 | 53 |
|
|
84 | 103 | status = "okay"; |
85 | 104 | }; |
86 | 105 |
|
| 106 | +&pm8916_bms { |
| 107 | + monitored-battery = <&battery>; |
| 108 | + power-supplies = <&pm8916_charger>; |
| 109 | + |
| 110 | + status = "okay"; |
| 111 | +}; |
| 112 | + |
| 113 | +&pm8916_charger { |
| 114 | + qcom,vdd-safe = <4200000>; |
| 115 | + qcom,ibat-safe = <500000>; |
| 116 | + |
| 117 | + monitored-battery = <&battery>; |
| 118 | + |
| 119 | + status = "okay"; |
| 120 | +}; |
| 121 | + |
87 | 122 | &pm8916_usbin { |
88 | 123 | status = "okay"; |
89 | 124 | }; |
|
105 | 140 | }; |
106 | 141 |
|
107 | 142 | &usb { |
108 | | - extcon = <&pm8916_usbin>; |
| 143 | + extcon = <&pm8916_charger>; |
109 | 144 | usb-role-switch; |
110 | 145 |
|
111 | 146 | status = "okay"; |
112 | 147 | }; |
113 | 148 |
|
114 | 149 | &usb_hs_phy { |
115 | | - extcon = <&pm8916_usbin>; |
| 150 | + extcon = <&pm8916_charger>; |
116 | 151 | }; |
117 | 152 |
|
118 | 153 | &wcnss { |
|
0 commit comments