[PATCH v2 3/3] dt-bindings: display: convert panel-dpi to DT schema
Sam Ravnborg
sam at ravnborg.org
Fri Jan 31 19:41:30 UTC 2020
Hi Rob.
> > +
> > +properties:
> > + compatible:
> > + contains:
> > + const: panel-dpi
> > + description:
> > + Shall contain "panel-dpi" in addition to an optional panel-specific
> > + compatible string defined in individual panel bindings.
> > + "panel-dpi" can be used alone, thus no dedicated binding file
> > + is required for each and every panel.
>
> While this has occurred, I don't think the schema should allow it. I
> think a 'minItems: 2' should be added here.
>
> AFAIK, MIPI DPI just defines a spec for what already existed. Maybe it
> constrains things somewhat, but to the extent why we require a panel
> specific compatible in the first place? Doubtful...
You triggered me to re-read some old thread about this.
And I think I got it now.
Based on a proposal you made some weeks ago I did it like this:
properties:
compatible:
description:
Shall contain a panel specific compatible and "panel-dpi"
in that order.
items:
- {}
- const: panel-dpi
So no constraints on the panel specific compatible, expect that it is present.
And panel-dpi must be listed as the second compatible.
Updated the example too.
Will post a v3.
Thanks!
Sam
More information about the dri-devel
mailing list