Commit 1b9482f8 authored by Raphael Gallais-Pou's avatar Raphael Gallais-Pou
Browse files

dt-bindings: arm: stm32: add required #clock-cells property



On STM32MP25 SoC, the syscfg peripheral provides a clock to the display
subsystem through a multiplexer.  Since it only provides a single clock,
the cell value is 0.

Doing so allows the clock consumers to reach the peripheral and gate the
clock accordingly.

Reviewed-by: default avatarRob Herring (Arm) <robh@kernel.org>
Reviewed-by: default avatarYannick Fertre <yannick.fertre@foss.st.com>
Acked-by: default avatarChristophe Roullier <christophe.roullier@foss.st.com>
Link: https://lore.kernel.org/r/20250822-drm-misc-next-v5-6-9c825e28f733@foss.st.com


Signed-off-by: default avatarRaphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
parent 08f6613e
Loading
Loading
Loading
Loading
+21 −10
Original line number Diff line number Diff line
@@ -36,11 +36,15 @@ properties:
  clocks:
    maxItems: 1

  "#clock-cells":
    const: 0

required:
  - compatible
  - reg

if:
allOf:
  - if:
      properties:
        compatible:
          contains:
@@ -50,6 +54,13 @@ if:
    then:
      required:
        - clocks
  - if:
      properties:
        compatible:
          const: st,stm32mp25-syscfg
    then:
      required:
        - "#clock-cells"

additionalProperties: false