Re: [PATCH 1/5] dt-bindings: Add compatible string opencores,gpio to gpio-mmio
From: Conor Dooley
Date: Mon Dec 15 2025 - 19:05:10 EST
On Mon, Dec 15, 2025 at 07:34:40PM +0000, Stafford Horne wrote:
> On Mon, Dec 15, 2025 at 06:40:49PM +0000, Stafford Horne wrote:
> > On Mon, Dec 15, 2025 at 04:57:45PM +0000, Conor Dooley wrote:
> > > On Sun, Dec 14, 2025 at 06:01:41PM +0000, Stafford Horne wrote:
> > > > In FPGA Development boards with GPIOs we use the opencores gpio verilog
> > > > rtl. This is compatible with the gpio-mmio. Add the compatible string
> > > > to allow as below.
> > > >
> > > > Example:
> > > >
> > > > gpio0: gpio@91000000 {
> > > > compatible = "opencores,gpio", "brcm,bcm6345-gpio";
> > >
> > > What you have done below does not permit this, it only permits
> > > opencores,gpio in isolation.
> > > pw-bot: changes-requested
> >
> > Understood, I was not familar with the new schema. I was trying to follow what
> > was seen in some other patches, now I see where I went wrong. I will fix this
> > and use the schema validation tools to verify.
> >
> > Thanks for pointing it out.
>
> I think the below is correct. But, would this be ok to put in one patch?
>
> I do:
> - Convert compatible from simple enum to oneOf.
> - Add items: for the openrisc,gpio compatiblity string.
>
> properties:
> compatible:
> - 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
> + oneOf:
> + - const: brcm,bcm6345-gpio
> + - const: ni,169445-nand-gpio
> + - const: wd,mbl-gpio # Western Digital MyBook Live memory-mapped GPIO controller
> + - const: intel,ixp4xx-expansion-bus-mmio-gpio
This is fine, but keep the enum instead of making these into a bunch of
const entries. IOW, just put a - in front of the existing enum: and
reindent it to be correct under the oneOf.
> + - items:
> + - enum:
> + - opencores,gpio
> + - const: brcm,bcm6345-gpio
Attachment:
signature.asc
Description: PGP signature