zephyr,fuel-gauge-composite

Vendor: The Zephyr Project

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 sensor devices

Properties

Properties not inherited from the base binding file.

Name

Type

Details

source-primary

phandle

Primary device to read sensor data from.
Device must implement the sensor API.

This property is required.

source-secondary

phandle

Secondary device to read sensor data from.
This device will be used if input-primary does not expose
a channel.

Device must implement the sensor API.

fuel-gauge-channels

boolean

Sources should be queried by the sensor API fuel gauge
channels (SENSOR_CHAN_GAUGE_*), instead of the generic
channels (SENSOR_CHAN_VOLTAGE, etc).

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.

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.

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