Lines Matching +full:resistance +full:- +full:temp +full:- +full:table
1 /* SPDX-License-Identifier: GPL-2.0-only */
230 /* Run-time specific power supply configuration */
378 int temp; /* celsius */ member
379 int resistance; /* internal resistance percent */ member
384 int ri_uohm; /* Internal resistance in microohm */
388 * struct power_supply_maintenance_charge_table - setting for maintenace charging
421 * +-------------------------------------------------------------------> t
423 * Practically this means that the Li-ions are wandering back and forth in the
434 * +-------------------------------------------------------------------> t
436 * Maintenance charging uses the voltages from this table: a table of settings
445 * As an example, a Samsung EB425161LA Lithium-Ion battery is CC/CV charged
460 * the expected stand-by current. Also overvoltage protection will be applied
472 * struct power_supply_battery_info - information about batteries
531 * @factory_internal_resistance_uohm: the internal resistance of the battery
532 * at fabrication time, expressed in microohms. This resistance will vary
534 * nominal ballpark figure. This internal resistance is given for the state
536 * @factory_internal_resistance_charging_uohm: the internal resistance of the
538 * The charging process will affect the internal resistance of the battery
539 * so this value provides a better resistance under these circumstances.
540 * This resistance will vary depending on the lifetime and charge of the
544 * indicating which capacity table to use for a certain temperature, since
570 * @resist_table: this is a table that correlates a battery temperature to the
571 * expected internal resistance at this temperature. The resistance is given
573 * resistance of the battery is usually necessary for calculating the open
576 * by temperature: highest temperature with lowest resistance first, lowest
577 * temperature with highest resistance last.
579 * @vbat2ri_discharging: this is a table that correlates Battery voltage (VBAT)
580 * to internal resistance (Ri). The resistance is given in microohm for the
581 * corresponding voltage in microvolts. The internal resistance is used to
583 * of the battery. These voltages to resistance tables apply when the battery
584 * is discharging. The table must be ordered descending by voltage: highest
587 * table.
590 * internal resistance characteristics so a separate table is needed.*
591 * The table must be ordered descending by voltage: highest voltage first.
593 * table.
594 * @bti_resistance_ohm: The Battery Type Indicator (BIT) nominal resistance
598 * @bti_resistance_tolerance: The tolerance in percent of the BTI resistance,
599 * for example 10 for +/- 10%, if the bti_resistance is set to 7000 and the
600 * tolerance is 10% we will detect a proper battery if the BTI resistance
608 * The default field value is -EINVAL or NULL for pointers.
617 * | --- overvoltage_limit_uv
630 * +------------------------------------------------------------------> time
647 * +-----------------------------------------------------------------> time
658 * 2. Next a small initial pre-charge current (precharge_current_ua)
699 * many chargers uses a so-called fuel gauge or coloumb counter that measure
700 * how much charge goes into the battery and how much goes out (+/- leak
704 * the open circuit voltage with a look-up table to determine the rough
706 * with an ideal voltage source (V) in series with an internal resistance (Ri)
709 * +-------> IBAT >----------------+
713 * o <---------- | |
715 * .---. | | |
717 * '---' | | |
719 * GND +-------------------------------+
721 * If we disconnect the load (here simplified as a fixed resistance Rload)
734 * OCV = VBAT - (IBAT * Ri)
742 * resistance change, and it will affect the VBAT under load, so correlating
750 * the purpose of the table resist_table: this will take a temperature and
834 extern int power_supply_ocv2cap_simple(const struct power_supply_battery_ocv_table *table,
838 int temp, int *table_len);
840 int ocv, int temp);
842 power_supply_temp2resist_simple(const struct power_supply_resistance_temp_table *table,
843 int table_len, int temp);
849 int resistance);
870 return ((info->vbat2ri_discharging != NULL) && in power_supply_supports_vbat2ri()
871 info->vbat2ri_discharging_size > 0); in power_supply_supports_vbat2ri()
877 return ((info->resist_table != NULL) && in power_supply_supports_temp2ri()
878 info->resist_table_size > 0); in power_supply_supports_temp2ri()
884 static inline int power_supply_is_system_supplied(void) { return -ENOSYS; } in power_supply_is_system_supplied()
999 return -EOPNOTSUPP; in power_supply_charge_behaviour_show()
1005 return -EOPNOTSUPP; in power_supply_charge_behaviour_parse()
1014 return -EOPNOTSUPP; in power_supply_charge_types_show()
1019 return -EOPNOTSUPP; in power_supply_charge_types_parse()