[PATCH 00/10] Add support for AXP192 PMIC

From: Aidan MacDonald
Date: Fri Jun 03 2022 - 09:56:45 EST


Hi all,

This patch series adds support for the X-Powers AXP192 PMIC to the
AXP20x driver framework.

The first patch is a small change to regmap-irq to support the AXP192's
unusual IRQ register layout. It isn't possible to include all of the
IRQ registers in one regmap-irq chip without this.

The rest of the changes are pretty straightforward, I think the only
notable parts are the axp20x_adc driver where there seems to be some
opportunities for code reuse (the axp192 is nearly a duplicate of the
axp20x) and the addition of a new pinctrl driver for the axp192, since
the axp20x pinctrl driver was not very easy to adapt.

Aidan MacDonald (10):
regmap-irq: Add get_irq_reg to support unusual register layouts
dt-bindings: mfd: add bindings for AXP192 MFD device
dt-bindings: iio: adc: axp209: Add AXP192 compatible
dt-bindings: power: supply: axp20x: Add AXP192 compatible
dt-bindings: gpio: Add AXP192 GPIO bindings
mfd: axp20x: Add support for AXP192
regulator: axp20x: Add support for AXP192
iio: adc: axp20x_adc: Add support for AXP192
power: supply: axp20x_usb_power: Add support for AXP192
pinctrl: Add AXP192 pin control driver

.../bindings/gpio/x-powers,axp192-gpio.yaml | 59 ++
.../bindings/iio/adc/x-powers,axp209-adc.yaml | 18 +
.../bindings/mfd/x-powers,axp152.yaml | 1 +
.../x-powers,axp20x-usb-power-supply.yaml | 1 +
drivers/base/regmap/regmap-irq.c | 19 +-
drivers/iio/adc/axp20x_adc.c | 289 ++++++++-
drivers/mfd/axp20x-i2c.c | 2 +
drivers/mfd/axp20x.c | 150 +++++
drivers/pinctrl/Kconfig | 14 +
drivers/pinctrl/Makefile | 1 +
drivers/pinctrl/pinctrl-axp192.c | 589 ++++++++++++++++++
drivers/power/supply/axp20x_usb_power.c | 75 ++-
drivers/regulator/axp20x-regulator.c | 101 ++-
include/linux/mfd/axp20x.h | 84 +++
include/linux/regmap.h | 5 +
15 files changed, 1375 insertions(+), 33 deletions(-)
create mode 100644 Documentation/devicetree/bindings/gpio/x-powers,axp192-gpio.yaml
create mode 100644 drivers/pinctrl/pinctrl-axp192.c

--
2.35.1