* [PATCH v2 0/2] arm64: dts: mediatek: mt8167: Add DRM nodes @ 2026-11-23 8:57 Luca Leonardo Scorcia 2026-11-23 8:57 ` [PATCH v2 1/2] dt-bindings: display: mediatek: dpi: Add compatible for mt8167 Luca Leonardo Scorcia 2026-11-23 8:57 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8167: Add DRM nodes for primary display path Luca Leonardo Scorcia 0 siblings, 2 replies; 6+ messages in thread From: Luca Leonardo Scorcia @ 2026-11-23 8:57 UTC (permalink / raw) To: linux-mediatek Cc: Luca Leonardo Scorcia, Chun-Kuang Hu, Philipp Zabel, David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger, AngeloGioacchino Del Regno, CK Hu, Jitao shi, dri-devel, devicetree, linux-kernel, linux-arm-kernel This series adds support for the main display pipeline on the MediaTek mt8167 SoC. The driver bits have already been applied in CK Hu drm-next branch, together with the first patch of this series regarding the DPI block DT binding. I am including the latter again in this series because it was un-acked by DT maintainers last week due to the addition of un-documented alias section [1]. Those aliases are currently required by the driver to drive the secondary (external) display pipeline, but the main display pipeline does not require them and they can be safely omitted. In version v2 I removed the nodes related to the secondary display pipeline to add display support for 90% of the devices that only use the main display pipeline while an acceptable alternative to aliases is devised. The series has been tested on Xiaomi Mi Smart Clock (X04G), Lenovo Smart Clock 2 (CD-24502F), Lenovo Tab Essential 7 (TB-7104F). Changes in v2: - Removed the secondary pipeline nodes (rdma1, dpi1); - Removed the aliases block; - Implemented the complete OF graph for the main pipeline, using the same path that is currently hardcoded fallback in DRM driver code (output to DSI display). This improves backward compatibility for the upstream mt8167 Pumpkin board. v1: [2] [1] https://lore.kernel.org/linux-mediatek/bbefcf0b-b31e-4f74-bf79-b0ccc983f62b@kernel.org/ [2] https://lore.kernel.org/linux-mediatek/20261117122802.728987-1-l.scorcia@gmail.com/ Luca Leonardo Scorcia (2): dt-bindings: display: mediatek: dpi: Add compatible for mt8167 arm64: dts: mediatek: mt8167: Add DRM nodes for primary display path .../display/mediatek/mediatek,dpi.yaml | 1 + arch/arm64/boot/dts/mediatek/mt8167.dtsi | 297 ++++++++++++++++++ 2 files changed, 298 insertions(+) -- 2.43.0 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 1/2] dt-bindings: display: mediatek: dpi: Add compatible for mt8167 2026-11-23 8:57 [PATCH v2 0/2] arm64: dts: mediatek: mt8167: Add DRM nodes Luca Leonardo Scorcia @ 2026-11-23 8:57 ` Luca Leonardo Scorcia 2026-11-23 16:16 ` Krzysztof Kozlowski 2026-11-23 8:57 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8167: Add DRM nodes for primary display path Luca Leonardo Scorcia 1 sibling, 1 reply; 6+ messages in thread From: Luca Leonardo Scorcia @ 2026-11-23 8:57 UTC (permalink / raw) To: linux-mediatek Cc: Luca Leonardo Scorcia, AngeloGioacchino Del Regno, Chun-Kuang Hu, Philipp Zabel, David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger, CK Hu, Jitao shi, dri-devel, devicetree, linux-kernel, linux-arm-kernel MediaTek mt8167 SoC has two Digital Parallel Interface (DPI) blocks, one can be routed to a DPI display while the other is wired to the HDMI block. They are not compatible with any other device, so add a new compatible to describe them in the device tree. Signed-off-by: Luca Leonardo Scorcia <l.scorcia@gmail.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> --- This patch is resubmitted due to the un-ACK of the previous iteration by DT maintainers, because of the addition of undocumented aliases in the SoC dtsi changes. Those aliases have been removed in this iteration as they are not necessary to drive the main display pipeline. .../devicetree/bindings/display/mediatek/mediatek,dpi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml index eb4f276e8dc4..6cd96a5cd4ae 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml @@ -21,6 +21,7 @@ properties: - enum: - mediatek,mt2701-dpi - mediatek,mt7623-dpi + - mediatek,mt8167-dpi - mediatek,mt8173-dpi - mediatek,mt8183-dpi - mediatek,mt8186-dpi -- 2.43.0 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: display: mediatek: dpi: Add compatible for mt8167 2026-11-23 8:57 ` [PATCH v2 1/2] dt-bindings: display: mediatek: dpi: Add compatible for mt8167 Luca Leonardo Scorcia @ 2026-11-23 16:16 ` Krzysztof Kozlowski 0 siblings, 0 replies; 6+ messages in thread From: Krzysztof Kozlowski @ 2026-11-23 16:16 UTC (permalink / raw) To: Luca Leonardo Scorcia, linux-mediatek Cc: AngeloGioacchino Del Regno, Chun-Kuang Hu, Philipp Zabel, David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger, CK Hu, Jitao shi, dri-devel, devicetree, linux-kernel, linux-arm-kernel On 23/11/2026 09:57, Luca Leonardo Scorcia wrote: > MediaTek mt8167 SoC has two Digital Parallel Interface (DPI) blocks, > one can be routed to a DPI display while the other is wired to the HDMI > block. They are not compatible with any other device, so add a new > compatible to describe them in the device tree. > > Signed-off-by: Luca Leonardo Scorcia <l.scorcia@gmail.com> > Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > --- Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Best regards, Krzysztof ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 2/2] arm64: dts: mediatek: mt8167: Add DRM nodes for primary display path 2026-11-23 8:57 [PATCH v2 0/2] arm64: dts: mediatek: mt8167: Add DRM nodes Luca Leonardo Scorcia 2026-11-23 8:57 ` [PATCH v2 1/2] dt-bindings: display: mediatek: dpi: Add compatible for mt8167 Luca Leonardo Scorcia @ 2026-11-23 8:57 ` Luca Leonardo Scorcia 2026-11-23 9:52 ` AngeloGioacchino Del Regno 2026-11-24 11:06 ` AngeloGioacchino Del Regno 1 sibling, 2 replies; 6+ messages in thread From: Luca Leonardo Scorcia @ 2026-11-23 8:57 UTC (permalink / raw) To: linux-mediatek Cc: Luca Leonardo Scorcia, Chun-Kuang Hu, Philipp Zabel, David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger, AngeloGioacchino Del Regno, CK Hu, Jitao shi, dri-devel, devicetree, linux-kernel, linux-arm-kernel Add all the DRM nodes required to get DSI and DPI0 to work on MT8167 SoC. The primary display pipeline is defined using an OF graph identical to the fixed fallback implemented in driver code to maintain compatibility with existing boards. Its block sequence is as follows: OVL -> COLOR -> CCORR -> AAL -> GAMMA -> DITHER -> RDMA0 -> DSI If a board wants to use the DPI0 display output the last connection should be overridden in the board DTS. As far as I know however there are no devices using the DPI0 display output. Signed-off-by: Luca Leonardo Scorcia <l.scorcia@gmail.com> --- arch/arm64/boot/dts/mediatek/mt8167.dtsi | 297 +++++++++++++++++++++++ 1 file changed, 297 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek/mt8167.dtsi index 27cf32d7ae35..a7818fd92edc 100644 --- a/arch/arm64/boot/dts/mediatek/mt8167.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8167.dtsi @@ -120,10 +120,297 @@ iommu: m4u@10203000 { #iommu-cells = <1>; }; + disp_pwm: pwm@1100f000 { + compatible = "mediatek,mt8167-disp-pwm", "mediatek,mt8173-disp-pwm"; + reg = <0 0x1100f000 0 0x1000>; + clocks = <&topckgen CLK_TOP_PWM_MM>, <&mmsys CLK_MM_DISP_PWM_MM>; + clock-names = "main", "mm"; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + #pwm-cells = <2>; + status = "disabled"; + }; + mmsys: syscon@14000000 { compatible = "mediatek,mt8167-mmsys", "syscon"; reg = <0 0x14000000 0 0x1000>; #clock-cells = <1>; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + + port { + #address-cells = <1>; + #size-cells = <0>; + + mmsys_main: endpoint@0 { + reg = <0>; + remote-endpoint = <&ovl0_in>; + }; + }; + }; + + ovl0: ovl@14007000 { + compatible = "mediatek,mt8167-disp-ovl"; + reg = <0 0x14007000 0 0x1000>; + clocks = <&mmsys CLK_MM_DISP_OVL0>; + interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_LOW>; + iommus = <&iommu M4U_PORT_DISP_OVL0>; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + ovl0_in: endpoint { + remote-endpoint = <&mmsys_main>; + }; + }; + + port@1 { + reg = <1>; + ovl0_out: endpoint { + remote-endpoint = <&color_in>; + }; + }; + }; + }; + + rdma0: rdma@14009000 { + compatible = "mediatek,mt8167-disp-rdma", "mediatek,mt2701-disp-rdma"; + reg = <0 0x14009000 0 0x1000>; + clocks = <&mmsys CLK_MM_DISP_RDMA0>; + interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_LOW>; + iommus = <&iommu M4U_PORT_DISP_RDMA0>; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + rdma0_in: endpoint { + remote-endpoint = <&dither_out>; + }; + }; + + port@1 { + reg = <1>; + rdma0_out: endpoint { + remote-endpoint = <&dsi_in>; + }; + }; + }; + }; + + wdma: wdma@1400b000 { + compatible = "mediatek,mt8167-disp-wdma", "mediatek,mt8173-disp-wdma"; + reg = <0 0x1400b000 0 0x1000>; + clocks = <&mmsys CLK_MM_DISP_WDMA>; + interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_LOW>; + iommus = <&iommu M4U_PORT_DISP_WDMA0>; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + }; + + color: color@1400c000 { + compatible = "mediatek,mt8167-disp-color"; + reg = <0 0x1400c000 0 0x1000>; + clocks = <&mmsys CLK_MM_DISP_COLOR>; + interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_LOW>; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + color_in: endpoint { + remote-endpoint = <&ovl0_out>; + }; + }; + + port@1 { + reg = <1>; + color_out: endpoint { + remote-endpoint = <&ccorr_in>; + }; + }; + }; + }; + + ccorr: ccorr@1400d000 { + compatible = "mediatek,mt8167-disp-ccorr", "mediatek,mt8183-disp-ccorr"; + reg = <0 0x1400d000 0 0x1000>; + clocks = <&mmsys CLK_MM_DISP_CCORR>; + interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_LOW>; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + ccorr_in: endpoint { + remote-endpoint = <&color_out>; + }; + }; + + port@1 { + reg = <1>; + ccorr_out: endpoint { + remote-endpoint = <&aal_in>; + }; + }; + }; + }; + + aal: aal@1400e000 { + compatible = "mediatek,mt8167-disp-aal", "mediatek,mt8173-disp-aal"; + reg = <0 0x1400e000 0 0x1000>; + clocks = <&mmsys CLK_MM_DISP_AAL>; + interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_LOW>; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + aal_in: endpoint { + remote-endpoint = <&ccorr_out>; + }; + }; + + port@1 { + reg = <1>; + aal_out: endpoint { + remote-endpoint = <&gamma_in>; + }; + }; + }; + }; + + gamma: gamma@1400f000 { + compatible = "mediatek,mt8167-disp-gamma", "mediatek,mt8173-disp-gamma"; + reg = <0 0x1400f000 0 0x1000>; + clocks = <&mmsys CLK_MM_DISP_GAMMA>; + interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_LOW>; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + gamma_in: endpoint { + remote-endpoint = <&aal_out>; + }; + }; + + port@1 { + reg = <1>; + gamma_out: endpoint { + remote-endpoint = <&dither_in>; + }; + }; + }; + }; + + dither: dither@14010000 { + compatible = "mediatek,mt8167-disp-dither", "mediatek,mt8183-disp-dither"; + reg = <0 0x14010000 0 0x1000>; + clocks = <&mmsys CLK_MM_DISP_DITHER>; + interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_LOW>; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dither_in: endpoint { + remote-endpoint = <&gamma_out>; + }; + }; + + port@1 { + reg = <1>; + dither_out: endpoint { + remote-endpoint = <&rdma0_in>; + }; + }; + }; + }; + + dsi: dsi@14012000 { + compatible = "mediatek,mt8167-dsi"; + reg = <0 0x14012000 0 0x1000>; + clocks = <&mmsys CLK_MM_DSI_ENGINE>, <&mmsys CLK_MM_DSI_DIGITAL>, + <&mipi_tx>; + clock-names = "engine", "digital", "hs"; + interrupts = <GIC_SPI 171 IRQ_TYPE_LEVEL_LOW>; + phys = <&mipi_tx>; + phy-names = "dphy"; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + status = "disabled"; + + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dsi_in: endpoint { + remote-endpoint = <&rdma0_out>; + }; + }; + + port@1 { + reg = <1>; + dsi_out: endpoint { }; + }; + }; + }; + + dpi0: dpi@14013000 { + compatible = "mediatek,mt8167-dpi"; + reg = <0 0x14013000 0 0x1000>; + clocks = <&mmsys CLK_MM_DPI0_PXL>, <&mmsys CLK_MM_DPI0_ENGINE>, + <&apmixedsys CLK_APMIXED_LVDSPLL>; + clock-names = "pixel", "engine", "pll"; + interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_LOW>; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dpi0_in: endpoint { }; + }; + + port@1 { + reg = <1>; + dpi0_out: endpoint { }; + }; + }; + }; + + mutex: mutex@14015000 { + compatible = "mediatek,mt8167-disp-mutex"; + reg = <0 0x14015000 0 0x1000>; + interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_LOW>; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; }; larb0: larb@14016000 { @@ -145,6 +432,16 @@ smi_common: smi@14017000 { power-domains = <&spm MT8167_POWER_DOMAIN_MM>; }; + mipi_tx: dsi-phy@14018000 { + compatible = "mediatek,mt8167-mipi-tx", "mediatek,mt2701-mipi-tx"; + reg = <0 0x14018000 0 0x90>; + clocks = <&topckgen CLK_TOP_MIPI_26M_DBG>; + clock-output-names = "mipi_tx0_pll"; + #clock-cells = <0>; + #phy-cells = <0>; + status = "disabled"; + }; + imgsys: syscon@15000000 { compatible = "mediatek,mt8167-imgsys", "syscon"; reg = <0 0x15000000 0 0x1000>; -- 2.43.0 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 2/2] arm64: dts: mediatek: mt8167: Add DRM nodes for primary display path 2026-11-23 8:57 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8167: Add DRM nodes for primary display path Luca Leonardo Scorcia @ 2026-11-23 9:52 ` AngeloGioacchino Del Regno 2026-11-24 11:06 ` AngeloGioacchino Del Regno 1 sibling, 0 replies; 6+ messages in thread From: AngeloGioacchino Del Regno @ 2026-11-23 9:52 UTC (permalink / raw) To: Luca Leonardo Scorcia, linux-mediatek Cc: Chun-Kuang Hu, Philipp Zabel, David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger, CK Hu, Jitao shi, dri-devel, devicetree, linux-kernel, linux-arm-kernel On 11/23/26 09:57, Luca Leonardo Scorcia wrote: > Add all the DRM nodes required to get DSI and DPI0 to work on MT8167 SoC. > > The primary display pipeline is defined using an OF graph identical to the > fixed fallback implemented in driver code to maintain compatibility with > existing boards. Its block sequence is as follows: > > OVL -> COLOR -> CCORR -> AAL -> GAMMA -> DITHER -> RDMA0 -> DSI > > If a board wants to use the DPI0 display output the last connection should > be overridden in the board DTS. As far as I know however there are no > devices using the DPI0 display output. > > Signed-off-by: Luca Leonardo Scorcia <l.scorcia@gmail.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 2/2] arm64: dts: mediatek: mt8167: Add DRM nodes for primary display path 2026-11-23 8:57 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8167: Add DRM nodes for primary display path Luca Leonardo Scorcia 2026-11-23 9:52 ` AngeloGioacchino Del Regno @ 2026-11-24 11:06 ` AngeloGioacchino Del Regno 1 sibling, 0 replies; 6+ messages in thread From: AngeloGioacchino Del Regno @ 2026-11-24 11:06 UTC (permalink / raw) To: Luca Leonardo Scorcia, linux-mediatek Cc: Chun-Kuang Hu, Philipp Zabel, David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger, CK Hu, Jitao shi, dri-devel, devicetree, linux-kernel, linux-arm-kernel, Roman Vivchar On 11/23/26 09:57, Luca Leonardo Scorcia wrote: > Add all the DRM nodes required to get DSI and DPI0 to work on MT8167 SoC. > > The primary display pipeline is defined using an OF graph identical to the > fixed fallback implemented in driver code to maintain compatibility with > existing boards. Its block sequence is as follows: > > OVL -> COLOR -> CCORR -> AAL -> GAMMA -> DITHER -> RDMA0 -> DSI > > If a board wants to use the DPI0 display output the last connection should > be overridden in the board DTS. As far as I know however there are no > devices using the DPI0 display output. > > Signed-off-by: Luca Leonardo Scorcia <l.scorcia@gmail.com> Luca, (Cc Krzysztof) My brain got looped around the aliases mess - but I have eventually found a good solution to... the aliases thing, which doesn't imply adding a bunch of MMIOs in mediatek-drm nor in mmsys. This solution, though, needs a decent devicetree with a proper description of the hardware - which is not what you're providing here (and it's not really your fault) I know I asked you to just drop the aliases, and I'm truly sorry for 1. Wasting your time here, though only a few minutes, still wasted 2. Asking you to redo this in a different way Getting to point 2... Of course, on all MediaTek SoCs, all of the Display Controller components are effectively embedded in their own hardware subsystem - and this does effectively include legacy chips - along with MT8167. The right thing to do here is something I should've asked you to do on v1, and that is describing the display controller Sub-IPs exactly as such: so those should be children (read: subnodes) of mmsys. This is also because there's no way to use any of the display controller components if the display controller itself is not powered up (and I can go on with a billion other reasons but I have no time right now, so sorry again). Please, move the display controller children to the display controller node. Cheers, Angelo > --- > arch/arm64/boot/dts/mediatek/mt8167.dtsi | 297 +++++++++++++++++++++++ > 1 file changed, 297 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek/mt8167.dtsi > index 27cf32d7ae35..a7818fd92edc 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8167.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8167.dtsi > @@ -120,10 +120,297 @@ iommu: m4u@10203000 { > #iommu-cells = <1>; > }; > > + disp_pwm: pwm@1100f000 { > + compatible = "mediatek,mt8167-disp-pwm", "mediatek,mt8173-disp-pwm"; > + reg = <0 0x1100f000 0 0x1000>; > + clocks = <&topckgen CLK_TOP_PWM_MM>, <&mmsys CLK_MM_DISP_PWM_MM>; > + clock-names = "main", "mm"; > + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; > + #pwm-cells = <2>; > + status = "disabled"; > + }; > + > mmsys: syscon@14000000 { > compatible = "mediatek,mt8167-mmsys", "syscon"; > reg = <0 0x14000000 0 0x1000>; > #clock-cells = <1>; > + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; > + > + port { > + #address-cells = <1>; > + #size-cells = <0>; > + > + mmsys_main: endpoint@0 { > + reg = <0>; > + remote-endpoint = <&ovl0_in>; > + }; > + }; > + }; > + > + ovl0: ovl@14007000 { > + compatible = "mediatek,mt8167-disp-ovl"; > + reg = <0 0x14007000 0 0x1000>; > + clocks = <&mmsys CLK_MM_DISP_OVL0>; > + interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_LOW>; > + iommus = <&iommu M4U_PORT_DISP_OVL0>; > + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + ovl0_in: endpoint { > + remote-endpoint = <&mmsys_main>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + ovl0_out: endpoint { > + remote-endpoint = <&color_in>; > + }; > + }; > + }; > + }; > + > + rdma0: rdma@14009000 { > + compatible = "mediatek,mt8167-disp-rdma", "mediatek,mt2701-disp-rdma"; > + reg = <0 0x14009000 0 0x1000>; > + clocks = <&mmsys CLK_MM_DISP_RDMA0>; > + interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_LOW>; > + iommus = <&iommu M4U_PORT_DISP_RDMA0>; > + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + rdma0_in: endpoint { > + remote-endpoint = <&dither_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + rdma0_out: endpoint { > + remote-endpoint = <&dsi_in>; > + }; > + }; > + }; > + }; > + > + wdma: wdma@1400b000 { > + compatible = "mediatek,mt8167-disp-wdma", "mediatek,mt8173-disp-wdma"; > + reg = <0 0x1400b000 0 0x1000>; > + clocks = <&mmsys CLK_MM_DISP_WDMA>; > + interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_LOW>; > + iommus = <&iommu M4U_PORT_DISP_WDMA0>; > + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; > + }; > + > + color: color@1400c000 { > + compatible = "mediatek,mt8167-disp-color"; > + reg = <0 0x1400c000 0 0x1000>; > + clocks = <&mmsys CLK_MM_DISP_COLOR>; > + interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_LOW>; > + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + color_in: endpoint { > + remote-endpoint = <&ovl0_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + color_out: endpoint { > + remote-endpoint = <&ccorr_in>; > + }; > + }; > + }; > + }; > + > + ccorr: ccorr@1400d000 { > + compatible = "mediatek,mt8167-disp-ccorr", "mediatek,mt8183-disp-ccorr"; > + reg = <0 0x1400d000 0 0x1000>; > + clocks = <&mmsys CLK_MM_DISP_CCORR>; > + interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_LOW>; > + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + ccorr_in: endpoint { > + remote-endpoint = <&color_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + ccorr_out: endpoint { > + remote-endpoint = <&aal_in>; > + }; > + }; > + }; > + }; > + > + aal: aal@1400e000 { > + compatible = "mediatek,mt8167-disp-aal", "mediatek,mt8173-disp-aal"; > + reg = <0 0x1400e000 0 0x1000>; > + clocks = <&mmsys CLK_MM_DISP_AAL>; > + interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_LOW>; > + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + aal_in: endpoint { > + remote-endpoint = <&ccorr_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + aal_out: endpoint { > + remote-endpoint = <&gamma_in>; > + }; > + }; > + }; > + }; > + > + gamma: gamma@1400f000 { > + compatible = "mediatek,mt8167-disp-gamma", "mediatek,mt8173-disp-gamma"; > + reg = <0 0x1400f000 0 0x1000>; > + clocks = <&mmsys CLK_MM_DISP_GAMMA>; > + interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_LOW>; > + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + gamma_in: endpoint { > + remote-endpoint = <&aal_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + gamma_out: endpoint { > + remote-endpoint = <&dither_in>; > + }; > + }; > + }; > + }; > + > + dither: dither@14010000 { > + compatible = "mediatek,mt8167-disp-dither", "mediatek,mt8183-disp-dither"; > + reg = <0 0x14010000 0 0x1000>; > + clocks = <&mmsys CLK_MM_DISP_DITHER>; > + interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_LOW>; > + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + dither_in: endpoint { > + remote-endpoint = <&gamma_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + dither_out: endpoint { > + remote-endpoint = <&rdma0_in>; > + }; > + }; > + }; > + }; > + > + dsi: dsi@14012000 { > + compatible = "mediatek,mt8167-dsi"; > + reg = <0 0x14012000 0 0x1000>; > + clocks = <&mmsys CLK_MM_DSI_ENGINE>, <&mmsys CLK_MM_DSI_DIGITAL>, > + <&mipi_tx>; > + clock-names = "engine", "digital", "hs"; > + interrupts = <GIC_SPI 171 IRQ_TYPE_LEVEL_LOW>; > + phys = <&mipi_tx>; > + phy-names = "dphy"; > + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; > + status = "disabled"; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + dsi_in: endpoint { > + remote-endpoint = <&rdma0_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + dsi_out: endpoint { }; > + }; > + }; > + }; > + > + dpi0: dpi@14013000 { > + compatible = "mediatek,mt8167-dpi"; > + reg = <0 0x14013000 0 0x1000>; > + clocks = <&mmsys CLK_MM_DPI0_PXL>, <&mmsys CLK_MM_DPI0_ENGINE>, > + <&apmixedsys CLK_APMIXED_LVDSPLL>; > + clock-names = "pixel", "engine", "pll"; > + interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_LOW>; > + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; > + status = "disabled"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + dpi0_in: endpoint { }; > + }; > + > + port@1 { > + reg = <1>; > + dpi0_out: endpoint { }; > + }; > + }; > + }; > + > + mutex: mutex@14015000 { > + compatible = "mediatek,mt8167-disp-mutex"; > + reg = <0 0x14015000 0 0x1000>; > + interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_LOW>; > + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; > }; > > larb0: larb@14016000 { > @@ -145,6 +432,16 @@ smi_common: smi@14017000 { > power-domains = <&spm MT8167_POWER_DOMAIN_MM>; > }; > > + mipi_tx: dsi-phy@14018000 { > + compatible = "mediatek,mt8167-mipi-tx", "mediatek,mt2701-mipi-tx"; > + reg = <0 0x14018000 0 0x90>; > + clocks = <&topckgen CLK_TOP_MIPI_26M_DBG>; > + clock-output-names = "mipi_tx0_pll"; > + #clock-cells = <0>; > + #phy-cells = <0>; > + status = "disabled"; > + }; > + > imgsys: syscon@15000000 { > compatible = "mediatek,mt8167-imgsys", "syscon"; > reg = <0 0x15000000 0 0x1000>; ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-11-24 11:06 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2026-11-23 8:57 [PATCH v2 0/2] arm64: dts: mediatek: mt8167: Add DRM nodes Luca Leonardo Scorcia 2026-11-23 8:57 ` [PATCH v2 1/2] dt-bindings: display: mediatek: dpi: Add compatible for mt8167 Luca Leonardo Scorcia 2026-11-23 16:16 ` Krzysztof Kozlowski 2026-11-23 8:57 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8167: Add DRM nodes for primary display path Luca Leonardo Scorcia 2026-11-23 9:52 ` AngeloGioacchino Del Regno 2026-11-24 11:06 ` AngeloGioacchino Del Regno
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®