Hi Krzysztof,
On 2024/9/26 22:19, Krzysztof Kozlowski wrote:
On 26/09/2024 12:32, Frank Wang wrote:
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - rockchip,rk3576-usb2phy
+ then:
+ properties:
+ clocks:
+ minItems: 3
+ maxItems: 3
Read one more time the example I gave you. Top-level constraints are
saying max one clock.
Best regards,
Krzysztof
Sorry for overlooking this, I will set both "clocks" and "clock-names"
to true, and add the else case below the above codes for the "old" SoCs.
Just like the below.
- clocks:
- maxItems: 1
+ clocks: true
- clock-names:
- const: phyclk
+ clock-names: true
assigned-clocks:
description:
@@ -189,6 +187,13 @@ allOf:
- const: phyclk
- const: aclk
- const: aclk_slv
+ else:
+ properties:
+ clocks:
+ maxItems: 1
+ clock-names:
+ const: phyclk
+
Best regards,
Frank