From patchwork Wed Mar 6 10:16:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13583781 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E4F35FB9D for ; Wed, 6 Mar 2024 10:17:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.104.207.81 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709720267; cv=none; b=bpw/uzGk6VVD6QC8oZj+BaMvoPcqCMKtwNQo0iSHCAFYzMJdETN3BXhG4uZOu/T5MeRkJQySd4IPJ/fx0zJWr3v1G8TIkS/TFqa9Ma1ISizYo/cjOBORUcLyKxteDlKBdvOwAfQ7/Jv/SZC6VP8Wun/EWcz1BcBjAw9DGNlwn8g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709720267; c=relaxed/simple; bh=p0LTLlTaEYRNPxxTE/lwLPyC6wPV9SbGtEWRB3hRZ0g=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=llgRe0UKdn+zd800Y+jH9t8ZgUfzP9ZeQnt7WPsSOnCVhvlcByFMgg6PvGeEPxAtFN6cVKKkC1t7zLNJaRIwDeC2vBY5Dn/3embG3C3BW/Y7+DqWnNI4GwCnb5kIT7t0hOA8peN6+fHU/nvycbphuV13IrjlrYb0tkq+zD6LqT0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com; spf=pass smtp.mailfrom=ew.tq-group.com; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b=D6MxIfU9; dkim=fail (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b=S6y26fMp reason="key not found in DNS"; arc=none smtp.client-ip=93.104.207.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="D6MxIfU9"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b="S6y26fMp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1709720265; x=1741256265; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Upbnwqqh+dfusUFVsuhMws2Oo/6gOGPX06PGjH5XnMo=; b=D6MxIfU9RkS8ZsAYIhZ4w+Qi/XA66DVSSaBfjE3S7tTm40AkbRbXZqL8 VCocZnldFf3Km/lXyazJrbDtFX+2ZHhs4W0VPOTL0wwirmJh+ZeIIFpki kmMBIxQMbyFh5Wd3R8W35IbkpUdVlcMlpYozLZixZbM3MpU6nJhC4QoQW b9zhJcrq9VTCPkclhXHVQ5AYLSvFGQo7duPzgMCn/sSEQnyrCiBTYkbUA EBS6/Y2XxUMKGyuVMY1XyIUzBf6cETirVcL2/vIqribddorsE0tKJ88F7 1VDzz6WQU2jGazBpu8AdAZcPAORG7FyQA78JZI4Wxj001MoSpAixEerJv Q==; X-IronPort-AV: E=Sophos;i="6.06,208,1705359600"; d="scan'208";a="35760941" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 06 Mar 2024 11:17:44 +0100 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 1D97A16F19B; Wed, 6 Mar 2024 11:17:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1709720260; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=Upbnwqqh+dfusUFVsuhMws2Oo/6gOGPX06PGjH5XnMo=; b=S6y26fMpeDVBAOMqA/wseMVyGMJXBcmHJd+kPcOtKb4+nYeXdAMhIXF7d91umD/5CAt2hX j3O3aCDUXn7/mFB/FfnMpAm1BC4aC5RBfIni5fRKfA1e3Rj6GbgnjCFVXyqmVvhVLAfm5b 0AuDji/02Bj83apHAY5VTytVV9uuMMrgSbLG2cvNxqPjlipP93JU7O1qz0zWji3lQASfKx Pzwze0S0pQWK4+7Ufr4A0UQOOwAfoVncM6wmRBeK84CbFZt1GINzvGHP3P4b6Ia7qIr7Hg I77YBqJcUzTImoFtldddul0FDkI7gLP6dPaHyhSBVFeA3MWBzP96LLtkHrYJ5Q== From: Alexander Stein To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Sandor Yu Cc: Alexander Stein , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux@ew.tq-group.com Subject: [PATCH v15 7/8] arm64: dts: imx8mq: Add DCSS + HDMI/DP display pipeline Date: Wed, 6 Mar 2024 11:16:24 +0100 Message-Id: <20240306101625.795732-8-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240306101625.795732-1-alexander.stein@ew.tq-group.com> References: <20240306101625.795732-1-alexander.stein@ew.tq-group.com> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 This adds DCSS + MHDP + MHDP PHY nodes. PHY mode (DP/HDMI) is selected by the connector type connected to mhdp port@1 endpoint. Signed-off-by: Alexander Stein --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 68 +++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index c6dc3ba0d43b2..76fc3fd56fbf7 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -1595,6 +1595,74 @@ aips4: bus@32c00000 { /* AIPS4 */ #size-cells = <1>; ranges = <0x32c00000 0x32c00000 0x400000>; + mdhp_phy: phy@32c00000 { + compatible = "fsl,imx8mq-hdptx-phy"; + reg = <0x32c00000 0x100000>; + #phy-cells = <0>; + clocks = <&hdmi_phy_27m>, <&clk IMX8MQ_CLK_DISP_APB_ROOT>; + clock-names = "ref", "apb"; + }; + + mhdp: bridge@32c00000 { + compatible = "fsl,imx8mq-mhdp8501"; + reg = <0x32c00000 0x100000>; + interrupts = , + ; + interrupt-names = "plug_in", "plug_out"; + clocks = <&clk IMX8MQ_CLK_DISP_APB_ROOT>; + phys = <&mdhp_phy>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + mhdp_in: endpoint { + remote-endpoint = <&dcss_out>; + }; + }; + + port@1 { + reg = <1>; + + mhdp_out: endpoint { + }; + }; + }; + }; + + dcss: display-controller@32e00000 { + compatible = "nxp,imx8mq-dcss"; + reg = <0x32e00000 0x2d000>, <0x32e2f000 0x1000>; + interrupt-parent = <&irqsteer>; + interrupts = <6>, <8>, <9>; + interrupt-names = "ctxld", "ctxld_kick", "vblank"; + clocks = <&clk IMX8MQ_CLK_DISP_APB_ROOT>, + <&clk IMX8MQ_CLK_DISP_AXI_ROOT>, + <&clk IMX8MQ_CLK_DISP_RTRM_ROOT>, + <&clk IMX8MQ_VIDEO2_PLL_OUT>, + <&clk IMX8MQ_CLK_DISP_DTRC>; + clock-names = "apb", "axi", "rtrm", "pix", "dtrc"; + assigned-clocks = <&clk IMX8MQ_CLK_DISP_AXI>, + <&clk IMX8MQ_CLK_DISP_RTRM>, + <&clk IMX8MQ_VIDEO2_PLL1_REF_SEL>; + assigned-clock-parents = <&clk IMX8MQ_SYS1_PLL_800M>, + <&clk IMX8MQ_SYS1_PLL_800M>, + <&clk IMX8MQ_CLK_27M>; + assigned-clock-rates = <800000000>, + <400000000>; + status = "disabled"; + + port { + dcss_out: endpoint { + remote-endpoint = <&mhdp_in>; + }; + }; + }; + irqsteer: interrupt-controller@32e2d000 { compatible = "fsl,imx8m-irqsteer", "fsl,imx-irqsteer"; reg = <0x32e2d000 0x1000>;