mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Shree Ramamoorthy <s-ramamoorthy@ti.com>
To: <aaro.koskinen@iki.fi>, <andreas@kemnade.info>,
	<khilman@baylibre.com>, <rogerq@kernel.org>, <tony@atomide.com>,
	<linus.walleij@linaro.org>, <brgl@bgdev.pl>,
	<linux-omap@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux-gpio@vger.kernel.org>
Cc: <m-leonard@ti.com>, <praneeth@ti.com>, <christophe.jaillet@wanadoo.fr>
Subject: [PATCH v1 1/1] gpio: tps65214: Add support for TI TPS65214 PMIC
Date: Thu, 16 Jan 2025 16:38:40 -0600	[thread overview]
Message-ID: <20250116223840.430054-2-s-ramamoorthy@ti.com> (raw)
In-Reply-To: <20250116223840.430054-1-s-ramamoorthy@ti.com>

Add TPS65214 support to platform_id table and device-specific chip_data
struct. Update descriptions to reflect the driver supports 3 PMICs:
TPS65214, TPS65215, and TPS65219.

Signed-off-by: Shree Ramamoorthy <s-ramamoorthy@ti.com>
---
 drivers/gpio/gpio-tps65219.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/gpio-tps65219.c b/drivers/gpio/gpio-tps65219.c
index 6845f2920f3a..6b8d88ca3e8a 100644
--- a/drivers/gpio/gpio-tps65219.c
+++ b/drivers/gpio/gpio-tps65219.c
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /*
- * GPIO driver for TI TPS65215/TPS65219 PMICs
+ * TI TPS65214/TPS65215/TPS65219 PMIC GPIO Driver
  *
  * Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com/
  */
@@ -156,6 +156,10 @@ static const struct gpio_chip tps65219_template_chip = {
 };
 
 static const struct tps65219_chip_data chip_info_table[] = {
+	[TPS65214] = {
+		.ngpio = 2,
+		.offset = 1,
+	},
 	[TPS65215] = {
 		.ngpio = 2,
 		.offset = 1,
@@ -191,6 +195,7 @@ static int tps65219_gpio_probe(struct platform_device *pdev)
 }
 
 static const struct platform_device_id tps6521x_gpio_id_table[] = {
+	{ "tps65214-gpio", TPS65214 },
 	{ "tps65215-gpio", TPS65215 },
 	{ "tps65219-gpio", TPS65219 },
 	{ }
@@ -207,5 +212,5 @@ static struct platform_driver tps65219_gpio_driver = {
 module_platform_driver(tps65219_gpio_driver);
 
 MODULE_AUTHOR("Jonathan Cormier <jcormier@criticallink.com>");
-MODULE_DESCRIPTION("TPS65215/TPS65219 GPIO driver");
+MODULE_DESCRIPTION("TPS65214/TPS65215/TPS65219 GPIO driver");
 MODULE_LICENSE("GPL");
-- 
2.43.0


  reply	other threads:[~2025-01-16 22:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-16 22:38 [PATCH v1 0/1] Add TI TPS65215 PMIC GPIO Support Shree Ramamoorthy
2025-01-16 22:38 ` Shree Ramamoorthy [this message]
2025-01-17  9:27   ` [PATCH v1 1/1] gpio: tps65214: Add support for TI TPS65214 PMIC Krzysztof Kozlowski
2025-01-21 20:25     ` Shree Ramamoorthy
2025-01-17  9:24 ` [PATCH v1 0/1] Add TI TPS65215 PMIC GPIO Support Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250116223840.430054-2-s-ramamoorthy@ti.com \
    --to=s-ramamoorthy@ti.com \
    --cc=aaro.koskinen@iki.fi \
    --cc=andreas@kemnade.info \
    --cc=brgl@bgdev.pl \
    --cc=christophe.jaillet@wanadoo.fr \
    --cc=khilman@baylibre.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=m-leonard@ti.com \
    --cc=praneeth@ti.com \
    --cc=rogerq@kernel.org \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®