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

title: Elgin JG10309-01 SPI-controlled display

maintainers:
  - Fabio Estevam <festevam@gmail.com>

description: |
  The Elgin JG10309-01 SPI-controlled display is used on the RV1108-Elgin-r1
  board and is a custom display.

allOf:
  - $ref: /schemas/spi/spi-peripheral-props.yaml#

properties:
  compatible:
    const: elgin,jg10309-01

  reg:
    maxItems: 1

  spi-max-frequency:
    maximum: 24000000

  spi-cpha: true

  spi-cpol: true

required:
  - compatible
  - reg
  - spi-cpha
  - spi-cpol

additionalProperties: false

examples:
  - |
    spi {
        #address-cells = <1>;
        #size-cells = <0>;

        display@0 {
            compatible = "elgin,jg10309-01";
            reg = <0>;
            spi-max-frequency = <24000000>;
            spi-cpha;
            spi-cpol;
        };
    };
