[PATCH v3 1/6] gpio: mmio: Add compatible for opencores GPIO

Stafford Horne posted 6 patches 4 weeks, 1 day ago
There is a newer version of this series
[PATCH v3 1/6] gpio: mmio: Add compatible for opencores GPIO
Posted by Stafford Horne 4 weeks, 1 day ago
On FPGA Development boards with GPIOs the OpenRISC architecture uses the
opencores gpio verilog rtl.  This is compatible with the gpio-mmio.  Add
the compatible string to allow probing this driver from the devicetree.

Link: https://opencores.org/projects/gpio
Signed-off-by: Stafford Horne <shorne@gmail.com>
---
Since v2:
 - New patch

 drivers/gpio/gpio-mmio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpio/gpio-mmio.c b/drivers/gpio/gpio-mmio.c
index 5daf962b0323..edbcaad57d00 100644
--- a/drivers/gpio/gpio-mmio.c
+++ b/drivers/gpio/gpio-mmio.c
@@ -724,6 +724,7 @@ static const struct of_device_id gpio_mmio_of_match[] = {
 	{ .compatible = "wd,mbl-gpio" },
 	{ .compatible = "ni,169445-nand-gpio" },
 	{ .compatible = "intel,ixp4xx-expansion-bus-mmio-gpio" },
+	{ .compatible = "opencores,gpio" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, gpio_mmio_of_match);
-- 
2.51.0
Re: [PATCH v3 1/6] gpio: mmio: Add compatible for opencores GPIO
Posted by Geert Uytterhoeven 4 weeks ago
On Fri, 9 Jan 2026 at 14:48, Stafford Horne <shorne@gmail.com> wrote:
> On FPGA Development boards with GPIOs the OpenRISC architecture uses the
> opencores gpio verilog rtl.  This is compatible with the gpio-mmio.  Add
> the compatible string to allow probing this driver from the devicetree.
>
> Link: https://opencores.org/projects/gpio
> Signed-off-by: Stafford Horne <shorne@gmail.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Re: [PATCH v3 1/6] gpio: mmio: Add compatible for opencores GPIO
Posted by Linus Walleij 4 weeks, 1 day ago
On Fri, Jan 9, 2026 at 2:44 PM Stafford Horne <shorne@gmail.com> wrote:

> On FPGA Development boards with GPIOs the OpenRISC architecture uses the
> opencores gpio verilog rtl.  This is compatible with the gpio-mmio.  Add
> the compatible string to allow probing this driver from the devicetree.
>
> Link: https://opencores.org/projects/gpio
> Signed-off-by: Stafford Horne <shorne@gmail.com>

Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij