From patchwork Tue Sep 24 07:36:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandor Yu X-Patchwork-Id: 13810446 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1CC52CF9C6B for ; Tue, 24 Sep 2024 07:46:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CoG8VRaUs2pEk8tky92edjQtisSmwtYmzGkkUI5Vx+0=; b=fyC4XGLcTfEh2Z oXlpBgwiFLIljUnJ5OTv4UVbcGUPZKj2Gae4gLtXH0lkd0wUUUa0+JfT5Yc9ABELfNFGu1vFck4t0 P40nnEfCGbujMXN67XqEEsOPeFgiPmX0txvrymIe3AOKxBq1mdshrG6z6hN69Gc+8amHuNr3gHgdf Hcfvxvpkc9yd9g8c4vdRmmiwp9kfqykB3S01HsdBiKphU1ppgFmWcyCHYPM/YSaNBp/N4J42YFkzS hctaU7paRClZiUabohqbXp7e9fTMUPdsvwqyGY7WFSwV79s+qQG5L9OUcB27p4t1qbKat/dumzsyK 72UFlEidddBJdlUWYA1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1st0Fj-00000001TfW-3QlS; Tue, 24 Sep 2024 07:46:31 +0000 Received: from mail-northeuropeazlp170120003.outbound.protection.outlook.com ([2a01:111:f403:c200::3] helo=DU2PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1st08P-00000001RX8-1LF7; Tue, 24 Sep 2024 07:38:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PnWcYNCVa+v+rXNr0BeyRvS/UnnayGGK0gtmWEc516taeg4KGkVHCMqbCQQSJYKsMEwUukbji+L3TfyXHhEijX76F2L6Rv1aovgQjcdwGJY/Mqd4cENmHfa23iD+PEKwzZIkqdOA66xxTMzMhzHNeNLG190cGDXEsf9uQycH878g4kwc29tCQS2ZlK6In5bB5pUux526SOomUajDQ/VyJpf61ftryXCvxrykxpj2tDysztd1nGi/SpvkIVh0zsHn7xPN4c83UXstfS1VJwx6v+azq3XDlznE4zgURJPhFe5E5CdWv9oV/7OedmnKyoNCv7XTNSiEuGKTlH8pBtYmhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=77N7MB+oAF+Ky4cgJTRYmTkxZ7e/e2XlgfS+4KO0a3Q=; b=ro176E2WJ+h/5yT05XiP2b5+gqiyBgnn7huAl6BYmrHr6MA3dxPACdcjPHFmbhQJ2mDcBKApaRk9qZsxFpR8OdxTQjEhnrp/r9zEmPHl7aU+qrgiyYI3k2o7hdfMDnSh8bvKyovj187DTlKGegvyxLH9a/xPIlqdEUaRpxx4A9gmCPchG/ssRL7KVLvowFGILasw9C4NRfuInEVvLT4//SnD9yn32OHqsUJYoSxTU3RuwBDIjHZYN+dlTpk7+Vh30pIMmFhUEbBpRZTufk+HvGpleZNQntb5Ir6Z0x8ZPkfmrhfBsGgNXKBnCF2ozxVKEZ+p+ox0gdlhIgcCQk404g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=77N7MB+oAF+Ky4cgJTRYmTkxZ7e/e2XlgfS+4KO0a3Q=; b=n86bANTPeDYXkd55nAwkg8Z99AKWpxC64MitZbvFSbNBoqMFDjmnY3YK20GurP+zTciy4jqF1gFV53hN16yde7Z5nZGhGnyC8dzLWTL6qNibu6qYoT4vO9gFwK1pEsDYhLZWrQDVNboHuGEjMN1oPsCvcpWY+ei0NMzFqbVKjb00yusrZEUi7lUjZJ2LDHSXuWgsHJkM30g5V6j4yJ4f83MWecaQJHS3yy3ewDBSxq05VEkJSnyXsezl6AvK2lphR64KzSCVjGPTmopnTHDxAlF6zSjFRv2JtB1d1K834dwH9sTu2tu/XYoxCSu+tEchqND62XxRwp3Xnd6iej5cHA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) by AM0PR04MB6881.eurprd04.prod.outlook.com (2603:10a6:208:18b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.27; Tue, 24 Sep 2024 07:38:48 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc%6]) with mapi id 15.20.7982.022; Tue, 24 Sep 2024 07:38:48 +0000 From: Sandor Yu To: dmitry.baryshkov@linaro.org, andrzej.hajda@intel.com, neil.armstrong@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, vkoul@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, mripard@kernel.org Cc: kernel@pengutronix.de, linux-imx@nxp.com, Sandor.yu@nxp.com, oliver.brown@nxp.com, alexander.stein@ew.tq-group.com, sam@ravnborg.org Subject: [PATCH v17 7/8] arm64: dts: imx8mq: Add DCSS + HDMI/DP display pipeline Date: Tue, 24 Sep 2024 15:36:52 +0800 Message-Id: <856a715c0ba66b42f215357653d46b254c289ea2.1727159906.git.Sandor.yu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-ClientProxiedBy: SGBP274CA0008.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::20) To PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9448:EE_|AM0PR04MB6881:EE_ X-MS-Office365-Filtering-Correlation-Id: f6277068-bbf1-45d2-d4f9-08dcdc6bed33 X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: S7XI6h0gzh0XsOg4h0Ds5uSiuulmAnkcVVCb+1b02UbYKL800NO5ZlwgHwJWk3w3wjYxFdqImfWViylBLs9xU66yx46wLD8Xatxm7Nxnj3viONnKXTkNuru2O092duxhy8fI6DaMcDS392tQjVqNYaERaqGB6s0La9r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J4iL/JQB+g6qubYTWf1QOwpech5MVK6olOTxDIWR+Y/L7YrpIQi9JxoJOPQdMYFHu6hIn9ioG4aHTm5FbAvQAtP5A9eDcT8w0eEW6Pi3fCR7Xy0+HVd8JRofVNbDO2agVH/P8dtTZ6rIwfrmhZ8X0bYsWYXICzgk3RRaGUizF6TpaHeGIq3LtbMRVL845RzzcqVXrr+vzT45ZpFUyfylASF4tD8MXyH/rN4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9448.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(52116014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rLwFrflk+dhxP2zVG6sZ4UtbiKW/ZXhWInhNSI44HzKGl1xV/sl3s5TYw1gaP2xPhOscnKBakAZYZu6QNrl6X6suVRpzP72qddagJ5zztPTmg07NCR+HrRd9cDFtdL1va64lwchPmQ8YsmAdysZohV4I0ZsJRPtxy3H4q0MrVC1ZJsksoFaGBwDZ/UUYpyLE3bA+IM2hY9RCPBQr5jDnOyEwF4Zb6wLpuhJz+4q+YGGYz3kcmSkTEP+sF8RhyEZ28QPhPrNAvjw/3kJHCAB68htMQOwb0VDsBdd7iWfFVCb2+So8m7LkMrI7fUv0W5LwKFRCVpy5wgT0FoN6SlmUjkplGDeALGztKuAHJeyZJKWN0F4oDj0Qhg7JkqxHdImBrg+VpoU+I0JZGpfRlEuv9k8gW1H05eVDuj6XfKOjaFAWqKUf0aPh6igGIIaq/+RhCb4rzyBxSNtPsqMj4kloWfdWik0iVoGD+XNuxBdD23kmFxAwyjfLBUd0Mi+WNLlAfZmtdZnq2GmFCzLmO1FZADLOEuqpuM2j6zXLWcUpGN4DSEXYsw5Y7SLuJAsBS76zh1cSRFxBv6eFA7X9+osuLC/Siz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-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2024 07:38:48.1180 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gRsdWVczZLnqKkJ+ozkC9tzTUqsXxG1fr67T7V9NVqxKl/+KQERUyYcQ/rfh7YZf6CRH2wc6854VrAsRvNg45A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6881 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240924_003857_398142_64683000 X-CRM114-Status: UNSURE ( 9.50 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Alexander Stein 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 e03186bbc4152..6bd7d2b2aba2f 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -1602,6 +1602,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>;