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

title: Startek Electronic Technology Co. kd070fhfid015 7 inch TFT LCD panel

maintainers:
  - Alexandre Mergnat <amergnat@baylibre.com>

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

properties:
  compatible:
    const: startek,kd070fhfid015

  enable-gpios: true

  iovcc-supply:
    description: Reference to the regulator powering the panel IO pins.

  reg:
    maxItems: 1
    description: DSI virtual channel

  reset-gpios: true

  port: true

  power-supply: true

additionalProperties: false

required:
  - compatible
  - enable-gpios
  - iovcc-supply
  - reg
  - reset-gpios
  - port
  - power-supply

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

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

        panel@0 {
            compatible = "startek,kd070fhfid015";
            reg = <0>;
            enable-gpios = <&pio 67 GPIO_ACTIVE_HIGH>;
            reset-gpios = <&pio 20 GPIO_ACTIVE_HIGH>;
            iovcc-supply = <&mt6357_vsim1_reg>;
            power-supply = <&vsys_lcm_reg>;

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

...