mlt8735_f3gh_bat_setting.dtsi 12 KB

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