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: 13820364 Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011022.outbound.protection.outlook.com [52.101.65.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D72A9217311 for ; Wed, 2 Oct 2024 20:48:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.65.22 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727902099; cv=fail; b=nkzc2pQrXJovtiVXJoqsjG+jCBElEm1k/AeLtuXN9eqniLu2oEbiwJzKfmiYaZXcSqxGvPOpgT9asuflzIvPe0XQ0HeN5Vc246OHqs9nlZxstUY8VHU1As4owD0F2jBzJo67ZJMcHLHPZ/+s3RURpu4qhyNzwagH+kkKfdHF8H0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727902099; c=relaxed/simple; bh=OqHPofx4YtRsPP5wkQme02rGCdVBVWQ/+2Bp1lv4uC0=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Vr+eEWbY8o89GRrEupG/a97PXqX73xgIQIqgO4hKcW41wFQl3HYnKzmlAVQp3c1Fbv7g2ctTi67rQNoGc2WGVP14X7a+sWAjmpQlWns8FN06r7LDkySo/WRz08a1cg+cml/NIo0xtUhqT4kaFXIElfqQLpTQqjKHTyMo6z8/cko= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=k/BwoJTd; arc=fail smtp.client-ip=52.101.65.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="k/BwoJTd" 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) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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/Kw1MWxfQvMFK1uoq4KvvjV7OKZDgXtt4ZyvLx3k5tN480DigRuAfVlYxF4auHVcaZCt63dCSsi1bhEpOHuSHR6odIuEi7BVlkJiILt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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 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