From patchwork Mon Oct 21 19:06:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13844577 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 2AAA6D17129 for ; Mon, 21 Oct 2024 19:12:43 +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=YvtZqmvTygKX/T0ISYo4nCq7DwwBNtMMqw9KymU91e0=; b=X75wkqZzQ5Gf/lbP5I/px4Jn2u ASWRzxtGHu0F2XKCHIdup7MGsdUnDDI8urieYabsPO0qsgTfzTAwLZEEGqd0OgkDtrg7qsLViO54u VHU+e08NZwBLMW0zI2DVcbNqoZ84CBEloaTepyB5UTIPCupkCBa2NZmyMMNm8qhW+G2QH+nhYUH8b NVUdO4W3IBlTzibmEgkKQsA+vaSwqcCKIgXGp0DdxLneGIQ952XuqbzWeXq1xPIAUs0DwCd3gp6sr SrQMqnWdvux7tz0UrzNnC5MT1MnT+M01yEQopPgn5BsaZ8RujQAQ7FgCWP6mMI2PIv+Zt7JGs+Uro RNRLBcOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2xpN-00000008PVS-3IvW; Mon, 21 Oct 2024 19:12:29 +0000 Received: from mail-vi1eur05on2060b.outbound.protection.outlook.com ([2a01:111:f403:2613::60b] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2xjc-00000008OWZ-2s0W for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 19:06:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=zIiQcmRq0m+xEZDKDcRoCTuJbGh8CkuArqwotjtWuiTaD8ZqiepBfyUgM14Qp21vFGqBZDVELjfuer8s42GefMYg0MUNNBdVWhAfztLZUcfPhdjZFDYigHe3Uki1j5r69FRVRAUjUSqNgYzmR8k+ePe8Yom/JlfrdG9+8EaNlejFkDVHJb9j2qjRpa0TLzmOF5sa1R+TuEKP0eCXqe+JvZX3w2gfai9+RS+07vr7mzwl+47DkHgfjQrXIuOSwbRzNh4BCCtdBqRV+iUeu23q3rbU7c6Xye1jL3RLdh4QCxggc/EN6Q2D2qDJKbSLs5eYrJ11qvinAYWBzgOjM4WXRA== 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=YvtZqmvTygKX/T0ISYo4nCq7DwwBNtMMqw9KymU91e0=; b=kclj2z5SdVI5xb+6LrBOd2EXK0K3eP5+VdFDrC28Sv86nvocGTC941GSZmFBnzm8gY2vu2zwW71x2bzYP4x7mS3lOCkuZY4f6S02LIMQluXxC+jqobUcOLWdMSOzTVoWIaMlqeCVS0r1/HdxfwlHWu8W4G+L4sK0tMUSK9etXhpDron0crFzWLwCmQq80fS8fXn053HTdjJshtyi8dBaOJfO4naHIzO0ZiM95GnnPO7Qeey6P9skovWzSbTrNfl00ua2FUtCj8cZt9BVJ4j3ZZWArXu5Ltb8MwmINolu/Aljgt61zW0zLLt47dQiNtVdPl8DaSrbmgyGJqv5PqLjZA== 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=YvtZqmvTygKX/T0ISYo4nCq7DwwBNtMMqw9KymU91e0=; b=bBorn2mgdseD/VKbV8cjtDsCifroH0Tyu2PPtXVRttHxEENEGdwObLxqVDkizAdrKGjYS13W/By9vk0Duid52V4YWxKP7Pnj6QGB4tz/vsDsaYaXwmm3mmj4tpU7XBQjIl8sFASB21MGQAXg1JbA0u6K0p/MNSHd6foVPk+YZ7TZAgxfA/6Gf2jtuogXtV2xzenAczUu/rFU/6S8XUapVxQPzBIe6sfm1nKkDBIdrHgDInmU50WWUDqU6Ffiyo1Xm4nqTx7WjZeRrJfVF4TlkZi8y4ytIdYmmV3Xhx8UkfzUe6BBhEbqMI6WHumysmF9cdTiRHVDD8ti1glHLylffA== 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:29 +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:29 +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 4/4] arm64: dts: imx8qm-mek: Add PCIe and SATA Date: Mon, 21 Oct 2024 15:06:02 -0400 Message-Id: <20241021190602.1056492-4-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: 5464f933-6662-4725-29cb-08dcf20377f2 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: DUfA2e90nN8gsXIbzzKhFHWeaoe+FK3l7wT3K2td+sHVmcM9VlaGRF7q+Nd/NzcVlbgq2PiOeIJDVShYSQAWmcBcPWjlLdjelicp4Vn8S3j6jJ2+O5w+nIqjlAsMdIwtIiw/p5pjPmquq++QNtFILswNNVM9+3xFpHxDGECCaqDqTyrgn7ixuOSpHuc2ZAYwvsUzIUboMykMjhAy9f3Qc/gViqt83DRfKmFzY7BqOVPgAqQPYBbz3qxuaPaagph3/LbHuBLwk3p4j1QW3TorAhP5bQQ3psfK+PChUl6UEcb2k2xKye7nNYxTfL0ytECrGvSCM2HoxkjiMLXJmKtj9yEgZKqELcU5+SkeNG1EcsQ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LANG:en;SCL:1;SRV:;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: qccQRkHLYlow2/lkgiwKRtyGYmPabwmmKu7eZDB63YhNzegfL4ffB4zuKgS7qKdoUOgDStaDwEaTtE3M0NI/bY4/ExLXq0njBD1mJPGG787cC57Q7mtUwzBU93uIgksFI02U4PHt7TeS3dBJezxuak0tTVJzmQXNjKhGRUSQU/kMbd+JjMpLUXNmJmBDsWbn8U+zL/UJ7iFeB9DlqNZ4U3j1H6rGV48WimO8Pfo391Ed2ttOdrVADElMlh8sdAJBRwXew37VmEi5tOdpwnFPuYvZSPVVJ6XOFvRpC7dlrKgezCdipq4iD9aQRcSwnluHPRqspjAJoMWz3FHFPfDc87h0nzzb2r0gm2gS5TCRv2Ofccgc65OgbZKf3AVkOVAx6wLGzSEljf/ur3jlKTVeq6aE/K6Yrn7++yBV5KcU+F3qqGKQMXmVL3ooiZaCFRdYOYnv8RoIgjTBg+TlXqKgOgFeLD1StNqvIB7WCH41zyTBZaQQ+84RJWgyKBvXV2rbaMSXi9j85o0Aeff/XA9Goa3Os77aSXX5K0256RcChvG3Yz1f30fNOltUFxeHdZqwWJLhdG6mdfKZgx9vOjGtEiq30TMafk54OXQIX353xr/lemF5//dG6ADwSlL4jIGJTqLlYfKjarMPrepfYFT+t3sRMdWzWhgWAxuSx9gSD7V76wXjNz5EymJ88h5sQzGRzM34678TnpnkgzRl2goRBX8kQwMrZDBTdbJTrrEjvbPfFjAy79QnAOBrGZnyz6Mi3tiXi2T56EZT3ZUXD9XlzqunQIo0CBtEP3uPXSmpkxiugAK6OR3dbcyA9e89usXUNFhjb5jvfbQG+FKiiwGV/xDHhcy4N242u0QO5pixmb/ZaDSUW7D4u1inxvU7YxtpOMrQ8syyD36Lw//n/1IsKIqCNz31x361AN1E8KN2uvWBf8k4vD5aY8Y4+/8+wUMcSH6Fx6Jgp2Xq/ZMiv3xD+YvUeEoyyJHY2Lo8hddEQyMZQuvZHeHNFO9IFiJJEU86VQwpCAu8ZcNkWgIfMND0P2MZmjMiJfIWl6cXovws/DiQboyV/1r4hKbl07lCGOHw+yEfvJRlklI1KOhnTp0bHigfExz2wveVHRwG8C7fX8jAHVbsD4vFYy9bQXnaPi4z3VrM9EZSetVUXgm3vXkT/G6atEQOmHDDOYEZ87hxN2hescTiP6y51QWo4yYpCMo6NjjRk3nDFG4N5aO46VxILf36wFHSdnVcktrr9yZl5jz/5P6xCI2D8LyOvlZaEaiz1wI1EySpvK0GaRxAZFRpvkNBAKR5c9eqM0B4hEfhvkQSVicK0MOQhKQ//8kbieeUWG9iQloicRhG9EsLSA4qTcEiMldBVViBNscLifMloSY20CD/W3ABGz5sY76SmrmBtbRoX8ODSOnS72Wzs2+vZj7Gcb4ydDWycTDUmnJBQuJoM3ie33o4uMiBX6thzHkDqnBL5g7uirtmFoYHtB2LrUMasWnj+wJPBfmsYMzG7LMkXKCgJgP+5K1W9qgd8B8mZJAYRqiAW2ycMKDpxHoruaxmcwqD9b4FcnTc93dnG3spGQK9ywFADxdfFahaqC5V X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5464f933-6662-4725-29cb-08dcf20377f2 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:29.2305 (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: 7KVh/Wgbmf2b6kSNp3zTb+vlSDDxdP8tSlyN/CD7xEXKbuytptDEXuFpjCcCTEuaWsY3thTB94GogenZgViswQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9939 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241021_120632_751371_4BE68C8E X-CRM114-Status: GOOD ( 11.21 ) 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[a,b] and SATA support for i.MX8QM-MEK board. Signed-off-by: Frank Li --- Change from v2 to v3 - sata -. SATA in commit message change from v1 to v2 - add space before { --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 62 ++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 62203eed6a6cb..e983633a4bb31 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -181,6 +181,17 @@ reg_can2_stby: regulator-can2-stby { vin-supply = <®_can2_en>; }; + reg_pciea: regulator-pcie { + compatible = "regulator-fixed"; + pinctrl-0 = <&pinctrl_pciea_reg>; + pinctrl-names = "default"; + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + regulator-name = "mpcie_3v3"; + gpio = <&lsio_gpio1 13 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + reg_vref_1v8: regulator-adc-vref { compatible = "regulator-fixed"; regulator-name = "vref_1v8"; @@ -296,6 +307,12 @@ &cm41_intmux { status = "okay"; }; +&hsio_phy { + fsl,hsio-cfg = "pciea-pcieb-sata"; + fsl,refclk-pad-mode = "input"; + status = "okay"; +}; + &i2c0 { #address-cells = <1>; #size-cells = <0>; @@ -541,6 +558,25 @@ &fec2 { status = "okay"; }; +&pciea { + phys = <&hsio_phy 0 PHY_TYPE_PCIE 0>; + phy-names = "pcie-phy"; + pinctrl-0 = <&pinctrl_pciea>; + pinctrl-names = "default"; + reset-gpio = <&lsio_gpio4 29 GPIO_ACTIVE_LOW>; + vpcie-supply = <®_pciea>; + status = "okay"; +}; + +&pcieb { + phys = <&hsio_phy 1 PHY_TYPE_PCIE 1>; + phy-names = "pcie-phy"; + pinctrl-0 = <&pinctrl_pcieb>; + pinctrl-names = "default"; + reset-gpio = <&lsio_gpio5 0 GPIO_ACTIVE_LOW>; + status = "disabled"; +}; + &qm_pwm_lvds0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm_lvds0>; @@ -640,6 +676,10 @@ &sai7 { status = "okay"; }; +&sata { + status = "okay"; +}; + &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; @@ -829,6 +869,28 @@ IMX8QM_LVDS1_I2C1_SDA_LVDS1_I2C1_SDA 0xc600004c >; }; + pinctrl_pciea: pcieagrp { + fsl,pins = < + IMX8QM_PCIE_CTRL0_WAKE_B_LSIO_GPIO4_IO28 0x04000021 + IMX8QM_PCIE_CTRL0_PERST_B_LSIO_GPIO4_IO29 0x06000021 + IMX8QM_SCU_GPIO0_07_SCU_DSC_RTC_CLOCK_OUTPUT_32K 0x20 + >; + }; + + pinctrl_pciea_reg: pcieareggrp { + fsl,pins = < + IMX8QM_LVDS1_I2C0_SDA_LSIO_GPIO1_IO13 0x06000021 + >; + }; + + pinctrl_pcieb: pciebgrp { + fsl,pins = < + IMX8QM_PCIE_CTRL1_CLKREQ_B_HSIO_PCIE1_CLKREQ_B 0x06000021 + IMX8QM_PCIE_CTRL1_WAKE_B_LSIO_GPIO4_IO31 0x04000021 + IMX8QM_PCIE_CTRL1_PERST_B_LSIO_GPIO5_IO00 0x06000021 + >; + }; + pinctrl_pwm_lvds0: pwmlvds0grp { fsl,pins = < IMX8QM_LVDS0_GPIO00_LVDS0_PWM0_OUT 0x00000020