From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Jessica Zhang <quic_jesszhan@quicinc.com>,
Sam Ravnborg <sam@ravnborg.org>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Yannick Fertre <yannick.fertre@foss.st.com>,
Philippe Cornu <philippe.cornu@foss.st.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>,
Thierry Reding <thierry.reding@gmail.com>
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v1 2/8] dt-bindings: display: add dt-bindings for STM32 LVDS device
Date: Thu, 21 Dec 2023 18:27:12 +0100 [thread overview]
Message-ID: <fcd68fbe-c543-4b6d-9b7f-bcea09918fb9@linaro.org> (raw)
In-Reply-To: <20231221122843.418650-3-raphael.gallais-pou@foss.st.com>
On 21/12/2023 13:28, Raphael Gallais-Pou wrote:
> Add dt-binding file for "st,stm32-lvds" compatible.
>
A nit, subject: drop second/last, redundant "dt-bindings for". The
"dt-bindings" prefix is already stating that these are bindings.
> Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
> ---
> .../bindings/display/st,stm32-lvds.yaml | 114 ++++++++++++++++++
> 1 file changed, 114 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/display/st,stm32-lvds.yaml
>
...
> +properties:
> + "#clock-cells":
> + const: 0
> +
> + compatible:
> + const: st,stm32-lvds
Please put compatible as first.
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + items:
> + - description: APB peripheral clock
> + - description: Reference clock for the internal PLL
> +
> + clock-names:
> + items:
> + - const: pclk
> + - const: ref
> +
> + resets:
> + maxItems: 1
> +
> + ports:
> + $ref: /schemas/graph.yaml#/properties/ports
> +
> + properties:
> + port@0:
> + $ref: /schemas/graph.yaml#/properties/port
> + description: |
> + LVDS input port node, connected to the LTDC RGB output port.
> +
> + port@1:
> + $ref: /schemas/graph.yaml#/properties/port
> + description: |
> + LVDS output port node, connected to a panel or bridge input port.
Ports are not required? I would assume it won't work without input and
output.
> +
> +required:
> + - "#clock-cells"
> + - compatible
> + - reg
> + - clocks
> + - clock-names
> + - resets
> + - ports
> +
> +unevaluatedProperties: false
additionalProperties instead... or did I miss some $ref anywhere?
> +
> +examples:
> + - |
> + #include <dt-bindings/bus/stm32mp25_sys_bus.h>
> + #include <dt-bindings/clock/stm32mp25-clks.h>
> + #include <dt-bindings/reset/stm32mp25-resets.h>
> +
> + lvds: lvds@48060000 {
> + #clock-cells = <0>;
> + compatible = "st,stm32-lvds";
compatible is always the first property.
> + reg = <0x48060000 0x2000>;
put clock-cells here
> + clocks = <&rcc CK_BUS_LVDS>, <&rcc CK_KER_LVDSPHY>;
> + clock-names = "pclk", "ref";
> + resets = <&rcc LVDS_R>;
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-12-21 17:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-21 12:28 [PATCH v1 0/8] Introduce STM32 LVDS driver Raphael Gallais-Pou
2023-12-21 12:28 ` [PATCH v1 1/8] dt-bindings: panel: lvds: Append edt,etml0700z9ndha in panel-lvds Raphael Gallais-Pou
2023-12-21 12:28 ` [PATCH v1 2/8] dt-bindings: display: add dt-bindings for STM32 LVDS device Raphael Gallais-Pou
2023-12-21 17:27 ` Krzysztof Kozlowski [this message]
2023-12-22 8:48 ` Raphael Gallais-Pou
2023-12-21 12:28 ` [PATCH v1 3/8] drm/stm: lvds: add new STM32 LVDS Display Interface Transmitter driver Raphael Gallais-Pou
2023-12-21 12:28 ` [PATCH v1 4/8] drm/stm: ltdc: implement bus clock Raphael Gallais-Pou
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=fcd68fbe-c543-4b6d-9b7f-bcea09918fb9@linaro.org \
--to=krzysztof.kozlowski@linaro.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=krzysztof.kozlowski+dt@linaro.org \
--cc=laurent.pinchart@ideasonboard.com \
--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=neil.armstrong@linaro.org \
--cc=p.zabel@pengutronix.de \
--cc=philippe.cornu@foss.st.com \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=quic_jesszhan@quicinc.com \
--cc=raphael.gallais-pou@foss.st.com \
--cc=robh+dt@kernel.org \
--cc=sam@ravnborg.org \
--cc=thierry.reding@gmail.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;
as well as URLs for NNTP newsgroup(s).