Renesas SH-Mobile LCD Controller (LCDC)

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

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

Maintainers (maintainers): "Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>", "Geert Uytterhoeven <geert+renesas@glider.be>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "renesas,r8a7740-lcdc", "renesas,sh73a0-lcdc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

Only the functional clock is mandatory. Some of the optional clocks are model-dependent (e.g. "video" (a.k.a. "vou" or "dv_clk") is available on R-Mobile A1 only).

clock-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "fck"

Item 2

Allowed values (enum): "media", "lclk", "hdmi", "video"

Item 3

Allowed values (enum): "media", "lclk", "hdmi", "video"

Item 4

Allowed values (enum): "media", "lclk", "hdmi", "video"

Item 5

Allowed values (enum): "media", "lclk", "hdmi", "video"

power-domains — required here #

Maximum number of items (maxItems): 1

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

LCD port (R-Mobile A1 and SH-Mobile AG5)

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

port@1 — not listed as required here

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

HDMI port (R-Mobile A1 LCDC1 and SH-Mobile AG5)

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

port@2 — not listed as required here

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

MIPI-DSI port (SH-Mobile AG5)

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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

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

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,r8a7740-lcdc"

When the condition matches (then) #

Properties and child nodes (properties)

ports — not listed as required here

Properties and child nodes (properties)

port@2 — not listed as required here

false — Not permitted by this property rule.

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,sh73a0-lcdc"

When the condition matches (then) #

Properties and child nodes (properties)

ports — not listed as required here

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

Examples (examples) #

#include <dt-bindings/clock/r8a7740-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

lcd-controller@fe940000 {
    compatible = "renesas,r8a7740-lcdc";
    reg = <0xfe940000 0x4000>;
    interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&mstp1_clks R8A7740_CLK_LCDC0>,
             <&cpg_clocks R8A7740_CLK_M3>, <&lcdlclk0_clk>,
             <&vou_clk>;
    clock-names = "fck", "media", "lclk", "video";
    power-domains = <&pd_a4lc>;

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

        port@0 {
            reg = <0>;

            lcdc0_rgb: endpoint {
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 16: R-Mobile A1

Line 17: SH-Mobile AG5

Edit this page