On Sat, Jan 25, 2020 at 2:35 PM Sam Ravnborg sam@ravnborg.org wrote:
Add display-timings.yaml - that references panel-timings.yaml. display-timings.yaml will be used for display bindings when they are converted to meta-schema format.
For now the old display-timing.txt points to the new display-timings.yaml - and all users are left as-is.
v2:
- Updated native-mode description
Signed-off-by: Sam Ravnborg sam@ravnborg.org Cc: Rob Herring robh@kernel.org Cc: Laurent Pinchart laurent.pinchart@ideasonboard.com Cc: Thierry Reding thierry.reding@gmail.com Cc: Oleksandr Suvorov oleksandr.suvorov@toradex.com Cc: devicetree@vger.kernel.org
.../bindings/display/panel/display-timing.txt | 124 +----------------- .../display/panel/display-timings.yaml | 68 ++++++++++ 2 files changed, 69 insertions(+), 123 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/panel/display-timings.yaml
diff --git a/Documentation/devicetree/bindings/display/panel/display-timings.yaml b/Documentation/devicetree/bindings/display/panel/display-timings.yaml new file mode 100644 index 000000000000..508302cd307a --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/display-timings.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/display-timings.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml#
+title: display timing bindings
+maintainers:
- Thierry Reding thierry.reding@gmail.com
- Laurent Pinchart laurent.pinchart+renesas@ideasonboard.com
- Sam Ravnborg sam@ravnborg.org
+properties:
- $nodename:
- const: display-timings
- native-mode:
- $ref: /schemas/types.yaml#/definitions/phandle
- description: |
The default dispaly timing is the one specified as native-mode.
If no native-mode is specified then the first node is assume the
native mode.
+patternProperties:
- "^timing.*$":
'.*$' can be omitted.
Probably should have a 'type: object' here too.
With that,
Reviewed-by: Rob Herring robh@kernel.org
- allOf:
- $ref: panel-timing.yaml#