From patchwork Tue Jan 28 21:15:57 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13953190 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2073.outbound.protection.outlook.com [40.107.21.73]) (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 95A641F1514 for ; Tue, 28 Jan 2025 21:16:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.73 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738098989; cv=fail; b=LgH7dO77/a60CrkyB0Rmh8L/XO5MLTc64hk4ucNg2vmPrMELwjSTEP7fY9pUUQolFHa//VI1bBQUnhOfo4/NMn9A+Wwcb+gnf4YHfVvAmHM4zY0NgaQn4OpeMxqiNf5Y1rCdFTQkwORODVM3GZcHdnYxPbCsqoYM5lJCaFUHgQo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738098989; c=relaxed/simple; bh=T2AwA4bXXbcWoxw/hYGw6i/KTMieW52565VYVSvCHoE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=fPk/44NezsyvT0HKJumGThvEUEzqiekN69x2dnvfDvC+iajxBC+/iZLV2lBMBTy4DAt4qZ3CQVN+R72OEmLzGmwrNOTsmc5hsECX35pvihX1PqEmZa5q07toF8FBmB9AZjO3KQlV6wMIfkAPY6cJ0mPDtL8OngrHQB/Qkj8BspE= 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=JxZR91eF; arc=fail smtp.client-ip=40.107.21.73 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="JxZR91eF" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wHvpH0HJewMDcyW+/U+EPI6NcHyo8c75w66Q4ZxES9jTpveiQCy6HRGnwVhMi6Chiij+zjPcgAfwJvOIWeKsUcrmOuiK5TMb3+U19cOJsqYWpJF7dXmkYGZlv76U2QrV0NTRXcJ0PeAr5iIJZTezTbePs14C5wjLYFUrP43LQFl1dOV9bgwa+fojtZK7RamHC8HlmXbHxO6YwA+xrdNCshE8hYOT92jseEF8nc6GgyDlmcZQ1HfkuuVTWrkIRODDdsvpO0rkjCc+hUqjjfV3hFpLOnpiNYlvnQJo8GCC9QG9ucImrhhxnMxPvW4NTDiQ7ibi6DQakbmmN3Cdi5tdyA== 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=d9ju6L9Y97oThTQ3TAswFI/MbXwMq/vygrgzs5iGJI8=; b=LR0MIX2xJ4X5eKoqSaiWKnDs2uPjmk9UC1KI3YgY09PK5qVdj7/s2C0D6LeDVEjEix+WGOFAzUKmiJFJYOpdd0POlYBSWOIvUXOly8nqXrY/+MtJA17nRvZTd2VkDTqCPXukzgYXh0mhFB1pYMyJLVg3V1yul7+0tAbjaBSoqygJ68PsZnjbDRCUlifAZiyFFEj1wOmCtBghzUyqdUBRTBveIdcTkHqoWZ9P7INQFsxS+PDpUAZ2C+uPd/T7GrNjZSWcFMGTn0UThj/0NQba6q5hw17SCOCQve5qhyx6Xcb95uttQqM3qERUOr6IG7bPX8ZxCr2KGEglHudRPH9X8w== 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=d9ju6L9Y97oThTQ3TAswFI/MbXwMq/vygrgzs5iGJI8=; b=JxZR91eFtzEYJkDk9qWF5R6k37TlK5f7OqnSfcldPCmvjugl/8uhXkBYi/6Os1yDsG8B/+zLv8WcPK0DzwGx/nxZVp5GX/eIcHKcTratJTkxBEYsJr+fevHFDV0KQ3iiIkQtrVOKYOLD9iU5Deuv2pXjCfrSc3LE2CHLHdscZ/s++z0nlWo66xXmYDKcgLVvsylh3uiadt6wkrrro3t5+MMp0KsvWXDNolQiM1ZgnaBuKTkY7HebZ5z5O0FRSdbDEkTmUb/N9RfxnQp6k1TRgkD63QTm/EWnvo1CMNFIfEqa+JmIrwDB5uI+ihehNoyS+GyAw8kgPkfXuMcUpZP4rw== 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 PAXPR04MB8490.eurprd04.prod.outlook.com (2603:10a6:102:1de::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8377.22; Tue, 28 Jan 2025 21:16:25 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%5]) with mapi id 15.20.8377.021; Tue, 28 Jan 2025 21:16:25 +0000 From: Frank Li To: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev, hongxing.zhu@nxp.com Subject: [PATCH 3/5] arm64: dts: imx8q: add PCIe EP overlay file for i.MX8QXP mek board Date: Tue, 28 Jan 2025 16:15:57 -0500 Message-Id: <20250128211559.1582598-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250128211559.1582598-1-Frank.Li@nxp.com> References: <20250128211559.1582598-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR13CA0229.namprd13.prod.outlook.com (2603:10b6:a03:2c1::24) 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_|PAXPR04MB8490:EE_ X-MS-Office365-Filtering-Correlation-Id: 6fd5c840-06ed-4619-805a-08dd3fe10572 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|52116014|366016|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: mHX4EhDY5JMIkjdJsCG8YEbKyYkHOAsbBh6d+T9GWersTeejc1/lD1GpkI5IX7974SSMIqAO1txmLLNq5Au3HOU3pSb/9SceJP9bv7nH+czF9uIXOXfzTtmrLZ2gdhhQ/x3CnlrOrkqGrQOoBwf7kUzhm7wtaPFBkmJg/9p5QiVDi3yEB1AtUwS5+L5kEnFKcV6m5g3uUbrg7tESz8dnyg2oRmw4FpBgimu3St28sWkmVU/k62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MWPEYHEiJ4uy4HnLvS2GuCkasrU8QlL+KiUWTGa91vwK2JBNG7VPUjPSSC/LS9cGAWe4ijxmCJNpBHE50XDqp6V71TjIAnxELS1RMre/OvWPykXePmg0BNnUX6HdJGm0SuJ2bc1OcsojteNOOV0HM+Cvy/1lEInWZav/quMb09JtPA== 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)(7416014)(52116014)(366016)(376014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: k8q+rxY7OMrpkoQH1BExLm/Nr2hkONBQOYYq5MUDI/WHjuZC9G8sU8Iir3Ne3NzRSYaeqq3+E4PwQKkw6mpadq9uNIjTTcl7Km8gkTIc+VumMFTo0D+k0KM7ZwdYkJ3SHS8QOlclTps9RzaCG3dl3ZiX34/gDQeCyk/12uRjPzZ6Aaz8d9i0gBC6U7sA+ePAoaQ5i9csPT9jSvzUq0J85NcjJSCHFSz9tg0qkCNrmjmif6iokBIF8nzS3v02gxYnoxiMY4UtP8vIi0KXaR1XFMgapdB9jnsyAlLGHGWCboPKbTZIt8JDwFWDF2q0owT4iCeOBVP0tOHK4JXE/kF+ds/7928GGSA2g1aiQjte1BTntMt49EkqWmdCVuj3QgMbgYLw0QjSzMA27ZbYd58d5hbhGxVbdbujCtS1zByQTzubgy26NCPGn2KziB5PlvilEyCldz2H3BmiJezINWPU+nklHJdTyITDhnTjMWUdad15/5pwW5OfBL8xbHXtqG07d/e8HbnFa6faMQV3p2WJVJc/0OOt7aVJozHA9e3LvUTjfMbW4aqa//ztVrM3pOd76lj1vmdSHVEkF5NgMCxu2vh6R/OFXJPmplpHUUWko8eeJ3/4jN9JVgWtOLE6bdQZJaDhO9dGxGC466wcvoFPvHtZ/unWMIZjHHU524EmpxBliwtPFaN2Ir3+b93co1lV0R4/wRaZOWtfzW/zomlFjDKX7OgUadJdjgVj++AOHAfksR0XLv+2nCq9rmYjNBZ6mnGPKlpOj4hGaHb1klSuYVF9oGxuWTp1pHFZdrZYG2JH7irGVmSQA2EawKuWTpETwW11VPlXbwpXGpvaBu+/5PS1oD4cbQMLhis4F4aXJWXg751poT9Jk9WouPM6qsT7Q+2cSVpVBgpDmsiQmFSB0qWRAIG7GKJxjCgStEaxoJVZU8ga6wHGarXT4wb9KQn3rQmCydzDHEjh5w6DXwydFgqgJWFnn/CNUVd00YK3BrCO3yxFu6vt6XMCKUkPHVce/5mfiaK00JFQyiqwNPBA+o9tpSS3WN7sti6Z+m0U/n9rlgRwN0xpfexaSriE4vqRoupPDhO32x7DFuD+Y8x+HBpQC6Da6zjGh2AzHpF4tWbsTj1Nhyu750MxkmITnlQT0o7lg6mjEcpIeojaz0+1vEvPrvuyWFhx5bJyAHCtj7UiWFPE9p/h8qRqpglyVclf7bUhBU6r2sxQCbfGj14VhJPGza5ld6cL3vGCUc+VDlZ23O5n4i3h5sy4K8SsoAfXuAt9UffIvtD42njUU7Bqpb7mMjMhJnVAWmpaPf7cP0G7coRJwu3HXzCWeuh2lOHbgu53A4XGXeLhlUU8SM00ZnvwVltlsKQgSoxuMO85p1+jGzJHFzRGBigAQc08jSBW2OBVc64NEPkfGAupG6lp0CB44i8BgJ25iqBWnLeRJw9WmBv7eEYpltSneaJSyBNWdH5CyYgOXC6OJ9ynf/UYLoxI6cU8Rm1I1b9zcbr6nAGN+MULWiZVNSsTpHXx7cYwRvuu8OcnY1HVeOcNIs8/orilFXRt1k0A4Pr0Um3UUG4= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6fd5c840-06ed-4619-805a-08dd3fe10572 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jan 2025 21:16:24.9644 (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: Ov8/C7H3hcOjq5x19nbIme3Ro6NJnUjql7owBk6YxZlCIQ5gKQq84sATTqMabultPCP/I8UZHtJxtmEkr1juGA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8490 Add PCIe EP overlay file for i.MX8QXP mek board to let PCI work as endpoint mode. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/Makefile | 4 ++++ .../dts/freescale/imx8qxp-mek-pcie-ep.dtso | 22 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8qxp-mek-pcie-ep.dtso diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 839432153cc7a..9bd32ec898c25 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -267,6 +267,10 @@ dtb-$(CONFIG_ARCH_MXC) += imx8qxp-colibri-eval-v3.dtb dtb-$(CONFIG_ARCH_MXC) += imx8qxp-colibri-iris.dtb dtb-$(CONFIG_ARCH_MXC) += imx8qxp-colibri-iris-v2.dtb dtb-$(CONFIG_ARCH_MXC) += imx8qxp-mek.dtb + +imx8qxp-mek-pcie-ep-dtbs += imx8qxp-mek.dtb imx8qxp-mek-pcie-ep.dtbo +dtb-$(CONFIG_ARCH_MXC) += imx8qxp-mek-pcie-ep.dtb + dtb-$(CONFIG_ARCH_MXC) += imx8qxp-tqma8xqp-mba8xx.dtb dtb-$(CONFIG_ARCH_MXC) += imx8ulp-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-9x9-qsb.dtb diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek-pcie-ep.dtso b/arch/arm64/boot/dts/freescale/imx8qxp-mek-pcie-ep.dtso new file mode 100644 index 0000000000000..4f562eb5c5b1d --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek-pcie-ep.dtso @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2025 NXP + */ + +#include + +/dts-v1/; +/plugin/; + +&pcieb { + status = "disabled"; +}; + +&pcieb_ep { + phys = <&hsio_phy 0 PHY_TYPE_PCIE 0>; + phy-names = "pcie-phy"; + pinctrl-0 = <&pinctrl_pcieb>; + pinctrl-names = "default"; + vpcie-supply = <®_pcieb>; + status = "okay"; +};