[riot-notifications] [RIOT-OS/RIOT] drivers: add bq2429x power management IC driver (#15523)

Jean Pierre Dudey notifications at github.com
Mon Nov 30 13:23:48 CET 2020

### Contribution description

Adds a driver for the TI BQ249x line of charger and power management ICs, they can be configured through I2C and this driver gives a simple interface to change it. It includes functions to change the charge and input power parameters. It can also get the charge status and the VBUS type detected, whether it's a charger, a normal USB port, on OTG mode or none.

These ICs only manage power and charge, and don't do monitoring of voltage, current, etc (only detection of over voltage and such, reported through interrupts).

It includes interrupt functionality for when the IC reports a fault, and has a dedicated register to read it, how should it be handled in this case (the register), should it have a function that reads it and the user manually checks the bitfields?

### Testing procedure

- `make -C tests/driver_bq2429x flash term` to test the example test.
- `USEMODULE=bq2429x_int make -C tests/driver_bq2429x flash term` to test the driver with interrupt functionality
instead of polling.

### Issues/PRs references

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * drivers: add bq2429x power management IC driver

-- File Changes --

    M drivers/Kconfig (1)
    M drivers/Makefile.dep (4)
    A drivers/bq2429x/Kconfig (18)
    A drivers/bq2429x/Makefile (1)
    A drivers/bq2429x/Makefile.dep (4)
    A drivers/bq2429x/Makefile.include (2)
    A drivers/bq2429x/bq2429x.c (216)
    A drivers/bq2429x/include/bq2429x_internal.h (81)
    A drivers/bq2429x/include/bq2429x_params.h (88)
    A drivers/include/bq2429x.h (320)
    M makefiles/pseudomodules.inc.mk (1)
    A tests/driver_bq2429x/Makefile (8)
    A tests/driver_bq2429x/README.md (21)
    A tests/driver_bq2429x/app.config.test (5)
    A tests/driver_bq2429x/main.c (133)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201130/1266888e/attachment.htm>

More information about the notifications mailing list