|
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 |
|
|
88 | 107 | status = "okay";
|
89 | 108 | };
|
90 | 109 |
|
| 110 | +&pm8916_bms { |
| 111 | + monitored-battery = <&battery>; |
| 112 | + power-supplies = <&pm8916_charger>; |
| 113 | + |
| 114 | + status = "okay"; |
| 115 | +}; |
| 116 | + |
| 117 | +&pm8916_charger { |
| 118 | + qcom,vdd-safe = <4200000>; |
| 119 | + qcom,ibat-safe = <500000>; |
| 120 | + |
| 121 | + monitored-battery = <&battery>; |
| 122 | + |
| 123 | + status = "okay"; |
| 124 | +}; |
| 125 | + |
| 126 | +#if 0 |
91 | 127 | &pm8916_usbin {
|
92 | 128 | status = "okay";
|
93 | 129 | };
|
| 130 | +#endif |
94 | 131 |
|
95 | 132 | &sdhc_1 {
|
96 | 133 | pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
|
|
109 | 146 | };
|
110 | 147 |
|
111 | 148 | &usb {
|
112 |
| - extcon = <&pm8916_usbin>; |
| 149 | + extcon = <&pm8916_charger>; |
113 | 150 | usb-role-switch;
|
114 | 151 |
|
115 | 152 | status = "okay";
|
116 | 153 | };
|
117 | 154 |
|
118 | 155 | &usb_hs_phy {
|
119 |
| - extcon = <&pm8916_usbin>; |
| 156 | + extcon = <&pm8916_charger>; |
120 | 157 | };
|
121 | 158 |
|
122 | 159 | &wcnss {
|
|
0 commit comments