x-powers,axp2101-charger (on axp2101 bus)

Vendor: X-Powers

Note

An implementation of a driver matching this compatible is available in drivers/charger/charger_axp2101.c.

Description

Charger part of the AXP2101 PMU MFD device.

This charger should be instantiated as child of the AXP2101 MFD device, i.e.

axp2101@34 {
  compatible = "x-powers,axp2101";
  reg = <0x34>;

  charger {
    compatible = "x-powers,axp2101-charger";
    constant-charge-current-max-microamp = <300000>;
    constant-charge-voltage-max-microvolt = <4200000>;
  };

  regulators {
  ...
  }
}

Properties

Properties not inherited from the base binding file.

Name

Type

Details

constant-charge-current-max-microamp

int

maximum constant input current

This property is required.

Legal values: 100000, 125000, 150000, 175000, 200000, 300000, 400000, 500000, 600000, 700000, 800000, 900000, 1000000

constant-charge-voltage-max-microvolt

int

maximum constant input voltage

This property is required.

Legal values: 4000000, 4100000, 4200000, 4350000, 4400000

charge-term-current-microamp

int

current for charge termination phase

Legal values: 0, 25000, 50000, 75000, 100000, 125000, 150000, 200000

vbackup-enable

boolean

Enable Vbackup on boot. This is normally used to charge a button battery that is used by some RTC IC.

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