come from : https://blog.csdn.net/Winva/article/details/50739624
4.4. 充电
高通文档
1) 80-NL239-4_F_PMIC_SW_Driver_Overview_MSM8916.pdf
在手机能够充电以后,需要把向电池厂商要电池曲线,然后集成到dts里。
qcom,battery-data {
qcom,fcc-mah = <2300>;
qcom,default-rbatt-mohm = <198>;
qcom,rbatt-capacitive-mohm = <0>;
qcom,flat-ocv-threshold-uv = <3800000>;
qcom,max-voltage-uv = <4350000>;
qcom,v-cutoff-uv = <3400000>;
qcom,batt-id-kohm = <10>;
qcom,rbatt-sf-lut {
qcom,lut-col-legend = <(-10) 0 25 50>;
qcom,lut-row-legend = <100 95 90 85 80>,
<75 70 65 60 55>,
<50 45 40 35 30>,
<25 20 15 10 9>,
<8 7 6 5 4>,
<3 2 1 0>;
qcom,lut-data = <1895 828 245 270>,
<1840 825 255 273>,
<1788 820 270 290>,
<1728 808 280 303>,
<1703 801 290 308>,
<1698 796 301 303>,
<1663 783 311 315>,
<1665 778 311 333>,
<1673 770 280 338>,
<1673 773 260 303>,
<1683 770 260 298>,
<1690 775 263 303>,
<1715 778 270 313>,
<1740 790 275 303>,
<1780 791 273 283>,
<1865 807 273 263>,
<1973 835 270 253>,
<2145 878 273 253>,
<2380 988 267 255>,
<2257 1038 270 258>,
<2435 1095 283 260>,
<2498 1130 295 262>,
<2526 1165 305 265>,
<2555 1253 315 273>,
<2610 1368 328 273>,
<2675 1533 325 275>,
<2714 1654 345 279>,
<2753 1775 367 283>,
<2838 2113 390 298>;
};
qcom,fcc-temp-lut {
qcom,lut-col-legend = <(-10) 0 25 50>;
qcom,lut-data = <2196 2347 2347 2406>;
};
qcom,pc-temp-ocv-lut {
qcom,lut-col-legend = <(-10) 0 25 50>;
qcom,lut-row-legend = <100 95 90 85 80>,
<75 70 65 60 55>,
<50 45 40 35 30>,
<25 20 15 10 9>,
<8 7 6 5 4>,
<3 2 1 0>;
qcom,lut-data = <4338 4335 4330 4330>,
<4253 4270 4260 4272>,
<4202 4211 4202 4218>,
<4139 4152 4147 4162>,
<4088 4101 4095 4110>,
<4043 4047 4053 4059>,
<3977 3984 4006 4013>,
<3936 3947 3964 3972>,
<3906 3907 3917 3929>,
<3870 3872 3873 3873>,
<3864 3841 3845 3844>,
<3816 3816 3823 3821>,
<3792 3794 3805 3802>,
<3775 3780 3790 3787>,
<3763 3764 3775 3772>,
<3751 3751 3761 3748>,
<3737 3735 3744 3728>,
<3721 3716 3720 3703>,
<3694 3695 3691 3676>,
<3690 3689 3690 3674>,
<3686 3680 3689 3672>,
<3676 3674 3686 3670>,
<3671 3668 3683 3668>,
<3666 3650 3681 3663>,
<3654 3624 3664 3642>,
<3641 3589 3619 3593>,
<3633 3562 3550 3558>,
<3626 3536 3449 3524>,
<3608 3456 3448 3424>;
};