产品采用的是4.2V,对应的文件为《batterydata-qrd-l42q-4v20-3200mah.dtsi》,在msm8909-qrd-skue-cb03.dtsi文件中被引用,开发板采用的是《batterydata-qrd-l45q-4v35-1800mah.dtsi》

电池曲线文件说明文档见kernel\Documentation\devicetree\bindings\batterydata\

batterydata.txt文件

Battery Data is a collection of batteryprofile data made available to the QPNP Charger and BMS drivers via devicetree.

电池数据是电池配置数据的集合,通过设备树供QPNP充电器和BMS驱动使用。

  1. qcom,battery-data node required properties(电池数据节点需要的属性):

  2. - qcom,rpull-up-kohm : The vadc pullupresistor's resistance value in kOhms.

  3. Vadc上拉电阻的阻值

  4. - qcom,vref-batt-therm-uv : The vadcvoltage used to make readings.

  5. ForQualcomm VADCs this should be 1800000uV.

  6. qcom,battery-data node optional properties:

  7. - qcom,batt-id-range-pct : The area ofvariation between upper and lower bound

  8. forwhich a given battery ID resistance is valid. This

  9. valueis expressed as a percentage of the specified kohm

  10. resistanceprovided by qcom,batt-id-kohm.

  11. qcom,battery-data can also include anynumber of children nodes. These children

  12. nodes will be treated as battery profiledata nodes.

Batter-data可包含任何数量的子节点,这些子节点将会作为电池配置文件节点来创建。

1.     batterydata-qrd-l42q-4v20-3400mah.dtsi

  1. qcom,qrd-l42q-4v20-3200mah-data{

  2. qcom,battery-type ="qrd_l42q_4v20_3200mah";

  3. qcom,batt-id-kohm = <10>;

  4. The battery idresistance of the battery. It can be used as an array which could supportmultiple IDs for one battery module when the ID resistance of some batterymodules goes across several ranges.

  5. 电池ID电阻:当一些电池模型的ID电阻在一定范围内浮动时,电池ID电阻可以作为单电池模型数组以支持多ID

  6. qcom,chg-term-ua = <96000>;

  7. The terminationcharging current of the battery电池的结束充电电流,这里为96mA

  8. qcom,default-rbatt-mohm =<120>;

  9. The nominalbattery resistance value蓄电池电阻值

  10. qcom,fcc-mah = <3200>;

  11. Full charge countof the battery in milliamp-hours完全充满时电池容量为3200mAh

  12. qcom,max-voltage-uv =<4200000>;

  13. The maximum ratedvoltage of the battery电池最大的额定电压

  14. qcom,rbatt-capacitive-mohm =<50>;

  15. The capacitiveresistance of the battery电池的电容电阻

  16. qcom,v-cutoff-uv = <3400000>;

  17. The cutoffvoltage of the battery at which the device should shutdown gracefully

  18. 电池的截止电压,当电池电压低于此值时设备会自动关机

  19. qcom,fcc-temp-lut {

  20. qcom,lut-col-legend = <(-20) 025 40 60>;

  21. qcom,lut-data = <3306 3328 33343337 3336>;

  22. };

  23. 电池配置数据需要fcc-temp-lut子节点

  24. - qcom,fcc-temp-lut : An 1-dimensionallookup table node that encodes temperature to fcc lookup. The units for thislookuptable should be degrees celsius to milliamp-hours.

  25. 一维查找表节点会将温度编码成fcc查找。该方法的单位也应该从摄氏度变成毫安时。

  26. - qcom,lut-col-legend : An array thatencodes the legend of the lookup table's

  27. columns.The length of this array will determine the

  28. lookuptable's width.

  29. - qcom,lut-data : An array that encodes thelookup table's data. The size of this

  30. arrayshould be equal to the size of qcom,lut-col-legend

  31. multipliedby 1 if it's a 1-dimensional table, or

  32. thesize of qcom,lut-row-legend if it's a 2-dimensional

  33. table.The data should be in a flattened row-major

  34. representation.如果lut-row-legend是一个二维表,lut-data相应的是一个偏平行表示

  35. qcom,ibat-acc-lut{

  36. qcom,lut-col-legend= <(-20) 0 25>;

  37. qcom,lut-row-legend = <0 250500 1000 1500>,

  38. <2000>;

  39. qcom,lut-data= <3272 3294 3302>,

  40. <2396 3274 3296>,

  41. <15743206 3282>,

  42. <7283036 3248>,

  43. <5022772 3182>,

  44. <3382311 3020>;

  45. };

  46. Lookup table optional properties:

  47. - qcom,lut-row-legend : An array thatencodes the legend of the lookup table's rows.

  48. Ifthis property exists, then it is assumed that the

  49. lookuptable is a 2-dimensional table.

  50. qcom,pc-temp-ocv-lut{

  51. qcom,lut-col-legend= <(-20) 0 25 40 60>;

  52. qcom,lut-row-legend= <100 95 90 85 80>,

  53. <7570 65 60 55>,

  54. <5045 40 35 30>,

  55. <2520 16 13 11>,

  56. <109 8 7 6>,

  57. <54 3 2 1>,

  58. <0>;

  59. qcom,lut-data = <4191 41884183 4181 4178>,

  60. <41184128 4126 4123 4120>,

  61. <40704085 4081 4077 4074>,

  62. <39894037 4040 4037 4032>,

  63. <39423976 3992 3994 3993>,

  64. <39083943 3963 3962 3959>,

  65. <38743912 3934 3932 3928>,

  66. <38463880 3900 3901 3898>,

  67. <38223854 3862 3864 3864>,

  68. <38043829 3833 3832 3830>,

  69. <37903809 3813 3812 3810>,

  70. <37783792 3798 3796 3794>,

  71. <37663778 3785 3784 3782>,

  72. <37553768 3774 3773 3770>,

  73. <37423759 3763 3758 3750>,

  74. <37263746 3749 3742 3730>,

  75. <37083730 3732 3724 3712>,

  76. <36883716 3716 3707 3696>,

  77. <36723708 3699 3691 3680>,

  78. <36563701 3690 3682 3670>,

  79. <36463698 3688 3680 3668>,

  80. <36353693 3686 3678 3667>,

  81. <36233688 3684 3676 3665>,

  82. <36083680 3680 3674 3662>,

  83. <35903668 3674 3667 3655>,

  84. <35703646 3655 3648 3634>,

  85. <35443615 3619 3612 3598>,

  86. <35103572 3570 3564 3551>,

  87. <34663511 3506 3501 3488>,

  88. <34023424 3419 3415 3405>,

  89. <33003300 3300 3300 3300>;

  90. };

  91. - qcom,pc-temp-ocv-lut : A 2-dimensionallookup table node that encodes

  92. temperatureand percent charge to open circuit voltage

  93. lookup.The units for this lookup table should be

  94. degreescelsius and percent to millivolts.

  95. 一个包含温度和百分比的开路电压2维查找表,查找表的单位是百分比和电压的关系

  96. - qcom,rbatt-sf-lut : A 2-dimentionallookup table node that encodes

  97. temperatureand percent charge to battery internal

  98. resistance lookup. Theunits for this lookup table

  99. shouldbe degrees celsius and percent to milliohms.

2.     msm8909-qrd-skue-cb03.dtsi

  1. qrd_batterydata:qcom,battery-data {

  2. qcom,rpull-up-kohm= <0>;

  3. qcom,vref-batt-therm= <1800000>;

  4. //#include"batterydata-qrd-l45q-4v35-1800mah.dtsi"

  5. #include"batterydata-qrd-l42q-4v20-3200mah.dtsi"

  6. //#include"batterydata-qrd-skue-4v35-2000mah.dtsi"

  7. };

  8. };

  9. &pm8909_chg {

  10. qcom,vddmax-mv= <4200>; //Target voltage of battery in mV.电池电压值

  11. qcom,vddsafe-mv= <4380>;// Maximum Vdd voltage in mV,电池最高的安全电压会比4.2V会高一些。你们电池规格是上面会有的

  12. qcom,vinmin-mv= <4470>;// Minimum input voltage in mV. 这个是VBUS进到充电IC的最低电压。 一般是5V, 4470是最低的值

  13. qcom,batt-hot-percentage= <25>;

  14. qcom,batt-cold-percentage= <80>;

  15. qcom,tchg-mins= <360>;

  16. qcom,bms-controlled-charging;

  17. qcom,disable-vbatdet-based-recharge;

  18. status= "okay";

  19. //qcom,use-external-charger;

  20. qcom,charging-disabled;

  21. };

3.     msm-pm8909.dtsi

  1. pm8909_chg: qcom,charger {

  2. spmi-dev-container;

  3. compatible= "qcom,qpnp-linear-charger";

  4. #address-cells= <1>;

  5. #size-cells= <1>;

  6. qcom,vddmax-mv= <4200>;

  7. qcom,vddsafe-mv= <4230>;//<4200>;

  8. qcom,vinmin-mv= <4470>;//<4308>//init;

  9. qcom,ibatsafe-ma= <1440>;

  10. qcom,thermal-mitigation= <1440 720 630 0>;

  11. qcom,cool-bat-decidegc= <100>;

  12. qcom,warm-bat-decidegc= <450>;

  13. qcom,cool-bat-mv= <4100>;

  14. qcom,warm-bat-mv= <4100>;

  15. qcom,ibatmax-warm-ma= <360>;

  16. qcom,ibatmax-cool-ma= <360>;

  17. qcom,batt-hot-percentage= <25>;

  18. qcom,batt-cold-percentage= <80>;

  19. qcom,tchg-mins= <232>;

  20. qcom,chg-vadc= <&pm8909_vadc>;

  21. qcom,chg-adc_tm= <&pm8909_adc_tm>;

  22. status= "disabled";

  23. qcom,chgr@1000{

  24. reg= <0x1000 0x100>;

  25. interrupts= <0x0 0x10 0x7>,

  26. <0x00x10 0x6>,

  27. <0x00x10 0x5>,

  28. <0x00x10 0x0>;

  29. interrupt-names= "chg-done",

  30. "chg-failed",

  31. "fast-chg-on",

  32. "vbat-det-lo";

  33. };

  34. qcom,bat-if@1200{

  35. reg= <0x1200 0x100>;

  36. interrupts= <0x0 0x12 0x1>,

  37. <0x00x12 0x0>;

  38. interrupt-names= "bat-temp-ok",

  39. "batt-pres";

  40. };

  41. qcom,usb-chgpth@1300{

  42. reg= <0x1300 0x100>;

  43. interrupts= <0 0x13 0x4>,

  44. <00x13 0x2>,

  45. <00x13 0x1>;

  46. interrupt-names= "usb-over-temp",

  47. "chg-gone",

  48. "usbin-valid";

  49. };

  50. qcom,chg-misc@1600{

  51. reg= <0x1600 0x100>;

  52. };

  53. };

高通batterydata电池曲线数据学习相关推荐

  1. android edl模式,重磅干货!高通9008模式与数据提取

    原标题:重磅干货!高通9008模式与数据提取 上一期的镜像基础知识更完后,本期我们上高级镜像干货! 大家还记得Android手工镜像的方法吗?我们有读者读完之后提出了新的问题,刚好和Wendy最近计划 ...

  2. mtk电池曲线测试(2)--电池曲线数据整理(新威曲线参考)

    上回mtk电池曲线测试(1)–分容测试中我们经过新威电池分容测试得到了一份未经整理的电池分容数据.现在需要对数据进行整理以得到正确的电池曲线. 第一步:打开测试出来的 OCV 表格,如下图 第二步:选 ...

  3. 高通ar android,Android版高通AR Vuforia QCAR SDK学习笔记

    望集齐大家的力量,将AR(增强现实)发展壮大. PS:不是我不加链接,是我加了超链接,没有用啊,难道是我权限不够,只得自己复制.粘贴了 1.下载高通SDK(高通刚刚才更新开发中心地址,版本更新为v2. ...

  4. 高通平台SEE架构-sensor学习

    https://blog.csdn.net/liuei633/article/details/80935491---高通SDM845平台Sensor学习--1.框架 https://blog.csdn ...

  5. 高通平台SSC架构-sensor学习

    SSC软件架构学习参考 https://www.cnblogs.com/linhaostudy/archive/2018/03/16/8578414.html King_Alexwang-系列文章 h ...

  6. android ROM ---(1)高通平台 Android O 升级学习

    1. Android Project Treble 与iOS相比,安卓系统有一个致命弱点,那就是新版本系统升级太慢,除了谷歌Nexus和Pixel等亲儿子机型,其他OEM商的机型更新新系统需要用户漫长 ...

  7. [SDM660 Android9.0]电池曲线

    高通方案电池曲线 电池配置文件包括允许 FG 获得最佳 SOC 估计所需的所有信息. 将所有电池配置文件 .dtsi 文件包括到 qcom,battery-data 节点 (#include).--- ...

  8. 高通 Msm835平台充电功能的开发与调试

    目录 平台充电相关代码: 835平台kernel充电相关代码: 关机充电的系统相关代码: 835平台UEFI 充电相关代码: 835平台电池曲线: 电池曲线大体内容如下: kernel 电池曲线的提交 ...

  9. 高通携手贵州华芯通:成功源于创新 大数据前景美妙

    由国家发改委.贵州省政府主办的中国大数据产业峰会暨中国电子商务创新发展峰会25日在贵阳拉开帷幕.作为首个国家级大数据峰会,此次会议吸引了众多中外知名企业参与,各路嘉宾在此共话大数据产业的发展之路.会议 ...

最新文章

  1. 2018 俄罗斯世界杯赛程时间表
  2. 一条推文卖出 290 万美元天价?网友:我竟是隐藏的富翁
  3. Silverlight 参考:KeyEventArgs.Handled 属性
  4. 什么是可重入函数和不可重入函数
  5. iframe的src怎么携带参数_Java 爬虫遇到需要登录的网站,该怎么办?
  6. 深入理解Java中的String
  7. 正则表达式的\b与\B总结
  8. django数据库事务
  9. 管理对象空间——管理存储参数
  10. R-CNN,Fast R-CNN,Faster R-CNN原理及执行与训练的实例+实现自己的目标检测(转)
  11. Ubuntu无盘工作站安装详细步骤
  12. 全国各地区域码 --- (当地身份证号前六位)
  13. Axure原型模板CRM客户关系管理系统高保真原型设计
  14. macos推荐使用的敲代码软件
  15. phpcms代码学习笔记(globle.function.php)
  16. Maven错误:was cached in the local repository, resolution will not be reattempted until the update
  17. 互联网周刊:草根创业选择题
  18. 【092】召唤神龙-指尖大鱼吃小鱼的魔性游戏
  19. 计算机网络(3)——三种常见的数据交换技术
  20. 笔记本电脑外接显示器投屏问题

热门文章

  1. [数论][组合数学]微信群
  2. Linux操作系统练习之grep,管道,cut 和for循环
  3. APP测试面试题汇总
  4. openlayers摸爬滚打 5.openlayers使用GeoJSON绘制点、线
  5. Java基础知识(语言基础)
  6. 使用bootstrap来模拟构建Cropper的官方网站
  7. 永远不要去依赖别人_别太依赖一个人的说说 不依赖别人的经典语录_经典语录...
  8. Mac解决gyp: No Xcode or CLT version detected!问题
  9. 计算机系统(一)期末复(yu)习(1):数据表示以及数字逻辑(电路)
  10. 1624. 地铁地图