# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/display/imx/fsl,imx-parallel-display.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Parallel display support

maintainers:
  - Frank Li <Frank.Li@nxp.com>

properties:
  compatible:
    const: fsl,imx-parallel-display

  interface-pix-fmt:
    $ref: /schemas/types.yaml#/definitions/string
    enum:
      - rgb24
      - rgb565
      - bgr666
      - lvds666

  ddc:
    $ref: /schemas/types.yaml#/definitions/phandle
    description:
      phandle describing the i2c bus handling the display data channel

  '#address-cells':
    const: 1

  '#size-cells':
    const: 0

  port@0:
    $ref: /schemas/graph.yaml#/$defs/port-base
    unevaluatedProperties: false
    description: input port connected to the IPU display interface

  port@1:
    $ref: /schemas/graph.yaml#/$defs/port-base
    unevaluatedProperties: false
    description: output port connected to a panel

required:
  - compatible

additionalProperties: false

examples:
  - |
    display {
        compatible = "fsl,imx-parallel-display";
        #address-cells = <1>;
        #size-cells = <0>;
        interface-pix-fmt = "rgb24";

        port@0 {
            reg = <0>;

            endpoint {
                remote-endpoint = <&ipu_di0_disp0>;
            };
        };

        port@1 {
            reg = <1>;

            endpoint {
                remote-endpoint = <&panel_in>;
            };
        };
    };

