0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/display/mediatek/mediatek,dpi.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: MediaTek DPI and DP_INTF Controller
0008
0009 maintainers:
0010 - CK Hu <ck.hu@mediatek.com>
0011 - Jitao shi <jitao.shi@mediatek.com>
0012
0013 description: |
0014 The MediaTek DPI and DP_INTF function blocks are a sink of the display
0015 subsystem and provides 8-bit RGB/YUV444 or 8/10/10-bit YUV422 pixel data on a
0016 parallel output bus.
0017
0018 properties:
0019 compatible:
0020 enum:
0021 - mediatek,mt2701-dpi
0022 - mediatek,mt7623-dpi
0023 - mediatek,mt8173-dpi
0024 - mediatek,mt8183-dpi
0025 - mediatek,mt8186-dpi
0026 - mediatek,mt8192-dpi
0027 - mediatek,mt8195-dp-intf
0028
0029 reg:
0030 maxItems: 1
0031
0032 interrupts:
0033 maxItems: 1
0034
0035 clocks:
0036 items:
0037 - description: Pixel Clock
0038 - description: Engine Clock
0039 - description: DPI PLL
0040
0041 clock-names:
0042 items:
0043 - const: pixel
0044 - const: engine
0045 - const: pll
0046
0047 pinctrl-0: true
0048 pinctrl-1: true
0049
0050 pinctrl-names:
0051 items:
0052 - const: default
0053 - const: sleep
0054
0055 port:
0056 $ref: /schemas/graph.yaml#/properties/port
0057 description:
0058 Output port node. This port should be connected to the input port of an
0059 attached HDMI, LVDS or DisplayPort encoder chip.
0060
0061 required:
0062 - compatible
0063 - reg
0064 - interrupts
0065 - clocks
0066 - clock-names
0067 - port
0068
0069 additionalProperties: false
0070
0071 examples:
0072 - |
0073 #include <dt-bindings/interrupt-controller/arm-gic.h>
0074 #include <dt-bindings/clock/mt8173-clk.h>
0075
0076 dpi0: dpi@1401d000 {
0077 compatible = "mediatek,mt8173-dpi";
0078 reg = <0x1401d000 0x1000>;
0079 interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>;
0080 clocks = <&mmsys CLK_MM_DPI_PIXEL>,
0081 <&mmsys CLK_MM_DPI_ENGINE>,
0082 <&apmixedsys CLK_APMIXED_TVDPLL>;
0083 clock-names = "pixel", "engine", "pll";
0084 pinctrl-names = "default", "sleep";
0085 pinctrl-0 = <&dpi_pin_func>;
0086 pinctrl-1 = <&dpi_pin_idle>;
0087
0088 port {
0089 dpi0_out: endpoint {
0090 remote-endpoint = <&hdmi0_in>;
0091 };
0092 };
0093 };
0094
0095 ...