Lines Matching +full:resistance +full:- +full:temp +full:- +full:table
1 /* SPDX-License-Identifier: GPL-2.0-only */
226 /* Run-time specific power supply configuration */
349 int temp; /* celsius */ member
350 int resistance; /* internal resistance percent */ member
355 int ri_uohm; /* Internal resistance in microohm */
359 * struct power_supply_maintenance_charge_table - setting for maintenace charging
392 * +-------------------------------------------------------------------> t
394 * Practically this means that the Li-ions are wandering back and forth in the
405 * +-------------------------------------------------------------------> t
407 * Maintenance charging uses the voltages from this table: a table of settings
416 * As an example, a Samsung EB425161LA Lithium-Ion battery is CC/CV charged
431 * the expected stand-by current. Also overvoltage protection will be applied
443 * struct power_supply_battery_info - information about batteries
502 * @factory_internal_resistance_uohm: the internal resistance of the battery
503 * at fabrication time, expressed in microohms. This resistance will vary
505 * nominal ballpark figure. This internal resistance is given for the state
507 * @factory_internal_resistance_charging_uohm: the internal resistance of the
509 * The charging process will affect the internal resistance of the battery
510 * so this value provides a better resistance under these circumstances.
511 * This resistance will vary depending on the lifetime and charge of the
515 * indicating which capacity table to use for a certain temperature, since
541 * @resist_table: this is a table that correlates a battery temperature to the
542 * expected internal resistance at this temperature. The resistance is given
544 * resistance of the battery is usually necessary for calculating the open
547 * by temperature: highest temperature with lowest resistance first, lowest
548 * temperature with highest resistance last.
550 * @vbat2ri_discharging: this is a table that correlates Battery voltage (VBAT)
551 * to internal resistance (Ri). The resistance is given in microohm for the
552 * corresponding voltage in microvolts. The internal resistance is used to
554 * of the battery. These voltages to resistance tables apply when the battery
555 * is discharging. The table must be ordered descending by voltage: highest
558 * table.
561 * internal resistance characteristics so a separate table is needed.*
562 * The table must be ordered descending by voltage: highest voltage first.
564 * table.
565 * @bti_resistance_ohm: The Battery Type Indicator (BIT) nominal resistance
569 * @bti_resistance_tolerance: The tolerance in percent of the BTI resistance,
570 * for example 10 for +/- 10%, if the bti_resistance is set to 7000 and the
571 * tolerance is 10% we will detect a proper battery if the BTI resistance
579 * The default field value is -EINVAL or NULL for pointers.
588 * | --- overvoltage_limit_uv
601 * +------------------------------------------------------------------> time
618 * +-----------------------------------------------------------------> time
629 * 2. Next a small initial pre-charge current (precharge_current_ua)
670 * many chargers uses a so-called fuel gauge or coloumb counter that measure
671 * how much charge goes into the battery and how much goes out (+/- leak
675 * the open circuit voltage with a look-up table to determine the rough
677 * with an ideal voltage source (V) in series with an internal resistance (Ri)
680 * +-------> IBAT >----------------+
684 * o <---------- | |
686 * .---. | | |
688 * '---' | | |
690 * GND +-------------------------------+
692 * If we disconnect the load (here simplified as a fixed resistance Rload)
705 * OCV = VBAT - (IBAT * Ri)
713 * resistance change, and it will affect the VBAT under load, so correlating
721 * the purpose of the table resist_table: this will take a temperature and
805 extern int power_supply_ocv2cap_simple(struct power_supply_battery_ocv_table *table,
809 int temp, int *table_len);
811 int ocv, int temp);
813 power_supply_temp2resist_simple(struct power_supply_resistance_temp_table *table,
814 int table_len, int temp);
820 int resistance);
841 return ((info->vbat2ri_discharging != NULL) && in power_supply_supports_vbat2ri()
842 info->vbat2ri_discharging_size > 0); in power_supply_supports_vbat2ri()
848 return ((info->resist_table != NULL) && in power_supply_supports_temp2ri()
849 info->resist_table_size > 0); in power_supply_supports_temp2ri()
855 static inline int power_supply_is_system_supplied(void) { return -ENOSYS; } in power_supply_is_system_supplied()
981 return -EOPNOTSUPP; in power_supply_charge_behaviour_show()
987 return -EOPNOTSUPP; in power_supply_charge_behaviour_parse()