From fcfe685cde2f49fe6195b62cdbcaa1c906a853ae Mon Sep 17 00:00:00 2001 From: Junhui Liu Date: Sat, 3 Oct 2026 00:28:39 +0800 Subject: [PATCH] dt-bindings: clock: anlogic,dr1v90-cru: make external clocks optional The main oscillator is the only required input clock for the CRU, while the external CAN and WDT clocks are optional board-level inputs. The binding currently requires all three clocks, forcing device trees for boards without these external inputs to add stub fixed-clock nodes for which no meaningful clock-frequency can be specified. Allow the clocks and clock-names properties to contain just "osc", optionally followed by either or both of "can_ext" and "wdt_ext". Fixes: 155d900e4c7d ("dt-bindings: clock: add Anlogic DR1V90 CRU") Signed-off-by: Junhui Liu Acked-by: Conor Dooley Signed-off-by: Brian Masney --- .../bindings/clock/anlogic,dr1v90-cru.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/anlogic,dr1v90-cru.yaml b/Documentation/devicetree/bindings/clock/anlogic,dr1v90-cru.yaml index 11a92588e494..482640bcf644 100644 --- a/Documentation/devicetree/bindings/clock/anlogic,dr1v90-cru.yaml +++ b/Documentation/devicetree/bindings/clock/anlogic,dr1v90-cru.yaml @@ -17,15 +17,17 @@ properties: maxItems: 1 clocks: - items: - - description: Main oscillator - - description: External CAN clock - - description: External WDT clock + minItems: 1 + maxItems: 3 + description: + The main oscillator is always required. Either or both of the external CAN + and WDT clocks may also be provided if the board routes them to the SoC. clock-names: + minItems: 1 items: - const: osc - - const: can_ext + - enum: [can_ext, wdt_ext] - const: wdt_ext "#clock-cells":