# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/display/panel/visionox,rm692e5.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Visionox RM692E5 6.55" 2400x1080 120Hz MIPI-DSI Panel

maintainers:
  - Danila Tikhonov <danila@jiaxyga.com>

description:
  The Visionox RM692E5 is a generic DSI Panel IC used to control
  AMOLED panels.

allOf:
  - $ref: panel-common.yaml#

properties:
  compatible:
    oneOf:
      - enum:
          - visionox,rm692e5
      - items:
          - enum:
              - nothing,rm692e5-spacewar
          - const: visionox,rm692e5

  reg:
    maxItems: 1

  vdd-supply:
    description: 3.3V source voltage rail

  vddio-supply:
    description: 1.8V I/O source voltage rail

  reset-gpios: true
  port: true

required:
  - compatible
  - reg
  - reset-gpios
  - vdd-supply
  - vddio-supply
  - port

additionalProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>

    dsi {
        #address-cells = <1>;
        #size-cells = <0>;

        panel@0 {
            compatible = "nothing,rm692e5-spacewar",
                         "visionox,rm692e5";
            reg = <0>;

            reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;

            vdd-supply = <&vdd_oled>;
            vddio-supply = <&vdd_io_oled>;

            port {
                panel_in: endpoint {
                    remote-endpoint = <&mdss_dsi0_out>;
                };
            };
        };
    };

...
