RE: [PATCH v4 net-next 02/13] dt-bindings: net: add i.MX95 ENETC support

From: Wei Fang
Date: Tue Oct 22 2024 - 21:40:46 EST


> > allOf:
> > - $ref: /schemas/pci/pci-device.yaml
> > - $ref: ethernet-controller.yaml
> > + - if:
> > + properties:
> > + compatible:
> > + contains:
> > + enum:
> > + - pci1131,e101
> > + then:
> > + properties:
> > + clocks:
> > + maxItems: 1
> > + description: MAC transmit/receiver reference clock
>
> items:
> - description: MAC transmit/receiver reference clock

I remember Rob said maxItems:1 is enough, I think items is no needed here.

>
> > +
> > + clock-names:
> > + const: ref
>
> items:
> - const: ref

I think const: ref is enough, I referenced several other YAML files, such as
cortina,gemini-ethernet.yaml, allwinner,sun8i-a83t-emac.yaml.

> >
> > + else:
> > + properties:
> > + clocks: false
> > + clock-names: false
> >
> > unevaluatedProperties: false
> >
> > --
> > 2.34.1
> >