Microchip's LCDC Display

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

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

Maintainers (maintainers): "Nicolas Ferre <nicolas.ferre@microchip.com>", "Dharma Balasubiramani <dharma.b@microchip.com>"

The LCD Controller (LCDC) consists of logic for transferring LCD image data from an external display buffer to a TFT LCD panel. The LCDC has one display input buffer per layer that fetches pixels through the single bus host interface and a look-up table to allow palletized display configurations. The LCDC is programmable on a per layer basis, and supports different LCD resolutions, window sizes, image formats and pixel depths.

Automatic schema selection (select) #

At least one of these rules must match (anyOf) #

Rule 1 #

Required in this object (required): "atmel,dmacon"

Rule 2 #

Required in this object (required): "atmel,lcdcon2"

Rule 3 #

Required in this object (required): "atmel,guard-time"

Properties and child nodes (properties) #

atmel,dmacon — required here #

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

dma controller configuration

atmel,lcdcon2 — required here #

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

lcd controller configuration

atmel,guard-time — required here #

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

lcd guard time (Delay in frame periods)

Maximum value (maximum): 127

bits-per-pixel — required here #

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

lcd panel bit-depth.

Allowed values (enum): 1, 2, 4, 8, 16, 24, 32

atmel,lcdcon-backlight — not listed as required here #

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

enable backlight

atmel,lcdcon-backlight-inverted — not listed as required here #

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

invert backlight PWM polarity

atmel,lcd-wiring-mode — not listed as required here #

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

lcd wiring mode "RGB" or "BRG"

Allowed values (enum): "RGB", "BRG"

atmel,power-control-gpio — not listed as required here #

gpio to power on or off the LCD (as many as needed)

Maximum number of items (maxItems): 1

display-timings — not listed as required here #

Shared schema rule ($ref): panel/display-timings.yaml#

Required in this object (required): "atmel,dmacon", "atmel,lcdcon2", "atmel,guard-time", "bits-per-pixel"

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

false

Not allowed by this rule.

Examples (examples) #

display: panel {
  bits-per-pixel = <32>;
  atmel,lcdcon-backlight;
  atmel,dmacon = <0x1>;
  atmel,lcdcon2 = <0x80008002>;
  atmel,guard-time = <9>;
  atmel,lcd-wiring-mode = "RGB";

  display-timings {
    native-mode = <&timing0>;
    timing0: timing0 {
      clock-frequency = <9000000>;
      hactive = <480>;
      vactive = <272>;
      hback-porch = <1>;
      hfront-porch = <1>;
      vback-porch = <40>;
      vfront-porch = <1>;
      hsync-len = <45>;
      vsync-len = <1>;
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Line 21: We need a select here since this schema is applicable only for nodes with the

Line 22: following properties

Edit this page