From patchwork Mon Oct 21 19:06:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13844572 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 09C40D17129 for ; Mon, 21 Oct 2024 19:09:40 +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=r33u17aMNZMQyd02Mnz2J9upEGhpB6IUh/LYxv+KJ5M=; b=XdDgQrrQ059v7k7ydsX5yx22Hs EBtlbLvpMGkvUqGBh+hJ0UnxiZG4Don9AfZ/i/G/3AInYdsUD31v+CO+OLgJ63he03/LNwbVYOZa8 tzB88I+dTjlf9uUw7QAvvn7nTinvqlphCu+oxnz249gclfl0JjzvevCBaZ69sP+GHX2auNW8Zp64t nWwi1/7jkaB9Xzgotz8dYjNcPuQEOPHvGPO67VmcaxqZgusn/WbjjIf106jjraFMiLMe3yY1eSSgR FSE7zEaDHHXRvwlHt1qyCVRAjxYDXaWbGBSMROc162iFShpO97hji1GnySE09/anyCoZP7XZwEmyf 4S3nnnLQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2xmR-00000008OwH-2wup; Mon, 21 Oct 2024 19:09:27 +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 1t2xjV-00000008OV5-3CYr for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 19:06:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pVZ4WVSiV4vwA2hKeamcdkvlA61DHdprWI8iJq0zUlWrY70tuI1JxGkqtHzcr/DqerCgElbfobbQs0+7szK7YBPo5Ya0PdFJHiJ17KKkCNYlTBsG9AtmI5srEhvm5pMK0XOQeyZ7gIzK4WgAx1UQP1r8JGWV62Cpe3NNuWyp428bqXrgCafDXPmpNspwF+vsThzqO2JT/e7a/2Kanqi7y93LrEMzpw/JN+vTlttFcZ6dLtK4qiNN1FYrU3iYAR0JRyfAaQSn1t6ThWL7fwUagGizrEXefe1iR0/C7+mZEVeODDvWsovUTXOBB8ek1pJaY5PtohxbbPGfqOqkrl9Reg== 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=r33u17aMNZMQyd02Mnz2J9upEGhpB6IUh/LYxv+KJ5M=; b=JuYuoIcOaZp6BB5ZE2UnhcJxJGIMXIcOjbra0S5ojVvcCf3p1GaZ1w7nqjGi0x0TEZvmZkEXYmsLJ4DsnSes0J/3DM0UL3UoFBTqEZwRzG5tUYETe+IDrhyaOJ7b1DLKRuN2KldHKHs9NjSmOQAI9R3n2/ZCEZK7kfhI5qmHJLy/X1Oh55QVdhA4j2Qlyv+H0fAx4/qZZFXXh9DLNuZ/Gr1CdxDY7b58VlmDBKrXSsO96xsmlZzUpiZElOcZJRA32/lq8CX20df13dAIGt3VoWaYOaU8xeFqc51asu1i5ek9vhHPjaii0bcKl2zAxlOcNsTm8rUtEF21yuSWIyLUxA== 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=r33u17aMNZMQyd02Mnz2J9upEGhpB6IUh/LYxv+KJ5M=; b=hVjUxqP5SSCJExgaVSjCNqRzp1b8ZrpRQWikuWYfardTv8yxdilzrdfF11o+S5DCK7fj5L519w6B1HmfexkNklKtcpzJ+ISu2H40w+pS8dUSm5wKa64dnGYIV+V6lJ13PmwZj4peSOSxoS4WDBfGFWxyrhaVk4dX65QihLPWLed04mvYLUd1HrdKhVlogj02gFcvoxs/P+0tupI82FHejEMjydrPZ5HM5DqQwXdZ+nDwo6AgVWFHj+R+yYPGXGGnK/bfoax4bFk/zqXpb9DYUSAExnJw67cLXGFUHEkZTAcvNhldPtSgpo23iPCIhvZzEDTXDyBdTD2lgG129qpc1Q== 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:22 +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:22 +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 2/4] arm64: dts: imx8dxl-evk: Add PCIe support Date: Mon, 21 Oct 2024 15:06:00 -0400 Message-Id: <20241021190602.1056492-2-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: d1f3cba1-bce9-4cd1-5c96-08dcf20373a1 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: 2rlt/lISWfe8MR3ZyMorQppgAg0g11EuBPC6TzOWo9HYg5HWnXHqZadXKsqQL40STqhTN+gtWXTyZ9gfnMJ1UG8gDnUXmsBLzGdUwmky2sX9n+LX2UzxKdkUFZL43sP+idKV65uDiMy764NkxAXuaVk20chNhJALZuFozWB1zTF9B+0ZAViJ7nnxbBWT/AUj4yb847Curct4LP1Up2/ee99UD9xWUi1pRGyrLRd51cercjvgtXJck0o/Fm+TGYh7E7SiLZnUxpeC57lNdN6C/zFFhnkNs2UHY32YLv6XGtorjDSAq3OLZGI9XfNSuh0l+eJJmDDbA4Xl2sZ4lJe1YYL+tBvEAkclY5UndU38nE7z0X3DOmAv3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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: ub/wRG2WZ1MyjjMEaRPpTlcQAbuSHOCacHRWzTGKE9a7ALscwmjDltt0nk9GTOjg5BRZSsL9orgA1to77hKJXw37rrWmT5/Sq+UGx8BHNLAjruutVEayFwNSMGFUG6yQCpZEI01tBBoUZbQzqd+I2DXNjW2Ebur97haH3rh+ZmN12c6kWcXrF4hu1EaC9PxTAh1/WJiEsWVPe9jjBIxg/0hGN/ckIybGvjZCI2LbTvG2mY5T14e+3vRikiLdzajyY+4x3D5OYmxLA7hNM5Qm2X9+HCjwqajItKFH6nfdmjSiGtFYLG7FGi58yKueys/yiS19lzAgJG+Tzqdi24iyc82AgSd6gU6fVKMdvAv4IR7Kl3z+LZKLeLeOgedVbuv3XN5xAF6WaQbqd/2s7aClIPKPiQ2tsgDrz9YHMrAXJJs2FOF7Wswx7SqV9DVDT/IX0tODaE5iLA4HY5wmEh4cP+waVJjGqm+2IwsXYtaVTpaNvZ/nfnJxGVwSJNphDCcPIGxMTwuYF7TaRLrumj7JA8V8fmwiMpaNxDcPrby66OVCiy7zbympAJQRxogiTlbo909oAWoBbn0uGgPSHKgoXHDn+2DNouj3xphZKA4eZRbhtY+J8S12y2EmAbCu4pgJYz4N9eIJu081ZRqI1Yg8UvNbvSUqIBw51mE7jzyhBx/V9W7tJzRPSVw7N1jjlrv12rmJUJpa/RqPAC6Dbs7Sqvz4yL5NmfJxX9tVAj58mXzN4dOfgShUWNqlxbOzugO9cmyuam5y7pG/ThSlSUBCAo3z1Uu7bTMBM6yW7MDf+/D3MTDa8hReMhr1Wn98+Ttyf8HzZtSViH6IJLvDLkV9wOYFvrLEkwbmaTK7wcDOZDcyERUieFC/V/GsoYvy+K/kxENYC73JUVS20IIHJVQzeL7gqSwKELukds6itPsNXoOke4pyUJFMwF2qp11hqWMyfa8K8ecLce3rYIzQOVRlstJVfR0yBuJCW9XC2wpy5tH4vkd3uVCXZzOeuEkEdFErrS4NfnHJd9sm2fcfKHW/GuopbF0N2gIYP04xzOdd8AukEG/z+/35k/5yPFi6aYJ+1y+QfLVn+HYcqwtIqjVHhjGLoyLBwb9FJqq7R5dMgw6D4Yoey+7hB5qD+Ovty1Z6hEo1kgV///s/7GdLFc2MKnUJ1CF+f3ROu+oY+n/gEKev1D0qfoboUpFtoQzCg6t0EMPCs7e6IoxJZ7Bu3SCDUSu9QcUOoUrGKQNrG/oEkBOZZ+nF9Yvs+q3LCTJoYVSLFKjkWO+4RalNu41gav0qvDs5eVkeZm2hBqEX6zxVYEVgKwKAjwlYloQhyOXB2qy4pv6OwHGLRV+yesLvDz9kls9WTBarHMBX8dQQn58DuZY4NLry4B9VURoGlx3NzzEr4LXetI5wBqmEOBimat+c+qEZzTcStN3zPBYZXQ/ohPahKKcAJLSnRDwv5ALv33zlNXFThfMtQUpl0PwKAtIikamUFn/WQIh16giQpJK3OjI9K3/Ij/07hflgYz2s4r2gJrNpnGvxTUAuQSVs5M8+XZOIQDRxx51nYTT8Ry35tjWnbewHNW9MdehZOK3FS4cS X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d1f3cba1-bce9-4cd1-5c96-08dcf20373a1 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:22.1965 (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: SO3BnZU+iUNfSZuabqILj2oULmYuV7csQMtYTwTNHasR4u0fqMTNBh7dRnhiFG36/CM0jgb/o6bUUiE2+yoT5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9939 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241021_120625_831941_2272EBCE X-CRM114-Status: GOOD ( 10.94 ) 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 From: Richard Zhu Add PCIe support on i.MX8DXL EVK board. Signed-off-by: Richard Zhu Signed-off-by: Frank Li --- Change from v2 to v3 - none chagne from v1 to v2 - supports -> support - add space before { --- 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..6259186cd4d92 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