[U-Boot] [PATCH v4 09/16] dm: pmic: add max77686 pmic driver

Simon Glass
2015-04-22T16:30:58Z

On 20 April 2015 at 12:07, Przemyslaw Marczak <p.marczak@samsung.com> wrote:
> This is the implementation of driver model PMIC driver.
> The max77686 PMIC driver implements read/write operations and driver
> bind method - to bind its childs.
>
> This driver will try to bind the regulator devices by using it's child
> info array with regulator prefixes and driver names. This should succeed
> when compatible regulator driver is compiled. If no regulator driver found,
> then the pmic can still provide read/write operations, and can be used with
> PMIC function calls.
>
> Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
> ---
> Changes V2:
> - add implementation of pmic read/write
> - max77686: add new operations
> - max77686: header: change PMIC_NUM_OF_REGS to MAX77686_NUM_OF_REGS
>
> Changes V3:
> - pmic/max77686.c: call pmic_child_node_scan() to bind regulator device
> - remove use of pmic platdata
> - remove unused endian conversions
> - Kconfig: add max77686 pmic entry
>
> Changes V4:
> - move DM_PMIC_MAX77686 Kconfig entry from: drivers/power/Kconfig to
> drivers/power/pmic/Kconfig
> - pmic/max77686.c: cleanup
> - pmic/max77686.c: includes cleanup
> - max77686_pmic.h: define ldo and buck driver names
> - power/Kconfig: cleanup
> - add binding info
> ---
> doc/device-tree-bindings/pmic/max77686.txt | 36 +++++++++++++
> drivers/power/pmic/Kconfig | 7 +++
> drivers/power/pmic/Makefile | 1 +
> drivers/power/pmic/max77686.c | 87 ++++++++++++++++++++++++++++++
> drivers/power/pmic/pmic_max77686.c | 2 +-
> include/power/max77686_pmic.h | 10 +++-
> 6 files changed, 140 insertions(+), 3 deletions(-)
> create mode 100644 doc/device-tree-bindings/pmic/max77686.txt
> create mode 100644 drivers/power/pmic/max77686.c

Acked-by: Simon Glass <sjg@chromium.org>