[PATCH v3 1/6] dt-bindings: arm: stm32: Add clock inputs to STM32MP2 SYSCFG
From: Gabriel Fernandez
Date: Wed Nov 18 2026 - 07:00:37 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.
Describe these inputs with the clocks and clock-names properties. The
LVDS and the DSI don't exist on STM32MP231/233 and STM32MP251/253, which
use the same SYSCFG compatibles as STM32MP235 and STM32MP255. So the
inputs are listed in the "ltdc", "lvds", "dsi" order, and the missing
ones are omitted at the end of the list.
The inputs are required, the LTDC kernel clock being always an input of
the mux. This doesn't break the users of existing devicetrees: no driver
registered the SYSCFG clock so far, and the clock driver doesn't need
these properties to probe.
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@xxxxxxxxxxx>
---
.../bindings/arm/stm32/st,stm32-syscon.yaml | 28 +++++++++++++++++++++-
1 file changed, 27 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..e94d668d51e0 100644
--- a/Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml
+++ b/Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml
@@ -34,7 +34,12 @@ properties:
maxItems: 1
clocks:
- maxItems: 1
+ minItems: 1
+ maxItems: 3
+
+ clock-names:
+ minItems: 1
+ maxItems: 3
"#clock-cells":
const: 0
@@ -62,6 +67,8 @@ allOf:
enum:
- st,stm32mp157-syscfg
- st,stm32f4-gcan
+ - st,stm32mp23-syscfg
+ - st,stm32mp25-syscfg
then:
required:
- clocks
@@ -76,10 +83,26 @@ allOf:
- st,stm32mp23-syscfg
- st,stm32mp25-syscfg
then:
+ properties:
+ clocks:
+ minItems: 1
+ items:
+ - description: LTDC kernel clock
+ - description: LVDS PHY pixel clock
+ - description: DSI PHY byte lane clock
+
+ clock-names:
+ minItems: 1
+ items:
+ - const: ltdc
+ - const: lvds
+ - const: dsi
+
required:
- "#address-cells"
- "#clock-cells"
- "#size-cells"
+ - clock-names
- phy@2400
- phy@2800
else:
@@ -87,6 +110,9 @@ allOf:
'#address-cells': false
'#clock-cells': false
'#size-cells': false
+ clocks:
+ maxItems: 1
+ clock-names: false
phy@2400: false
phy@2800: false
--
2.43.0