Allwinner A10 Display Engine Backend

Schema identifier ($id): "http://devicetree.org/schemas/display/allwinner,sun4i-a10-display-backend.yaml#"

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

The display engine backend exposes layers and sprites to the system.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "allwinner,sun4i-a10-display-backend", "allwinner,sun5i-a13-display-backend", "allwinner,sun6i-a31-display-backend", "allwinner,sun7i-a20-display-backend", "allwinner,sun8i-a23-display-backend", "allwinner,sun8i-a33-display-backend", "allwinner,sun9i-a80-display-backend"

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Display Backend registers

Item 2

SAT registers

reg-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "be"

Item 2

Exact value (const): "sat"

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

The backend interface clock

Item 2

The backend module clock

Item 3

The backend DRAM clock

Item 4

The SAT clock

clock-names — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

Exact value (const): "ahb"

Item 2

Exact value (const): "mod"

Item 3

Exact value (const): "ram"

Item 4

Exact value (const): "sat"

resets — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

The Backend reset line

Item 2

The SAT reset line

reset-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "be"

Item 2

Exact value (const): "sat"

interconnects — not listed as required here #

Maximum number of items (maxItems): 1

interconnect-names — not listed as required here #

Exact value (const): "dma-mem"

ports — required here #

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

Properties and child nodes (properties) #

port@0 — required here

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

Input endpoints of the controller.

port@1 — required here

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

Output endpoints of the controller.

Required in this object (required): "port@0", "port@1"

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

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

false

Not allowed by this rule.

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Exact value (const): "allwinner,sun8i-a33-display-backend"

When the condition matches (then) #

Properties and child nodes (properties) #

reg — not listed as required here #

Minimum number of items (minItems): 2

reg-names — required here #

Minimum number of items (minItems): 2

clocks — not listed as required here #

Minimum number of items (minItems): 4

clock-names — not listed as required here #

Minimum number of items (minItems): 4

resets — not listed as required here #

Minimum number of items (minItems): 2

reset-names — required here #

Minimum number of items (minItems): 2

Required in this object (required): "reg-names", "reset-names"

When the condition does not match (else) #

Properties and child nodes (properties) #

reg — not listed as required here #

Maximum number of items (maxItems): 1

reg-names — not listed as required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 3

clock-names — not listed as required here #

Maximum number of items (maxItems): 3

resets — not listed as required here #

Maximum number of items (maxItems): 1

reset-names — not listed as required here #

Maximum number of items (maxItems): 1

Examples (examples) #

/*
 * This comes from the clock/sun4i-a10-ccu.h and
 * reset/sun4i-a10-ccu.h headers, but we can't include them since
 * it would trigger a bunch of warnings for redefinitions of
 * symbols with the other example.
 */

#define CLK_AHB_DE_BE0	42
#define CLK_DRAM_DE_BE0	140
#define CLK_DE_BE0		144
#define RST_DE_BE0		5

display-backend@1e60000 {
    compatible = "allwinner,sun4i-a10-display-backend";
    reg = <0x01e60000 0x10000>;
    interrupts = <47>;
    clocks = <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_DE_BE0>,
             <&ccu CLK_DRAM_DE_BE0>;
    clock-names = "ahb", "mod",
                  "ram";
    resets = <&ccu RST_DE_BE0>;

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

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

            endpoint@0 {
                reg = <0>;
                remote-endpoint = <&fe0_out_be0>;
            };

            endpoint@1 {
                reg = <1>;
                remote-endpoint = <&fe1_out_be0>;
            };
        };

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

            endpoint@0 {
                reg = <0>;
                remote-endpoint = <&tcon0_in_be0>;
            };

            endpoint@1 {
                reg = <1>;
                remote-endpoint = <&tcon1_in_be0>;
            };
        };
    };
};
#include <dt-bindings/interrupt-controller/arm-gic.h>

/*
 * This comes from the clock/sun8i-a23-a33-ccu.h and
 * reset/sun8i-a23-a33-ccu.h headers, but we can't include them
 * since it would trigger a bunch of warnings for redefinitions of
 * symbols with the other example.
 */

#define CLK_BUS_DE_BE	40
#define CLK_BUS_SAT		46
#define CLK_DRAM_DE_BE	84
#define CLK_DE_BE		85
#define RST_BUS_DE_BE	21
#define RST_BUS_SAT		27

display-backend@1e60000 {
    compatible = "allwinner,sun8i-a33-display-backend";
    reg = <0x01e60000 0x10000>, <0x01e80000 0x1000>;
    reg-names = "be", "sat";
    interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&ccu CLK_BUS_DE_BE>, <&ccu CLK_DE_BE>,
             <&ccu CLK_DRAM_DE_BE>, <&ccu CLK_BUS_SAT>;
    clock-names = "ahb", "mod",
                  "ram", "sat";
    resets = <&ccu RST_BUS_DE_BE>, <&ccu RST_BUS_SAT>;
    reset-names = "be", "sat";

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

        port@0 {
            reg = <0>;

            endpoint {
                remote-endpoint = <&fe0_out_be0>;
            };
        };

        port@1 {
            reg = <1>;

            endpoint {
                remote-endpoint = <&drc0_in_be0>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 70: FIXME: This should be made required eventually once every SoC will

Line 71: have the MBUS declared.

Line 75: FIXME: This should be made required eventually once every SoC will

Line 76: have the MBUS declared.

Edit this page