|
25 | 25 | default-brightness-level = <128>; |
26 | 26 | }; |
27 | 27 |
|
| 28 | + battery: battery { |
| 29 | + compatible = "simple-battery"; |
| 30 | + device-chemistry = "lithium-ion-polymer"; |
| 31 | + voltage-min-design-microvolt = <3400000>; |
| 32 | + voltage-max-design-microvolt = <4400000>; |
| 33 | + energy-full-design-microwatt-hours = <10450000>; |
| 34 | + charge-full-design-microamp-hours = <2750000>; |
| 35 | + |
| 36 | + ocv-capacity-celsius = <25>; |
| 37 | + ocv-capacity-table-0 = <4365000 100>, <4314000 95>, <4253000 90>, |
| 38 | + <4194000 85>, <4137000 80>, <4084000 75>, <4032000 70>, |
| 39 | + <3983000 65>, <3936000 60>, <3888000 55>, <3852000 50>, |
| 40 | + <3826000 45>, <3806000 40>, <3789000 35>, <3779000 30>, |
| 41 | + <3769000 25>, <3740000 20>, <3712000 16>, <3702000 13>, |
| 42 | + <3692000 11>, <3690000 10>, <3688000 9>, <3687000 8>, |
| 43 | + <3685000 7>, <3680000 6>, <3663000 5>, <3618000 4>, |
| 44 | + <3558000 3>, <3478000 2>, <3352000 1>, <3000000 0>; |
| 45 | + }; |
| 46 | + |
28 | 47 | flash-led-controller { |
29 | 48 | compatible = "sgmicro,sgm3140"; |
30 | 49 | enable-gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>; |
|
136 | 155 | reg = <0x0 0x86800000 0x0 0x5500000>; |
137 | 156 | }; |
138 | 157 |
|
| 158 | +&pm8916_bms { |
| 159 | + monitored-battery = <&battery>; |
| 160 | + status = "okay"; |
| 161 | +}; |
| 162 | + |
139 | 163 | &pm8916_pwm { |
140 | 164 | pinctrl-0 = <&pwm_out>; |
141 | 165 | pinctrl-names = "default"; |
|
0 commit comments