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

title: Himax HX8279/HX8279-D based MIPI-DSI panels

maintainers:
  - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>

description:
  The Himax HX8279 is a 1803 channel outputs source driver with MIPI
  TCON, which generates the horizontal and vertical control timing to
  the source and gate drivers.
  This DriverIC is most suitable for 1200x1920, 1080x1920, 1200x1600,
  and 600x1024 panels and outputs full RGB888 over two or four lanes,
  single or dual, MIPI-DSI video interface.

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

properties:
  compatible:
    items:
      - enum:
          - aoly,sl101pm1794fog-v15
          - startek,kd070fhfid078
      - const: himax,hx8279

  reg:
    maxItems: 1

  iovcc-supply:
    description: I/O voltage supply

  vdd-supply:
    description: Panel power supply

required:
  - compatible
  - reg
  - backlight
  - reset-gpios
  - iovcc-supply
  - vdd-supply

unevaluatedProperties: false

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

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

        panel@0 {
            compatible = "startek,kd070fhfid078", "himax,hx8279";
            reg = <0>;
            backlight = <&backlight>;
            enable-gpios = <&pio 25 GPIO_ACTIVE_HIGH>;
            reset-gpios = <&pio 45 GPIO_ACTIVE_HIGH>;
            iovcc-supply = <&vreg_lcm_vio>;
            vdd-supply = <&vreg_lcm_vdd>;

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

...
