From patchwork Wed Oct 2 20:47:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13820368 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 3E599CF31B9 for ; Wed, 2 Oct 2024 20:51:04 +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:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OkaMU690Wr870eGwA73ZRI7FupnpdplJlYe30oJZEuA=; b=xsW8XjPUs8cgjCvMgfTtSzmRIP 8ws3HlRBo7ADiyhwwLWe25j3KuZpMpjkT/GviJbRn4cG0FRQM8pSqoFaaIlt65Y1AeWBOhrSIe9Ab RvkpkxpOPUAiMXORYZMoYFvnA9/qNGbKxlzmQH4n0WJfH9Xa6ngdG2K+jOp77Lw/d2oRUAu2IjZVy nnoDjHIO4teP5cLeUkgRGZxcboGpwQmOOqFwcFF5EGq2O88MqMYSWj9ap9zLYBVLhN9/+EMyRCcKE 7lM9VQByy6K787EjvTetvpFOVmgVTUSN8hDYRc+Kfca5dEm+ar3cvtBpVyj6CmrC9yG2NZHvoudyK TCN7hlJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sw6JD-00000007Rc4-28no; Wed, 02 Oct 2024 20:50:55 +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 1sw6Gl-00000007RAJ-48By for linux-arm-kernel@lists.infradead.org; Wed, 02 Oct 2024 20:48:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BZ/7pwPrDy0+5UWaKbGzhWr0qQNgmJWu+gVnirBV+iStVxsiGw0cA86jokh1AaD7+dn/ChvhDfBOeihiXaCiDCubHxnu+G1PEOKds7YEUfP2xSHRa4vXL11p0+og8EiHgRM2Ibj6rRxptlOMC24pTrnt6kbNyOufOMRMVU+njQB0PsJFTbtpXxMf9epP248YXePK3Z+HU3mBjjofbzLWYb1MET0J9/++V6CHxYELuvG0p95nUgvxYkISKytEWg4ewrEx5uWG/jEQFFi7nYMWU3kwukUxI1FmGLFo3Gs7/lT6LgPtIMr0AcNBL72Ft8QSfFs4DfI6etcPDT9sEN1M4A== 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=OkaMU690Wr870eGwA73ZRI7FupnpdplJlYe30oJZEuA=; b=WKQQOBwdzLbspm06rZ8MXEbFZkMmp/zSoyhieVEXN6wVFFrEEt4RLVLrpkPTelUBtECjYoKcjl9lhlSb3MJOYufcgj5QeNppjQX/+uSEZ/aaRjHKiyX4Gj4kmV1xx7gDVpWh3+5XcuHDqeeyd6uEuV6T/zV7HXPspOYR8TjmMcCSHu9PToS/qo6OCpxUQxQyMxdNki6E1ulRgo93B3dL3VC/pq3rxzou5Rn1ng+otCqNAqdwGNnRpj7oOi3GsEEbYg7WyJGo/nE6oQMUIxoUELgM1WnTRD+v6ze6ZcqGcG3B14EddjuYgdEXnf9BGVOZcUFR1n5gM2+ni+qE6FHK1g== 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=OkaMU690Wr870eGwA73ZRI7FupnpdplJlYe30oJZEuA=; b=k/BwoJTdICTPNfOBQVN6j1nELKgSKKTopXI1eOC7dCtX6NsUfTBQ5pEwTQuaXTwneFDiaFLI16AGpaAj73xq3kFn9S10jZ4m8RsgSM2tqiRSUn7mFblnGBStyc+RkjVXO8c6y5Ku5A//1NvLq1IPr3mIn4lUGIPUqzuW/khs6l9PfRlv7wfgF2I7BPA0ZyU8l7SLpjt+L/PZylYlsVpNMFadAp24kVTk/dN7UDwfSHahaxmVvQF/FZ84ci4skaDK1Qv7OHsu0nxFD+gVS+PnSzRXvRMIaUKTdVGC2IRPuNx2ekHc6esL/jW2PFONHT9x08AGOt0oVO/dAk8Is/DG1Q== 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 AS1PR04MB9454.eurprd04.prod.outlook.com (2603:10a6:20b:4d9::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.16; Wed, 2 Oct 2024 20:48:13 +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; Wed, 2 Oct 2024 20:48:13 +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) Subject: [PATCH 2/4] arm64: dts: imx8dxl-evk: Add PCIe support Date: Wed, 2 Oct 2024 16:47:46 -0400 Message-Id: <20241002204750.597337-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241002204750.597337-1-Frank.Li@nxp.com> References: <20241002204750.597337-1-Frank.Li@nxp.com> X-ClientProxiedBy: BY3PR05CA0048.namprd05.prod.outlook.com (2603:10b6:a03:39b::23) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AS1PR04MB9454:EE_ X-MS-Office365-Filtering-Correlation-Id: 7763b5f7-f20a-4bae-6f44-08dce3238874 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|376014|366016|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: YN3wfaJY1EMwOdn7BBrNos152uPGzAR50Wczn659Ya65syyX6vOzSTmCsmRYUFBu7RgcvIVia3adz8HmgBonXrPagCNj4a8xxtdq4UpdmRJhtl19QmcUavxboLqbxUffhAGHVw/m0ZnQHSdZJDVhN3e+ljYNs12s0KYXZDs2ht4xN566A9UEBl0j+DSG2k5ZXS3WXI1SljmeyM2M1/Kw1MWxfQvMFK1uoq4KvvjV7OKZDgXtt4ZyvLx3k5tN480DigRuAfVlYxF4auHVcaZCt63dCSsi1bhEpOHuSHR6od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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)(52116014)(7416014)(376014)(366016)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jyEShZ1bplxjd/+uIsiQMQOwJ84vZyFVcahAxLeFLHNZr1rjQLnsWKZe5rTqQep8KdcZrmXCf75ioHUb1v5aM5I693kWcaN5AMhTCYE5I1KBrFAIc3FyI0VuE17uLZBHVcPLzwGmR8kCQlcbI6vurVzWmnSR8eTEBsOuJzwdrKsiATq1HxL76sKMcJb0WwzenIKERVUevgLbQTJrgioylWsygoZHumUmCxBmy+4089NGLgomMZ/tvIH3mDN//jaHXWKeeDOeeQTxMiScqiCXHPtRy/h2V+6kW03vgB6cUIu10SB6DZyBCsJqeffOISBLJoZ4mDJy4Mb2ldoXLn9d4rdVbY/z0BwNXBJzEZAr2L0IFdkyXCrL7w5ES0HdSBte84Kcg0fIZq8tjhZIlSnBlUGfrUnzmM29iv0GHuYsKI277TxT5pSDQw/aYiApnjDbPPAr6kN75+ZOq3MMgHOBljREbEAyrrr5ILo6kdH0a1joceF36QqEjxxph/SS4Gi1xT/EFzRAuhkauQhRgxnn9oPfdENQJBw2RWYhUK09dPtp+jDnoewACAXx/+eQa8MkyaW+8v2uXk4Z2SpaAmNXCc3OgukzUVD7r+upXoC3d8JQwQgfMtNmG28XLSn8EJQKGnqM2eR9C6VHjfHX3Ydj/jum9NL+7wJig+byfr1TleLnH8qf4dp0GwHUetIFf2+7FixKcz3LupzyaKBmBqpRA1RBELjsJAzESZfpEL0LRq+v27hyk4FoR6ct6ZE8jJ4toj0MkiXL7+uSiA/LxXsPbK2/M1DdR3R/D3SMHXLrt2SAgoP4RaRSqtPwpG0gvyUhpd/Kez7puFGI6KSG5P3wWHwOjYDiwS04YxBjL5JnE6E4XLE5JmFJezGeQf8y0kEPfxW1AzNGbJMrVKTNjrDYXakuZVtuZNM5JydEXDf1WJR/hOxqmsCbahSYyTWEBdLPAlpSFtrm0YeMImY0b2bJizeZ3x80gq2i5a68HYy838MvfYIORs/zlL88CaWySaLVIdydMz4/PROVl/bqPBtVy3nSXk/e68v7cmGjoG4C7LMZ9WCZzLnPtRDTGzrXQL0/zphJZsxSisonjBJl9EttTYHApCbmzolMGxEoZfj47pPoYkAeI1F5IJePiqwRyUaAI7ceyu1shVZzXFn0elTderW5Zn/2CuczzFDp4jzTncIKgNM5wA/5lciGHurrn4bUr+Zaskwueocz/yJiqu7GDBv4u0/faFPnfM3uMrqeK2Mfcz5OT7yZhBEiBWbJX7anbvEOKNmCehOdmSXOraUu4n8Wf+XaHVwgIkZN3tMqMfc9ctbmgDGnfkaRqNyKr9CheW+vh4BywlkhxzLalLzhSxoO5Mdwv7s6nJIOKQU9b6JixDuNMXPcEXpmt8lllsAayjj33Of1FxQjTDmmCb9+PnuikKHwGQyJ82nM3dw55R61Qc3NiawTfcBAR2JRf+z/6sfwtQ0m1i7B/1BdbeRYedGoXPnlYasg3cDs4+oRW1T6XfD9CYj1I/CBjDBKNB9joyAv+Cts7I48HW7IZVXsn0PeBa/YpTXKhEcccQXtO5kyMLRiM5T8VltK5aqznE1L X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7763b5f7-f20a-4bae-6f44-08dce3238874 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2024 20:48:13.3859 (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: G7AfoXb7TNbJVHx+avUNYF2NwkucXjW/tHSPO91pDqwpQ/Bm35LrMVCJXehnkMjJie5fQ1D/rDCbWh631z6Nbg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9454 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241002_134824_060246_FF912D44 X-CRM114-Status: GOOD ( 10.85 ) 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 supports on i.MX8DXL EVK board. Signed-off-by: Richard Zhu Signed-off-by: Frank Li --- 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..5ded27a26097b 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