[PATCH v3 02/16] dt-bindings: bus: imx-weim: convert to YAML

Sebastian Reichel sre at kernel.org
Sun Feb 18 17:59:26 PST 2024


Hi Krzysztof,

On Sat, Feb 17, 2024 at 09:39:52AM +0100, Krzysztof Kozlowski wrote:
> On 16/02/2024 23:34, Sebastian Reichel wrote:
> > +properties:
> > +  reg: true
> 
> Your pattern in weim schema suggests you have here minItems: 2.
> maxItems: can be 2 or 255.

Which part suggests minItems: 2?

It's minItems: 1 with each item consisting of two address cells and
one size cell. Most in-tree users actually have exactly one item.
The only exception seems to be arch/arm/boot/dts/nxp/imx/imx1-apf9328.dts,
which has "davicom,dm9000" using two reg items. Considering this is an
external bus, any number is possible in theory. Should I keep it as is,
or use minItems: 1, maxItems: 255 instead?

-- Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20240219/3475a090/attachment.sig>


More information about the linux-arm-kernel mailing list