mlt8735_f6h_bat_setting.dtsi 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  1. /*************************
  2. * Customized Battery Setting dtsi file
  3. *************************/
  4. &bat_comm {
  5. /* cust_charging.h */
  6. /* Charging Current Setting */
  7. usb_charger_current = <50000 >; /* Unit: 0.01 mA */
  8. ac_charger_input_current = <200000 >; /* Unit: 0.01 mA */
  9. ac_charger_current = <200000 >; /* Unit: 0.01 mA */
  10. non_std_ac_charger_current = <50000 >; /* Unit: 0.01 mA */
  11. charging_host_charger_current = <50000 >; /* Unit: 0.01 mA */
  12. /* charger error check */
  13. bat_low_temp_protect_enable = <0 >;
  14. v_charger_enable = <0 >; /* 1:on , 0:off */
  15. v_charger_max = <6500 >; /* unit: mV */
  16. v_charger_min = <4400 >;
  17. /* Tracking TIME */
  18. onehundred_percent_tracking_time = <10 >; /* Unit: second */
  19. npercent_tracking_time = <20 >; /* Unit: second */
  20. sync_to_real_tracking_time = <60 >; /* Unit: second */
  21. v_0percent_tracking = <3450 >; /* Unit: mV */
  22. /* High battery support */
  23. high_battery_voltage_support = <0 >;
  24. };
  25. &bat_meter {
  26. /* cust_battery_meter.h */
  27. /* ADC resistor */
  28. r_bat_sense = <4 >;
  29. r_i_sense = <4 >;
  30. r_charger_1 = <330 >;
  31. r_charger_2 = <39 >;
  32. temperature_t0 = <110 >;
  33. temperature_t1 = <0 >;
  34. temperature_t2 = <25 >;
  35. temperature_t3 = <50 >;
  36. temperature_t = <255 >; /* this should be fixed, never change the value */
  37. fg_meter_resistance = <0 >;
  38. /* Qmax for 0mA */
  39. q_max_pos_50 = <4052 >;
  40. q_max_pos_25 = <4144 >;
  41. q_max_pos_0 = <3898 >;
  42. q_max_neg_10 = <3223 >;
  43. /* Qmax for 400mA, said high current */
  44. q_max_pos_50_h_current = <4019 >;
  45. q_max_pos_25_h_current = <4090 >;
  46. q_max_pos_0_h_current = <3486 >;
  47. q_max_neg_10_h_current = <1961 >;
  48. /* Discharge percentage, 1: D5, 0: D2 */
  49. oam_d5 = <1 >;
  50. change_tracking_point = <1 >;
  51. /* SW OCV tracking setting */
  52. cust_tracking_point = <1 >;
  53. cust_r_sense = <68 >;
  54. cust_hw_cc = <0 >;
  55. aging_tuning_value = <103 >;
  56. cust_r_fg_offset = <0 >;
  57. ocv_board_compesate = <0 >;
  58. r_fg_board_base = <1000 >;
  59. r_fg_board_slope = <1000 >;
  60. car_tune_value = <99 >;
  61. /* HW Fuel gague */
  62. current_detect_r_fg = <10 >; /* Unit: mA */
  63. minerroroffset = <1000 >;
  64. fg_vbat_average_size = <18 >;
  65. r_fg_value = <10 >; /* Unit: mOhm */
  66. cust_poweron_delta_capacity_tolrance = <30 >;
  67. cust_poweron_low_capacity_tolrance = <5 >;
  68. cust_poweron_max_vbat_tolrance = <90 >;
  69. cust_poweron_delta_vbat_tolrance = <30 >;
  70. cust_poweron_delta_hw_sw_ocv_capacity_tolrance = <10 >;
  71. /* Fixed battery temperature */
  72. fixed_tbat_25 = <0 >;
  73. /* Battery remove detecton */
  74. vbat_remove_detection = <0>;
  75. /* Dynamic change wake up period of battery thread when suspend */
  76. vbat_normal_wakeup = <3600 >; /* Unit: mV */
  77. vbat_low_power_wakeup = <3500 >; /* Unit: mV */
  78. normal_wakeup_period = <5400 >; /* Unit: second */
  79. low_power_wakeup_period = <300 >; /* Unit: second */
  80. close_poweroff_wakeup_period = <30 >; /* Unit: second */
  81. rbat_pull_up_r = <16900 >;
  82. rbat_pull_up_volt = <1800 >;
  83. batt_temperature_table_num = <17 >;
  84. batt_temperature_table = <
  85. (-20) 69709
  86. (-15) 54633
  87. (-10) 43155
  88. (-5) 34343
  89. 0 27523
  90. 5 22206
  91. 10 18031
  92. 15 14730
  93. 20 12103
  94. 25 10000
  95. 30 8306
  96. 35 6935
  97. 40 5818
  98. 45 4904
  99. 50 4152
  100. 55 3531
  101. 60 3016
  102. >;
  103. battery_profile_t0_num = <100 >;
  104. battery_profile_t0 = <
  105. 0 4245
  106. 1 4218
  107. 3 4193
  108. 4 4170
  109. 5 4149
  110. 6 4129
  111. 8 4111
  112. 9 4096
  113. 10 4081
  114. 11 4066
  115. 13 4048
  116. 14 4029
  117. 15 4012
  118. 16 3998
  119. 18 3985
  120. 19 3973
  121. 20 3963
  122. 21 3951
  123. 23 3939
  124. 24 3928
  125. 25 3914
  126. 26 3901
  127. 28 3888
  128. 29 3877
  129. 30 3867
  130. 31 3858
  131. 33 3850
  132. 34 3843
  133. 35 3837
  134. 37 3830
  135. 38 3825
  136. 39 3820
  137. 40 3814
  138. 42 3810
  139. 43 3805
  140. 44 3802
  141. 45 3798
  142. 47 3795
  143. 48 3793
  144. 49 3790
  145. 50 3788
  146. 52 3785
  147. 53 3782
  148. 54 3779
  149. 55 3775
  150. 57 3771
  151. 58 3765
  152. 59 3758
  153. 60 3751
  154. 62 3744
  155. 63 3737
  156. 63 3733
  157. 64 3730
  158. 64 3726
  159. 65 3724
  160. 65 3722
  161. 65 3720
  162. 65 3718
  163. 66 3716
  164. 66 3715
  165. 66 3714
  166. 66 3713
  167. 66 3712
  168. 67 3711
  169. 67 3710
  170. 67 3710
  171. 67 3709
  172. 67 3709
  173. 67 3708
  174. 67 3708
  175. 67 3707
  176. 67 3707
  177. 68 3707
  178. 68 3707
  179. 68 3706
  180. >;
  181. battery_profile_t1_num = <100 >;
  182. battery_profile_t1 = <
  183. 0 4264
  184. 2 4240
  185. 3 4222
  186. 5 4206
  187. 6 4190
  188. 8 4174
  189. 9 4160
  190. 11 4145
  191. 12 4130
  192. 14 4116
  193. 15 4102
  194. 17 4090
  195. 18 4078
  196. 20 4064
  197. 21 4048
  198. 23 4032
  199. 24 4016
  200. 26 4002
  201. 27 3990
  202. 29 3979
  203. 30 3968
  204. 32 3957
  205. 33 3946
  206. 35 3934
  207. 36 3921
  208. 38 3906
  209. 39 3892
  210. 41 3880
  211. 42 3869
  212. 44 3860
  213. 45 3852
  214. 47 3845
  215. 48 3839
  216. 50 3833
  217. 51 3827
  218. 53 3821
  219. 54 3816
  220. 56 3811
  221. 57 3806
  222. 59 3802
  223. 60 3798
  224. 62 3794
  225. 63 3791
  226. 65 3788
  227. 66 3785
  228. 68 3784
  229. 69 3781
  230. 71 3778
  231. 72 3775
  232. 74 3772
  233. 75 3767
  234. 77 3761
  235. 78 3753
  236. 80 3745
  237. 81 3734
  238. 83 3723
  239. 84 3712
  240. 86 3705
  241. 87 3701
  242. 89 3698
  243. 90 3695
  244. 92 3691
  245. 93 3682
  246. 95 3656
  247. 96 3607
  248. 97 3578
  249. 97 3563
  250. 97 3552
  251. 98 3545
  252. 98 3538
  253. 98 3532
  254. 98 3528
  255. 98 3524
  256. 98 3520
  257. 98 3517
  258. >;
  259. battery_profile_t2_num = <100 >;
  260. battery_profile_t2 = <
  261. 0 4286
  262. 1 4267
  263. 3 4251
  264. 4 4235
  265. 6 4219
  266. 7 4203
  267. 9 4188
  268. 10 4174
  269. 12 4159
  270. 13 4144
  271. 14 4129
  272. 16 4115
  273. 17 4101
  274. 19 4087
  275. 20 4076
  276. 22 4063
  277. 23 4049
  278. 25 4035
  279. 26 4021
  280. 27 4008
  281. 29 3996
  282. 30 3985
  283. 32 3975
  284. 33 3966
  285. 35 3956
  286. 36 3946
  287. 38 3936
  288. 39 3924
  289. 40 3909
  290. 42 3892
  291. 43 3877
  292. 45 3865
  293. 46 3856
  294. 48 3848
  295. 49 3841
  296. 51 3834
  297. 52 3828
  298. 53 3823
  299. 55 3817
  300. 56 3812
  301. 58 3807
  302. 59 3803
  303. 61 3799
  304. 62 3795
  305. 64 3791
  306. 65 3788
  307. 66 3784
  308. 68 3782
  309. 69 3778
  310. 71 3775
  311. 72 3772
  312. 74 3768
  313. 75 3763
  314. 77 3757
  315. 78 3751
  316. 79 3745
  317. 81 3739
  318. 82 3729
  319. 84 3717
  320. 85 3704
  321. 87 3692
  322. 88 3689
  323. 90 3687
  324. 91 3686
  325. 92 3684
  326. 94 3680
  327. 95 3664
  328. 97 3615
  329. 98 3540
  330. 100 3431
  331. 100 3323
  332. 100 3323
  333. 100 3323
  334. 100 3323
  335. 100 3323
  336. >;
  337. battery_profile_t3_num = <100 >;
  338. battery_profile_t3 = <
  339. 0 4289
  340. 1 4271
  341. 3 4255
  342. 4 4239
  343. 6 4223
  344. 7 4207
  345. 9 4192
  346. 10 4177
  347. 12 4162
  348. 13 4147
  349. 15 4133
  350. 16 4118
  351. 18 4104
  352. 19 4089
  353. 21 4076
  354. 22 4063
  355. 24 4050
  356. 25 4036
  357. 27 4023
  358. 28 4010
  359. 30 3998
  360. 31 3987
  361. 33 3976
  362. 34 3965
  363. 35 3954
  364. 37 3944
  365. 38 3933
  366. 40 3921
  367. 41 3906
  368. 43 3889
  369. 44 3876
  370. 46 3866
  371. 47 3857
  372. 49 3849
  373. 50 3842
  374. 52 3835
  375. 53 3829
  376. 55 3823
  377. 56 3817
  378. 58 3812
  379. 59 3806
  380. 61 3801
  381. 62 3797
  382. 64 3793
  383. 65 3788
  384. 66 3784
  385. 68 3780
  386. 69 3774
  387. 71 3764
  388. 72 3756
  389. 74 3751
  390. 75 3746
  391. 77 3740
  392. 78 3733
  393. 80 3728
  394. 81 3721
  395. 83 3711
  396. 84 3699
  397. 86 3686
  398. 87 3677
  399. 89 3675
  400. 90 3674
  401. 92 3672
  402. 93 3669
  403. 95 3662
  404. 96 3631
  405. 98 3572
  406. 99 3489
  407. 100 3356
  408. 100 3356
  409. 100 3356
  410. 100 3356
  411. 100 3356
  412. 100 3356
  413. 100 3356
  414. >;
  415. r_profile_t0_num = <100 >;
  416. r_profile_t0 = <
  417. 417 4245
  418. 417 4218
  419. 443 4193
  420. 470 4170
  421. 493 4149
  422. 510 4129
  423. 525 4111
  424. 538 4096
  425. 550 4081
  426. 562 4066
  427. 572 4048
  428. 577 4029
  429. 583 4012
  430. 592 3998
  431. 597 3985
  432. 602 3973
  433. 610 3963
  434. 613 3951
  435. 618 3939
  436. 623 3928
  437. 623 3914
  438. 625 3901
  439. 625 3888
  440. 628 3877
  441. 632 3867
  442. 635 3858
  443. 642 3850
  444. 647 3843
  445. 655 3837
  446. 660 3830
  447. 667 3825
  448. 675 3820
  449. 680 3814
  450. 687 3810
  451. 693 3805
  452. 703 3802
  453. 710 3798
  454. 720 3795
  455. 733 3793
  456. 748 3790
  457. 763 3788
  458. 778 3785
  459. 795 3782
  460. 812 3779
  461. 827 3775
  462. 842 3771
  463. 855 3765
  464. 867 3758
  465. 880 3751
  466. 892 3744
  467. 895 3737
  468. 888 3733
  469. 883 3730
  470. 877 3726
  471. 873 3724
  472. 872 3722
  473. 867 3720
  474. 863 3718
  475. 860 3716
  476. 858 3715
  477. 857 3714
  478. 855 3713
  479. 853 3712
  480. 852 3711
  481. 852 3710
  482. 850 3710
  483. 848 3709
  484. 848 3709
  485. 847 3708
  486. 847 3708
  487. 847 3707
  488. 845 3707
  489. 845 3707
  490. 845 3707
  491. 845 3706
  492. >;
  493. r_profile_t1_num = <100 >;
  494. r_profile_t1 = <
  495. 242 4264
  496. 242 4240
  497. 248 4222
  498. 252 4206
  499. 255 4190
  500. 257 4174
  501. 260 4160
  502. 263 4145
  503. 267 4130
  504. 270 4116
  505. 272 4102
  506. 275 4090
  507. 278 4078
  508. 285 4064
  509. 288 4048
  510. 292 4032
  511. 295 4016
  512. 297 4002
  513. 300 3990
  514. 303 3979
  515. 305 3968
  516. 307 3957
  517. 308 3946
  518. 308 3934
  519. 308 3921
  520. 303 3906
  521. 298 3892
  522. 298 3880
  523. 297 3869
  524. 297 3860
  525. 300 3852
  526. 303 3845
  527. 307 3839
  528. 312 3833
  529. 313 3827
  530. 317 3821
  531. 322 3816
  532. 325 3811
  533. 328 3806
  534. 333 3802
  535. 338 3798
  536. 343 3794
  537. 348 3791
  538. 353 3788
  539. 362 3785
  540. 373 3784
  541. 383 3781
  542. 395 3778
  543. 405 3775
  544. 417 3772
  545. 427 3767
  546. 435 3761
  547. 442 3753
  548. 452 3745
  549. 458 3734
  550. 467 3723
  551. 473 3712
  552. 483 3705
  553. 497 3701
  554. 515 3698
  555. 540 3695
  556. 570 3691
  557. 605 3682
  558. 633 3656
  559. 652 3607
  560. 630 3578
  561. 607 3563
  562. 587 3552
  563. 577 3545
  564. 565 3538
  565. 555 3532
  566. 548 3528
  567. 542 3524
  568. 535 3520
  569. 528 3517
  570. >;
  571. r_profile_t2_num = <100 >;
  572. r_profile_t2 = <
  573. 110 4286
  574. 110 4267
  575. 112 4251
  576. 113 4235
  577. 113 4219
  578. 113 4203
  579. 113 4188
  580. 117 4174
  581. 117 4159
  582. 117 4144
  583. 118 4129
  584. 118 4115
  585. 120 4101
  586. 120 4087
  587. 123 4076
  588. 125 4063
  589. 127 4049
  590. 128 4035
  591. 130 4021
  592. 130 4008
  593. 132 3996
  594. 133 3985
  595. 135 3975
  596. 138 3966
  597. 140 3956
  598. 143 3946
  599. 147 3936
  600. 145 3924
  601. 140 3909
  602. 132 3892
  603. 125 3877
  604. 120 3865
  605. 118 3856
  606. 118 3848
  607. 118 3841
  608. 118 3834
  609. 120 3828
  610. 122 3823
  611. 122 3817
  612. 123 3812
  613. 125 3807
  614. 127 3803
  615. 128 3799
  616. 128 3795
  617. 128 3791
  618. 130 3788
  619. 130 3784
  620. 132 3782
  621. 130 3778
  622. 132 3775
  623. 132 3772
  624. 133 3768
  625. 132 3763
  626. 133 3757
  627. 132 3751
  628. 135 3745
  629. 137 3739
  630. 138 3729
  631. 138 3717
  632. 140 3704
  633. 135 3692
  634. 138 3689
  635. 142 3687
  636. 148 3686
  637. 155 3684
  638. 162 3680
  639. 165 3664
  640. 163 3615
  641. 173 3540
  642. 192 3431
  643. 205 3323
  644. 205 3323
  645. 205 3323
  646. 205 3323
  647. 205 3323
  648. >;
  649. r_profile_t3_num = <100 >;
  650. r_profile_t3 = <
  651. 93 4289
  652. 93 4271
  653. 95 4255
  654. 95 4239
  655. 97 4223
  656. 95 4207
  657. 97 4192
  658. 98 4177
  659. 98 4162
  660. 98 4147
  661. 100 4133
  662. 100 4118
  663. 100 4104
  664. 100 4089
  665. 102 4076
  666. 103 4063
  667. 103 4050
  668. 103 4036
  669. 105 4023
  670. 107 4010
  671. 105 3998
  672. 107 3987
  673. 108 3976
  674. 110 3965
  675. 112 3954
  676. 113 3944
  677. 115 3933
  678. 117 3921
  679. 113 3906
  680. 105 3889
  681. 102 3876
  682. 100 3866
  683. 100 3857
  684. 98 3849
  685. 98 3842
  686. 98 3835
  687. 100 3829
  688. 102 3823
  689. 102 3817
  690. 105 3812
  691. 103 3806
  692. 105 3801
  693. 107 3797
  694. 108 3793
  695. 107 3788
  696. 108 3784
  697. 110 3780
  698. 107 3774
  699. 102 3764
  700. 100 3756
  701. 102 3751
  702. 102 3746
  703. 102 3740
  704. 100 3733
  705. 103 3728
  706. 102 3721
  707. 102 3711
  708. 102 3699
  709. 103 3686
  710. 100 3677
  711. 103 3675
  712. 107 3674
  713. 108 3672
  714. 110 3669
  715. 112 3662
  716. 110 3631
  717. 113 3572
  718. 120 3489
  719. 127 3356
  720. 127 3356
  721. 127 3356
  722. 127 3356
  723. 127 3356
  724. 127 3356
  725. 127 3356
  726. >;
  727. };