From patchwork Wed Oct 2 20:47: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: 13820365 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 E3D66217321 for ; Wed, 2 Oct 2024 20:48:19 +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=1727902101; cv=fail; b=uTeyCrIYy59RrJFMmaJT2iO/G7b6pifQ5S8n9ebhta4rKwDJDUIlAyr1vx2qMWjRwBIWJbt49C+heGZgiqlpNwdXKOVcXtvO2fgJBHzB+hWzjkDtqBqO31HAgVmsdg3IhTtC4kSrSKgXSjZduLfofidAhhOrvdtkH/0w4HoBCtE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727902101; c=relaxed/simple; bh=0nFQvWAIPyR7GC7XD2bTUFLzd3FupB+yXrn6n2au1g0=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=EfheWhNtlzu398TaW2d/7y/V8M09jtz5CoxWmkY6KUsbnDZgPYJ0v7aW3gLLdj8M4yd1Vfm8mTYVK5lWPwYhJOYIAZ22AF8VuL/DUEg9gPQwxjEUUuWE+MAUQKM7IMek2kPs/UyrX9oDPt5BrOcIibqXEMro518oHpco6kd+ErU= 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=DO2WgtEL; 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="DO2WgtEL" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Ae1+AfP3j/K7QddmgIuHLdrMjfI5C25GSFrT6Ys8U1HeI8LttLWmYXkMBQcsk35AwjiyuDU/fkhVILYde4JfU9HcZZ+FG7Bg7B6BHmTZJ0H+UQ75Y/8hTfyqYaeexKXcVyXwup63x95wchcY/5gy083H69IFm1jh4qHIAP5lvlSi70Wvvcz6uYkWkYNf5mBc1fK+qGzVuMIG4dCweFkCDIegTexNReJimgNaPUc6vPZDb0+Uc1+AMkmBXNZMDOrkVwQTYBTBwb1g9gZ9P87wFFUp5TN4GWsngOUbzmQCWN7FWpnYLaXw2OBecd529aawFfLD/FBritEFFw0/gDkdlg== 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=ZI4zlyTDdt8mx6v608QR1MmWbS4HnSbbjkzUd0Gk0/g=; b=Ia1LtJjYladZUvcx84RsAZz2xzi/80hhydAJfpZLDavOATnZ73xRI9FMIfTGES+7GuQgrw4hmfyYr0TbuOQKmcSuZ+EsscoS4au2n7vbFfWS1Vk2/iJP1GnFy6RPOky1eyeB0jwRhr2M2RgQ5rzrqvM//827yK1u08h4ZKTGumLcYFj+1MRJg8qFxLf/QfeQRRKmxlvd0OkGZrFnz9VXtx1oW9vardAZNYMh6XgahqtVsl4ur07zpi1VnSlHWG9VbPtSzx9OVqzd0E6hhfmPmWxYTvM2Sw+6/jESrIKaiFS1uJmOkyQpmcsRyyWY+Dp+seXjyuHcZYS6yYwCA7FT0w== 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=ZI4zlyTDdt8mx6v608QR1MmWbS4HnSbbjkzUd0Gk0/g=; b=DO2WgtEL0NlqDUT5/3ZgXUJEw3Eqm1wfWbHE5gsMJcMkSpRMnZKapcBYUjQtrPQAay+nbmw45iv21qRHid9xXFwt4oVeKn/nb0LD+lIsOLClgcRYLDIO8CjGcjN0L4nPERB14PTr8QqG7/qmM5TiUcqn4Fk+5YHaFg0skLqF0JYpZHHSzsEcIyuW1+VJXRw0Ig0aRJXECayigOY8709cu2+0Uu8uUhk76fijGsZDsmeBtqazQvO+LLZu5Rl5doOZwlvKdrIq4mAj98bCs1/BEYGyIh9VPoYKeDpvDqN596IOK3rwWUs31JuzZdXeqdQQcEnlnK49AsrKTcQqo3pSpw== 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:16 +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:16 +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 3/4] arm64: dts: imx8qxp-mek: Add PCIe support Date: Wed, 2 Oct 2024 16:47:47 -0400 Message-Id: <20241002204750.597337-3-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: 3e52f990-0294-4ce9-56d0-08dce3238a6e 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: yv8Z1SjqZqxa/WA2oVWbI7WfYDobGdS/h5lUWAFCfvP2/gS7dnx0paoapJzMjLvYoHgOtSOsNyvNv1bhRbFeKNSn2uuffyXo/RPnlh2ibKYzHbBcFdt1Fvqi3kVr6vebDyUZeQeVLDjSYDFI/InLKRXj8fY43/hDvKd9kwSrgtbpNXNtex4EFk+e7CBwFWF4NjDulXmfItMDfcXRsnfy21cBQtk/XbMJubMloQqoJQFMQau7sNjSZcevbvQUQX6zyLwdt36zQhBxatxzuKYVXkZmkhpjWPhYTmnPRt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qHLkEn3BccLP8jZZA= 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: RXp1E7/dA2hhxeE46HEViU0+lqlsKpsB2hM3AwhNbo/S1WBbAnCFXqT6lPokVUSi9Z506F1OALVQ1j0Osa9UeTHU1RX16c1psROrtsuO0lqoF10tFknQ4TLPUSaZ16e7rYlMELTjzbB5KrJ24yWkaiqboKuZlqENu+F8f2StPIjneTmHMWmOOO/82aQv7s3C+8RQmabcgi8y/CLdWvCdHD90PXAGFTNJGSx4vwUlvQxnwZXlwP7gQLJl5ffsY2SUXhRcQdej/pjNGkYmXub+1iceNtLyifvLOJObCDhaJJu0cpB/IVA9od5cJKj3v/EElgZGZGQXsoDbDDruAgPqPBgtDJfxAfXPx7MG623wXE2Me9rgGYJI+8tih5+WPivGU7Pt3p2UcPPNV7qJvkI1ohXQ44X6OZZpsMxgfqEvImIBJGXXN5IMoUqO0tkyQ2+gdghilDLbznBWv6VGWQOMLTFES/IBogpxs6j6Cek2RuDZDZ2MNvZNy0chMxW536mnzkxZXSEtuvv1BVeGOn8LtEytalhSID8BYJDerLoDqelrYU90TkqPhallnsdKoJKO8FPsw8qct+6UUFUEP8zEv6tiENJCtvQ13Q1WKrtjmVhqPZaB1B9+bvmCSfdniCZAy6zxYyrnl4k0YGscIR47TtDq13RkRjwVn78TluaSuOkqeD9q744pmAsRcM3U1REFF2zxWETPTYVgWDVjBzM6M/6To66ixMyoyVlNhpEi36JQG23ALRiYxm/lkmu2QktnA6E6RoknCgLbyWmLWhm16DSt9ZSU8Ef2/SFiN5Et/VRUHFEa4NkGqHzFMI0bNBj5RPbjiF/kkWZd037PgWrD9+JQILxsTi48pDpAvh5gZ3ue1QWcf9cRd4DR7+AjODk2Zp26XQ3xwsB7S4+iv1fdQAaWNA6QJiDtwwHgO87qYVrY/QXPqX1H8oFB1I2rJVpwz+URoEIatV0ixnEKv3r6M+VR0HaXTTnVPfLoyCceb3NlpicJykGqA7wolKtQh9hRWL7yfZ5pQbew3D+F3K0H1X5dnOW0WGRX8oys+IDuExgW4wRnr+aE/9c7MeL6pXPxJKDLytDTTuLM9OYDNjWWqrYX/3TcZWRA9GA5F98FwKEJtRGXLwNk4vtlaYhxTWU7XohGIASkKzuXp8acFOVCyBsbks8q+43y60RnNsog2+ei56boS1lEWZ9FUtAFX2A+UsX3gxhsO2dM4IP5HlFRQkH3ev7KuZLH7g8rZVkAZHlUXLtHRVld47PbORUw8aYDce86mZZA3MXY3R1GNoFXxhVHqltiE3+g0cIi/yQRkTP0tjMrnqhsQDKKEytcw8CQ/5TXYbrRNHvVrnnqLF0+qK0JbL72iRylPS8ukHTNesqsVBx9/FeAqw31henIfAS9jC0crxJ72ftOdZeS9AYNBsKt5yin3A9f5BnCghXZ2Xt1wXEaUDn8qjZOKjpnujau02pY3/wNCoq7IEzr3JY7/76wsZI+mAT3B0+RFaA+vMWBHkva7j48UzBk7vaknTARSRskXNfm/uGPHXptvfEDlInWLwEnS+Pf1nosnKNR9+HeD2PkWNV+ylqGMS3UL3jE X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3e52f990-0294-4ce9-56d0-08dce3238a6e 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:16.6831 (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: U8dOr/7ZnFJ43s+J5ehib7zEh963gNMeOCe7Lc6ESJfTqrAGnbHrZKruDaDxs15VO9kRKg5UvzlfuC/AhZjalg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9454 Add PCIe support for i.MX8QXP MEK board. Signed-off-by: Frank Li --- 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..9f643a4ce8ae7 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