Arm PrimeCell Color LCD Controller PL110/PL111

Schema identifier ($id): "http://devicetree.org/schemas/display/arm,pl11x.yaml#"

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

Maintainers (maintainers): "Liviu Dudau <Liviu.Dudau@arm.com>", "Andre Przywara <andre.przywara@arm.com>"

The Arm Primcell PL010/PL111 is an LCD controller IP, than scans out a framebuffer region in system memory, and creates timed signals for a variety of LCD panels.

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "arm,pl110", "arm,pl111"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "arm,pl110", "arm,pl111"

Item 2

Exact value (const): "arm,primecell"

reg — required here #

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "combined"

The IP provides four individual interrupt lines, but also one combined line. If the integration only connects this line to the interrupt controller, this single interrupt is noted here.

Rule 2

Array item rules (items)

Item 1

Exact value (const): "mbe"

Item 2

Exact value (const): "vcomp"

Item 3

Exact value (const): "lnbu"

Item 4

Exact value (const): "fuf"

interrupts — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "clcdclk"

Item 2

Exact value (const): "apb_pclk"

clocks — required here #

Array item rules (items) #

Item 1

The CLCDCLK reference clock for the controller.

Item 2

The HCLK AHB slave clock for the register access.

memory-region — not listed as required here #

Maximum number of items (maxItems): 1

Phandle to a node describing memory to be used for the framebuffer. If not present, the framebuffer may be located anywhere in memory.

max-memory-bandwidth — not listed as required here #

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

Maximum bandwidth in bytes per second that the cell's memory interface can handle. If not present, the memory interface is fast enough to handle all possible video modes.

resets — not listed as required here #

Maximum number of items (maxItems): 1

port — required here #

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base

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

false

Not allowed by this rule.

Output endpoint of the controller, connecting the LCD panel signals.

Properties and child nodes (properties) #

endpoint — not listed as required here

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/endpoint-base

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

arm,pl11x,tft-r0g0b0-pads — not listed as required here

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

Array item rules (items)

Item 1

index of CLD pad used for first red bit (R0)

Item 2

index of CLD pad used for first green bit (G0)

Item 3

index of CLD pad used for first blue bit (G0)

Deprecated (deprecated): true

DEPRECATED. An array of three 32-bit values, defining the way
CLD[23:0] pads are wired up.
The first value contains the index of the "CLD" external pin (pad)
used as R0 (first bit of the red component), the second value for
green, the third value for blue.
See also "LCD panel signal multiplexing details" paragraphs in the
PL110/PL111 Technical Reference Manuals.
This implicitly defines available color modes, for example:
- PL111 TFT 4:4:4 panel:
    arm,pl11x,tft-r0g0b0-pads = <4 15 20>;
- PL110 TFT (1:)5:5:5 panel:
    arm,pl11x,tft-r0g0b0-pads = <1 7 13>;
- PL111 TFT (1:)5:5:5 panel:
    arm,pl11x,tft-r0g0b0-pads = <3 11 19>;
- PL111 TFT 5:6:5 panel:
    arm,pl11x,tft-r0g0b0-pads = <3 10 19>;
- PL110 and PL111 TFT 8:8:8 panel:
    arm,pl11x,tft-r0g0b0-pads = <0 8 16>;
- PL110 and PL111 TFT 8:8:8 panel, R & B components swapped:
    arm,pl11x,tft-r0g0b0-pads = <16 8 0>;

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

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "clock-names", "clocks", "port"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

interrupts — required here

Minimum number of items (minItems): 2

Required in this object (required): "interrupts"

When the condition matches (then) #

Required in this object (required): "interrupt-names"

Examples (examples) #

clcd@10020000 {
    compatible = "arm,pl111", "arm,primecell";
    reg = <0x10020000 0x1000>;
    interrupt-names = "combined";
    interrupts = <44>;
    clocks = <&oscclk1>, <&oscclk2>;
    clock-names = "clcdclk", "apb_pclk";
    max-memory-bandwidth = <94371840>; /* Bps, 1024x768@60 16bpp */

    port {
        clcd_pads: endpoint {
            remote-endpoint = <&clcd_panel>;
        };
    };
};

panel {
    compatible = "arm,rtsm-display";

    port {
        clcd_panel: endpoint {
            remote-endpoint = <&clcd_pads>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 18: We need a select here so we don't match all nodes with 'arm,primecell'

Line 48: CLCDMBEINTR

Line 49: CLCDVCOMPINTR

Line 50: CLCDLNBUINTR

Line 51: CLCDFUFINTR

Edit this page