MediaTek DPI and DP_INTF Controller

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

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

Maintainers (maintainers): "CK Hu <ck.hu@mediatek.com>", "Jitao shi <jitao.shi@mediatek.com>"

The MediaTek DPI and DP_INTF function blocks are a sink of the display subsystem and provides 8-bit RGB/YUV444 or 8/10/10-bit YUV422 pixel data on a parallel output bus.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "mediatek,mt2701-dpi", "mediatek,mt7623-dpi", "mediatek,mt8173-dpi", "mediatek,mt8183-dpi", "mediatek,mt8186-dpi", "mediatek,mt8188-dp-intf", "mediatek,mt8192-dpi", "mediatek,mt8195-dp-intf", "mediatek,mt8195-dpi"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt6795-dpi"

Item 2

Exact value (const): "mediatek,mt8183-dpi"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt8365-dpi"

Item 2

Exact value (const): "mediatek,mt8192-dpi"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt8188-dpi"

Item 2

Exact value (const): "mediatek,mt8195-dpi"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Pixel Clock

Item 2

Engine Clock

Item 3

DPI PLL

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pixel"

Item 2

Exact value (const): "engine"

Item 3

Exact value (const): "pll"

pinctrl-0 — not listed as required here #

true — No constraints added by this property rule.

pinctrl-1 — not listed as required here #

true — No constraints added by this property rule.

pinctrl-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "sleep"

power-domains — not listed as required here #

The MediaTek DPI module is typically associated with one of the
following multimedia power domains:
  POWER_DOMAIN_DISPLAY
  POWER_DOMAIN_VDOSYS
  POWER_DOMAIN_MM
The specific power domain used varies depending on the SoC design.

It is recommended to explicitly add the appropriate power domain property to the DPI node in the device tree.

Maximum number of items (maxItems): 1

port — not listed as required here #

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

Output port node. This port should be connected to the input port of an attached HDMI, LVDS or DisplayPort encoder chip.

ports — not listed as 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

DPI input port

port@1 — required here

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

DPI output to an HDMI, LVDS or DisplayPort encoder input

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

resets — not listed as required here #

Maximum number of items (maxItems): 1

reset-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "dpi"

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

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "port"

Rule 2 #

Required in this object (required): "ports"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/mt8173-clk.h>
#include <dt-bindings/power/mt8173-power.h>

dpi: dpi@1401d000 {
    compatible = "mediatek,mt8173-dpi";
    reg = <0x1401d000 0x1000>;
    interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>;
    power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
    clocks = <&mmsys CLK_MM_DPI_PIXEL>,
         <&mmsys CLK_MM_DPI_ENGINE>,
         <&apmixedsys CLK_APMIXED_TVDPLL>;
    clock-names = "pixel", "engine", "pll";
    pinctrl-names = "default", "sleep";
    pinctrl-0 = <&dpi_pin_func>;
    pinctrl-1 = <&dpi_pin_idle>;

    port {
        dpi0_out: endpoint {
            remote-endpoint = <&hdmi0_in>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page