mfd: Add MFD driver for ATC260x PMICs
authorCristian Ciocaltea <cristian.ciocaltea@gmail.com>
Tue, 26 Jan 2021 09:55:59 +0000 (11:55 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 10 Mar 2021 11:10:23 +0000 (11:10 +0000)
commitf7cb7fe34db9f32e8b1c13ecc823112480b875f8
tree190e04b4846e2b8a0046c4a12092012a78540e17
parentcf469562fc59b4dc7835e6497cdea0814eed1ef3
mfd: Add MFD driver for ATC260x PMICs

Add initial support for the Actions Semi ATC260x PMICs which integrates
Audio Codec, Power management, Clock generation and GPIO controller
blocks.

For the moment this driver only supports Regulator, Poweroff and Onkey
functionalities for the ATC2603C and ATC2609A chip variants.

Since the PMICs can be accessed using both I2C and SPI buses, the
following driver structure has been adopted:

           -----> atc260x-core.c (Implements core functionalities)
          /
ATC260x --------> atc260x-i2c.c (Implements I2C interface)
          \
           -----> atc260x-spi.c (Implements SPI interface - TODO)

Co-developed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/Kconfig
drivers/mfd/Makefile
drivers/mfd/atc260x-core.c [new file with mode: 0644]
drivers/mfd/atc260x-i2c.c [new file with mode: 0644]
include/linux/mfd/atc260x/atc2603c.h [new file with mode: 0644]
include/linux/mfd/atc260x/atc2609a.h [new file with mode: 0644]
include/linux/mfd/atc260x/core.h [new file with mode: 0644]