[PATCH v2 01/13] dt-bindings: display: st: add new compatible to LTDC device
From: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Date: 2025-08-12 13:51:18
Also in:
dri-devel, linux-devicetree, lkml
Subsystem:
drm drivers, drm drivers and misc gpu patches, drm drivers for stm, open firmware and flattened device tree bindings, the rest · Maintainers:
David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Yannick Fertre, Raphael Gallais-Pou, Philippe Cornu, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Linus Torvalds
The new STMicroelectronics SoC features a display controller similar to
the one used in previous SoCs. Because there is additional registers,
it is incompatible with existing IPs.
Add the new name to the list of compatible string.
Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
---
.../devicetree/bindings/display/st,stm32-ltdc.yaml | 30 ++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml b/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml
index d6ea4d62a2cfae26353c9f20a326a4329fed3a2f..33e814f8b85679a09df697246d2f8ccdbfc44223 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,stm32mp251-ltdc
reg:
maxItems: 1@@ -24,11 +26,16 @@ properties:
minItems: 1
clocks:
- maxItems: 1
+ minItems: 1
+ maxItems: 4
clock-names:
items:
- const: lcd
+ - const: bus
+ - const: ref
+ - const: lvds
+ minItems: 1
resets:
maxItems: 1@@ -51,6 +58,25 @@ required:
- resets
- port
+if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - st,stm32-ltdc
+then:
+ properties:
+ clocks:
+ maxItems: 1
+ clock-names:
+ maxItems: 1
+else:
+ properties:
+ clocks:
+ maxItems: 4
+ clock-names:
+ maxItems: 4
+
additionalProperties: false
examples:
--
2.25.1