Message ID | 20241217-rcar-gh-dsi-v5-3-e77421093c05@ideasonboard.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | drm: Add DSI/DP support for Renesas r8a779h0 V4M and grey-hawk board | expand |
On Tue, Dec 17, 2024 at 07:31:37AM +0200, Tomi Valkeinen wrote: > From: Tomi Valkeinen <tomi.valkeinen+renesas@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@ideasonboard.com> > --- > Documentation/devicetree/bindings/display/renesas,du.yaml | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
Hi Tomi, On Tue, Dec 17, 2024 at 6:32 AM Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> wrote: > From: Tomi Valkeinen <tomi.valkeinen+renesas@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@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
Hi, On 17/12/2024 10:14, Geert Uytterhoeven wrote: > Hi Tomi, > > On Tue, Dec 17, 2024 at 6:32 AM Tomi Valkeinen > <tomi.valkeinen@ideasonboard.com> wrote: >> From: Tomi Valkeinen <tomi.valkeinen+renesas@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@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. But if we add a new SoC, which has 5 vsps, we would need to increase the values in the top level. Which would then mean these are needed, and I'm sure adding them could be missed. Tomi
On Tue, Dec 17, 2024 at 11:59:53AM +0200, Tomi Valkeinen wrote: > Hi, > > On 17/12/2024 10:14, Geert Uytterhoeven wrote: > > Hi Tomi, > > > > On Tue, Dec 17, 2024 at 6:32 AM Tomi Valkeinen > > <tomi.valkeinen@ideasonboard.com> wrote: > >> From: Tomi Valkeinen <tomi.valkeinen+renesas@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@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. > > But if we add a new SoC, which has 5 vsps, we would need to increase the > values in the top level. Which would then mean these are needed, and I'm > sure adding them could be missed. Let's keep things consistent with maxItems specified everywhere (my preference is to not specify the items count at the top level hereas I don't see any value in doing so, but I won't fight on that one if it's what it takes to get the bindings merged).
On Tue, Dec 17, 2024 at 07:31:37AM +0200, Tomi Valkeinen wrote: > From: Tomi Valkeinen <tomi.valkeinen+renesas@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@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> > --- > Documentation/devicetree/bindings/display/renesas,du.yaml | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/display/renesas,du.yaml b/Documentation/devicetree/bindings/display/renesas,du.yaml > index c5b9e6812bce..ef4568118e94 100644 > --- 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 > > required: > - clock-names > @@ -558,9 +564,11 @@ allOf: > > renesas,cmms: > minItems: 3 > + maxItems: 3 > > renesas,vsps: > minItems: 3 > + maxItems: 3 > > required: > - clock-names > @@ -627,9 +635,11 @@ allOf: > > renesas,cmms: > minItems: 3 > + maxItems: 3 > > renesas,vsps: > minItems: 3 > + maxItems: 3 > > required: > - clock-names > @@ -683,7 +693,7 @@ allOf: > - port@1 > > renesas,vsps: > - minItems: 1 > + maxItems: 1 > > required: > - clock-names > @@ -746,9 +756,11 @@ allOf: > > renesas,cmms: > minItems: 2 > + maxItems: 2 > > renesas,vsps: > minItems: 2 > + maxItems: 2 > > required: > - clock-names > @@ -799,6 +811,7 @@ allOf: > > renesas,vsps: > minItems: 2 > + maxItems: 2 > > required: > - clock-names
diff --git a/Documentation/devicetree/bindings/display/renesas,du.yaml b/Documentation/devicetree/bindings/display/renesas,du.yaml index c5b9e6812bce..ef4568118e94 100644 --- 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 required: - clock-names @@ -558,9 +564,11 @@ allOf: renesas,cmms: minItems: 3 + maxItems: 3 renesas,vsps: minItems: 3 + maxItems: 3 required: - clock-names @@ -627,9 +635,11 @@ allOf: renesas,cmms: minItems: 3 + maxItems: 3 renesas,vsps: minItems: 3 + maxItems: 3 required: - clock-names @@ -683,7 +693,7 @@ allOf: - port@1 renesas,vsps: - minItems: 1 + maxItems: 1 required: - clock-names @@ -746,9 +756,11 @@ allOf: renesas,cmms: minItems: 2 + maxItems: 2 renesas,vsps: minItems: 2 + maxItems: 2 required: - clock-names @@ -799,6 +811,7 @@ allOf: renesas,vsps: minItems: 2 + maxItems: 2 required: - clock-names