# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/display/panel/ontat,kd50g21-40nt-a1.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: On Tat Industrial Company 5" WVGA DPI TFT LCD panel

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

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

properties:
  compatible:
    const: ontat,kd50g21-40nt-a1

  enable-gpios: true
  power-supply: true
  backlight: true
  port: true

required:
  - compatible
  - power-supply

additionalProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>
    panel {
      compatible = "ontat,kd50g21-40nt-a1";
      enable-gpios = <&pcal6524 22 GPIO_ACTIVE_HIGH>;
      power-supply = <&vdd_lcd_reg>;

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

...
