Home
last modified time | relevance | path

Searched full:ocv (Results 1 – 25 of 25) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Dsamsung-sdi-battery.c446 * Capacity tables for different Open Circuit Voltages (OCV).
447 * These must be sorted by falling OCV value.
451 { .ocv = 4330000, .capacity = 100},
452 { .ocv = 4320000, .capacity = 99},
453 { .ocv = 4283000, .capacity = 95},
454 { .ocv = 4246000, .capacity = 92},
455 { .ocv = 4211000, .capacity = 89},
456 { .ocv = 4167000, .capacity = 85},
457 { .ocv = 4146000, .capacity = 83},
458 { .ocv = 4124000, .capacity = 81},
[all …]
H A Dab8500_bmdata.c20 { .ocv = 4186000, .capacity = 100},
21 { .ocv = 4163000, .capacity = 99},
22 { .ocv = 4114000, .capacity = 95},
23 { .ocv = 4068000, .capacity = 90},
24 { .ocv = 3990000, .capacity = 80},
25 { .ocv = 3926000, .capacity = 70},
26 { .ocv = 3898000, .capacity = 65},
27 { .ocv = 3866000, .capacity = 60},
28 { .ocv = 3833000, .capacity = 55},
29 { .ocv = 3812000, .capacity = 50},
[all …]
H A Dsc27xx_fuel_gauge.c94 * @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()
788 int ret, ocv, chg_sts, adc; in sc27xx_fgu_capacity_calibration() local
790 ret = sc27xx_fgu_get_vbat_ocv(data, &ocv); in sc27xx_fgu_capacity_calibration()
[all …]
H A Dpower_supply_core.c739 len = of_property_count_u32_elems(battery_np, "ocv-capacity-celsius"); in power_supply_get_battery_info()
748 of_property_read_u32_array(battery_np, "ocv-capacity-celsius", in power_supply_get_battery_info()
757 propname = kasprintf(GFP_KERNEL, "ocv-capacity-table-%d", index); in power_supply_get_battery_info()
785 table[i].ocv = be32_to_cpu(*list); in power_supply_get_battery_info()
1082 * @table: Pointer to battery OCV lookup table
1083 * @table_len: OCV table length
1084 * @ocv: Current OCV value
1087 * current OCV value from one OCV table, and the OCV table must be ordered
1093 int table_len, int ocv) in power_supply_ocv2cap_simple() argument
1098 if (ocv > table[i].ocv) in power_supply_ocv2cap_simple()
[all …]
H A D88pm860x_battery.c68 /* 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 …]
H A Dug3105_battery.c22 * energy_full attributes. Guess boot + resume energy_now value based on ocv
75 int ocv[UG3105_MOV_AVG_WINDOW]; /* micro-volt */ member
123 * OCV voltages in uV for 0-110% in 5% increments, the 100-110% is in ug3105_get_capacity()
203 chip->ocv[chip->ocv_avg_index] = in ug3105_work()
229 chip->ocv_avg += chip->ocv[i]; in ug3105_work()
246 * Assuming that the OCV voltage does not change significantly in ug3105_work()
H A Daxp288_fuel_gauge.c136 int ocv; member
251 info->ocv = ret; in fuel_gauge_update_registers()
328 int vocv = VOLTAGE_FROM_ADC(info->ocv); in fuel_gauge_battery_health()
365 value = VOLTAGE_FROM_ADC(info->ocv); in fuel_gauge_get_property()
H A Drk817_charger.c764 * If the battery is uninitialized, use the poweron voltage and an ocv in rk817_read_or_set_full_charge_on_boot()
776 * 20C for OCV lookup. If lookup fails, report error with OCV in rk817_read_or_set_full_charge_on_boot()
814 * counting at 2550 (0xFF) minutes. BSP kernel used OCV, but in rk817_read_or_set_full_charge_on_boot()
913 * Set OCV Threshold Voltage to 127.5mV. This was hard coded like this in rk817_battery_init()
H A Daxp288_charger.c757 /* Disable OCV-SOC curve calibration */ in charger_init_hw_regs()
/openbmc/linux/Documentation/devicetree/bindings/power/supply/
H A Dbattery.yaml99 ocv-capacity-celsius:
126 '^ocv-capacity-table-[0-9]+$':
129 An array providing the open circuit voltage (OCV)
131 to look up battery capacity according to current OCV value. And the open
136 - description: open circuit voltage (OCV) in microvolts
162 ocv-capacity-celsius = <(-10) 0 10>;
164 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>;
166 ocv-capacity-table-1 = <4200000 100>, <4185000 95>, <4113000 90>;
168 ocv-capacity-table-2 = <4250000 100>, <4200000 95>, <4185000 90>;
H A Dsc27xx-fg.yaml72 ocv-capacity-celsius = <20>;
73 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>,
/openbmc/linux/arch/arm64/boot/dts/sprd/
H A Dsp9860g-1h10.dts49 ocv-capacity-celsius = <20>;
50 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>,
/openbmc/linux/arch/arm64/boot/dts/rockchip/
H A Drk3326-odroid-go2.dts50 ocv-capacity-celsius = <20>;
51 ocv-capacity-table-0 = <4046950 100>, <4001920 95>, <3967900 90>, <3919950 85>,
H A Drk3566-anbernic-rg353vs.dts30 ocv-capacity-celsius = <20>;
31 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
H A Drk3566-anbernic-rg353v.dts31 ocv-capacity-celsius = <20>;
32 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
H A Drk3566-anbernic-rg353ps.dts30 ocv-capacity-celsius = <20>;
31 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
H A Drk3566-anbernic-rg353p.dts31 ocv-capacity-celsius = <20>;
32 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
H A Drk3326-odroid-go2-v11.dts54 ocv-capacity-celsius = <20>;
55 ocv-capacity-table-0 = <4046950 100>, <4001920 95>, <3967900 90>, <3919950 85>,
H A Drk3326-odroid-go3.dts87 ocv-capacity-celsius = <20>;
88 ocv-capacity-table-0 = <4046950 100>, <4001920 95>, <3967900 90>, <3919950 85>,
H A Drk3566-anbernic-rg503.dts30 ocv-capacity-celsius = <20>;
31 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
/openbmc/linux/include/linux/
H A Dpower_supply.h344 int ocv; /* microVolts */ member
513 * @ocv_temp: array indicating the open circuit voltage (OCV) capacity
545 * circuit voltage (OCV) that is then used with the ocv_table to calculate
687 * | V | | OCV | |
694 * VBAT = OCV and this assumption is sometimes made even under load, assuming
705 * OCV = VBAT - (IBAT * Ri)
710 * some batteries. This gives the compensated open circuit voltage (OCV) for
807 int table_len, int ocv);
812 int ocv, int temp);
/openbmc/qemu/target/s390x/tcg/
H A Dcrypto_helper.c82 /* a is icv/ocv, w is a single message block. w will get reused internally. */
111 /* a is icv/ocv, w is a single message block that needs be64 conversion. */
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Drockchip,rk817.yaml140 and a valid ocv-capacity table.
/openbmc/linux/include/linux/mfd/
H A Daxp20x.h327 /* OCV */
/openbmc/linux/include/uapi/linux/
H A Dnl80211.h6347 * Channel Validation (OCV) when using driver's SME for RSNA handshakes.