[PATCH V2 0/9] regulator: da9121: extend support to variants, add features
From: Adam Ward
Date: Mon Nov 30 2020 - 10:43:57 EST
This series extends the DA9121 driver to add support for related products:
DA9130, 10A, Dual-Phase (Automotive Grade)
DA9122, 5A + 5A
DA9131, 5A + 5A (Automotive Grade)
DA9220, 3A + 3A
DA9132, 3A + 3A (Automotive Grade)
DA9217, 6A, Dual-Phase
It also extends support to cover DT configured GPIO enable, current limit
setting, and interrupt handling for all devices.
The datasheets are currently available here:
https://www.dialog-semiconductor.com/sites/default/files/da9122_datasheet_2v1.pdf
https://www.dialog-semiconductor.com/sites/default/files/da9220_datasheet_2v1.pdf
https://www.dialog-semiconductor.com/sites/default/files/da9217_datasheet_2v1.pdf
https://www.dialog-semiconductor.com/sites/default/files/da9130-a_datasheet_1v0.pdf
https://www.dialog-semiconductor.com/sites/default/files/da9131-a_datasheet_1v0.pdf
https://www.dialog-semiconductor.com/sites/default/files/da9132-a_datasheet_1v0.pdf
V2:
- Remove Vincent Whitchurch as DT maintainer, as requested
- Use configuration to select register map
- Split regmap and description patch
- Defer device ID check to negate, not gatekeep
- Removed superfluous compatible check
- Tidied banner comment
- Switched to using of_parse_cb()
- Simplified buck checks accordingly
- Simplified current/mode register/mask use
- Simplified interrupt handling
- Synchronise workqueue at driver exit
Adam Ward (9):
regulator: da9121: Add header file
regulator: da9121: Add device variants
regulator: da9121: Add device variant regmaps
regulator: da9121: Add device variant descriptors
regulator: da9121: Add support for device variants via devicetree
regulator: da9121: Update registration to support multiple buck
variants
regulator: da9121: add current support
regulator: da9121: add mode support
regulator: da9121: add interrupt support
drivers/regulator/Kconfig | 14 +-
drivers/regulator/da9121-regulator.c | 1033 ++++++++++++++++++++++++++++++++--
drivers/regulator/da9121-regulator.h | 291 ++++++++++
include/linux/regulator/da9121.h | 36 ++
4 files changed, 1336 insertions(+), 38 deletions(-)
create mode 100644 drivers/regulator/da9121-regulator.h
create mode 100644 include/linux/regulator/da9121.h
--
1.9.1