Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1570001 > unrolled thread

[PATCH v2 0/5] gpio: Add support for GPIO names for several ISA_BUS_API drivers

Started byWilliam Breathitt Gray <vilhelm.gray@gmail.com>
First post2017-01-30 19:40 +0100
Last post2017-02-01 16:10 +0100
Articles 7 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 0/5] gpio: Add support for GPIO names for several ISA_BUS_API drivers William Breathitt Gray <vilhelm.gray@gmail.com> - 2017-01-30 19:40 +0100
    [PATCH v2 3/5] gpio: 104-idio-16: Add support for GPIO names William Breathitt Gray <vilhelm.gray@gmail.com> - 2017-01-30 19:50 +0100
      Re: [PATCH v2 3/5] gpio: 104-idio-16: Add support for GPIO names Linus Walleij <linus.walleij@linaro.org> - 2017-02-01 16:10 +0100
    Re: [PATCH v2 5/5] gpio: ws16c48: Add support for GPIO names Linus Walleij <linus.walleij@linaro.org> - 2017-02-01 16:10 +0100
    Re: [PATCH v2 4/5] gpio: gpio-mm: Add support for GPIO names Linus Walleij <linus.walleij@linaro.org> - 2017-02-01 16:10 +0100
    Re: [PATCH v2 2/5] gpio: 104-idi-48: Add support for GPIO names Linus Walleij <linus.walleij@linaro.org> - 2017-02-01 16:10 +0100
    Re: [PATCH v2 1/5] gpio: 104-dio-48e: Add support for GPIO names Linus Walleij <linus.walleij@linaro.org> - 2017-02-01 16:10 +0100

#1570001 — [PATCH v2 0/5] gpio: Add support for GPIO names for several ISA_BUS_API drivers

FromWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Date2017-01-30 19:40 +0100
Subject[PATCH v2 0/5] gpio: Add support for GPIO names for several ISA_BUS_API drivers
Message-ID<t5p1T-7lw-7@gated-at.bofh.it>
Changes in v2:
  - Fixed typo in WS16C48 patch; ws14c48_names should be ws16c48_names

This patchset sets the gpio_chip names option of several ISA_BUS_API
GPIO drivers with an array of GPIO line names that match their
respective manual documentation. This should make it easier for users to
identify which GPIO line corresponds to a respective GPIO pin on their
device.

William Breathitt Gray (5):
  gpio: 104-dio-48e: Add support for GPIO names
  gpio: 104-idi-48: Add support for GPIO names
  gpio: 104-idio-16: Add support for GPIO names
  gpio: gpio-mm: Add support for GPIO names
  gpio: ws16c48: Add support for GPIO names

 drivers/gpio/gpio-104-dio-48e.c | 23 ++++++++++++++++++++++-
 drivers/gpio/gpio-104-idi-48.c  | 15 ++++++++++++++-
 drivers/gpio/gpio-104-idio-16.c | 11 ++++++++++-
 drivers/gpio/gpio-gpio-mm.c     | 15 ++++++++++++++-
 drivers/gpio/gpio-ws16c48.c     | 19 ++++++++++++++++++-
 5 files changed, 78 insertions(+), 5 deletions(-)

-- 
2.11.0

[toc] | [next] | [standalone]


#1570005 — [PATCH v2 3/5] gpio: 104-idio-16: Add support for GPIO names

FromWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Date2017-01-30 19:50 +0100
Subject[PATCH v2 3/5] gpio: 104-idio-16: Add support for GPIO names
Message-ID<t5pbz-7p2-5@gated-at.bofh.it>
In reply to#1570001
This patch sets the gpio_chip names option with an array of GPIO line
names that match the manual documentation for the ACCES 104-IDIO-16.
This should make it easier for users to identify which GPIO line
corresponds to a respective GPIO pin on the device.

Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
---
 drivers/gpio/gpio-104-idio-16.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-104-idio-16.c b/drivers/gpio/gpio-104-idio-16.c
index 01a091e17614..96e740551976 100644
--- a/drivers/gpio/gpio-104-idio-16.c
+++ b/drivers/gpio/gpio-104-idio-16.c
@@ -210,6 +210,14 @@ static irqreturn_t idio_16_irq_handler(int irq, void *dev_id)
 	return IRQ_HANDLED;
 }
 
+#define IDIO_16_NGPIO 32
+static const char *idio_16_names[IDIO_16_NGPIO] = {
+	"OUT0", "OUT1", "OUT2", "OUT3", "OUT4", "OUT5", "OUT6", "OUT7",
+	"OUT8", "OUT9", "OUT10", "OUT11", "OUT12", "OUT13", "OUT14", "OUT15",
+	"IIN0", "IIN1", "IIN2", "IIN3", "IIN4", "IIN5", "IIN6", "IIN7",
+	"IIN8", "IIN9", "IIN10", "IIN11", "IIN12", "IIN13", "IIN14", "IIN15"
+};
+
 static int idio_16_probe(struct device *dev, unsigned int id)
 {
 	struct idio_16_gpio *idio16gpio;
@@ -230,7 +238,8 @@ static int idio_16_probe(struct device *dev, unsigned int id)
 	idio16gpio->chip.parent = dev;
 	idio16gpio->chip.owner = THIS_MODULE;
 	idio16gpio->chip.base = -1;
-	idio16gpio->chip.ngpio = 32;
+	idio16gpio->chip.ngpio = IDIO_16_NGPIO;
+	idio16gpio->chip.names = idio_16_names;
 	idio16gpio->chip.get_direction = idio_16_gpio_get_direction;
 	idio16gpio->chip.direction_input = idio_16_gpio_direction_input;
 	idio16gpio->chip.direction_output = idio_16_gpio_direction_output;
-- 
2.11.0

[toc] | [prev] | [next] | [standalone]


#1571638 — Re: [PATCH v2 3/5] gpio: 104-idio-16: Add support for GPIO names

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-02-01 16:10 +0100
SubjectRe: [PATCH v2 3/5] gpio: 104-idio-16: Add support for GPIO names
Message-ID<t64HM-7x7-19@gated-at.bofh.it>
In reply to#1570005
On Mon, Jan 30, 2017 at 7:33 PM, William Breathitt Gray
<vilhelm.gray@gmail.com> wrote:

> This patch sets the gpio_chip names option with an array of GPIO line
> names that match the manual documentation for the ACCES 104-IDIO-16.
> This should make it easier for users to identify which GPIO line
> corresponds to a respective GPIO pin on the device.
>
> Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>

Patch applied.

Yours,
Linus Walleij

[toc] | [prev] | [next] | [standalone]


#1571634 — Re: [PATCH v2 5/5] gpio: ws16c48: Add support for GPIO names

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-02-01 16:10 +0100
SubjectRe: [PATCH v2 5/5] gpio: ws16c48: Add support for GPIO names
Message-ID<t64HM-7x7-7@gated-at.bofh.it>
In reply to#1570001
On Mon, Jan 30, 2017 at 7:33 PM, William Breathitt Gray
<vilhelm.gray@gmail.com> wrote:

> This patch sets the gpio_chip names option with an array of GPIO line
> names that match the manual documentation for the WinSystems WS16C48.
> This should make it easier for users to identify which GPIO line
> corresponds to a respective GPIO pin on the device.
>
> Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>

Patch applied.

Yours,
Linus Walleij

[toc] | [prev] | [next] | [standalone]


#1571636 — Re: [PATCH v2 4/5] gpio: gpio-mm: Add support for GPIO names

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-02-01 16:10 +0100
SubjectRe: [PATCH v2 4/5] gpio: gpio-mm: Add support for GPIO names
Message-ID<t64HM-7x7-9@gated-at.bofh.it>
In reply to#1570001
On Mon, Jan 30, 2017 at 7:33 PM, William Breathitt Gray
<vilhelm.gray@gmail.com> wrote:

> This patch sets the gpio_chip names option with an array of GPIO line
> names that match the manual documentation for the Diamond Systems
> GPIO-MM. This should make it easier for users to identify which GPIO
> line corresponds to a respective GPIO pin on the device.
>
> Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>

Patch applied.

Yours,
Linus Walleij

[toc] | [prev] | [next] | [standalone]


#1571644 — Re: [PATCH v2 2/5] gpio: 104-idi-48: Add support for GPIO names

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-02-01 16:10 +0100
SubjectRe: [PATCH v2 2/5] gpio: 104-idi-48: Add support for GPIO names
Message-ID<t64HM-7x7-31@gated-at.bofh.it>
In reply to#1570001
On Mon, Jan 30, 2017 at 7:33 PM, William Breathitt Gray
<vilhelm.gray@gmail.com> wrote:

> This patch sets the gpio_chip names option with an array of GPIO line
> names that match the manual documentation for the ACCES 104-IDI-48.
> This should make it easier for users to identify which GPIO line
> corresponds to a respective GPIO pin on the device.
>
> Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>

Patch applied.

Yours,
Linus Walleij

[toc] | [prev] | [next] | [standalone]


#1571647 — Re: [PATCH v2 1/5] gpio: 104-dio-48e: Add support for GPIO names

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-02-01 16:10 +0100
SubjectRe: [PATCH v2 1/5] gpio: 104-dio-48e: Add support for GPIO names
Message-ID<t64HN-7x7-51@gated-at.bofh.it>
In reply to#1570001
On Mon, Jan 30, 2017 at 7:32 PM, William Breathitt Gray
<vilhelm.gray@gmail.com> wrote:

> This patch sets the gpio_chip names option with an array of GPIO line
> names that match the manual documentation for the ACCES 104-DIO-48E.
> This should make it easier for users to identify which GPIO line
> corresponds to a respective GPIO pin on the device.
>
> Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>

Patch applied.

Yours,
Linus Walleij

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web