Add schema with common properties shared among dual display panel ICs. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx> --- v2: https://lore.kernel.org/all/20230502120036.47165-1-krzysztof.kozlowski@xxxxxxxxxx/ v1: https://lore.kernel.org/all/20230416153929.356330-1-krzysztof.kozlowski@xxxxxxxxxx/ Changes since v2: 1. New Patch --- .../display/panel/panel-common-dual.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/panel-common-dual.yaml diff --git a/Documentation/devicetree/bindings/display/panel/panel-common-dual.yaml b/Documentation/devicetree/bindings/display/panel/panel-common-dual.yaml new file mode 100644 index 000000000000..83fcd643b5f5 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/panel-common-dual.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/panel-common-dual.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Common Properties for Dual-Display Panels + +maintainers: + - Thierry Reding <thierry.reding@xxxxxxxxx> + - Laurent Pinchart <laurent.pinchart+renesas@xxxxxxxxxxxxxxxx> + +description: + Properties common for Panel IC supporting dual display panels. + +allOf: + - $ref: panel-common.yaml# + +properties: + ports: + $ref: /schemas/graph.yaml#/properties/ports + additionalProperties: false + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: First display panel + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Second display panel + + "#address-cells": true + "#size-cells": true + + required: + - port@0 + +# Single-panel setups are still allowed. +oneOf: + - required: + - ports + - required: + - port + +additionalProperties: true -- 2.34.1