From patchwork Thu Oct 3 18:15:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13821375 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 8E791CF34BC for ; Thu, 3 Oct 2024 18:18:56 +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=Ry3yMsSUAKR3lOdbiah9P0pNrcUap4zX9GbGljGFwvk=; b=HxQsQB6Q4IoqB++I9NrONMx79l 7VcVS8+6AIK9njqs4xrh2nV5yLDzY+kKhmLtOfqTg2UBRTwfhq2FkMGDfiwsbU9cFmScRArkwTJAZ dZ2xUMg0OAm+rJtsGMDP5GDt+aHKY8EqPvQuuhqLIswR5Rhk2/3P11beoRE1hwkJGHGVHLT9mhi8n nq7cxeSwXB7E+1err4e+ZftSs3s9zSRMktvG+CtHf1/hKkXXGAkJBVxbGNfh9UT/qX+frc4kP8sIF kwe2ZRKtCbPaQ5SVCjq5QY2TqpA/Nw9mowEvIjnj2/zlptHqbq2gp8usXw2Zly9ArTb8QYEkTv1by stxl2X3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swQPT-0000000A48v-22Z5; Thu, 03 Oct 2024 18:18:43 +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 1swQN2-0000000A3na-0Y9h for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2024 18:16:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AGBDOyb6407pyGhIkjrSxrTgWbuHpaG27SRSH1UeCG9b4GkKLkYxS1oAX9jAMEipSmYyl3/FJ6ktAcY1wyTR0NhEFGWD/ZEVuw/oeZmGa6vdDWOYutzobLj+Y2dy6ArPmB/u1jqiAgL80GgJVRXbYFflq06bKGWGAHAfZIgjFXzhDf9zd4ump5r0oxndtqJpe4f8M6P3qRjlA46831En1VS6r+nR51z5I/FPw8tBiU/EKpmFudMb5LGvS1rr18fc+QCWkJvMUdbeLUSLtAfJeIF+CUKZhTOpMY2PtGd8rLTos7A9a0LMLxd/79Od3R3nl6AAc1/VZ5dXoCRG/xf5oQ== 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=Ry3yMsSUAKR3lOdbiah9P0pNrcUap4zX9GbGljGFwvk=; b=cPMPHseZc+QzaJidur4ptb31MSkH/HMx8mxs8COBbPVPXjDKijHurOFAH9tnRjp1SlFqkHThlEDaN+7MOzK7foxA+CtKiVh73dvgctNR8l5jdVdG9MJN2rA0RMJysPPBz4DU8AjA/w+bnmadSEMPklbu+AZ5jQzl1k8Iy5lR1+aQpGpzO4wQPmQS1HhE0hYLznJret3DljJWGeuGHZGHIB31DGJ3N/qwq+nuMD6hC+ccNc/RJEsztpdbcOC2zsUnvBa3VjMHeYnhdrmtbclTD464sQrwHXQGsNOhcxL08MrXDdfDAqkGpatH69bvwW26ivoRS2G9FP3LTnOBU+jJew== 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=Ry3yMsSUAKR3lOdbiah9P0pNrcUap4zX9GbGljGFwvk=; b=AFVC2KUTR3El6cfy4ZVVUg4wBbL/HTKfc+lnWBmxhDyLr60NHrh8y19SthHBpa3YOCByw9Wdsf4ldGiFigOFtd7+vy2ioDkX82dOH+4PveuoqciZLt4OAbD5dM7VbQnyR2dwztpuzLi0QSlmEvGq0kA5h9oncTxTs1h679+saVICHDvYWkncKQjHsSlCR6Te4qYaWf5F4g1orY5nBtoPv0CV71wyRAXYxa2pMIHDlsS1MIAM5ODSflGEOMlVsa77VeZy6TBwsnngYf49+uBvvOQMvOi3H6swdjjs+AoEWZydKYSj6emQ9HrfE2slet9ApJCmvOzBgYbJUCTMzZ/t8g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DU2PR04MB9194.eurprd04.prod.outlook.com (2603:10a6:10:2f9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Thu, 3 Oct 2024 18:16:03 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8026.016; Thu, 3 Oct 2024 18:16:03 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), imx@lists.linux.dev (open list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH v2 2/4] arm64: dts: imx8dxl-evk: Add PCIe support Date: Thu, 3 Oct 2024 14:15:38 -0400 Message-Id: <20241003181542.620461-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241003181542.620461-1-Frank.Li@nxp.com> References: <20241003181542.620461-1-Frank.Li@nxp.com> X-ClientProxiedBy: BYAPR21CA0014.namprd21.prod.outlook.com (2603:10b6:a03:114::24) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DU2PR04MB9194:EE_ X-MS-Office365-Filtering-Correlation-Id: a1d9fe11-41f1-4e93-8e68-08dce3d770f1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: KE9hrhVQt9CTlC+SbJlNgG/JqFPDCrAiyvlVmcpzNzvz7lDP0QG0WZB8MzqeIKoKbpdXNGlO/MLZWLdkuAWOylcTMIzLhtNsl6WuxvG8Aet3ekXSfhcoTvLXsj4VipKsYBngT9casoke78pINHAixYaQuX1h37hj0Yzmedgz4EbeT7cU65FEUkRl07OFglFpt2Ngl/iZlGczKH8n10Xq80hkA805MpcJMmMTM1DUdh2Tdt1RvxBOotOd/W4YXR+ahjybHiK7HeiwUzO0Q2mZe9584uu9QB221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OLiVD/qVhWUHMAO+k= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 8cRqQbWOLKu5epPp9Wp0ZYKTNu7AbD6MFm/Fk8ccP+NPBtAUdYR1BMf/HW4jpt9hPIQO0Q45hssGG+av2R/MPEgNZdfFxLeboe6e+tStUh6uIRm1Uj5Td+saxAfVlmNZrkTG8g8ewgDKp+Sh5nYKmnYCLFcJ79VrazP1NjhM7mGNRfLql8fpJ3INa9ejeUoV9fvxP+916PwmIM5W0aLeR7u5iZePDZV/+bbzBz+pnktWAbOBCNbJhDKaeSzb06VK0uVwYYoDjRP8j852C4gHiDXQq95WrU+ARG60jPj04RoyVQ+mkmcmkjW8/sEaSgOiIPRchZjrRsGq8MjMmo9Ty441a+bN3d+mAWyv2EUl9WbIsFT8CbVtHYBd9wL/ANBL0Py7E6AQq3eU2Rp5U741MFqoEElIOjXUwSmzS8e/Yh66CRKl2m4IoRL68458z2w+MIvk//cxLwerKmp1+7Lydb7yvc19x9W+ZkUzd4rlV27zql0r1c6D7pdKzbKttLBdtDljePbRkxpHTZHmhFFpJHz6PHGncwkku4Sr7GX0GwKPa5+AVcfog28X43pH7suKOeFPAAWRYi5Lwv9QD3igi9YqVH2SI2DhUgIXebl7U+05s3VfswQrosGCax7yFI0MabqoUJ2qX3k0lqhDmwGldMfAIK1uRh+DSOVRv9wSAsuImnawrceNa6YL8rwI4EpF3W4iKW4hTceNubUfSy/FymZ2F1727vOPm/6bIBK68Qu6CGMj4PbH2sGzXlJzffHFKkI9qiwsDfXmPuuEzruziWqb1etaiAdPn1Ac1+3wRZhlwABAaUIgobLAPNDs6Q9X671RDHNeP36Gf/+U+7gEiPFpzkJkqdzhkcpf6PxNMziX6v9fHJC3hj8H8zr6Nsbp+dshlpKLTMSwD7lguIaB1e/NNzCxLu/BOBM/oxmthjdwFx6KKyvgG6w1xcru7819L11U85gP6WYeb9f4+Bu7Fd7g4mJjhP+jbfbjRNGxT1cXYLoSzu43hRCUikQ4rVacmZ7vi/evtjp7FBd17XJTMPyzdhyR/6I7ZlffmA0JY5zDN8zM8eDi9ZjvLmkahYF7duPhLjW5ZC12zxC80Vf8YjaY+aGZxxgfYQhc82YNLPluGbVM8ncCwll0yydQFU7G32ZK/DCO/5IDZQqnRhyG+dQtBV4scP7uZ2JFT6LDQaQa0flNq8KOLeYsQtaTAYwp14YMl/ML+ZXTSnNF9UoXsHemIuaBw30udFPZfnr1D+c+9XR9zjZSGrVS9Wqnawv6PZ11CjeM7lNe6VwBA+e05eYo3M+Fe3G5vjLtRN3VupZIMmrBj9nyNZNxZAI495CsIj+IqhXEly9KsXbUJnKt0tg9mwCD15fvvs2j1eNxDDXVhV5EgCWTujgfnJ5bbvixt1lB0/bs4+eFDusVoEOhMgdPe3jA25VZgZCKR6SIv0PkmG8DUuPRh1HxAi69iXgA3NHDx5gdr4gU5pBAO9dicD6lWc6LKu9krWipiegyMoBmfKOR2tR/CoroYuDnvZKdbGWHDmafHN39LlBGNoXANqsk6NgzT3fFw4KO5t10zqjoiG2YW+MmTuKtClJTpqW4 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a1d9fe11-41f1-4e93-8e68-08dce3d770f1 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2024 18:16:03.3583 (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: 2N8KPOfml958N7kzW5Q4A+frcSB56Gn2VIBSDHlrxVCFkT7ASFq9obgz8dAJbBLyJqSPZBLHi2Kaw3gIKBAxDA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9194 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241003_111612_201144_EC86E06E X-CRM114-Status: GOOD ( 11.23 ) 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: Richard Zhu Add PCIe support on i.MX8DXL EVK board. Signed-off-by: Richard Zhu Signed-off-by: Frank Li --- chagne from v1 to v1 - supports -> support - add space before { --- arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts index 4caaecc192277..6259186cd4d92 100644 --- a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts @@ -182,6 +182,15 @@ mii_select: regulator-4 { regulator-always-on; }; + reg_pcieb: regulator-pcieb { + compatible = "regulator-fixed"; + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + regulator-name = "reg_pcieb"; + gpio = <&pca6416_1 13 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + bt_sco_codec: audio-codec-bt { compatible = "linux,bt-sco"; #sound-dai-cells = <1>; @@ -567,6 +576,12 @@ &flexcan3 { status = "okay"; }; +&hsio_phy { + fsl,hsio-cfg = "pciea-x2-pcieb"; + fsl,refclk-pad-mode = "output"; + status = "okay"; +}; + &cm40_intmux { status = "disabled"; }; @@ -585,6 +600,16 @@ &lsio_gpio5 { status = "okay"; }; +&pcieb { + phys = <&hsio_phy 0 PHY_TYPE_PCIE 0>; + phy-names = "pcie-phy"; + pinctrl-0 = <&pinctrl_pcieb>; + pinctrl-names = "default"; + reset-gpio = <&lsio_gpio4 0 GPIO_ACTIVE_LOW>; + vpcie-supply = <®_pcieb>; + status = "okay"; +}; + &sai0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sai0>; @@ -868,6 +893,14 @@ IMX8DXL_UART1_CTS_B_ADMA_UART1_CTS_B 0x06000020 >; }; + pinctrl_pcieb: pcieagrp { + fsl,pins = < + IMX8DXL_PCIE_CTRL0_PERST_B_LSIO_GPIO4_IO00 0x06000021 + IMX8DXL_PCIE_CTRL0_CLKREQ_B_LSIO_GPIO4_IO01 0x06000021 + IMX8DXL_PCIE_CTRL0_WAKE_B_LSIO_GPIO4_IO02 0x04000021 + >; + }; + pinctrl_sai0: sai0grp { fsl,pins = < IMX8DXL_SPI0_CS0_ADMA_SAI0_RXD 0x06000060