Message ID | 20241213-rcar-gh-dsi-v4-4-f8e41425207b@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 Fri, Dec 13, 2024 at 04:03:00PM +0200, Tomi Valkeinen wrote: > > - required: > - - port@0 > - - port@1 > - > unevaluatedProperties: false > > renesas,cmms: > @@ -817,6 +814,54 @@ allOf: > - reset-names > - renesas,vsps > > + - if: > + properties: > + compatible: > + contains: > + enum: > + - renesas,du-r8a779h0 > + then: > + properties: > + clocks: > + items: > + - description: Functional clock > + > + clock-names: > + items: > + - const: du.0 > + > + interrupts: > + maxItems: 1 > + > + resets: No minItems here... > + maxItems: 1 > + > + reset-names: > + items: > + - const: du.0 > + > + ports: > + properties: > + port@0: > + description: DSI 0 > + port@1: false > + port@2: false > + port@3: false > + > + required: > + - port@0 > + > + renesas,vsps: > + minItems: 1 so drop minItems here as well. Best regards, Krzysztof
Hi, On 16/12/2024 10:00, Krzysztof Kozlowski wrote: > On Fri, Dec 13, 2024 at 04:03:00PM +0200, Tomi Valkeinen wrote: >> >> - required: >> - - port@0 >> - - port@1 >> - >> unevaluatedProperties: false >> >> renesas,cmms: >> @@ -817,6 +814,54 @@ allOf: >> - reset-names >> - renesas,vsps >> >> + - if: >> + properties: >> + compatible: >> + contains: >> + enum: >> + - renesas,du-r8a779h0 >> + then: >> + properties: >> + clocks: >> + items: >> + - description: Functional clock >> + >> + clock-names: >> + items: >> + - const: du.0 >> + >> + interrupts: >> + maxItems: 1 >> + >> + resets: > > No minItems here... > >> + maxItems: 1 >> + >> + reset-names: >> + items: >> + - const: du.0 >> + >> + ports: >> + properties: >> + port@0: >> + description: DSI 0 >> + port@1: false >> + port@2: false >> + port@3: false >> + >> + required: >> + - port@0 >> + >> + renesas,vsps: >> + minItems: 1 > > so drop minItems here as well. Ok. I wanted to be consistent with the other vsps entries in the file, so I added both min and max items. But I can drop it. Tomi
On Mon, Dec 16, 2024 at 12:56:09PM +0200, Tomi Valkeinen wrote: > On 16/12/2024 10:00, Krzysztof Kozlowski wrote: > > On Fri, Dec 13, 2024 at 04:03:00PM +0200, Tomi Valkeinen wrote: > >> > >> - required: > >> - - port@0 > >> - - port@1 > >> - > >> unevaluatedProperties: false > >> > >> renesas,cmms: > >> @@ -817,6 +814,54 @@ allOf: > >> - reset-names > >> - renesas,vsps > >> > >> + - if: > >> + properties: > >> + compatible: > >> + contains: > >> + enum: > >> + - renesas,du-r8a779h0 > >> + then: > >> + properties: > >> + clocks: > >> + items: > >> + - description: Functional clock > >> + > >> + clock-names: > >> + items: > >> + - const: du.0 > >> + > >> + interrupts: > >> + maxItems: 1 > >> + > >> + resets: > > > > No minItems here... > > > >> + maxItems: 1 > >> + > >> + reset-names: > >> + items: > >> + - const: du.0 > >> + > >> + ports: > >> + properties: > >> + port@0: > >> + description: DSI 0 > >> + port@1: false > >> + port@2: false > >> + port@3: false > >> + > >> + required: > >> + - port@0 > >> + > >> + renesas,vsps: > >> + minItems: 1 > > > > so drop minItems here as well. > > Ok. I wanted to be consistent with the other vsps entries in the file, > so I added both min and max items. But I can drop it. I'd favour consistency with the other vsps entries, but not enough to fight over it.
diff --git a/Documentation/devicetree/bindings/display/renesas,du.yaml b/Documentation/devicetree/bindings/display/renesas,du.yaml index e5fbc4ffe29c..1b4cd8fac825 100644 --- a/Documentation/devicetree/bindings/display/renesas,du.yaml +++ b/Documentation/devicetree/bindings/display/renesas,du.yaml @@ -41,6 +41,7 @@ properties: - renesas,du-r8a77995 # for R-Car D3 compatible DU - renesas,du-r8a779a0 # for R-Car V3U compatible DU - renesas,du-r8a779g0 # for R-Car V4H compatible DU + - renesas,du-r8a779h0 # for R-Car V4M compatible DU reg: maxItems: 1 @@ -69,10 +70,6 @@ properties: $ref: /schemas/graph.yaml#/properties/port unevaluatedProperties: false - required: - - port@0 - - port@1 - unevaluatedProperties: false renesas,cmms: @@ -817,6 +814,54 @@ allOf: - reset-names - renesas,vsps + - if: + properties: + compatible: + contains: + enum: + - renesas,du-r8a779h0 + then: + properties: + clocks: + items: + - description: Functional clock + + clock-names: + items: + - const: du.0 + + interrupts: + maxItems: 1 + + resets: + maxItems: 1 + + reset-names: + items: + - const: du.0 + + ports: + properties: + port@0: + description: DSI 0 + port@1: false + port@2: false + port@3: false + + required: + - port@0 + + renesas,vsps: + minItems: 1 + maxItems: 1 + + required: + - clock-names + - interrupts + - resets + - reset-names + - renesas,vsps + additionalProperties: false examples: