[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220603135714.12007-1-aidanmacdonald.0x0@gmail.com>
Date: Fri, 3 Jun 2022 14:57:04 +0100
From: Aidan MacDonald <aidanmacdonald.0x0@...il.com>
To: linus.walleij@...aro.org, brgl@...ev.pl, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, wens@...e.org, jic23@...nel.org,
lee.jones@...aro.org, sre@...nel.org, broonie@...nel.org,
gregkh@...uxfoundation.org, lgirdwood@...il.com
Cc: lars@...afoo.de, rafael@...nel.org, linux-gpio@...r.kernel.org,
devicetree@...r.kernel.org, linux-iio@...r.kernel.org,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 00/10] Add support for AXP192 PMIC
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
Powered by blists - more mailing lists