GNU Linux-libre 4.9.337-gnu1
[releases.git] / Documentation / devicetree / bindings / display / mediatek / mediatek,dpi.txt
1 Mediatek DPI Device
2 ===================
3
4 The Mediatek DPI function block is a sink of the display subsystem and
5 provides 8-bit RGB/YUV444 or 8/10/10-bit YUV422 pixel data on a parallel
6 output bus.
7
8 Required properties:
9 - compatible: "mediatek,<chip>-dpi"
10 - reg: Physical base address and length of the controller's registers
11 - interrupts: The interrupt signal from the function block.
12 - clocks: device clocks
13   See Documentation/devicetree/bindings/clock/clock-bindings.txt for details.
14 - clock-names: must contain "pixel", "engine", and "pll"
15 - port: Output port node with endpoint definitions as described in
16   Documentation/devicetree/bindings/graph.txt. This port should be connected
17   to the input port of an attached HDMI or LVDS encoder chip.
18
19 Optional properties:
20 - pinctrl-names: Contain "default" and "sleep".
21
22 Example:
23
24 dpi0: dpi@1401d000 {
25         compatible = "mediatek,mt8173-dpi";
26         reg = <0 0x1401d000 0 0x1000>;
27         interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>;
28         clocks = <&mmsys CLK_MM_DPI_PIXEL>,
29                  <&mmsys CLK_MM_DPI_ENGINE>,
30                  <&apmixedsys CLK_APMIXED_TVDPLL>;
31         clock-names = "pixel", "engine", "pll";
32         pinctrl-names = "default", "sleep";
33         pinctrl-0 = <&dpi_pin_func>;
34         pinctrl-1 = <&dpi_pin_idle>;
35
36         port {
37                 dpi0_out: endpoint {
38                         remote-endpoint = <&hdmi0_in>;
39                 };
40         };
41 };