[PATCH v5 09/20] dt-bindings: serial: samsung: Make samsung,uart-fifosize required property

Peter Griffin peter.griffin at linaro.org
Sun Dec 3 13:31:41 PST 2023


Hi Arnd,

On Fri, 1 Dec 2023 at 16:39, Arnd Bergmann <arnd at arndb.de> wrote:
>
> On Fri, Dec 1, 2023, at 17:09, Peter Griffin wrote:
> >
> > +  - if:
> > +      properties:
> > +        compatible:
> > +          contains:
> > +            enum:
> > +              - google,gs101-uart
> > +    then:
> > +      required:
> > +        - samsung,uart-fifosize
> > +
>
> Is there a way to reverse the list and make the property
> required for anything that is not explicitly enumerated?

I'm not aware of a way to do that, but I'm by no means an expert with
json schema. Krzysztof or Rob may know of a way.

I presume your rationale is any newly added platform would get a DTC
warning if they didn't add the samsung,uart-fifosize property?

Krzysztof and Rob also had concerns in the previous series about ABI
breakage on existing platforms, which is why this was only made
required for google,gs101-uart.

regards,

Peter



More information about the linux-arm-kernel mailing list