zephyr,fuel-gauge-composite

Vendor: Zephyr-specific binding

Note

An implementation of a driver matching this compatible is available in drivers/fuel_gauge/composite/fuel_gauge_composite.c.

Description

Composite fuel-gauge constructed from analog input values

Properties

Properties not inherited from the base binding file.

Name

Type

Details

device-chemistry

string

This describes the chemical technology of the battery. The "lithium-ion" value is a blanket type for all lithium-ion batteries. If the specific chemistry is unknown, this value can be used instead of the precise "lithium-ion-X" options.

This property is required.

Legal values: 'nickel-cadmium', 'nickel-metal-hydride', 'lithium-ion', 'lithium-ion-polymer', 'lithium-ion-iron-phosphate', 'lithium-ion-manganese-oxide'

ocv-capacity-table-0

array

An array providing the open circuit voltage (OCV) , which is used to look
up battery capacity according to current OCV value. The OCV unit is
microvolts.

Unlike the linux equivalent this array is required to be 11 elements
long, representing the voltages for 0-100% charge in 10% steps.

This property is required.

charge-full-design-microamp-hours

int

battery design capacity

re-charge-voltage-microvolt

int

limit to automatically start charging again

precharge-current-microamp

int

current for pre-charge phase

charge-term-current-microamp

int

current for charge termination phase

constant-charge-current-max-microamp

int

maximum constant input current

constant-charge-voltage-max-microvolt

int

maximum constant input voltage

battery-voltage

phandle

Device to read battery voltage from.

Device must implement the sensor API and provide the
`SENSOR_CHAN_VOLTAGE` channel.

This property is required.

battery-current

phandle

Device to read battery current from.

Device must implement the sensor API and provide the
`SENSOR_CHAN_CURRENT` channel.