From patchwork Mon Oct 21 19:06:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13844573 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 A25ABD17129 for ; Mon, 21 Oct 2024 19:11:09 +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=lapmvN6n1m96p9uW6EntsCN4o+a7YLrPIMUGDGUkCTM=; b=AsiP1pN5CoxJP/kODnKYSfN0lJ OcD1ZYH74ta1E8uNPrnQsu1rqOi3uy7cIIDaRX2nJ3TTtVxN54sWF0XzKfPufwuTrPxIB6E1igI+9 9JVNcpo96QNK7Ng191jdMF9QVFA909xXR2Xxmc9SMp3oFCHL+NYmODqcfglBAkJlQqDpXJYO2408G Gs0BOoxgKvdd7xjymf1vikqpmAnKF32JSVVhGjGn1WzI40tx48POEi16hluvV+bMGskOVZASB9+Ky EOefBnfRQir910WZwogkhBt5aAxfTPThuPPsWFX5k3L0DZoI+Xh4M/BsZKdGeYflS+4Tfgyg/B2Ho 5PuVz6jw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2xnu-00000008PEJ-3du3; Mon, 21 Oct 2024 19:10:58 +0000 Received: from mail-vi1eur05on20615.outbound.protection.outlook.com ([2a01:111:f403:2613::615] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2xjX-00000008OV5-225V for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 19:06:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mvqCEtOhenzxtUPbJxD+Zhuz8yhpivREjkMmsib0RMWTUC3wbXmbGzPPUvMnA4z0TUAT5eVGTAU/ndbWbxiG+wZthr4IQE746+wYTu+FX/jYJT/swbHr6pbQSqvWB9COPkkhFbHwLULIJ5euJXOtHevvDheDf78hRAsUgHCgngmCGMYNvU4EdmyIdcCMBC5FGKXHWYf3b5vkKWDx7Fk4hNDEKLnrZy9oUQK8zOkEru+x3Gd2tJBQOybgW4M5f7/xL4gImCYWZl0m5FIx5oJ22+JwpH96kHD/TfHudqbSQeBRKIbdusKiBafjAnLoX6+hUz0xyBwoqmhYjhFyG6Wi6A== 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=lapmvN6n1m96p9uW6EntsCN4o+a7YLrPIMUGDGUkCTM=; b=kCRLUcv6FwW42rUAM6NMGvsKNRuDMuD6bbmhcWWfNohb5TMqul8eIS2LLLISdOA/jeQWhpQRCoyD2lP2CLBWoupSd3wiEvZVgKqnrR77BSv+vXJALh3a+Sh5HqOx2Gq9lkIqmLR0xvXJo8iUIu17sV2c7FjfIxxbUdfv16ktGMX+iEFOfGKuluxoXrCUbEeMR+IB6aiMJXg2OQhtdpYAnLsQi5+ii8xJqv9TuVLh+YpEW01PqhbMvnrBJNSHAH2NYWSjUM1jmqItiI+FW7dq8Bk8tto0bWkkFvpWC4t16j7/Q9lJdUOB2XvtD1wW/lrmUbJNTdgflt5mh9aDtMKklA== 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=lapmvN6n1m96p9uW6EntsCN4o+a7YLrPIMUGDGUkCTM=; b=DQAtF/V4U8QjP9m0sds9xQwIfVKx4q/zWPl8WSMJvBVrg1hwLmpiXYNU1kqE8+KUh3Qnc2umZVVbaUoS8gyu3ZdjIN0nMgW4bdC4SyyJ6ZVJGPWBKYf73qWiPEuAjYjOAGLLWsmvbioWY7xNlpZcaPa08CK+X6A2qxCtVV/GD2TcXePIInJLGXaFHofF87FHMAHqUQsCK6Ix9veNN02J43WHLmO7C/W76qu2ucUGTrUpWez7XPIth6OXTWowbbyZYWnHkk+ar9bC28JB/OcmMts0YB5s3FNTn33+FVC+z/Ot8EQiePEWkymcX2y+C7L3WMYvl8Rhf3X5e7tKBGxMsg== 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 DB9PR04MB9939.eurprd04.prod.outlook.com (2603:10a6:10:4c4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Mon, 21 Oct 2024 19:06: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%4]) with mapi id 15.20.8069.024; Mon, 21 Oct 2024 19:06:25 +0000 From: Frank Li To: shawnguo2@yeah.net Cc: Frank.Li@nxp.com, conor+dt@kernel.org, devicetree@vger.kernel.org, festevam@gmail.com, imx@lists.linux.dev, kernel@pengutronix.de, krzk+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh@kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org Subject: [PATCH v3 3/4] arm64: dts: imx8qxp-mek: Add PCIe support Date: Mon, 21 Oct 2024 15:06:01 -0400 Message-Id: <20241021190602.1056492-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241021190602.1056492-1-Frank.Li@nxp.com> References: <20241021190602.1056492-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ2PR07CA0006.namprd07.prod.outlook.com (2603:10b6:a03:505::18) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DB9PR04MB9939:EE_ X-MS-Office365-Filtering-Correlation-Id: a4c55fea-1c82-4ab0-ebf0-08dcf20375d3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|7416014|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: f6sGgozH8bfA/DXv9pte96rP3YrcTIqwNG7tM8KsrBzTMfp3udN5rUgEouzldwsPLkNS9DJnniZChnLQlHApDJU5F2kOsUs5sIEoLHhLPKhBdmuUR/SDLmOuprNuHcuW/IYpwNwmgTK+et4NObuXnDhfLg/zX5+sbkJzClWbAEHAF46VnEgd1CCr81yj9hvBleyNRPzcoliEsFMgxt5NhGRrGaMKmW90CAW+dF+D3OIBvrErkUeP5mA1MZXxzJn3Se/uhDe26cBeE1uKeXwMh2OmDvma7ocQcdIiOcJVrBbP0K4xf2tkf+jzdTwjLkzFkOGTGW1YPyw6wHYV1h92UaLhmN0Tx7PQaZBy4L+77sjA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RV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(7416014)(52116014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mzcIqUovnhlABFsLpGDBcFC5PWJONAJ9qy5jUBLx7WXMJgussVxxwCoIrfsGD68V0NuxWQ2oIryWXDh7yhoQdcd2ttIh0kyF/MdXpYNrUAHNQ4xZ5cyS91JK+cB40Du40stNzoBaOWWN9LnGCyRUnyv+1TPHCy9ip5m4BcAiBw3rShWZFrztI0FB1NsUi0DI8P9Eebst3ALHcS1qKqoI0hJr8Th9tQY66TSeFr5bvdExAzOj4UQiSywhEcFkRPxAbYoglkukyqz0hQyc7O2neqLIN5O6Zq6ZzE2pN4eIZ/4bPJTYUBuoCkJ7It4mpeTZ4LyOpMPuwIoo+cwIXm5XU4MMkZEpy/hv05X3TZjb9oDB4uMc2gO7M0EjzFx3Oq4CbmiIyi0E5SzpBxwCKb+dBLIsq+KlVRyCvqg3jRhqC1EAuJQ/9SIAbxE5c8l1RkwooThMMzuxRiiWMhdOIwdSfwD+it2CjDK/weY3XyHPFX6mRvuD4oDOIqapQ9c7/8P1YuMQzGGgk4wIkdcMJvKNhAuRG/XAl3wKFUF8d7SkQ2LEKTNTbiY37EDA9wdK9gIlCcQXkwdt/mhDCPMVPRrRzc0YhVubvrTy+1tSNrkiQ6fuh2fBnRAYBm9sXHX5Nesu2MIc1/JtqDrq5ANlHlu7wRLHHXAKAYtZsa7NA8PARoPzb8QFDzd/fYU7BY5x1OhmwVyi4QwEc9IEklaTNkwUAS1NUV53e623oIaKVJuHMSFdo7clez3iZrODpHV6pY3B8aR/ZnE2CdYWF4j/rRvMVNUuGMWJmIn3WvdL9KJpK63TMzRnToLDLdFcgNWj+LpYRwpgm4bEiFQXm1PJFeu34od4jicEpsDjKHQ+5Hj0Anlc6fKgwsECzh+OdqQ4rP+j24m4Z0URKETDDakUhMTtkpXZGKbH9cuE8uePpUVN2aNEIdlNyjedP3AGHbTNjAY68qNwpq9iRgknXGwDc70k29ZkaCpSMWgT6Fdh4dcRYnKwkKaQCbX//MuBZ4VRlIWcx3DPmtwWWgGvFfmNmfMOsgMjOitezF+IkNyJ9PedZ3NyoO2T6wS+8jxwgGjqtbWYuH4AmpDABD6kbyHX6Wrxw5ovWEPH9oB29Px2jTXYzsMS1kfiwvzBW5WNe+5fcJ2hSlQbyoTR0NggWEDj16hpaCvPHjBRMJhLJrAB6bcgiZEIaEkH0mYi+9rpTdQbACL6t4Uu82BjWFlAmdvQjrY3rMW7iqyLGQe6SWLIeccKGd7q1ltEe4L68wcwQHhBcMQLPVDybxpixJwrisfU8SWDFxM7NfYN1tdjy7uR5OVDaIgq7ZnmFNgBXC+ZklRyEhrOstkg14JWuSTJYWVb/k9hkvzA2K1JAw6rGgfyJqXZwrkmR04K5ugz9dbooxc3YtgQQB+WnS6IzWUBFFkLFRd/xEtJC34lmQukCVPsumBmlQx4NhwZ5TTuVToK+5uayPBkc/H81OOvuQ6Ey4mC0qobNecSCQjNj7TA9vJTF/f0zThCOUAnZp2jfqy9Lspo9hlZGI8vpwM2t/4/IlIC3zuIUej7xbEAk4uidb8x5GfQbOqixYjqj+bS+jZVwE8JA5la X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4c55fea-1c82-4ab0-ebf0-08dcf20375d3 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 19:06:25.7516 (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: Ws3jMVpjoO2InkrF9bikc4qYF3T39JI1NTYft/Jew2EYaer4ytobjqed5bYfrOuBxyeQMQ0/qNr3DSwvvk06hg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9939 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241021_120627_549039_903BD8CB X-CRM114-Status: GOOD ( 10.72 ) 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 Add PCIe support for i.MX8QXP MEK board. Signed-off-by: Frank Li --- Chagne from v1 to v3 - none --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index 936ba5ecdcac7..facabd8478bbf 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -45,6 +45,15 @@ usb3_data_ss: endpoint { }; }; + reg_pcieb: regulator-pcie { + compatible = "regulator-fixed"; + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + regulator-name = "mpcie_3v3"; + gpio = <&pca9557_a 2 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + sound-wm8960 { compatible = "fsl,imx-audio-wm8960"; model = "wm8960-audio"; @@ -246,6 +255,12 @@ &cm40_intmux { status = "okay"; }; +&hsio_phy { + fsl,hsio-cfg = "pciea-x2-pcieb"; + fsl,refclk-pad-mode = "input"; + status = "okay"; +}; + &lpuart0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lpuart0>; @@ -272,6 +287,16 @@ &mu1_m0 { status = "okay"; }; +&pcieb { + phys = <&hsio_phy 0 PHY_TYPE_PCIE 0>; + phy-names = "pcie-phy"; + pinctrl-0 = <&pinctrl_pcieb>; + pinctrl-names = "default"; + reset-gpios = <&lsio_gpio4 0 GPIO_ACTIVE_LOW>; + vpcie-supply = <®_pcieb>; + status = "okay"; +}; + &scu_key { status = "okay"; }; @@ -493,6 +518,14 @@ IMX8QXP_FLEXCAN2_RX_ADMA_UART3_RX 0x06000020 >; }; + pinctrl_pcieb: pcieagrp { + fsl,pins = < + IMX8QXP_PCIE_CTRL0_PERST_B_LSIO_GPIO4_IO00 0x06000021 + IMX8QXP_PCIE_CTRL0_CLKREQ_B_HSIO_PCIE0_CLKREQ_B 0x06000021 + IMX8QXP_PCIE_CTRL0_WAKE_B_LSIO_GPIO4_IO02 0x04000021 + >; + }; + pinctrl_typec: typecgrp { fsl,pins = < IMX8QXP_SPI2_SCK_LSIO_GPIO1_IO03 0x06000021