From patchwork Tue Jul 2 12:22:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandor Yu X-Patchwork-Id: 13719574 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 C00B8C3065C for ; Tue, 2 Jul 2024 12:25:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=ZyScmXg/s/YqmSnxTxcznnWRa5HCUQUxZxKsGFXFsXY=; b=PVbRAUsavIbtfz9xeAt/GPrSMu 2ffaMcN3Xo3coivnrNTlRyWQUaNujIR6XvPzFIULUVVZ0jGAQlXbK9SME33wTg2S+0DX+rR5x7qbv PP05dTvcRPdPmIIdjWV83d0xgswpyoVT7K7KUY70qAWj46XYSKZrPIpuSnzGC9P2BAp2ON8XHVfBJ fJG2/dULBBpJPjQhdDorcNgvUAOAerhtGnBaVFKZC+ZMXZi0V/rHhUpYDIfMLO+3obABhkQiLUfUD Fr6dizOyWo+P9ejDlWwlzXKHaq/LnIz3wVdTq7kMLlHszQcKWg2K+qpk4aZxs3Yb6QJej9p12wA8C Ql+obfIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOcZK-00000006fRo-1jJk; Tue, 02 Jul 2024 12:25:10 +0000 Received: from mail-am7eur03on20601.outbound.protection.outlook.com ([2a01:111:f403:260e::601] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOcYx-00000006fCG-1qsD; Tue, 02 Jul 2024 12:24:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cITimwSdLzelxhA/rusRslNohlzKP2SL9YwmAZQwqB3u7xwXbcmls7tyi7FL2iYcKzLgLWgZ29uu/7Mg30/rDVe8cjLoBAFurAeJqsPVF7gwpTpZ8xCms7+HpEDGk3CeuSy3sgKzzKMO1knbdHo+A/VAW2gh4t1x3VYqxzp9T3HcRhlE7gyx/V0XP64NOpJfHm+kNsGJUzbT47HmkG9MNXXrQUz8+oN/3oU1+/V3E47SikWSXNcJHIunxRPoQdwnbUEIrtEqWPT2fSoQsvZdPWBV5/7CqYQUYIJ1UeMr4zYqaKHT+HSVqEHIEoLRvpA+H7TcEDv//i6Q9MJd0bISBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=ZyScmXg/s/YqmSnxTxcznnWRa5HCUQUxZxKsGFXFsXY=; b=IxedoPWxEueLrW9lKkwoPKpcQKKj0brJxH1oYkayOVoklAXVq4MhOjutHOtuTL5ZW1NrJWaPhY8pkTdQnbF6gWPT+FDcxRvf9z04ILgA3GBPdjGP/7N6XTZTUBcAcq5bb9CWrUHrFku5nK4d4+geicGKMYVr0O+pTZfayO6Y3uVkmDEiiWMHEAj8W3CEBAB0DZxLuiZESlKwuGmj9B9+eSOM+BoMlvlpIXIXPyNCDvpsHqI+DsshFm1Jo2SLSYBLSaiVZ5mFV1GsYezOJQ5yLirlGm4WohjihhM5GORQhuLPGaQ2fTvlDFoIJYzC7P48aVpZim43uHJbSv5M6Df25A== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZyScmXg/s/YqmSnxTxcznnWRa5HCUQUxZxKsGFXFsXY=; b=bN6K9HNDPHni1NJc4QcP/SH1ByGhKzaljgw2Hf8rF3ShO2ihDqQYrgmdMVMgPkMkrKDVDcAp4r3mMfAMUrmRD2ND+q05e15/cM6TkTxSGlNz9NGDuC8RUZB2dgLoMvmSgqyM/HWh7ef/HKZyus7ay8hjTXKQVWLysKLMPHk8YoM= 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 AM7PR04MB6870.eurprd04.prod.outlook.com (2603:10a6:20b:107::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.33; Tue, 2 Jul 2024 12:24:41 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc%4]) with mapi id 15.20.7719.028; Tue, 2 Jul 2024 12:24:41 +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 v16 7/8] arm64: dts: imx8mq: Add DCSS + HDMI/DP display pipeline Date: Tue, 2 Jul 2024 20:22:39 +0800 Message-Id: <727edb97281798454951ddf03cfdab5a428bc9de.1719903904.git.Sandor.yu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-ClientProxiedBy: SI1PR02CA0031.apcprd02.prod.outlook.com (2603:1096:4:1f6::11) To PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9448:EE_|AM7PR04MB6870:EE_ X-MS-Office365-Filtering-Correlation-Id: e42357eb-e1d6-41ac-eb6c-08dc9a91f2ba 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|376014|52116014|1800799024|7416014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: VCvoDK3nv+eWVK6XboKP2A84vl0XYJeXZVFRB4nG38cARqGYTqkq4tGgBbDM2VRPwpZoaJNxbggrEmHZzq61YeZMwyOzVR6w8vNma4u/xkK2XznoZJolYHLHRhZlrDKt7yN1+EZ+Jh1i2z1ZzgJ8CN3GnLCeSOmoriQDSyBZI8tw9ZaT9up3Xpd3eXSjkifzfxSD+qZXQY5iGhST35bZURriJkRT58J0RPeCxU23O5DjfwQgPluvoCwbaw7/SD6UgWnoWEURFWIPbHoeRKh9dN0MfNa7vfcs6Q9qam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+ae4JYKU29G0KbczXBG3B7rY7kRor36tW5fQCia06YzrfdL2RrKqsNNFX5H9mumkWdpzjvprh0znsdrTaE8= 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)(376014)(52116014)(1800799024)(7416014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WN0cL7XVglq65leU8MD9kmc0lNsvbBRzpDpFObLI7h5gyXEFxzEr5qJDYHUVFbnwcr8gA/MMvGZqERZNJ1O/Di++htyFV3uwpHf2yoNhvM5FTzNGscc3vvU5zhHf87Bfn3UNHJos17fSShnzo2BVJbOa7XGpj93aPfUE3hvL7+3jfhz2ZoTFcqh+9w/cQflo54lklryMmm6hhSbnuqlEvTIybED/A4weZdl9H4WnHu9cQdI/hjmregCtXBbR+vlTYFkkuqLprVkBo/r4p5vMhmcOivni2WmtUWBYN9LpsO6OBEC77EPHotkJ0XyblczyktOgy1nkPGwS82y0FQRVuWTrlg/zLXJj3HX7ONVdb7AZTzEQBQezOszNDte+HWlLFooAgTupIjp7Sm5N/ArseCXf2ZDWVXqtEPZDXebBKMz8QhnlZQHZg/S//jEgwrDhb4rhZkzGhjqPBY05IYvYE0p5ZjGPJlCPg8MMMG0Pfb0qncdP07sw8sbK45+NLnXs/JDaG4kDGnhBvKPIm8J1LLWfDIEoo833SXsMRuwuVst56U6t9lj+qzLx5cgjjzOAabp84ZseIJFjMoFBuLaEGETYh5Q1KE7wmPOCKvNqb6NjNHkjmYlcACSC8TQerNP//ZV9SbfXmlHeiOiVSISad57vcRkq5D1aqgS/51NK6BljwUR44yniNOYutgk/Uew8GEFc4b+tK7gmL5cHJZqheiPTE0Q+SMzLHog3taFaWgUPJJtBDRtG/t/bNNuV1XTzFBfyJIxD29i+LoFf/GvR9Qrw052mUqfQOx6h+I3lUrbU1Bad0wiVlE00nAGqiZucRO/cx79jBnmJ26PLSo3jh6pubEsdqCRBQDDXpZy6KQ6mjKl+0s3YW684b7NAfTnZonLeNTyhtmcwzDG1ogWA+xCll4Oo+hP2ChrHGw6g09ec4ATrDFvjcF9hi14TIkYdnbDfs3HQWeeRY+GhKntnxLSpUcu1w1RwKFGpH9Inamlq5ybHk0mgMnINq0lIvdSilIZjQZFE4YkY0PT5ljnu84j3ksF8dl1rfB+W2SSODUcVNOhGDnwqJknaVU3C94TbmNSuSz9NoEI/78WNAR4rdLTJZpxyVOOKeI+FoAN4rtpRHyPF9a6vuDOXOiAUZXs9cMAXHBB2yCZ/p8+5pBGsorBAx2Puc4+d5yBR4amdabsxRMwSB91eY8HlhdjhBaaLyuefUur0wMV7shbUqcN/qbhS58a0IJXFEiMh/CrRfLYsyE3QU8Oiz+kpuJy0Xf760vWYDeD7EW7ImGhA2VtfFHu3pAOXwr4JIwnWjkZBN75lPkF41W/y6QpEiktoycKqMYBWFSfRjAgyCdX57jWNtehKifRQBUonA+QlgZkIqwcq3cJBjdUxrdf6UHuser9V2w1jD7TXSw3KWKamwMn0YMeXLe4HMZH62DunyC8YXvHwadFfalTgljyOqhJ9wGfKyLsr1762eH9L5aTfTJLeYGw8LPqbBqPOF5RPSRsL6Og3lWn5ieaK0GhSMx1dwXyurHXLi6+sUpulcaBgcIeECSgEKZ1VywcQ/DqaKPaq18q+EYpXBGMhbAVcnXfMroAB X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e42357eb-e1d6-41ac-eb6c-08dc9a91f2ba X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jul 2024 12:24:41.5303 (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: vjDBR2lRJT1/l0IAhwocSPCMQJKjnNuhehesi9hs/1RWr2BpNbG7oSqEZa5tHV+K1fUKMLRqxxfsySbHHS4vPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB6870 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240702_052447_564672_6EB77B5A X-CRM114-Status: UNSURE ( 8.91 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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 e03186bbc415..6bd7d2b2aba2 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>;