[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75Vc4cMGBdJpOsRMDLWU+6+eYwbsF3-Mz40-KazLGhwkHMA@mail.gmail.com>
Date: Thu, 1 Sep 2022 00:04:40 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: lewis.hanly@...rochip.com,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
linux-riscv <linux-riscv@...ts.infradead.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Palmer Dabbelt <palmer@...belt.com>,
Marc Zyngier <maz@...nel.org>, conor.dooley@...rochip.com,
daire.mcnamara@...rochip.com
Subject: Re: [PATCH v6 1/1] gpio: mpfs: add polarfire soc gpio support
On Mon, Aug 22, 2022 at 2:30 PM Linus Walleij <linus.walleij@...aro.org> wrote:
> On Mon, Aug 15, 2022 at 2:08 PM <lewis.hanly@...rochip.com> wrote:
...
> This looks like textbook example of a driver that can use
> CONFIG_GPIO_GENERIC
> See e.g. drivers/gpio/gpio-ftgpio010.c for an example
> of how to use bgpio_init() to set up the helper library to handle
> the GPIO side of things and combine it with an irqchip.
> You get get/set_multiple() for free with this approach.
> Also see documentation for bgpio_init() in
> drivers/gpio/gpio-mmio.c.
I would also suggest looking at gpio-regmap.c.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists