[PATCH v4 1/5] dt-bindings: arm: stm32: Add clock inputs to STM32MP2 SYSCFG
From: Gabriel Fernandez
Date: Tue Nov 24 2026 - 08:41:54 EST
The SYSCFG of the STM32MP23x and STM32MP25x SoCs is the provider of the
LTDC pixel clock, which it selects in its DISPLAYCLKCR register among
the LTDC kernel clock, the LVDS PHY pixel clock and the DSI PHY byte
lane clock.
This clock is only used on STM32MP235 and STM32MP255, which have the
LVDS and the DSI: the LTDC of STM32MP231/233 and STM32MP251/253 takes
the LTDC kernel clock directly. As the SYSCFG compatibles are shared by
all the SoCs of a family, add the "st,stm32mp235-syscfg" and
"st,stm32mp255-syscfg" compatibles, with the family ones as fallback, as
done for the LVDS of these SoCs.
Describe the three inputs of the mux with the clocks and clock-names
properties, required with these compatibles only. The existing
devicetrees thus remain valid.
The LTDC kernel clock comes first: the SYSCFG node being a syscon, the
syscon core takes its first clock as the clock of the SYSCFG registers,
and the RCC always provides this one, while the LVDS may be disabled,
which would defer all the SYSCFG users.
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@xxxxxxxxxxx>
---
.../bindings/arm/stm32/st,stm32-syscon.yaml | 40 +++++++++++++++++++++-
1 file changed, 39 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml b/Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml
index a559f8b03b84..2a3c0ce90391 100644
--- a/Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml
+++ b/Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml
@@ -25,6 +25,14 @@ properties:
- st,stm32mp23-syscfg
- st,stm32mp25-syscfg
- const: syscon
+ - items:
+ - const: st,stm32mp235-syscfg
+ - const: st,stm32mp23-syscfg
+ - const: syscon
+ - items:
+ - const: st,stm32mp255-syscfg
+ - const: st,stm32mp25-syscfg
+ - const: syscon
- items:
- const: st,stm32-tamp
- const: syscon
@@ -34,7 +42,14 @@ properties:
maxItems: 1
clocks:
- maxItems: 1
+ minItems: 1
+ maxItems: 3
+
+ clock-names:
+ items:
+ - const: ltdc
+ - const: lvds
+ - const: dsi
"#clock-cells":
const: 0
@@ -62,12 +77,35 @@ allOf:
enum:
- st,stm32mp157-syscfg
- st,stm32f4-gcan
+ - st,stm32mp235-syscfg
+ - st,stm32mp255-syscfg
then:
required:
- clocks
else:
properties:
clocks: false
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - st,stm32mp235-syscfg
+ - st,stm32mp255-syscfg
+ then:
+ properties:
+ clocks:
+ items:
+ - description: LTDC kernel clock
+ - description: LVDS PHY pixel clock
+ - description: DSI PHY byte lane clock
+ required:
+ - clock-names
+ else:
+ properties:
+ clocks:
+ maxItems: 1
+ clock-names: false
- if:
properties:
compatible:
--
2.43.0