# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/display/panel/rocktech,himax8394f.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Rocktech Himax8394f 720x1280 TFT LCD panel

maintainers:
  - Liu Ying <victor.liu@nxp.com>

description:
  Rocktech Himax8394f is a 720x1280 TFT LCD panel
  connected using a MIPI-DSI video interface.

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

properties:
  compatible:
    const: rocktech,himax8394f

  reg:
    maxItems: 1
    description: DSI virtual channel

  himax,dsi-lanes:
    description: Number of DSI lanes to be used must be <1> or <2> or <3> or <4>
    enum: [1, 2, 3, 4]

  enable-gpios: true
  port: true

  vcc-supply:
    description: A typical 2.8V supply(minimum 2.5V, maximum 3.6V).

  iovcc-supply:
    description: A typical 1.8V supply(minimum 1.65V, maximum 3.6V).

  reset-gpios:
    maxItems: 1

additionalProperties: false

required:
  - compatible
  - reg
  - himax,dsi-lanes
  - vcc-supply
  - iovcc-supply

examples:
  - |
    dsi {
      #address-cells = <1>;
      #size-cells = <0>;
      panel@0 {
        compatible = "rocktech,himax8394f";
        reg = <0>;
        himax,dsi-lanes = <2>;
        enable-gpios = <&pca6416_1 9 GPIO_ACTIVE_HIGH>;
        reset-gpios = <&gpiof 8 GPIO_ACTIVE_LOW>;
        vcc-supply = <&reg_5v>;
        iovcc-supply = <&reg_5v>;
      };
    };
...
