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

title: Innolux P097PFG 9.7" 1536x2048 TFT LCD panel

maintainers:
  - Lin Huang <hl@rock-chips.com>

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

properties:
  compatible:
    const: innolux,p097pfg

  reg:
    maxItems: 1

  backlight: true
  enable-gpios: true

  avdd-supply:
    description: The regulator that provides positive voltage

  avee-supply:
    description: The regulator that provides negative voltage

  port: true
  ports: true

required:
  - compatible
  - reg
  - avdd-supply
  - avee-supply
  - enable-gpios

additionalProperties: false

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

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

        panel@0 {
            compatible = "innolux,p097pfg";
            reg = <0>;
            avdd-supply = <&avdd>;
            avee-supply = <&avee>;
            backlight = <&backlight>;
            enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;

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

                port@0 {
                    reg = <0>;

                    mipi_in_panel: endpoint {
                        remote-endpoint = <&mipi_out_panel>;
                    };
                };

                port@1 {
                    reg = <1>;

                    mipi1_in_panel: endpoint {
                        remote-endpoint = <&mipi1_out_panel>;
                    };
                };
            };
        };
    };

...