[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250703180751.168755-1-s-ramamoorthy@ti.com>
Date: Thu, 3 Jul 2025 13:07:49 -0500
From: Shree Ramamoorthy <s-ramamoorthy@...com>
To: <aaro.koskinen@....fi>, <andreas@...nade.info>, <khilman@...libre.com>,
<rogerq@...nel.org>, <tony@...mide.com>, <linus.walleij@...aro.org>,
<brgl@...ev.pl>, <linux-omap@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <linux-gpio@...r.kernel.org>
CC: <m-leonard@...com>, <praneeth@...com>, <jcormier@...ticallink.com>
Subject: [PATCH v6 0/2] Add TI TPS65214 PMIC GPIO Support
The related MFD series was integrated in mainline during 6.15 cycle [0].
TPS65214 is a Power Management Integrated Circuit (PMIC) that has
significant register map overlap with TPS65219. The series introduces
TPS65214 and restructures the existing driver to support multiple devices.
TPS65215's GPIO specs are the same as TPS65219, so the "tps65219-gpio"
compatible string is assigned to two devices in the TPS65219 MFD driver.
No additional support is required in the GPIO driver for TPS65215.
- TPS65214 has 1 GPIO & 1 GPO, whereas TPS65219/TPS65215 both have 1 GPIO &
2 GPOs.
- TPS65214' GPIO direction can be changed with register GENERAL_CONFIG and
bit GPIO_CONFIG during device operation.
- TPS65219's MULTI_DEVICE_ENABLE bit in register MFP_1_CFG maps to
TPS65214's GPIO_VSEL_CONFIG bit.
TPS65214 Datasheet: https://www.ti.com/lit/gpn/TPS65214
TPS65214 TRM: https://www.ti.com/lit/pdf/slvud30
TPS65215 TRM: https://www.ti.com/lit/pdf/slvucw5/
Tested on Jon Cormier's AM62x platform with TPS65219.
GPIO offsets remained consistent and functional.
Signed-off-by: Shree Ramamoorthy <s-ramamoorthy@...com>
Tested-by: Jonathan Cormier <jcormier@...ticallink.com>
---
Change Log:
v5 -> v6:
- Add Jon Cormier Reviewed-by and Tested-by tags
- Add test info from Jon C. to cover letter
- Change copyright to include 2022 & 2025
- Use set_rv() variant instead of deprecated set()
v4 -> v5:
- Consolidate from 3 to 2 patches
- Add specific TPS65215 info to Patch 1 comments + commit message
- Remove chip_data struct
- Add separate dev-specific template_chip structs
- Add dev-specific change_direction functions + assignment in probe
- Add PMIC GPIO mapping explanation in comments for future users
- Add TPS65214 GPIO0 direction mask macro
- Rename _GPIO0_OFFSET in patch 1, in addition to _IDX macro
- Update cover letter + add TPS65214 datasheet link
v3 -> v4:
- Update cover letter
- Rebase for 6.16 cycle
v2 -> v3:
- Correct gpio_chip.ngpio line to use .offset field
- Remove unnecessary newlines
v1 -> v2:
- have any PMIC lists be in alpha-numeric order: TPS65215, then TPS65219
- remove comma after terminator
- Add driver prefix to chip_data struct
---
[0]: https://lore.kernel.org/all/173928615760.2233464.12306998726512431222.b4-ty@kernel.org/
Shree Ramamoorthy (2):
gpio: tps65219: Update _IDX & _OFFSET macro prefix
gpio: tps65219: Add support for TI TPS65214 PMIC
drivers/gpio/gpio-tps65219.c | 118 ++++++++++++++++++++++++++++++-----
1 file changed, 103 insertions(+), 15 deletions(-)
--
2.43.0
Powered by blists - more mailing lists