Searched refs:ocv (Results 1 – 7 of 7) sorted by relevance
| /Linux-v5.4/Documentation/devicetree/bindings/power/supply/ |
| D | battery.txt | 27 - ocv-capacity-table-0: An array providing the open circuit voltage (OCV) 31 - ocv-capacity-table-1: Same as ocv-capacity-table-0 33 - ocv-capacity-table-n: Same as ocv-capacity-table-0 34 - ocv-capacity-celsius: An array containing the temperature in degree Celsius, 60 ocv-capacity-celsius = <(-10) 0 10>; 61 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>, ...; 62 ocv-capacity-table-1 = <4200000 100>, <4185000 95>, <4113000 90>, ...; 63 ocv-capacity-table-2 = <4250000 100>, <4200000 95>, <4185000 90>, ...;
|
| D | sc27xx-fg.txt | 25 ocv-capacity-celsius = <20>; 26 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>,
|
| /Linux-v5.4/drivers/power/supply/ |
| D | sc27xx_fuel_gauge.c | 274 int volt, cur, oci, ocv, ret; in sc27xx_fgu_get_boot_capacity() local 312 ocv = volt * 1000 - oci * data->internal_resist; in sc27xx_fgu_get_boot_capacity() 319 ocv); in sc27xx_fgu_get_boot_capacity() 691 int ret, ocv, chg_sts, adc; in sc27xx_fgu_capacity_calibration() local 693 ret = sc27xx_fgu_get_vbat_ocv(data, &ocv); in sc27xx_fgu_capacity_calibration() 712 if ((ocv > data->cap_table[0].ocv && cap < 100) || cap > 100) { in sc27xx_fgu_capacity_calibration() 719 } else if (ocv <= data->cap_table[data->table_len - 1].ocv) { in sc27xx_fgu_capacity_calibration() 725 } else if ((ocv > data->cap_table[data->table_len - 1].ocv && cap <= 0) || in sc27xx_fgu_capacity_calibration() 726 (ocv > data->min_volt && cap <= data->alarm_cap)) { in sc27xx_fgu_capacity_calibration() 733 data->table_len, ocv); in sc27xx_fgu_capacity_calibration() [all …]
|
| D | 88pm860x_battery.c | 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() 394 if (ocv >= array_soc[i][0]) { in calc_soc()
|
| D | power_supply_core.c | 673 table[i].ocv = be32_to_cpu(*list); in power_supply_get_battery_info() 711 int table_len, int ocv) in power_supply_ocv2cap_simple() argument 716 if (ocv > table[i].ocv) in power_supply_ocv2cap_simple() 721 (ocv - table[i].ocv); in power_supply_ocv2cap_simple() 722 tmp /= table[i - 1].ocv - table[i].ocv; in power_supply_ocv2cap_simple() 759 int ocv, int temp) in power_supply_batinfo_ocv2cap() argument 768 return power_supply_ocv2cap_simple(table, table_len, ocv); in power_supply_batinfo_ocv2cap()
|
| /Linux-v5.4/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.4/include/linux/ |
| D | power_supply.h | 324 int ocv; /* microVolts */ member 378 int table_len, int ocv); 383 int ocv, int temp);
|