2022-11-04 16:20:44

by jerome Neanne

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

From: Jerome NEANNE <[email protected]>

Hi everyone,

bindings and regulator are already there, it has been rebased on master
6.1:
[email protected]:torvalds/linux.git
commit 8f71a2b3f435f29b787537d1abedaa7d8ebe6647

All review feedback have been integrated.

Changes in v7:
- defconfig: change commit message to indicate why (Krzysztof Kozlowski).
- mfd: integrate all feedback from Lee Jones and Biju Das.

Regards,
Jerome

Previous versions:i
v6 - https://lore.kernel.org/all/[email protected]/
v5 - https://lore.kernel.org/lkml/[email protected]/
v4 - https://lore.kernel.org/lkml/[email protected]/
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 (1):
DONOTMERGE: arm64: dts: ti: Add TI TPS65219 PMIC support for AM642 SK
board.

Jerome Neanne (4):
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: tps65219: Add driver for TI TPS65219 PMIC
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 | 148 ++++++++++
drivers/mfd/Kconfig | 14 +
drivers/mfd/Makefile | 1 +
drivers/mfd/tps65219.c | 299 ++++++++++++++++++++
include/linux/mfd/tps65219.h | 345 ++++++++++++++++++++++++
10 files changed, 937 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.25.1



2022-11-04 16:20:45

by jerome Neanne

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

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 d0121976491a..441bc746bda0 100644
--- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts
@@ -363,6 +363,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 {
@@ -421,6 +427,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.25.1


2022-12-05 19:59:49

by Francesco Dolcini

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

On Fri, Nov 04, 2022 at 04:23:05PM +0100, Jerome Neanne wrote:
> Hi everyone,
Hello Jerome,

are you planning to have also gpio support added to the driver?

Francesco

2022-12-06 20:08:26

by jerome Neanne

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



On 05/12/2022 19:08, Francesco Dolcini wrote:
> On Fri, Nov 04, 2022 at 04:23:05PM +0100, Jerome Neanne wrote:
>> Hi everyone,
> Hello Jerome,
>
> are you planning to have also gpio support added to the driver?
>
> Francesco
>
Hi Francesco,

I don't have any requirement regarding GPIO on that PMIC. We've just
done this (GPIO driver) for another TI PMIC. Will see if this can be
reused later.

Regards,
Jerome

2023-05-22 12:07:23

by jerome Neanne

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



On 06/12/2022 20:22, jerome Neanne wrote:
>
>
> On 05/12/2022 19:08, Francesco Dolcini wrote:
>> On Fri, Nov 04, 2022 at 04:23:05PM +0100, Jerome Neanne wrote:
>>> Hi everyone,
>> Hello Jerome,
>>
>> are you planning to have also gpio support added to the driver?

FYI, this is under review:
https://lore.kernel.org/lkml/20230511-tps65219-add-gpio-support-v2-0-60feb64d649a@baylibre.com/