Mediatek HDMI Encoder

Schema identifier ($id): "http://devicetree.org/schemas/display/mediatek/mediatek,hdmi.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 HDMI encoder can generate HDMI 1.4a or MHL 2.0 signals from its parallel input.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "mediatek,mt2701-hdmi", "mediatek,mt7623-hdmi", "mediatek,mt8167-hdmi", "mediatek,mt8173-hdmi"

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

HDMI PLL

Item 3

Bit Clock

Item 4

S/PDIF Clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pixel"

Item 2

Exact value (const): "pll"

Item 3

Exact value (const): "bclk"

Item 4

Exact value (const): "spdif"

phys — required here #

Maximum number of items (maxItems): 1

phy-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "hdmi"

mediatek,syscon-hdmi — required here #

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

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to system configuration registers

Item 2

register offset in the system configuration registers

phandle link and register offset to the system configuration registers.

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 port node. This port should be connected to a DPI output port.

port@1 — required here

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

Output port node. This port should be connected to the input port of a connector node that contains a ddc-i2c-bus property, or to the input port of an attached bridge chip, such as a SlimPort transmitter.

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

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "phys", "phy-names", "mediatek,syscon-hdmi", "ports"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mt8173-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
hdmi0: hdmi@14025000 {
    compatible = "mediatek,mt8173-hdmi";
    reg = <0x14025000 0x400>;
    interrupts = <GIC_SPI 206 IRQ_TYPE_LEVEL_LOW>;
    clocks = <&mmsys CLK_MM_HDMI_PIXEL>,
         <&mmsys CLK_MM_HDMI_PLLCK>,
         <&mmsys CLK_MM_HDMI_AUDIO>,
         <&mmsys CLK_MM_HDMI_SPDIF>;
    clock-names = "pixel", "pll", "bclk", "spdif";
    pinctrl-names = "default";
    pinctrl-0 = <&hdmi_pin>;
    phys = <&hdmi_phy>;
    phy-names = "hdmi";
    mediatek,syscon-hdmi = <&mmsys 0x900>;

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

      port@0 {
        reg = <0>;

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

      port@1 {
        reg = <1>;

        hdmi0_out: endpoint {
          remote-endpoint = <&hdmi_con_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