mfd: axp20x: Add support for AXP717 PMIC
authorAndre Przywara <andre.przywara@arm.com>
Sun, 10 Mar 2024 01:02:10 +0000 (01:02 +0000)
committerLee Jones <lee@kernel.org>
Thu, 28 Mar 2024 09:50:59 +0000 (09:50 +0000)
commitb5bfc8ab2484e8e62ae3ffccaecfe5d82c19f51f
tree2e4733b0940a707aa0dd541c34021e7cfa3383b5
parent3bfe7fe6c0ea23c406a52291da3fb656df9be1ae
mfd: axp20x: Add support for AXP717 PMIC

The AXP717a is a PMIC chip produced by X-Powers, it can be connected to
an I2C or RSB bus.

It's a rather complete PMIC, with many regulators, interrupts, an ADC and
battery charging functionality. It also offer USB type-C CC pin
handling.

Describe the regmap and the MFD bits, along with the registers exposed
via I2C or RSB. This covers the regulator, interrupts and power key
devices for now.
Advertise the device using the new compatible string.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Tested-by: Ryan Walklin <ryan@testtoast.com>
Link: https://lore.kernel.org/r/20240310010211.28653-4-andre.przywara@arm.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/axp20x-i2c.c
drivers/mfd/axp20x-rsb.c
drivers/mfd/axp20x.c
include/linux/mfd/axp20x.h