[PATCH v4 0/6] Add support for Maxim 77663 MFD

From: Dmitry Osipenko
Date: Sun May 05 2019 - 11:49:10 EST


This series adds support for the Maxim 77663 chip that provides PMIC, RTC,
GPIO and watchdog timer functionality. The hardware is very similar to the
Maxim 77620/20024 hardware units that are already supported by the kernel,
hence we will reuse the existing drivers for 77663. The GPIO, regulator,
RTC and watchdog timer functionality was tested on a Nexus 7 tablet that
has the Max77663 chip, everything is working perfectly fine. I'm looking
at upstreaming support for that tablet device and Max77663 is one of the
core components that are currently missing in the upstream kernel.


v4: Addressed review comments from Rob Herring to v3 by making use of
generic "system-power-controller" property and making couple other
minor cosmetic changes. Added Mark's Brown a-b to the regulator-patch.

v3: Dropped "Support device-tree properly" patch since turned out that
I2C core takes care of the device-tree matching and I wasn't aware of

v2: Added PINCTRL sub-device to Max77663 MFD as it looks compatible with

Added new "maxim,system-power-controller" OF property.

Patch "Support device-tree properly" now doesn't remove driver's
"id_table" since potentially it could have some use in the downstream
kernel forks and it doesn't hurt to keep it around.

Dmitry Osipenko (6):
dt-bindings: mfd: max77620: Add compatible for Maxim 77663
dt-bindings: mfd: max77620: Add system-power-controller property
mfd: max77620: Fix swapped FPS_PERIOD_MAX_US values
mfd: max77620: Support Maxim 77663
mfd: max77620: Provide system power-off functionality
regulator: max77620: Support Maxim 77663

.../devicetree/bindings/mfd/max77620.txt | 9 +-
drivers/mfd/max77620.c | 87 ++++++++++++++++++-
drivers/regulator/max77620-regulator.c | 26 +++++-
include/linux/mfd/max77620.h | 5 +-
4 files changed, 122 insertions(+), 5 deletions(-)