* [PATCH v5 1/6] dt-bindings: gpio-mmio: Correct opencores GPIO
[not found] <20260114151328.3827992-1-shorne@gmail.com>
@ 2026-01-14 15:13 ` Stafford Horne
2026-01-14 15:36 ` Geert Uytterhoeven
2026-01-14 15:43 ` Krzysztof Kozlowski
2026-01-14 15:13 ` [PATCH v5 2/6] gpio: mmio: Add compatible for " Stafford Horne
1 sibling, 2 replies; 6+ messages in thread
From: Stafford Horne @ 2026-01-14 15:13 UTC (permalink / raw)
To: LKML
Cc: Linux OpenRISC, devicetree, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Stafford Horne, Linus Walleij, Bartosz Golaszewski,
linux-gpio
In commit f48b5e8bc2e1 ("dt-bindings: gpio-mmio: Add compatible
string for opencores,gpio") we marked opencores,gpio to be allowed with
brcm,bcm6345-gpio. This was wrong, opencores,gpio is not hardware
equivalent to brcm,bcm6345-gpio. It has a different register map and
is 8-bit vs braodcom which is 32-bit. Change opencores,gpio to be a
separate compatible string for MMIO GPIO.
Fixes: f48b5e8bc2e1 ("dt-bindings: gpio-mmio: Add compatible string for opencores,gpio")
Signed-off-by: Stafford Horne <shorne@gmail.com>
---
Since v4:
- New patch.
- Rebased old patch and rewrote commit message.
.../devicetree/bindings/gpio/gpio-mmio.yaml | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml b/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml
index 7ee40b9bc562..a8823ca65e78 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml
+++ b/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml
@@ -18,16 +18,12 @@ description:
properties:
compatible:
- oneOf:
- - enum:
- - brcm,bcm6345-gpio
- - ni,169445-nand-gpio
- - wd,mbl-gpio # Western Digital MyBook Live memory-mapped GPIO controller
- - intel,ixp4xx-expansion-bus-mmio-gpio
- - items:
- - enum:
- - opencores,gpio
- - const: brcm,bcm6345-gpio
+ enum:
+ - brcm,bcm6345-gpio
+ - ni,169445-nand-gpio
+ - wd,mbl-gpio # Western Digital MyBook Live memory-mapped GPIO controller
+ - intel,ixp4xx-expansion-bus-mmio-gpio
+ - opencores,gpio
big-endian: true
--
2.51.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v5 2/6] gpio: mmio: Add compatible for opencores GPIO
[not found] <20260114151328.3827992-1-shorne@gmail.com>
2026-01-14 15:13 ` [PATCH v5 1/6] dt-bindings: gpio-mmio: Correct opencores GPIO Stafford Horne
@ 2026-01-14 15:13 ` Stafford Horne
1 sibling, 0 replies; 6+ messages in thread
From: Stafford Horne @ 2026-01-14 15:13 UTC (permalink / raw)
To: LKML
Cc: Linux OpenRISC, devicetree, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Stafford Horne, Linus Walleij, Geert Uytterhoeven,
Bartosz Golaszewski, linux-gpio
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>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Since v4:
- No changes.
Since v3:
- Order this patch after the binding patch.
- Add Reviewed-by's.
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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v5 1/6] dt-bindings: gpio-mmio: Correct opencores GPIO
2026-01-14 15:13 ` [PATCH v5 1/6] dt-bindings: gpio-mmio: Correct opencores GPIO Stafford Horne
@ 2026-01-14 15:36 ` Geert Uytterhoeven
2026-01-14 15:48 ` Stafford Horne
2026-01-14 15:43 ` Krzysztof Kozlowski
1 sibling, 1 reply; 6+ messages in thread
From: Geert Uytterhoeven @ 2026-01-14 15:36 UTC (permalink / raw)
To: Stafford Horne
Cc: LKML, Linux OpenRISC, devicetree, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Linus Walleij,
Bartosz Golaszewski, linux-gpio
Hi Stafford,
Thanks for your patch!
On Wed, 14 Jan 2026 at 16:14, Stafford Horne <shorne@gmail.com> wrote:
> In commit f48b5e8bc2e1 ("dt-bindings: gpio-mmio: Add compatible
> string for opencores,gpio") we marked opencores,gpio to be allowed with
> brcm,bcm6345-gpio. This was wrong, opencores,gpio is not hardware
> equivalent to brcm,bcm6345-gpio. It has a different register map and
> is 8-bit vs braodcom which is 32-bit. Change opencores,gpio to be a
broadcom or Broadcom
> separate compatible string for MMIO GPIO.
>
> Fixes: f48b5e8bc2e1 ("dt-bindings: gpio-mmio: Add compatible string for opencores,gpio")
> Signed-off-by: Stafford Horne <shorne@gmail.com>
> ---
> Since v4:
> - New patch.
> - Rebased old patch and rewrote commit message.
The actual patch LGTM, so
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v5 1/6] dt-bindings: gpio-mmio: Correct opencores GPIO
2026-01-14 15:13 ` [PATCH v5 1/6] dt-bindings: gpio-mmio: Correct opencores GPIO Stafford Horne
2026-01-14 15:36 ` Geert Uytterhoeven
@ 2026-01-14 15:43 ` Krzysztof Kozlowski
2026-01-14 15:50 ` Stafford Horne
1 sibling, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2026-01-14 15:43 UTC (permalink / raw)
To: Stafford Horne, LKML
Cc: Linux OpenRISC, devicetree, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Linus Walleij, Bartosz Golaszewski, linux-gpio
On 14/01/2026 16:13, Stafford Horne wrote:
> In commit f48b5e8bc2e1 ("dt-bindings: gpio-mmio: Add compatible
> string for opencores,gpio") we marked opencores,gpio to be allowed with
> brcm,bcm6345-gpio. This was wrong, opencores,gpio is not hardware
> equivalent to brcm,bcm6345-gpio. It has a different register map and
"is not compatible with brcm,...."
> is 8-bit vs braodcom which is 32-bit. Change opencores,gpio to be a
> separate compatible string for MMIO GPIO.
>
> Fixes: f48b5e8bc2e1 ("dt-bindings: gpio-mmio: Add compatible string for opencores,gpio")
> Signed-off-by: Stafford Horne <shorne@gmail.com>
> ---
> Since v4:
> - New patch.
> - Rebased old patch and rewrote commit message.
>
> .../devicetree/bindings/gpio/gpio-mmio.yaml | 16 ++++++----------
> 1 file changed, 6 insertions(+), 10 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml b/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml
> index 7ee40b9bc562..a8823ca65e78 100644
> --- a/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml
> +++ b/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml
> @@ -18,16 +18,12 @@ description:
>
> properties:
> compatible:
> - oneOf:
> - - enum:
> - - brcm,bcm6345-gpio
> - - ni,169445-nand-gpio
> - - wd,mbl-gpio # Western Digital MyBook Live memory-mapped GPIO controller
> - - intel,ixp4xx-expansion-bus-mmio-gpio
> - - items:
> - - enum:
> - - opencores,gpio
> - - const: brcm,bcm6345-gpio
> + enum:
> + - brcm,bcm6345-gpio
> + - ni,169445-nand-gpio
> + - wd,mbl-gpio # Western Digital MyBook Live memory-mapped GPIO controller
> + - intel,ixp4xx-expansion-bus-mmio-gpio
> + - opencores,gpio
So if you are changing all of the lines here, you can as well sort it
and put the new entry not at the end but in alphabetical spot.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v5 1/6] dt-bindings: gpio-mmio: Correct opencores GPIO
2026-01-14 15:36 ` Geert Uytterhoeven
@ 2026-01-14 15:48 ` Stafford Horne
0 siblings, 0 replies; 6+ messages in thread
From: Stafford Horne @ 2026-01-14 15:48 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: LKML, Linux OpenRISC, devicetree, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Linus Walleij,
Bartosz Golaszewski, linux-gpio
On Wed, Jan 14, 2026 at 04:36:23PM +0100, Geert Uytterhoeven wrote:
> Hi Stafford,
>
> Thanks for your patch!
>
> On Wed, 14 Jan 2026 at 16:14, Stafford Horne <shorne@gmail.com> wrote:
> > In commit f48b5e8bc2e1 ("dt-bindings: gpio-mmio: Add compatible
> > string for opencores,gpio") we marked opencores,gpio to be allowed with
> > brcm,bcm6345-gpio. This was wrong, opencores,gpio is not hardware
> > equivalent to brcm,bcm6345-gpio. It has a different register map and
> > is 8-bit vs braodcom which is 32-bit. Change opencores,gpio to be a
>
> broadcom or Broadcom
Right, thanks for spotting this.
> > separate compatible string for MMIO GPIO.
> >
> > Fixes: f48b5e8bc2e1 ("dt-bindings: gpio-mmio: Add compatible string for opencores,gpio")
> > Signed-off-by: Stafford Horne <shorne@gmail.com>
> > ---
> > Since v4:
> > - New patch.
> > - Rebased old patch and rewrote commit message.
>
> The actual patch LGTM, so
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Thanks.
-Stafford
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v5 1/6] dt-bindings: gpio-mmio: Correct opencores GPIO
2026-01-14 15:43 ` Krzysztof Kozlowski
@ 2026-01-14 15:50 ` Stafford Horne
0 siblings, 0 replies; 6+ messages in thread
From: Stafford Horne @ 2026-01-14 15:50 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: LKML, Linux OpenRISC, devicetree, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Linus Walleij,
Bartosz Golaszewski, linux-gpio
On Wed, Jan 14, 2026 at 04:43:35PM +0100, Krzysztof Kozlowski wrote:
> On 14/01/2026 16:13, Stafford Horne wrote:
> > In commit f48b5e8bc2e1 ("dt-bindings: gpio-mmio: Add compatible
> > string for opencores,gpio") we marked opencores,gpio to be allowed with
> > brcm,bcm6345-gpio. This was wrong, opencores,gpio is not hardware
> > equivalent to brcm,bcm6345-gpio. It has a different register map and
>
> "is not compatible with brcm,...."
OK.
> > is 8-bit vs braodcom which is 32-bit. Change opencores,gpio to be a
> > separate compatible string for MMIO GPIO.
> >
> > Fixes: f48b5e8bc2e1 ("dt-bindings: gpio-mmio: Add compatible string for opencores,gpio")
> > Signed-off-by: Stafford Horne <shorne@gmail.com>
> > ---
> > Since v4:
> > - New patch.
> > - Rebased old patch and rewrote commit message.
> >
> > .../devicetree/bindings/gpio/gpio-mmio.yaml | 16 ++++++----------
> > 1 file changed, 6 insertions(+), 10 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml b/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml
> > index 7ee40b9bc562..a8823ca65e78 100644
> > --- a/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml
> > +++ b/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml
> > @@ -18,16 +18,12 @@ description:
> >
> > properties:
> > compatible:
> > - oneOf:
> > - - enum:
> > - - brcm,bcm6345-gpio
> > - - ni,169445-nand-gpio
> > - - wd,mbl-gpio # Western Digital MyBook Live memory-mapped GPIO controller
> > - - intel,ixp4xx-expansion-bus-mmio-gpio
> > - - items:
> > - - enum:
> > - - opencores,gpio
> > - - const: brcm,bcm6345-gpio
> > + enum:
> > + - brcm,bcm6345-gpio
> > + - ni,169445-nand-gpio
> > + - wd,mbl-gpio # Western Digital MyBook Live memory-mapped GPIO controller
> > + - intel,ixp4xx-expansion-bus-mmio-gpio
> > + - opencores,gpio
>
> So if you are changing all of the lines here, you can as well sort it
> and put the new entry not at the end but in alphabetical spot.
OK, I will sort the list and mention that in commit message in v6.
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Thanks,
-Stafford
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-01-14 15:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260114151328.3827992-1-shorne@gmail.com>
2026-01-14 15:13 ` [PATCH v5 1/6] dt-bindings: gpio-mmio: Correct opencores GPIO Stafford Horne
2026-01-14 15:36 ` Geert Uytterhoeven
2026-01-14 15:48 ` Stafford Horne
2026-01-14 15:43 ` Krzysztof Kozlowski
2026-01-14 15:50 ` Stafford Horne
2026-01-14 15:13 ` [PATCH v5 2/6] gpio: mmio: Add compatible for " Stafford Horne
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox