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