[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240809175821.GA927825-robh@kernel.org>
Date: Fri, 9 Aug 2024 11:58:21 -0600
From: Rob Herring <robh@...nel.org>
To: Yannick Fertre <yannick.fertre@...s.st.com>
Cc: Raphael Gallais-Pou <raphael.gallais-pou@...s.st.com>,
Philippe Cornu <philippe.cornu@...s.st.com>,
David Airlie <airlied@...il.com>, Daniel Vetter <daniel@...ll.ch>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
dri-devel@...ts.freedesktop.org, devicetree@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] dt-bindings: display: st,stm32-ltdc: Document
stm32mp25 compatible
On Fri, Aug 09, 2024 at 05:13:14PM +0200, Yannick Fertre wrote:
> Add "st,stm32mp25-ltdc" compatible for SOC MP25. This new SOC introduce
> new clocks (bus, ref & lvds). Bus clock was separated from lcd clock.
> New sources are possible for lcd clock (lvds / ref).
>
> Signed-off-by: Yannick Fertre <yannick.fertre@...s.st.com>
> ---
> Changes in v2: Rework clock property.
> .../bindings/display/st,stm32-ltdc.yaml | 51 +++++++++++++++----
> 1 file changed, 41 insertions(+), 10 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml b/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml
> index d6ea4d62a2cf..cc578ad9f040 100644
> --- a/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml
> +++ b/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml
> @@ -12,7 +12,9 @@ maintainers:
>
> properties:
> compatible:
> - const: st,stm32-ltdc
> + enum:
> + - st,stm32-ltdc
> + - st,stm32mp25-ltdc
>
> reg:
> maxItems: 1
> @@ -23,13 +25,6 @@ properties:
> - description: errors interrupt line.
> minItems: 1
>
> - clocks:
> - maxItems: 1
> -
> - clock-names:
> - items:
> - - const: lcd
No, keep these at the top-level. Add to the list and add 'minItems: 1'.
Then in the if/then schema, just use minItems/maxItems to limit the
number of entries.
> -
> resets:
> maxItems: 1
>
> @@ -46,11 +41,47 @@ required:
> - compatible
> - reg
> - interrupts
> - - clocks
> - - clock-names
> - resets
> - port
>
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - st,stm32mp25-ltdc
> + then:
> + properties:
> + clocks:
> + maxItems: 4
> + items:
> + - description: Lcd Clock
> + - description: Bus Clock
> + - description: Reference Clock
> + - description: Lvds Clock
> + clock-names:
> + items:
> + - const: lcd
> + - const: bus
> + - const: ref
> + - const: lvds
> + required:
> + - clocks
> + - clock-names
> + else:
> + properties:
> + clocks:
> + maxItems: 1
> + items:
> + - description: Lcd Clock
> + clock-names:
> + items:
> + - const: lcd
> + required:
> + - clocks
> + - clock-names
> +
> additionalProperties: false
>
> examples:
> --
> 2.34.1
>
Powered by blists - more mailing lists