[PATCH v5 3/7] dt-bindings: display: renesas, du: Add missing constraints
Geert Uytterhoeven
geert at linux-m68k.org
Tue Dec 17 08:14:28 UTC 2024
Hi Tomi,
On Tue, Dec 17, 2024 at 6:32 AM Tomi Valkeinen
<tomi.valkeinen at ideasonboard.com> wrote:
> From: Tomi Valkeinen <tomi.valkeinen+renesas at ideasonboard.com>
>
> The binding is missing maxItems for all renesas,cmms and renesas,vsps
> properties. As the amount of cmms or vsps is always a fixed amount, set
> the maxItems to match the minItems.
>
> Also add the minItems and maxItems to the top level properties.
>
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen+renesas at ideasonboard.com>
Thanks for your patch!
> --- a/Documentation/devicetree/bindings/display/renesas,du.yaml
> +++ b/Documentation/devicetree/bindings/display/renesas,du.yaml
> @@ -77,6 +77,8 @@ properties:
>
> renesas,cmms:
> $ref: /schemas/types.yaml#/definitions/phandle-array
> + minItems: 1
> + maxItems: 4
> items:
> maxItems: 1
> description:
> @@ -85,6 +87,8 @@ properties:
>
> renesas,vsps:
> $ref: /schemas/types.yaml#/definitions/phandle-array
> + minItems: 1
> + maxItems: 4
> items:
> items:
> - description: phandle to VSP instance that serves the DU channel
> @@ -489,9 +493,11 @@ allOf:
>
> renesas,cmms:
> minItems: 4
> + maxItems: 4
>
> renesas,vsps:
> minItems: 4
> + maxItems: 4
AFAIK these two additions are not needed, as they already match the
values defined at the top level.
The rest LGTM.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at 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
More information about the dri-devel
mailing list