Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Yannick Fertre <yannick.fertre@foss.st.com>
Acked-by: Christophe 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: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>

+21 -10
+21 -10
Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml
··· 36 36 clocks: 37 37 maxItems: 1 38 38 39 + "#clock-cells": 40 + const: 0 41 + 39 42 required: 40 43 - compatible 41 44 - reg 42 45 43 - if: 44 - properties: 45 - compatible: 46 - contains: 47 - enum: 48 - - st,stm32mp157-syscfg 49 - - st,stm32f4-gcan 50 - then: 51 - required: 52 - - clocks 46 + allOf: 47 + - if: 48 + properties: 49 + compatible: 50 + contains: 51 + enum: 52 + - st,stm32mp157-syscfg 53 + - st,stm32f4-gcan 54 + then: 55 + required: 56 + - clocks 57 + - if: 58 + properties: 59 + compatible: 60 + const: st,stm32mp25-syscfg 61 + then: 62 + required: 63 + - "#clock-cells" 53 64 54 65 additionalProperties: false 55 66