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

title: Renesas R69328 based DSI Display Panel

maintainers:
  - Svyatoslav Ryhel <clamor95@gmail.com>

description:
  The Renesas R69328 is a generic DSI Panel IC used to control LCD panels.

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

properties:
  compatible:
    items:
      - enum:
            # JDI DX12D100VM0EAA 4.7" WXGA TFT LCD panel
          - jdi,dx12d100vm0eaa
      - const: renesas,r69328

  reg:
    maxItems: 1

  vdd-supply:
    description: Regulator for main power supply.

  vddio-supply:
    description: Regulator for 1.8V IO power supply.

  backlight: true

  reset-gpios: true
  port: true

required:
  - compatible
  - port
  - backlight

additionalProperties: false

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

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

        panel@1 {
            compatible = "jdi,dx12d100vm0eaa", "renesas,r69328";
            reg = <1>;

            reset-gpios = <&gpio 176 GPIO_ACTIVE_LOW>;

            vdd-supply = <&vdd_3v0_lcd>;
            vddio-supply = <&vdd_1v8_io>;

            backlight = <&backlight>;

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