Searched full:ocv (Results 1 – 10 of 10) sorted by relevance
/Linux-v5.10/drivers/power/supply/ |
D | sc27xx_fuel_gauge.c | 94 * @cap_table: capacity table with corresponding ocv 288 int volt, cur, oci, ocv, ret; in sc27xx_fgu_get_boot_capacity() local 317 * Should get the OCV from SC27XX_FGU_POCV register at the system in sc27xx_fgu_get_boot_capacity() 326 ocv = volt * 1000 - oci * data->internal_resist; in sc27xx_fgu_get_boot_capacity() 327 data->boot_volt = ocv; in sc27xx_fgu_get_boot_capacity() 331 * according to current battery's corresponding OCV values. in sc27xx_fgu_get_boot_capacity() 334 ocv); in sc27xx_fgu_get_boot_capacity() 511 /* Return the battery OCV in micro volts. */ in sc27xx_fgu_get_vbat_ocv() 795 int ret, ocv, chg_sts, adc; in sc27xx_fgu_capacity_calibration() local 797 ret = sc27xx_fgu_get_vbat_ocv(data, &ocv); in sc27xx_fgu_capacity_calibration() [all …]
|
D | power_supply_core.c | 661 len = of_property_count_u32_elems(battery_np, "ocv-capacity-celsius"); in power_supply_get_battery_info() 670 of_property_read_u32_array(battery_np, "ocv-capacity-celsius", in power_supply_get_battery_info() 679 propname = kasprintf(GFP_KERNEL, "ocv-capacity-table-%d", index); in power_supply_get_battery_info() 702 table[i].ocv = be32_to_cpu(*list); in power_supply_get_battery_info() 792 * @table: Pointer to battery OCV lookup table 793 * @table_len: OCV table length 794 * @ocv: Current OCV value 797 * current OCV value from one OCV table, and the OCV table must be ordered 803 int table_len, int ocv) in power_supply_ocv2cap_simple() argument 808 if (ocv > table[i].ocv) in power_supply_ocv2cap_simple() [all …]
|
D | 88pm860x_battery.c | 68 /* OCV -- Open Circuit Voltage */ 327 static int calc_ocv(struct pm860x_battery_info *info, int *ocv) in calc_ocv() argument 337 if (!ocv) in calc_ocv() 355 *ocv = vbatt_avg - ibatt_avg * info->resistor / 1000; in calc_ocv() 357 *ocv = vbatt_avg; in calc_ocv() 359 dev_dbg(info->dev, "VBAT average:%d, OCV:%d\n", vbatt_avg, *ocv); in calc_ocv() 369 int ocv; in calc_soc() local 378 ret = calc_ocv(info, &ocv); in calc_soc() 381 ret = measure_vbatt(info, OCV_MODE_SLEEP, &ocv); in calc_soc() 388 if (ocv < array_soc[count - 1][0]) { in calc_soc() [all …]
|
D | axp288_charger.c | 726 /* Disable OCV-SOC curve calibration */ in charger_init_hw_regs()
|
/Linux-v5.10/Documentation/devicetree/bindings/power/supply/ |
D | battery.yaml | 80 ocv-capacity-celsius: 110 '^ocv-capacity-table-[0-9]+$': 113 An array providing the open circuit voltage (OCV) 115 to look up battery capacity according to current OCV value. And the open 120 - description: open circuit voltage (OCV) in microvolts 146 ocv-capacity-celsius = <(-10) 0 10>; 148 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>; 150 ocv-capacity-table-1 = <4200000 100>, <4185000 95>, <4113000 90>; 152 ocv-capacity-table-2 = <4250000 100>, <4200000 95>, <4185000 90>;
|
D | sc27xx-fg.txt | 27 ocv-capacity-celsius = <20>; 28 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>,
|
/Linux-v5.10/arch/arm64/boot/dts/sprd/ |
D | sp9860g-1h10.dts | 49 ocv-capacity-celsius = <20>; 50 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>,
|
/Linux-v5.10/include/linux/ |
D | power_supply.h | 334 int ocv; /* microVolts */ member 405 int table_len, int ocv); 410 int ocv, int temp);
|
/Linux-v5.10/include/linux/mfd/ |
D | axp20x.h | 237 /* OCV */
|
/Linux-v5.10/include/uapi/linux/ |
D | nl80211.h | 5884 * Channel Validation (OCV) when using driver's SME for RSNA handshakes.
|