Subject: [PATCH v4 0/6] Add support for TI TPS65219 PMIC.

Hi everyone,

I am submitting this update for Jerome, he will probably do the next
version again.

v4 is a lot smaller now as I squashed some patches as requested and
some were applied. It is mainly the fixes of the things that Lee Jones
pointed out in his review on v2, thanks for that.

It is now based on the regulator tree branch for-6.1:
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git

Best,
Markus

Previous versions:
v3 - https://lore.kernel.org/lkml/[email protected]/
v2 - https://lore.kernel.org/lkml/[email protected]/
v1 - https://lore.kernel.org/lkml/[email protected]/

Jerome Neanne (5):
DONOTMERGE: arm64: dts: ti: Add TI TPS65219 PMIC support for AM642 SK
board.
DONOTMERGE: arm64: dts: ti: Add pinmux and irq mapping for TPS65219
external interrupts
DONOTMERGE: arm64: dts: ti: k3-am642-sk: Enable tps65219 power-button
mfd: drivers: Add TI TPS65219 PMIC support
arm64: defconfig: Add tps65219 as modules

Markus Schneider-Pargmann (1):
Input: Add tps65219 interrupt driven powerbutton

MAINTAINERS | 1 +
arch/arm64/boot/dts/ti/k3-am642-sk.dts | 115 ++++++++
arch/arm64/configs/defconfig | 3 +
drivers/input/misc/Kconfig | 10 +
drivers/input/misc/Makefile | 1 +
drivers/input/misc/tps65219-pwrbutton.c | 149 ++++++++++
drivers/mfd/Kconfig | 14 +
drivers/mfd/Makefile | 1 +
drivers/mfd/tps65219.c | 357 ++++++++++++++++++++++++
include/linux/mfd/tps65219.h | 345 +++++++++++++++++++++++
10 files changed, 996 insertions(+)
create mode 100644 drivers/input/misc/tps65219-pwrbutton.c
create mode 100644 drivers/mfd/tps65219.c
create mode 100644 include/linux/mfd/tps65219.h

--
2.37.2


Subject: [PATCH v4 2/6] DONOTMERGE: arm64: dts: ti: Add pinmux and irq mapping for TPS65219 external interrupts

From: Jerome Neanne <[email protected]>

Interrupt occurring on PMIC TPS65219 is propagated to SOC
through EXTINTn pin connected to gic500 interrupt controller

Needed for driver testing but official board support pending.
TI commitment is required before board upstream kick-off.

Signed-off-by: Jerome Neanne <[email protected]>
Signed-off-by: Markus Schneider-Pargmann <[email protected]>
---
arch/arm64/boot/dts/ti/k3-am642-sk.dts | 10 ++++++++++
1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts
index 565b50810579..1f7ce60ecb57 100644
--- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts
@@ -294,6 +294,12 @@ vsel_sd_nddr_pins_default: vsel-sd-nddr-pins-default {
AM64X_IOPAD(0x00b8, PIN_INPUT, 7) /* (Y7) PRG1_PRU0_GPO0.GPIO0_45 */
>;
};
+
+ pmic_irq_pins_default: pmic-irq-pins-default {
+ pinctrl-single,pins = <
+ AM64X_IOPAD(0x0278, PIN_INPUT, 0) /* (C19) EXTINTn */
+ >;
+ };
};

&mcu_uart0 {
@@ -352,6 +358,10 @@ tps65219: pmic@30 {
compatible = "ti,tps65219";
reg = <0x30>;
system-power-controller;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pmic_irq_pins_default>;
+ interrupt-parent = <&gic500>;
+ interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>;

buck1-supply = <&vcc_3v3_sys>;
buck2-supply = <&vcc_3v3_sys>;
--
2.37.2

2022-08-26 07:32:59

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v4 0/6] Add support for TI TPS65219 PMIC.

On 25/08/2022 18:02, Markus Schneider-Pargmann wrote:
> Hi everyone,
>
> I am submitting this update for Jerome, he will probably do the next
> version again.
>
> v4 is a lot smaller now as I squashed some patches as requested and
> some were applied. It is mainly the fixes of the things that Lee Jones
> pointed out in his review on v2, thanks for that.
>
> It is now based on the regulator tree branch for-6.1:
> https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git

Instead please mention that bindings are already there... Otherwise you
might got premature nak for missing bindings.

Best regards,
Krzysztof