From patchwork Tue Nov 26 14:11: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: 13886081 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 3D3F6D3B993 for ; Tue, 26 Nov 2024 14:21:15 +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=VK9dy2nCyesP6++rOE4yin6DkWoNjw/WiwWANaiIWlk=; b=mMNG7t5eY3r1Lf T/w0d8VBieRD8/ukj3d44uxamwOs5wsN5e28a+opSs5C7i1HM2q+m6xpxPxQq3Z6SkQ5PBw1YH+f9 U0ftLbdjAfezVYVgR1XoT5EnRKNrIEPFZFJoTNJ+U5ebW8rXy/LunyD4GYLiIQEFU/YmSkNFfgDl2 6O7yC8lVRKDYbjCFzfX5nkUetMtaG1FP+CC77gah68C5AHGYcE/SiFw3dFEIENf+BCRawCnTGoNkY SAn4Ql4dLKpfqKgC3KKkNKIc5REDYnE30WXXM6kZ4KA+nEY+dW/1RBeRMeqayyaBKUiGF9O76NuE2 025+uKZM3eELu17KIRHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFwRH-0000000AqdM-009F; Tue, 26 Nov 2024 14:21:15 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFwKF-0000000ApCF-06xY; Tue, 26 Nov 2024 14:14:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=oIDhVMetJipGX5S5LKJSM/2W8SPv45rHAXdPX/q2m3n/Zb+2SkVEjH86JUc27H4/K1xZa9DKddN8Cs48zMtqU3DkJXsGgEPkrkgccCTTjDwe2gsBspnnyh5HcQ+KDR+zlCVwXJ2t7bwJL4wBXpfsfJKMgIgZY4O3iOhvPOwRhKw8Blhj6bxxe0F8feEb4bsVMOzKPbwxvOCniMzpv5XUtmZcr+p6wqop2qFnioyWmSvbu5uPMDM+8xhzpJY+Ji6rG4zjFRsfKyHDpX742iRr3tjrOy/CGLhwosmT53bxOQi+THOndwpL/ID7LN8K/Yg7/4ltU+x32nSUjfcFcqVX3g== 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=VQmpgc/8g2UbP3WGIMiYla/AgJxoEzi68vYSXSpb2ME=; b=fX1nPTu3+MB3L95H5S4YeDoUfdDKyE1419GO8kUMTvU6oF0NahvmfL6YtpX9bcFG0LeusCfpNo2889aKELsrWPNhcd2JcBuzX+868hfIoz6XM/YSR9drw+Mv9jqiMcegp4q2xkCDwzwqmTovalTQUKV8Ox1gtO5O++OEUXfTmumX05/gBDVM2Zex6OksK/i+y4vkYATXNqlVHStCEOsh0KCVqp0YyIBSS2L+NRXORIoHUvkpdcEk/F1APdhUZ5EVuOR6nhpQwvzpu7kwJ6PqpKSEwFxw1MnQ4iJLkzQ/noJZbXAlvYjpG2oRyK6dHO4HMceV6EIvTDKPT+SOeLUQTw== 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=VQmpgc/8g2UbP3WGIMiYla/AgJxoEzi68vYSXSpb2ME=; b=gAoyIY7aCz+5lRgOqAKiNdONMuLQ54wI1+YfsXH8ZgeHWt8yU3hyqsDy6GRefQB8V2LotWLaJJdFKwcQzd1BpIEdOKTl1Yf8RGLIYNppT+EpNXhf5g9CZnMyoFlJbo+KZ1pKYICWM+WTcOHc7RY6S7uSxf3hM+8MQJevQ3Y2w7dC4JreWWY9coaHuRetHzxiExt948PTR6Pl60M4EAWv175MCGfZzpWrI0jhwZ5xbdAzzhO7xGCyIg1q1eZrKEHoHLBpvi7UV44UwYdNW24/FQxshhcLfXaSsOMwuu+CGAwzo5lj5hNKygyUlYaQDUSkgrEYUvUm+Hzh7BgUXs1k+w== 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 PAXPR04MB8894.eurprd04.prod.outlook.com (2603:10a6:102:20d::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.21; Tue, 26 Nov 2024 14:13:54 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc%2]) with mapi id 15.20.8182.019; Tue, 26 Nov 2024 14:13:54 +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 v19 7/8] arm64: dts: imx8mq: Add DCSS + HDMI/DP display pipeline Date: Tue, 26 Nov 2024 22:11:52 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-ClientProxiedBy: SI2PR02CA0031.apcprd02.prod.outlook.com (2603:1096:4:195::16) To PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9448:EE_|PAXPR04MB8894:EE_ X-MS-Office365-Filtering-Correlation-Id: dc63cc62-080c-46ee-2ebc-08dd0e248f51 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|7416014|52116014|376014|1800799024|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: dfJ4EbmwInjE0/PSW/J6rWtj63eLiCl75YFOWx0ndThrewFKgUd0FyYKeeqtJ0J0SSDbsjjVbzzpwThpPp36HGjKhRFj9Nn7ByXXu4L3oxifSNib6HA7Vd7SlFnrVqW+LueQ4iOKtYonr/2M1QqVWK1CYCgp6DbZUYeFJHZIA5vJs71b1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HUEZ+t90i5Q7vgyYoHIRpa30OS8rwDSpFEl6K3LN61d7zxAYrg60M4MLkemeq5h2lU0GQUnY9Ny/FY6kwLQTgAJ1gC/HY2Ef7EJLrfFXFWtfb5ju0tJeD6T9ysVQZCSa7nPe/bxSEenu8eY/13Dl+P5z7tIQgBEolAKxzUekqnvLxkO96ZSqsurqpifNcKiBZNjAxuk3v0= 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)(7416014)(52116014)(376014)(1800799024)(366016)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tZdzVQWcGagXZKGc9VllKxLbBQ/MBPIdqc0WTD6b8PeU2UFqrXbmU0tNk5aeIAHy6octfPudo8nzt9NNEj+lvtBsJ+l3FTSg3x71jELtze1oIP6MWKKWQHCdk3w4ahpp1e57umrXF6z283Eu1g3+FLE/qpStxUvu7+oltAAZ6sVr8Eu7/7hZHcj9iZEE2AQWlqhBXCLixxeSNhytN/gNXyauYl823tF2Y4tArPnukZDN4vkxtyO+yu8dleao9qotVkO2QZSBCBdi8IpQfUVWBxv7xWYr3t1qN3X7Cx8KMwlMOn3NkWdWgxQN8tNmW7hPN5Zno5jo0YJCW4KikDScyZToNqskpiagjfRFUtcd2Nfq/gfxhHOcffNZzNjH39KhS4mMewS8jwTo4kFzOeTdv+3flmAngVMFF9+ViU4WRyremz3guWNNhrZ4mOiIEyf9rxz8ABEZ/+oj+D7lk9aBPf837zeyQg6QartcHZB/NQ8Mjs6eHQnrYViM85QkTsPz6+X2hVIjOU2Z1i1PWFq3P1Uyf29HoFOoWsH+IkilvTrkQpagxOmVc0uaLiTVJ0xeirvG0WS+RL0ejfQVZ1rv4JTVAixu+PR8f+0dP5VmqxLkh/lFvawAJIuakn+v81PsEiv5+RCZw6fxsH4Yyne+blr0AErkvSZaTVXdiexr6C7DBBvm2GUHJS75Pn0iMb3owiHnDGYSl5ZZ55+x1Xknj1adDCV4owwVjFxN64+a+hNanDY49EiCI4FcKbrNDQHBo1/hm9h/8UAQb15k9sPhNh8WYxc9wt1riHzLq2Q06X6VUvWZ0kIflbWGNdHZOkZqY/4PIXik2W6zMAW/9IbwYY4PpBukL+Za4wCMHwinRM/LgIc1NOztWLbAZMwoii8do0YMDjtZyPiE4Delz2ddKCdDwQGaTaljUeEuMSsH7KPz8F5kuV+wSP3ue63LUQX5Nx819rs3td9yuxHNC5swEuQsJrUXxzDYg77dDR0Bf/mNeReVmZ45FnmSg6Wq9BomQFM5Yi6qDpVIZD+uJIVytUg7/FmwW735wbkWJtGqFvWEnzULTMpaisqvHIEOgiepLovhHsrfJk5BHcbdz5mBt7lvUCaTDGwfsnpq2b5xncn6dydsPz1M61tgadbOJYPkjRMOBETEMktveS3rd345AxwGh+8zy0PauF0GvInmL/MoGeKyq+7UneUIFECe2gKt3Tky7ME8xjyS+RhfdG6mh57p3L1iZ83fHqwtK+cmicKycJqNsV/bQpm4xNna4jxHKVLnhYYIYN0gAem+r7RsGsKEL1Su4446kYPiWlWmoB9IfsJHhicHMGNZALQr34NgF0RQ7vgFy3lYXJaQDxn3s63X69hWikfvJl7f7jdqlL7J9RIpNjgvHn94xRnNxsI6lmZLUmwap5LMC2/0HlQTXfSRp5Bzi9JSYXyxb0ea7IK/G8tjwRlIjGo99Pho+4U0crC//za1GXzKG+4CJDEWdBeJtuOwnwO+RR2dtHwjV1UF9vHxiveIsGCjqq2rMm9yrwGAu6P0wYGJUPUDRwEacFzjLwu3H8bcmTOuv3sBj7uQ03Gv2gdAFNgdOGVwkIyH X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dc63cc62-080c-46ee-2ebc-08dd0e248f51 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Nov 2024 14:13:54.4836 (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: 2vek6YG/LSQeUTDUsMcGrN5/Zz/Nshek8bsRvTkfsc/HxpFKPK4K5ctNX3SYL/dsyEEUZWETXRIqNgfIj8IoUA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8894 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241126_061359_067005_4E956AD3 X-CRM114-Status: UNSURE ( 9.16 ) 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 --- v17->v19: *No change 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 d51de8d899b2b..df8ba1d5391ae 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>;