From: Fabio Estevam <festevam@gmail.com>
To: p.zabel@pengutronix.de
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
Frank.Li@nxp.com, dri-devel@lists.freedesktop.org,
devicetree@vger.kernel.org, Fabio Estevam <festevam@gmail.com>
Subject: [PATCH v3] dt-bindings: display: imx: Describe legacy display nodes
Date: Wed, 11 Nov 2026 17:36:56 -0300 [thread overview]
Message-ID: <20261111203656.725823-1-festevam@gmail.com> (raw)
Legacy i.MX LCD display nodes have no schema, leaving their properties
unvalidated and causing dt-core.yaml warnings for fsl,pcr on several
i.MX25 and i.MX27 boards:
imx27-phytec-phycard-s-rdk.dtb: display: fsl,pcr:
b'\xf0\xc8\x80\x80' is not of type
'object', 'integer', 'array', 'boolean', 'null'
Add a display schema selected by the presence of fsl,pcr. Describe the
panel model, framebuffer pixel depth, interface width and LCDC settings,
and reference panel-common.yaml for common panel properties and display
timings. Reject properties not covered by these definitions.
Keep the LCD controller schema limited to controller properties.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
Changes since v2:
- Add a separate display-node schema selected by the presence of fsl,pcr. (Rob)
- Describe model, bits-per-pixel, bus-width and fsl,aus-mode, and reference panel-common.yaml.
- Reject unknown display properties with unevaluatedProperties: false.
.../display/imx/fsl,imx-fb-display.yaml | 73 +++++++++++++++++++
1 file changed, 73 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,imx-fb-display.yaml
diff --git a/Documentation/devicetree/bindings/display/imx/fsl,imx-fb-display.yaml b/Documentation/devicetree/bindings/display/imx/fsl,imx-fb-display.yaml
new file mode 100644
index 000000000000..72e567b9ed98
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/imx/fsl,imx-fb-display.yaml
@@ -0,0 +1,73 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/imx/fsl,imx-fb-display.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Freescale i.MX framebuffer display
+
+maintainers:
+ - Fabio Estevam <festevam@gmail.com>
+
+description:
+ Legacy display nodes referenced by the display property of the i.MX
+ LCD controller describe the panel and its interface configuration.
+
+select:
+ required:
+ - fsl,pcr
+
+allOf:
+ - $ref: /schemas/display/panel/panel-common.yaml#
+
+properties:
+ model:
+ $ref: /schemas/types.yaml#/definitions/string
+ description: Display panel model name.
+
+ bits-per-pixel:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: Number of bits per pixel in the framebuffer.
+
+ bus-width:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: Number of data lines connected to the panel.
+
+ fsl,pcr:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: LCDC Panel Configuration Register value.
+
+ fsl,aus-mode:
+ type: boolean
+ description: Enable AUS mode on i.MX21 and later LCD controllers.
+
+required:
+ - bits-per-pixel
+ - display-timings
+ - fsl,pcr
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ display {
+ model = "Primeview-PD050VL1";
+ bits-per-pixel = <16>;
+ fsl,pcr = <0xf0c88080>;
+
+ display-timings {
+ native-mode = <&timing0>;
+
+ timing0: timing0 {
+ hactive = <640>;
+ vactive = <480>;
+ hback-porch = <112>;
+ hfront-porch = <36>;
+ hsync-len = <32>;
+ vback-porch = <33>;
+ vfront-porch = <33>;
+ vsync-len = <2>;
+ clock-frequency = <25000000>;
+ };
+ };
+ };
--
2.43.0
reply other threads:[~2026-11-11 20:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261111203656.725823-1-festevam@gmail.com \
--to=festevam@gmail.com \
--cc=Frank.Li@nxp.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=krzk+dt@kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
/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