|
35 | 35 | };
|
36 | 36 | };
|
37 | 37 |
|
| 38 | + battery: battery { |
| 39 | + compatible = "simple-battery"; |
| 40 | + voltage-min-design-microvolt = <3200000>; |
| 41 | + voltage-max-design-microvolt = <4350000>; |
| 42 | + ocv-capacity-celsius = <25>; |
| 43 | + ocv-capacity-table-0 = <4336000 100>, <4267000 95>, |
| 44 | + <4210000 90>, <4155000 85>, <4104000 80>, <4059000 75>, |
| 45 | + <3996000 70>, <3960000 65>, <3924000 60>, <3838000 55>, |
| 46 | + <3797000 50>, <3783000 45>, <3772000 40>, <3760000 35>, |
| 47 | + <3742000 30>, <3721000 25>, <3700000 20>, <3686000 16>, |
| 48 | + <3684000 13>, <3681000 11>, <3677000 10>, <3672000 9>, |
| 49 | + <3662000 8>, <3653000 7>, <3644000 6>, <3610000 5>, |
| 50 | + <3556000 4>, <3486000 3>, <3392000 2>, <3296000 1>, |
| 51 | + <3200000 0>; |
| 52 | + }; |
| 53 | + |
38 | 54 | gpio-keys {
|
39 | 55 | compatible = "gpio-keys";
|
40 | 56 | pinctrl-0 = <&gpio_keys_default>;
|
|
118 | 134 | };
|
119 | 135 | };
|
120 | 136 |
|
| 137 | +&pm8916_bms { |
| 138 | + monitored-battery = <&battery>; |
| 139 | + //power-supplies = <&charger>; |
| 140 | + status = "okay"; |
| 141 | +}; |
| 142 | + |
121 | 143 | &pm8916_resin {
|
122 | 144 | linux,code = <KEY_VOLUMEDOWN>;
|
123 | 145 | status = "okay";
|
|
0 commit comments