Xylon LogiCVC display controller

Schema identifier ($id): "http://devicetree.org/schemas/display/xylon,logicvc-display.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Paul Kocialkowski <paul.kocialkowski@bootlin.com>"

The Xylon LogiCVC is a display controller that supports multiple layers. It is usually implemented as programmable logic and was optimized for use with Xilinx Zynq-7000 SoCs and Xilinx FPGAs.

Because the controller is intended for use in a FPGA, most of the configuration of the controller takes place at logic configuration bitstream synthesis time. As a result, many of the device-tree bindings are meant to reflect the synthesis configuration and must not be configured differently. Matching synthesis parameters are provided when applicable.

Layers are declared in the "layers" sub-node and have dedicated configuration. In version 3 of the controller, each layer has fixed memory offset and address starting from the video memory base address for its framebuffer. In version 4, framebuffers are configured with a direct memory address instead.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "xylon,logicvc-3.02.a-display", "xylon,logicvc-4.01.a-display"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

clock-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "vclk"

Item 2

Allowed values (enum): "vclk2", "lvdsclk", "lvdsclkn"

Item 3

Allowed values (enum): "vclk2", "lvdsclk", "lvdsclkn"

Item 4

Allowed values (enum): "vclk2", "lvdsclk", "lvdsclkn"

interrupts — required here #

Maximum number of items (maxItems): 1

memory-region — not listed as required here #

Maximum number of items (maxItems): 1

xylon,display-interface — required here #

Allowed values (enum): "parallel-rgb", "bt656", "lvds-4bits", "lvds-3bits", "dvi"

Display output interface (C_DISPLAY_INTERFACE).

xylon,display-colorspace — required here #

Allowed values (enum): "rgb", "yuv422", "yuv444"

Display output colorspace (C_DISPLAY_COLOR_SPACE).

xylon,display-depth — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Display output depth (C_PIXEL_DATA_WIDTH).

xylon,row-stride — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Fixed number of pixels in a framebuffer row (C_ROW_STRIDE).

xylon,dithering — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Dithering module is enabled (C_XCOLOR)

xylon,background-layer — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

The last layer is used to display a black background (C_USE_BACKGROUND). The layer must still be registered.

xylon,layers-configurable — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Configuration of layers' size, position and offset is enabled (C_USE_SIZE_POSITION).

layers — required here #

Value type (type): "object"

Properties and child nodes (properties) #

#address-cells — required here

Exact value (const): 1

#size-cells — required here

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^layer@[0-9]+$ — name matches this regular expression

Value type (type): "object"

Properties and child nodes (properties)

reg — required here

Maximum number of items (maxItems): 1

xylon,layer-depth — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Layer depth (C_LAYER_X_DATA_WIDTH).

xylon,layer-colorspace — required here

Allowed values (enum): "rgb", "yuv"

Layer colorspace (C_LAYER_X_TYPE).

xylon,layer-alpha-mode — required here

Allowed values (enum): "layer", "pixel"

Alpha mode for the layer (C_LAYER_X_ALPHA_MODE).

xylon,layer-base-offset — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Offset in number of lines (C_LAYER_X_OFFSET) starting from the video RAM base (C_VMEM_BASEADDR), only for version 3.

xylon,layer-buffer-offset — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Offset in number of lines (C_BUFFER_*_OFFSET) starting from the layer base offset for the second buffer used in double-buffering.

xylon,layer-primary — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Layer should be registered as a primary plane (exactly one is required).

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Required in this object (required): "reg", "xylon,layer-depth", "xylon,layer-colorspace", "xylon,layer-alpha-mode"

Required in this object (required): "#address-cells", "#size-cells", "layer@0"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

The description of the display controller layers, containing layer sub-nodes that each describe a registered layer.

port — required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

Video output port, typically connected to a panel or bridge.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "xylon,display-interface", "xylon,display-colorspace", "xylon,display-depth", "xylon,row-stride", "layers", "port"

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

logicvc: logicvc@43c00000 {
  compatible = "xylon,logicvc-3.02.a", "syscon", "simple-mfd";
  reg = <0x43c00000 0x6000>;

  #address-cells = <1>;
  #size-cells = <1>;

  logicvc_display: display@0 {
    compatible = "xylon,logicvc-3.02.a-display";
    reg = <0x0 0x6000>;

    memory-region = <&logicvc_cma>;

    clocks = <&logicvc_vclk 0>, <&logicvc_lvdsclk 0>;
    clock-names = "vclk", "lvdsclk";

    interrupt-parent = <&intc>;
    interrupts = <0 34 IRQ_TYPE_LEVEL_HIGH>;

    xylon,display-interface = "lvds-4bits";
    xylon,display-colorspace = "rgb";
    xylon,display-depth = <16>;
    xylon,row-stride = <1024>;

    xylon,layers-configurable;

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

      layer@0 {
        reg = <0>;
        xylon,layer-depth = <16>;
        xylon,layer-colorspace = "rgb";
        xylon,layer-alpha-mode = "layer";
        xylon,layer-base-offset = <0>;
        xylon,layer-buffer-offset = <480>;
        xylon,layer-primary;
      };

      layer@1 {
        reg = <1>;
        xylon,layer-depth = <16>;
        xylon,layer-colorspace = "rgb";
        xylon,layer-alpha-mode = "layer";
        xylon,layer-base-offset = <2400>;
        xylon,layer-buffer-offset = <480>;
      };

      layer@2 {
        reg = <2>;
        xylon,layer-depth = <16>;
        xylon,layer-colorspace = "rgb";
        xylon,layer-alpha-mode = "layer";
        xylon,layer-base-offset = <960>;
        xylon,layer-buffer-offset = <480>;
      };

      layer@3 {
        reg = <3>;
        xylon,layer-depth = <16>;
        xylon,layer-colorspace = "rgb";
        xylon,layer-alpha-mode = "layer";
        xylon,layer-base-offset = <480>;
        xylon,layer-buffer-offset = <480>;
      };

      layer@4 {
        reg = <4>;
        xylon,layer-depth = <16>;
        xylon,layer-colorspace = "rgb";
        xylon,layer-alpha-mode = "layer";
        xylon,layer-base-offset = <8192>;
        xylon,layer-buffer-offset = <480>;
      };
    };

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

      logicvc_output: endpoint@0 {
        reg = <0>;
        remote-endpoint = <&panel_input>;
      };
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 2: Copyright 2019 Bootlin

Line 45: vclk is required and must be provided as first item.

Line 47: Other clocks are optional and can be provided in any order.

Line 69: Parallel RGB interface (C_DISPLAY_INTERFACE == 0)

Line 71: ITU-T BR656 interface (C_DISPLAY_INTERFACE == 1)

Line 73: 4-bit LVDS interface (C_DISPLAY_INTERFACE == 2)

Line 75: 3-bit LVDS interface (C_DISPLAY_INTERFACE == 4)

Line 77: DVI interface (C_DISPLAY_INTERFACE == 5)

Line 83: RGB colorspace (C_DISPLAY_COLOR_SPACE == 0)

Line 85: YUV 4:2:2 colorspace (C_DISPLAY_COLOR_SPACE == 1)

Line 87: YUV 4:4:4 colorspace (C_DISPLAY_COLOR_SPACE == 2)

Line 139: RGB colorspace (C_LAYER_X_TYPE == 0)

Line 141: YUV packed colorspace (C_LAYER_X_TYPE == 0)

Line 147: Alpha is configured layer-wide (C_LAYER_X_ALPHA_MODE == 0)

Line 149: Alpha is configured per-pixel (C_LAYER_X_ALPHA_MODE == 1)

Edit this page