From patchwork Tue Oct 1 18:37:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13818649 Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2066.outbound.protection.outlook.com [40.107.249.66]) (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 A04321CB321 for ; Tue, 1 Oct 2024 18:38:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.249.66 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727807886; cv=fail; b=MwDAcbAbsc4+Gx/+K5+Pqv6yVBJTcfrFKVZ/LI9VUG+z/ie5ML+dr23g3p5OmyqwbOlf4I+aW9/kCN/Gbsl2Wjt2MJ8S6DfUKCOPpcG5FYnjSMCuYHrnUQYOIFgn0I3xWg8nZfcq/YDakhLKfxH6kW1aFMlB+3tg9xw77702Cno= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727807886; c=relaxed/simple; bh=Do/kW6S3aWJMYNR52JBDJ6/vLjs3UoO6DWr6oLkcZKs=; h=From:To:Subject:Date:Message-Id:Content-Type:MIME-Version; b=XJQfOE+6sj+/xaHF63l+dS0ZwJjJLEe9DfU1D06QLnId4HyihZsVhPC4Kq37FSJ6ojOFJkhR9Rr91KXi7ajQSBIcg6Cz88LDE+TM8krji4JN1hmooJ8+HHRWhMYKS2sxuGJ87Bu/I6zB5vva65eKC7F/0bItOUlwIrBoQRe4XGI= 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=msb+mQor; arc=fail smtp.client-ip=40.107.249.66 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="msb+mQor" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CkUgoUYQJ29f5uIwvmAAYKi2tKuJC9AFU2OFA2NWuUABK+pu4UJoLY8TbwuqHIvXIF6LoNeQLp/PncpGOXhOkEh+y4lpJiXDA1gjbXuLx9ptbf6rwDumAhLa4BvZXy11sv4Wy0geQhOnCtEyhe7H7j76JvaVsHOSh9+ySmNS6mzKoAWiekV4dN5zTIrTyRbNP7FWotIu++zLiUWOJVDXdFgur3EwyyuLF98Muz1R47EWu1cQpUUuBdEiNC2St9GGGgrHJ2imOpKUEnDmxo84OyPFJp3H+EhK+zy+GJBFY7dhLjKOyMd6el/Au4FS+Rggo+vl2uh9eguaFeuWUt+LCQ== 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=o9xXMOlzD5HFSxgSrDsGMEP1t3pnUaQf7x1FyzcExe8=; b=j46X1TLBi/MzKnb2j09m3kdT4/N2Ii9VEKLxdxGoRLrtS0lAnA85+QhxkRQWx/7u1vBu9AYdSlbXM5HccESGPWf+daU5VDc6ueU+LKh+wmLABeAUyRfG7gIVwUPZBibk5onZHXHWoQENrnqpsG6UR0mNnDgwl1j2ooy+Gtlwkh1v3nBLOPHgJRWy8s9w4LMWDYn5vtWkmoGT1yYC76ug41OBX7IpwOW4vy8d2sgUcp3ns2NFdfKQDpkNNCeskN2v6zssZcR1bSzA6p56/HuQRdLcJk2XqmpjIcuBP43Xok2yBtWblQJc3L49W0RFl3pZO6eNaTb9/8HYaSTaDIx5Zg== 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=o9xXMOlzD5HFSxgSrDsGMEP1t3pnUaQf7x1FyzcExe8=; b=msb+mQor4jaKp+c3jcgblxPVMZ5gBkW7NVlQnJR55ohRO0z+OI90CfCAjZEZwcJcmW5rtUNFYVmJrDU7h579LpxuegpKSqbBWIYIQwcRo8riX87bEnpCEhPm8XmrN/cOdm8zZcq1gjllvvhHQCFSl0JXYTMUOMPZTctvfPLoBu1hkonOcEF0Nb2eFWPy7jXh78HbHgtCyCTtiUpOJSPC9615lgPg7potGW7u9Gs7BVeNEK9nLUoXqATF//kHcwwLIG4ZvLJUaA437U5Wv9pEeEiY3aT6SKohOb9w1NV6P8hrvIuYs0UiTAjB2aZxMsZ3qBadcEh+KDUYJJLwjyU5Jg== 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 PR3PR04MB7210.eurprd04.prod.outlook.com (2603:10a6:102:8f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.17; Tue, 1 Oct 2024 18:38:01 +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.8005.024; Tue, 1 Oct 2024 18:38:01 +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) Subject: [PATCH 1/1] arm64: dts: imx8mp-evk: add PCIe Endpoint function overlay file Date: Tue, 1 Oct 2024 14:37:47 -0400 Message-Id: <20241001183748.256607-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SA0PR11CA0180.namprd11.prod.outlook.com (2603:10b6:806:1bb::35) 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_|PR3PR04MB7210:EE_ X-MS-Office365-Filtering-Correlation-Id: 966f1b29-db8a-4e85-7129-08dce2482df7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|52116014|7416014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: ZJm4X1wNlEawur9zWUOFYDlf7IIGt1nbRQ+TSCdU/qMwXZyqUpO/I3rSYwo+evTs62y9qNQxJjjXp7ZfOTvDqXn3rwz9uXyVg8YBkOqWVaJ8R5LxAjn7eE+k4uMf/fTR2rA/Qj/lw7yaMH1plxu200LoH8lXMjHKi94t7Qx14cAjx7+YMW6i7SC/yw7efqobmd5TsH2hnBTZXNBHQJz7gUrqXomk0X+vWBO+To/3PTwrn5Y8BI2MrlgDFDjmGaff2DuqD8nZuSXjk8e+EmPov3AlDGlwj6JlD6hwBuiwae6MAWbTayTDbhqbV2J5PJCHstVXUSo/icnocW7oCSdjkho/LYyk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Seq02R03edtw= 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)(376014)(366016)(52116014)(7416014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dEf8x6CohFkoaW6Ip1dDumQB9zh4oWCqfoofXnukUEIOLo68dSf4whujyyj4XgCevNbRHGy78N8JRdr3HvSbJ2s2ROR2Fz71k5RZ2idLipp7AbGix8vuDTip9ZOVUd7yEfoxiXW2FdhkeLRy3k1SYKeMyyAB5N+jDLYKxdwg1CHvPyigGstt1srS46qpwox1CrxGselzeTBjPjt5d7ROxmmbEL1En+YKbY56C6cQTq1FhKpbU4c+3wBkPPqIfX+PgmrRZmRItBK0+gVfuB37HDBIz9wNqcj5QhrQThnkDN3EvLFVtTYKoFazXd2dNIv6DzYgyK+velIJ8nPmSL40MPS7RIAS/z4N505tCS6mSL+guE8/YZch0dkqCFU6I6p0kEeafkI1zUVrnx5u92H9SodEFwkjR3ZIh776xaS96ii8NX+TItNJe3GrRe8Gtuk6OA3Aa64x8RlXWDbzPMF8WJmn5oDeirukGlYe724vwl4B0/5tnjFVNJqcQK8iCwRJc3FskFbwStOPefp67Nzl9aFJrGbsQgmnDSNVYn2PD7FUDphWeZVN7sSnay0RxeOl1J5HyfP+VNgBfJi5ZTdy/gbSP/briat29JAK2qDpeChZK0vs7yN9ZNp0pMVE6PCPhM6auRbnfK8u4MQs7GjzRT0n17rF1IoT7SGjUFEOfD1vCUsXECTQQYFeHrpFHLLj6JcQCdkSS4fdgDG9Pgib+q4ZKdjjHrd+/ptJvLwg5IH/4WlW9cD4mntT2Fp3nHhrOdr5aAPBxHYDHxFvwVKTIjzwxw38AJ3H/hMIstm56Noc0i7h0JyVBiWGVmwbXXfAQIrJBJlLVKeijCLA41EsZU9zDg1j6H7hWo34MCxFbo7u4KzHZMQkNZpNpw6ojx3X7gd5w43/1u/BmuGdgIUNaGwaY8kL/yv9wmQPZyCfAF/0DMHsGyYXLCE+EiEcBLrPGsx6F1RmrNlEoIh2mZgJwmYqYqSODDOOHhsvmShhCUbY9g52Hj5bZiDTq9WtPe3ne1/tJ1UC56GyjFRt/xsLcGRLfC+9VT26NQZvRf8PijGzDjIKCJZf0IKH3qcFlM70LiuFIvp1djBBgxNavKcYALvF+jLxr44CwJ+eDEqGvROyv4JurD26mNZshHdXzBF3CTgcUcO7wx4SiMb2vMt2l5H59YBj+T5CpVrj411/+ZqPmLfnG21kCw5V1cw3vD8fdlMOgGHVCCuSbLio7olWwp7fhkNVdzEjMvGsrpYktf/xDLqs81ASPzDFVdUoSeRf/nV7FhW5wDGhcEorPovVMfJQ6mNeD1ktR5X+P5Di3ByArFkKeQu+z1lJZ96QLwy9GOFTUQotckI6wBCcIvjz2KINlsJ+1BOnOA1U4MzLkZPzk5sr92sHSoKSo1iat7Hmyh9hMdnO5eAHPd9EV2XAuIehyQb8JiWMcPOucFX4CvqBkKX4ze1pzB7zRb3gYOZq9WJiW61BS1dxyxbxtV+r+KeLy0MZvWGgfPkAwGGYmcUZsVRhMG6vzAFTi1XAnBx+NE7AOFwWFcpSXAFB0AuULwtnJmjy/uEcJ7DnRo6biOSFYFsVdPuPQXBlQ+v6CkpQ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 966f1b29-db8a-4e85-7129-08dce2482df7 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2024 18:38:01.7654 (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: N1Dsvw9hFY0mpeLZP1LlSdckrEogrtkm7joI0YQpeLwEJqgBoRvJvVYVBWxef9Y9PH4vAOgujId/mMQ8A71Beg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7210 PCIe of i.MX8MP is dual role PCIe controller, which can work as root complex (RC) mode and endpoint (EP) mode. Add overlay file to let it work as EP mode. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/Makefile | 2 ++ .../boot/dts/freescale/imx8mp-evk-pcie-ep.dtso | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-pcie-ep.dtso diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 9d3df8b218a2e..0d8cf020ec2dd 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -197,7 +197,9 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-wifi-mallow.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-wifi-yavia.dtb imx8mp-evk-mx8-dlvds-lcd1-dtbs += imx8mp-evk.dtb imx8mp-evk-mx8-dlvds-lcd1.dtbo +imx8mp-evk-pcie-ep-dtbs += imx8mp-evk.dtb imx8mp-evk-pcie-ep.dtbo dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-mx8-dlvds-lcd1.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-pcie-ep.dtb imx8mp-tqma8mpql-mba8mpxl-lvds-dtbs += imx8mp-tqma8mpql-mba8mpxl.dtb imx8mp-tqma8mpql-mba8mpxl-lvds.dtbo imx8mp-tqma8mpql-mba8mpxl-lvds-g133han01-dtbs += imx8mp-tqma8mpql-mba8mpxl.dtb imx8mp-tqma8mpql-mba8mpxl-lvds-g133han01.dtbo diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk-pcie-ep.dtso b/arch/arm64/boot/dts/freescale/imx8mp-evk-pcie-ep.dtso new file mode 100644 index 0000000000000..400e36db9dccf --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk-pcie-ep.dtso @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 NXP + */ + +/dts-v1/; +/plugin/; + +&pcie { + status = "disabled"; +}; + +&pcie_ep { + pinctrl-0 = <&pinctrl_pcie0>; + pinctrl-names = "default"; + status = "okay"; +}; +