Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: battery: Voltage drop properties

ROHM has developed a so called "zero-correction" -algorithm to improve
the fuel-gauging accuracy close to the point where battery is depleted.
This relies on battery specific "VDR" (voltage drop rate) tables, which
are measured from the battery, and which describe the voltage drop rate.
More thorough explanation about the "zero correction" and "VDR"
parameters is here:
https://lore.kernel.org/all/676253b9-ff69-7891-1f26-a8b5bb5a421b@fi.rohmeurope.com/

Document the VDR zero-correction specific battery properties used by the
BD71815, BD71828, BD72720 and some other ROHM chargers. (Note, charger
drivers aren't upstream yet).

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/461f2840a03e0189ecd4f1a7c261014342ddee91.1765804226.git.mazziesaccount@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Matti Vaittinen and committed by
Lee Jones
16056396 a4330974

+22
+22
Documentation/devicetree/bindings/power/supply/battery.yaml
··· 128 128 - description: alert when battery temperature is lower than this value 129 129 - description: alert when battery temperature is higher than this value 130 130 131 + # The volt-drop* -properties describe voltage-drop for a battery, described 132 + # as VDROP in: 133 + # https://patentimages.storage.googleapis.com/6c/f5/17/c1d901c220f6a9/US20150032394A1.pdf 134 + volt-drop-thresh-microvolt: 135 + description: Threshold for starting the VDR correction 136 + maximum: 48000000 137 + 138 + volt-drop-soc-bp: 139 + description: Table of capacity values matching the values in VDR tables. 140 + The value should be given as basis points, 1/100 of a percent. 141 + 142 + volt-drop-temperatures-millicelsius: 143 + description: An array containing the temperature in milli celsius, for each 144 + of the VDR lookup table. 145 + 131 146 required: 132 147 - compatible 133 148 ··· 160 145 - description: open circuit voltage (OCV) in microvolts 161 146 - description: battery capacity percent 162 147 maximum: 100 148 + 149 + '^volt-drop-[0-9]-microvolt': 150 + description: Table of the voltage drop rate (VDR) values. Each entry in the 151 + table should match a capacity value in the volt-drop-soc table. 152 + Furthermore, the values should be obtained for the temperature given in 153 + volt-drop-temperatures-millicelsius table at index matching the 154 + number in this table's name. 163 155 164 156 additionalProperties: false 165 157