| /linux-6.15/drivers/power/supply/ |
| H A D | samsung-sdi-battery.c | 489 { .ocv = 3671000, .capacity = 9}, 490 { .ocv = 3665000, .capacity = 8}, 491 { .ocv = 3651000, .capacity = 7}, 492 { .ocv = 3634000, .capacity = 6}, 493 { .ocv = 3601000, .capacity = 5}, 494 { .ocv = 3564000, .capacity = 4}, 495 { .ocv = 3516000, .capacity = 3}, 496 { .ocv = 3456000, .capacity = 2}, 497 { .ocv = 3381000, .capacity = 1}, 498 { .ocv = 3300000, .capacity = 0}, [all …]
|
| H A D | ab8500_bmdata.c | 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}, 37 { .ocv = 3672000, .capacity = 9}, 38 { .ocv = 3657000, .capacity = 7}, 39 { .ocv = 3638000, .capacity = 6}, [all …]
|
| H A D | sc27xx_fuel_gauge.c | 288 int volt, cur, oci, ocv, ret; in sc27xx_fgu_get_boot_capacity() local 327 data->boot_volt = ocv; in sc27xx_fgu_get_boot_capacity() 334 ocv); in sc27xx_fgu_get_boot_capacity() 788 int ret, ocv, chg_sts, adc; in sc27xx_fgu_capacity_calibration() local 809 if ((ocv > data->cap_table[0].ocv && cap < 100) || cap > 100) { in sc27xx_fgu_capacity_calibration() 816 } else if (ocv <= data->cap_table[data->table_len - 1].ocv) { in sc27xx_fgu_capacity_calibration() 822 } else if ((ocv > data->cap_table[data->table_len - 1].ocv && cap <= 0) || in sc27xx_fgu_capacity_calibration() 830 data->table_len, ocv); in sc27xx_fgu_capacity_calibration() 852 ocv); in sc27xx_fgu_capacity_calibration() 1278 int ret, status, ocv; in sc27xx_fgu_suspend() local [all …]
|
| H A D | 88pm860x_battery.c | 328 static int calc_ocv(struct pm860x_battery_info *info, int *ocv) in calc_ocv() argument 338 if (!ocv) in calc_ocv() 356 *ocv = vbatt_avg - ibatt_avg * info->resistor / 1000; in calc_ocv() 358 *ocv = vbatt_avg; in calc_ocv() 360 dev_dbg(info->dev, "VBAT average:%d, OCV:%d\n", vbatt_avg, *ocv); in calc_ocv() 370 int ocv; in calc_soc() local 379 ret = calc_ocv(info, &ocv); in calc_soc() 382 ret = measure_vbatt(info, OCV_MODE_SLEEP, &ocv); in calc_soc() 389 if (ocv < array_soc[count - 1][0]) { in calc_soc() 395 if (ocv >= array_soc[i][0]) { in calc_soc()
|
| H A D | ug3105_battery.c | 75 int ocv[UG3105_MOV_AVG_WINDOW]; /* micro-volt */ member 203 chip->ocv[chip->ocv_avg_index] = in ug3105_work() 229 chip->ocv_avg += chip->ocv[i]; in ug3105_work()
|
| H A D | power_supply_core.c | 795 table[i].ocv = be32_to_cpu(*list); in power_supply_get_battery_info() 1103 int table_len, int ocv) in power_supply_ocv2cap_simple() argument 1108 if (ocv > table[i].ocv) in power_supply_ocv2cap_simple() 1119 return fixp_linear_interpolate(table[low].ocv, in power_supply_ocv2cap_simple() 1121 table[high].ocv, in power_supply_ocv2cap_simple() 1123 ocv); in power_supply_ocv2cap_simple() 1156 int ocv, int temp) in power_supply_batinfo_ocv2cap() argument 1165 return power_supply_ocv2cap_simple(table, table_len, ocv); in power_supply_batinfo_ocv2cap()
|
| H A D | axp288_fuel_gauge.c | 136 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 D | stc3117_fuel_gauge.c | 127 int ocv; member 180 data->ocv = value; in stc3117_get_battery_data() 484 val->intval = data->ocv; in stc3117_get_property()
|
| /linux-6.15/Documentation/devicetree/bindings/power/supply/ |
| H A D | battery.yaml | 99 ocv-capacity-celsius: 126 '^ocv-capacity-table-[0-9]+$': 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>;
|
| /linux-6.15/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3326-odroid-go2.dts | 50 ocv-capacity-celsius = <20>; 51 ocv-capacity-table-0 = <4046950 100>, <4001920 95>, <3967900 90>, <3919950 85>,
|
| H A D | rk3566-anbernic-rg353vs.dts | 30 ocv-capacity-celsius = <20>; 31 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
|
| H A D | rk3566-anbernic-rg353ps.dts | 30 ocv-capacity-celsius = <20>; 31 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
|
| H A D | rk3566-anbernic-rg353v.dts | 31 ocv-capacity-celsius = <20>; 32 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
|
| H A D | rk3326-odroid-go2-v11.dts | 54 ocv-capacity-celsius = <20>; 55 ocv-capacity-table-0 = <4046950 100>, <4001920 95>, <3967900 90>, <3919950 85>,
|
| H A D | rk3566-anbernic-rg353p.dts | 31 ocv-capacity-celsius = <20>; 32 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
|
| H A D | rk3326-odroid-go3.dts | 87 ocv-capacity-celsius = <20>; 88 ocv-capacity-table-0 = <4046950 100>, <4001920 95>, <3967900 90>, <3919950 85>,
|
| H A D | rk3566-anbernic-rg-arc.dtsi | 27 ocv-capacity-celsius = <20>; 28 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
|
| H A D | rk3566-anbernic-rg503.dts | 85 ocv-capacity-celsius = <20>; 86 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
|
| H A D | rk3568-photonicat.dts | 30 ocv-capacity-celsius = <25>; 31 ocv-capacity-table-0 = <4100000 100>, <4040000 90>,
|
| /linux-6.15/arch/arm64/boot/dts/sprd/ |
| H A D | sp9860g-1h10.dts | 76 ocv-capacity-celsius = <20>; 77 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>,
|
| /linux-6.15/arch/arm64/boot/dts/qcom/ |
| H A D | msm8916-wingtech-wt865x8.dtsi | 46 ocv-capacity-celsius = <25>; 47 ocv-capacity-table-0 = <4328000 100>, <4266000 95>, <4208000 90>,
|
| H A D | msm8916-lg-m216.dts | 32 ocv-capacity-celsius = <25>; 33 ocv-capacity-table-0 = <4342000 100>, <4266000 95>, <4206000 90>,
|
| H A D | msm8916-gplus-fl8005a.dts | 35 ocv-capacity-celsius = <25>; 36 ocv-capacity-table-0 =
|
| H A D | msm8916-longcheer-l8150.dts | 59 ocv-capacity-celsius = <25>; 60 ocv-capacity-table-0 = <4330000 100>, <4265000 95>,
|
| /linux-6.15/include/linux/ |
| H A D | power_supply.h | 371 int ocv; /* microVolts */ member 833 int table_len, int ocv); 838 int ocv, int temp);
|