On 17/01/2023 09:14, yanhong wang wrote:
quoted
quoted
Thanks, refer to the definition of clocks. If it is defined as follows, is it OK?
properties:
resets:
minItems: 1
maxItems: 3
additionalItems: true
Drop
quoted
items:
- description: MAC Reset signal.
Drop both
quoted
reset-names:
minItems: 1
maxItems: 3
additionalItems: true
Drop
quoted
contains:
enum:
- stmmaceth
Drop all
quoted
allOf:
- if:
properties:
compatible:
contains:
const: starfive,jh7110-dwmac
then:
properties:
resets:
minItems: 2
maxItems: 2
reset-names:
items:
- const: stmmaceth
- const: ahb
required:
- resets
- reset-names
else:
properties:
resets:
maxItems: 1
description:
MAC Reset signal.
reset-names:
const: stmmaceth
Do you have any other better suggestions?
More or less like this but the allOf should not be in snps,dwmac schema
but in individual schemas. The snps,dwmac is growing unmaintainable...
Thanks, it is defined as follows, is it right?
properties:
resets:
minItems: 1
maxItems: 3
additionalItems: true
Read my comments above. Drop.
Best regards,
Krzysztof