Lines Matching +full:ocv +full:- +full:capacity +full:- +full:table +full:-
1 // SPDX-License-Identifier: GPL-2.0
14 #include "samsung-sdi-battery.h"
24 * depending on the VBAT voltage, so look this up from a table. Different
428 * so this represents the capacity ratio at different temperatures.
430 * FIXME: the proper table is missing: Samsung does not provide the necessary
441 { .temp = -10, .resistance = 100 },
442 { .temp = -20, .resistance = 100 },
446 * Capacity tables for different Open Circuit Voltages (OCV).
447 * These must be sorted by falling OCV value.
451 { .ocv = 4330000, .capacity = 100},
452 { .ocv = 4320000, .capacity = 99},
453 { .ocv = 4283000, .capacity = 95},
454 { .ocv = 4246000, .capacity = 92},
455 { .ocv = 4211000, .capacity = 89},
456 { .ocv = 4167000, .capacity = 85},
457 { .ocv = 4146000, .capacity = 83},
458 { .ocv = 4124000, .capacity = 81},
459 { .ocv = 4062000, .capacity = 75},
460 { .ocv = 4013000, .capacity = 70},
461 { .ocv = 3977000, .capacity = 66},
462 { .ocv = 3931000, .capacity = 60},
463 { .ocv = 3914000, .capacity = 58},
464 { .ocv = 3901000, .capacity = 57},
465 { .ocv = 3884000, .capacity = 56},
466 { .ocv = 3870000, .capacity = 55},
467 { .ocv = 3862000, .capacity = 54},
468 { .ocv = 3854000, .capacity = 53},
469 { .ocv = 3838000, .capacity = 50},
470 { .ocv = 3823000, .capacity = 47},
471 { .ocv = 3813000, .capacity = 45},
472 { .ocv = 3807000, .capacity = 43},
473 { .ocv = 3800000, .capacity = 41},
474 { .ocv = 3795000, .capacity = 40},
475 { .ocv = 3786000, .capacity = 37},
476 { .ocv = 3783000, .capacity = 35},
477 { .ocv = 3773000, .capacity = 30},
478 { .ocv = 3758000, .capacity = 25},
479 { .ocv = 3745000, .capacity = 22},
480 { .ocv = 3738000, .capacity = 20},
481 { .ocv = 3733000, .capacity = 19},
482 { .ocv = 3716000, .capacity = 17},
483 { .ocv = 3709000, .capacity = 16},
484 { .ocv = 3698000, .capacity = 15},
485 { .ocv = 3687000, .capacity = 14},
486 { .ocv = 3684000, .capacity = 13},
487 { .ocv = 3684000, .capacity = 12},
488 { .ocv = 3678000, .capacity = 10},
489 { .ocv = 3671000, .capacity = 9},
490 { .ocv = 3665000, .capacity = 8},
491 { .ocv = 3651000, .capacity = 7},
492 { .ocv = 3634000, .capacity = 6},
493 { .ocv = 3601000, .capacity = 5},
494 { .ocv = 3564000, .capacity = 4},
495 { .ocv = 3516000, .capacity = 3},
496 { .ocv = 3456000, .capacity = 2},
497 { .ocv = 3381000, .capacity = 1},
498 { .ocv = 3300000, .capacity = 0},
501 /* Same capacity table is used by eb-l1m7flu, eb425161la, eb425161lu */
503 { .ocv = 4328000, .capacity = 100},
504 { .ocv = 4299000, .capacity = 99},
505 { .ocv = 4281000, .capacity = 98},
506 { .ocv = 4241000, .capacity = 95},
507 { .ocv = 4183000, .capacity = 90},
508 { .ocv = 4150000, .capacity = 87},
509 { .ocv = 4116000, .capacity = 84},
510 { .ocv = 4077000, .capacity = 80},
511 { .ocv = 4068000, .capacity = 79},
512 { .ocv = 4058000, .capacity = 77},
513 { .ocv = 4026000, .capacity = 75},
514 { .ocv = 3987000, .capacity = 72},
515 { .ocv = 3974000, .capacity = 69},
516 { .ocv = 3953000, .capacity = 66},
517 { .ocv = 3933000, .capacity = 63},
518 { .ocv = 3911000, .capacity = 60},
519 { .ocv = 3900000, .capacity = 58},
520 { .ocv = 3873000, .capacity = 55},
521 { .ocv = 3842000, .capacity = 52},
522 { .ocv = 3829000, .capacity = 50},
523 { .ocv = 3810000, .capacity = 45},
524 { .ocv = 3793000, .capacity = 40},
525 { .ocv = 3783000, .capacity = 35},
526 { .ocv = 3776000, .capacity = 30},
527 { .ocv = 3762000, .capacity = 25},
528 { .ocv = 3746000, .capacity = 20},
529 { .ocv = 3739000, .capacity = 18},
530 { .ocv = 3715000, .capacity = 15},
531 { .ocv = 3700000, .capacity = 12},
532 { .ocv = 3690000, .capacity = 10},
533 { .ocv = 3680000, .capacity = 9},
534 { .ocv = 3670000, .capacity = 7},
535 { .ocv = 3656000, .capacity = 5},
536 { .ocv = 3634000, .capacity = 4},
537 { .ocv = 3614000, .capacity = 3},
538 { .ocv = 3551000, .capacity = 2},
539 { .ocv = 3458000, .capacity = 1},
540 { .ocv = 3300000, .capacity = 0},
544 { .ocv = 4178000, .capacity = 100},
545 { .ocv = 4148000, .capacity = 99},
546 { .ocv = 4105000, .capacity = 95},
547 { .ocv = 4078000, .capacity = 92},
548 { .ocv = 4057000, .capacity = 89},
549 { .ocv = 4013000, .capacity = 85},
550 { .ocv = 3988000, .capacity = 82},
551 { .ocv = 3962000, .capacity = 77},
552 { .ocv = 3920000, .capacity = 70},
553 { .ocv = 3891000, .capacity = 65},
554 { .ocv = 3874000, .capacity = 62},
555 { .ocv = 3839000, .capacity = 59},
556 { .ocv = 3816000, .capacity = 55},
557 { .ocv = 3798000, .capacity = 50},
558 { .ocv = 3778000, .capacity = 40},
559 { .ocv = 3764000, .capacity = 30},
560 { .ocv = 3743000, .capacity = 25},
561 { .ocv = 3711000, .capacity = 20},
562 { .ocv = 3691000, .capacity = 18},
563 { .ocv = 3685000, .capacity = 15},
564 { .ocv = 3680000, .capacity = 12},
565 { .ocv = 3662000, .capacity = 10},
566 { .ocv = 3638000, .capacity = 9},
567 { .ocv = 3593000, .capacity = 7},
568 { .ocv = 3566000, .capacity = 6},
569 { .ocv = 3497000, .capacity = 4},
570 { .ocv = 3405000, .capacity = 2},
571 { .ocv = 3352000, .capacity = 1},
572 { .ocv = 3300000, .capacity = 0},
576 { .ocv = 4320000, .capacity = 100},
577 { .ocv = 4296000, .capacity = 99},
578 { .ocv = 4283000, .capacity = 98},
579 { .ocv = 4245000, .capacity = 95},
580 { .ocv = 4185000, .capacity = 90},
581 { .ocv = 4152000, .capacity = 87},
582 { .ocv = 4119000, .capacity = 84},
583 { .ocv = 4077000, .capacity = 80},
584 { .ocv = 4057000, .capacity = 78},
585 { .ocv = 4048000, .capacity = 77},
586 { .ocv = 4020000, .capacity = 74},
587 { .ocv = 4003000, .capacity = 72},
588 { .ocv = 3978000, .capacity = 69},
589 { .ocv = 3955000, .capacity = 66},
590 { .ocv = 3934000, .capacity = 63},
591 { .ocv = 3912000, .capacity = 60},
592 { .ocv = 3894000, .capacity = 58},
593 { .ocv = 3860000, .capacity = 55},
594 { .ocv = 3837000, .capacity = 52},
595 { .ocv = 3827000, .capacity = 50},
596 { .ocv = 3806000, .capacity = 45},
597 { .ocv = 3791000, .capacity = 40},
598 { .ocv = 3779000, .capacity = 35},
599 { .ocv = 3770000, .capacity = 30},
600 { .ocv = 3758000, .capacity = 25},
601 { .ocv = 3739000, .capacity = 20},
602 { .ocv = 3730000, .capacity = 18},
603 { .ocv = 3706000, .capacity = 15},
604 { .ocv = 3684000, .capacity = 13},
605 { .ocv = 3675000, .capacity = 10},
606 { .ocv = 3673000, .capacity = 9},
607 { .ocv = 3665000, .capacity = 7},
608 { .ocv = 3649000, .capacity = 5},
609 { .ocv = 3628000, .capacity = 4},
610 { .ocv = 3585000, .capacity = 3},
611 { .ocv = 3525000, .capacity = 2},
612 { .ocv = 3441000, .capacity = 1},
613 { .ocv = 3300000, .capacity = 0},
634 * Used in Samsung GT-I8190 "Golden"
635 * Data from vendor boardfile board-golden-[bm|battery].c
637 .compatible = "samsung,eb-l1m7flu",
638 .name = "EB-L1M7FLU",
658 .temp_min = -50,
678 * Used in Samsung SGH-T599 "Codina TMO" and SGH-I407 "Kyle"
679 * Data from vendor boardfile board-kyle-[bm|battery].c
702 .temp_min = -30,
722 * Used in Samsung GT-I8160 "Codina"
723 * Data from vendor boardfile board-codina-[bm|battery].c
746 .temp_min = -50,
766 * Used in Samsung GT-S7710 "Skomer"
767 * Data from vendor boardfile board-skomer-[bm|battery].c
789 .temp_min = -50,
799 /* CHECKME: vendor uses the 1500 mAh table, check against datasheet */
810 * Used in Samsung GT-I9070 "Janice"
811 * Data from vendor boardfile board-janice-bm.c
834 .temp_min = -5,
854 * Used in Samsung GT-I8530 "Gavini"
855 * Data from vendor boardfile board-gavini-bm.c
878 .temp_min = -5,
907 if (!strcmp(compatible, batt->compatible)) in samsung_sdi_battery_get_info()
912 return -ENODEV; in samsung_sdi_battery_get_info()
914 *info = &batt->info; in samsung_sdi_battery_get_info()
916 batt->name, batt->info.charge_full_design_uah / 1000); in samsung_sdi_battery_get_info()