Lines Matching +full:ocv +full:- +full:capacity +full:- +full:celsius
1 /* SPDX-License-Identifier: GPL-2.0-only */
23 * µA, µAh, µWh, seconds and tenths of degree Celsius unless otherwise
29 * For systems where the charger determines the maximum battery capacity
226 /* Run-time specific power supply configuration */
343 int ocv; /* microVolts */ member
344 int capacity; /* percent */ member
348 int temp; /* celsius */
358 * struct power_supply_maintenance_charge_table - setting for maintenace charging
391 * +-------------------------------------------------------------------> t
393 * Practically this means that the Li-ions are wandering back and forth in the
404 * +-------------------------------------------------------------------> t
415 * As an example, a Samsung EB425161LA Lithium-Ion battery is CC/CV charged
430 * the expected stand-by current. Also overvoltage protection will be applied
442 * struct power_supply_battery_info - information about batteries
512 * @ocv_temp: array indicating the open circuit voltage (OCV) capacity
513 * temperature indices. This is an array of temperatures in degrees Celsius
514 * indicating which capacity table to use for a certain temperature, since
515 * the capacity for reasons of chemistry will be different at different
516 * temperatures. Determining capacity is a multivariate problem and the
520 * Celsius.
523 * Celsius.
525 * temperature goes below this temperature in degrees Celsius.
527 * temperature goes above this temperature in degrees Celsius.
529 * the internal temperature goes below this temperature in degrees Celsius.
532 * the internal temperature goes above this temperature in degrees Celsius.
536 * determine the capacity in percent in relation to the voltage in microvolts
539 * each entry in the array of capacity arrays in ocv_table.
544 * circuit voltage (OCV) that is then used with the ocv_table to calculate
545 * the capacity of the battery. The resist_table must be ordered descending
552 * determine the open circuit voltage so that we can determine the capacity
569 * for example 10 for +/- 10%, if the bti_resistance is set to 7000 and the
578 * The default field value is -EINVAL or NULL for pointers.
587 * | --- overvoltage_limit_uv
600 * +------------------------------------------------------------------> time
617 * +-----------------------------------------------------------------> time
628 * 2. Next a small initial pre-charge current (precharge_current_ua)
665 * DETERMINING BATTERY CAPACITY:
668 * capacity in the battery, usually as a percentage of charge. In practice
669 * many chargers uses a so-called fuel gauge or coloumb counter that measure
670 * how much charge goes into the battery and how much goes out (+/- leak
671 * consumption). This does not help if we do not know how much capacity the
673 * and charged in a separate charger. Therefore many capacity algorithms use
674 * the open circuit voltage with a look-up table to determine the rough
675 * capacity of the battery. The open circuit voltage can be conceptualized
679 * +-------> IBAT >----------------+
683 * o <---------- | |
685 * .---. | | |
686 * | V | | OCV | |
687 * '---' | | |
689 * GND +-------------------------------+
693 * VBAT = OCV and this assumption is sometimes made even under load, assuming
696 * temperature and how much capacity is left in the battery due to the
704 * OCV = VBAT - (IBAT * Ri)
709 * some batteries. This gives the compensated open circuit voltage (OCV) for
713 * VBAT to Ri takes both remaining capacity and temperature into consideration.
715 * Alternatively a manufacturer can specify how the capacity of the battery
723 * Celsius.
799 int table_len, int ocv);
804 int ocv, int temp);
834 return ((info->vbat2ri_discharging != NULL) && in power_supply_supports_vbat2ri()
835 info->vbat2ri_discharging_size > 0); in power_supply_supports_vbat2ri()
841 return ((info->resist_table != NULL) && in power_supply_supports_temp2ri()
842 info->resist_table_size > 0); in power_supply_supports_temp2ri()
848 static inline int power_supply_is_system_supplied(void) { return -ENOSYS; } in power_supply_is_system_supplied()
974 return -EOPNOTSUPP; in power_supply_charge_behaviour_show()
980 return -EOPNOTSUPP; in power_supply_charge_behaviour_parse()