adp536x

The adp536x library provides an API to the ADP5360 power management integrated circuit (PMIC).

Implementation

The library accesses the features of the ADP5360 PMIC by conducting Inter-Integrated Circuit (I2C) transactions with its registers. Generic read, write, and masked write functions are private to the library. The feature-specific functions are available to the user.

Note

Regulator functionality (BUCK/BUCKBOOST) is exposed using the Zephyr regulator API.

Supported features

The library provides several functions to set operating parameters for the ADP5360 PMIC and for reading status values.

Requirements

An I2C interface is required to communicate with the ADP5360 PMIC.

Configuration

To enable the library, set the CONFIG_ADP536X Kconfig option to y in the project configuration file prj.conf.

Initialize the library using the adp536x_init() function and use the API to configure and read from the ADP5360 PMIC.

Dependencies

This library uses the I2C-capable hardware.

API documentation

Header file: include/adp536x
Source files: lib/adp536x/src

Following define VBUS current limit values, charging current values, and overcharge protection threshold values respectively:

Driver for ADP536X