From: Rob Herring <robh@kernel.org>
To: Yannick Fertre <yannick.fertre@foss.st.com>
Cc: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>,
Philippe Cornu <philippe.cornu@foss.st.com>,
David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] dt-bindings: display: st,stm32-ltdc: Document stm32mp25 compatible
Date: Fri, 9 Aug 2024 11:58:21 -0600 [thread overview]
Message-ID: <20240809175821.GA927825-robh@kernel.org> (raw)
In-Reply-To: <20240809151314.221746-1-yannick.fertre@foss.st.com>
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@foss.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
>
prev parent reply other threads:[~2024-08-09 17:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-09 15:13 [PATCH v2] dt-bindings: display: st,stm32-ltdc: Document stm32mp25 compatible Yannick Fertre
2024-08-09 16:18 ` Rob Herring (Arm)
2024-08-09 17:58 ` Rob Herring [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240809175821.GA927825-robh@kernel.org \
--to=robh@kernel.org \
--cc=airlied@gmail.com \
--cc=alexandre.torgue@foss.st.com \
--cc=conor+dt@kernel.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=mripard@kernel.org \
--cc=philippe.cornu@foss.st.com \
--cc=raphael.gallais-pou@foss.st.com \
--cc=tzimmermann@suse.de \
--cc=yannick.fertre@foss.st.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox