xref: /freebsd/sys/contrib/device-tree/Bindings/display/mediatek/mediatek,dpi.txt (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1c66ec88fSEmmanuel VadotMediatek DPI Device
2c66ec88fSEmmanuel Vadot===================
3c66ec88fSEmmanuel Vadot
4c66ec88fSEmmanuel VadotThe Mediatek DPI function block is a sink of the display subsystem and
5c66ec88fSEmmanuel Vadotprovides 8-bit RGB/YUV444 or 8/10/10-bit YUV422 pixel data on a parallel
6c66ec88fSEmmanuel Vadotoutput bus.
7c66ec88fSEmmanuel Vadot
8c66ec88fSEmmanuel VadotRequired properties:
9c66ec88fSEmmanuel Vadot- compatible: "mediatek,<chip>-dpi"
10*6be33864SEmmanuel Vadot  the supported chips are mt2701, mt7623, mt8173 and mt8183.
11c66ec88fSEmmanuel Vadot- reg: Physical base address and length of the controller's registers
12c66ec88fSEmmanuel Vadot- interrupts: The interrupt signal from the function block.
13c66ec88fSEmmanuel Vadot- clocks: device clocks
14c66ec88fSEmmanuel Vadot  See Documentation/devicetree/bindings/clock/clock-bindings.txt for details.
15c66ec88fSEmmanuel Vadot- clock-names: must contain "pixel", "engine", and "pll"
16c66ec88fSEmmanuel Vadot- port: Output port node with endpoint definitions as described in
17c66ec88fSEmmanuel Vadot  Documentation/devicetree/bindings/graph.txt. This port should be connected
18c66ec88fSEmmanuel Vadot  to the input port of an attached HDMI or LVDS encoder chip.
19c66ec88fSEmmanuel Vadot
20c66ec88fSEmmanuel VadotOptional properties:
21c66ec88fSEmmanuel Vadot- pinctrl-names: Contain "default" and "sleep".
22c66ec88fSEmmanuel Vadot
23c66ec88fSEmmanuel VadotExample:
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadotdpi0: dpi@1401d000 {
26c66ec88fSEmmanuel Vadot	compatible = "mediatek,mt8173-dpi";
27c66ec88fSEmmanuel Vadot	reg = <0 0x1401d000 0 0x1000>;
28c66ec88fSEmmanuel Vadot	interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>;
29c66ec88fSEmmanuel Vadot	clocks = <&mmsys CLK_MM_DPI_PIXEL>,
30c66ec88fSEmmanuel Vadot		 <&mmsys CLK_MM_DPI_ENGINE>,
31c66ec88fSEmmanuel Vadot		 <&apmixedsys CLK_APMIXED_TVDPLL>;
32c66ec88fSEmmanuel Vadot	clock-names = "pixel", "engine", "pll";
33c66ec88fSEmmanuel Vadot	pinctrl-names = "default", "sleep";
34c66ec88fSEmmanuel Vadot	pinctrl-0 = <&dpi_pin_func>;
35c66ec88fSEmmanuel Vadot	pinctrl-1 = <&dpi_pin_idle>;
36c66ec88fSEmmanuel Vadot
37c66ec88fSEmmanuel Vadot	port {
38c66ec88fSEmmanuel Vadot		dpi0_out: endpoint {
39c66ec88fSEmmanuel Vadot			remote-endpoint = <&hdmi0_in>;
40c66ec88fSEmmanuel Vadot		};
41c66ec88fSEmmanuel Vadot	};
42c66ec88fSEmmanuel Vadot};
43