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

dt-bindings: gpu: samsung: constrain clocks in top-level properties

When number of clock varies between variants, the Devicetree bindings
coding convention expects to have widest constraints in top-level
definition of the properties and narrow them in allOf:if:then block.

This is more readable and sometimes allows to spot some errors in the
bindings.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20231112184403.3449-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Rob Herring
f1d797b6 6b91e0ee

+16 -4
+8 -2
Documentation/devicetree/bindings/gpu/samsung-g2d.yaml
··· 22 22 interrupts: 23 23 maxItems: 1 24 24 25 - clocks: {} 26 - clock-names: {} 25 + clocks: 26 + minItems: 1 27 + maxItems: 2 28 + 29 + clock-names: 30 + minItems: 1 31 + maxItems: 2 32 + 27 33 iommus: {} 28 34 power-domains: {} 29 35
+8 -2
Documentation/devicetree/bindings/gpu/samsung-scaler.yaml
··· 21 21 interrupts: 22 22 maxItems: 1 23 23 24 - clocks: {} 25 - clock-names: {} 24 + clocks: 25 + minItems: 1 26 + maxItems: 3 27 + 28 + clock-names: 29 + minItems: 1 30 + maxItems: 3 31 + 26 32 iommus: {} 27 33 power-domains: {} 28 34