From patchwork Wed Oct 2 20:47:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13820370 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 B8BC3CF31B9 for ; Wed, 2 Oct 2024 20:53:33 +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:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=VaFwRVdxg258hQjgBYQTLJItTfN0T46hFEPCoznzKj8=; b=fvYSDZctESVM3oMC2g8uyFmawR MWjTohPgyOoDs+XikLLVFp7HVXIIruS6Valu+cWbgkgb/a5kOLtzq9ZG0RUZbNcAkbw9GJegjQwYL pLoKZ3i8+nhjWaYnWHMduNqJTBP8wBy0GsY/DPM84A30iojU7JTN+0/4TJOkRkgjTcgK5eVs1OQPV sMBjxXXwVTmCbpjcsw4s5PCsUwiY9S2/XdQAPeFNli0AYTi/yWPgFQ6k2NvcKNf9+zuPzI3GCzIpd K5Sw5Sxi/eiat71WTaonVzDHJScj+L5yYsMh7yatYEDjqRs+G6t/RXy4R7Vz9fb4XpciGrCOVCfNV 3Y1yNM2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sw6Lc-00000007RsJ-3CwJ; Wed, 02 Oct 2024 20:53:24 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sw6Gr-00000007RAJ-0jkk for linux-arm-kernel@lists.infradead.org; Wed, 02 Oct 2024 20:48:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RpgjnWw2ONSK4upGvMaHwzeo+fxWPeJrVtlKIplXUon2pqbRb5nL52Q8/dTwnqQVKLsMpnBPoHZ5B3/VEr2TykDE8fhEibzp3AtV6lF8WF2GSl/9XfJ2q7oa2CT8kzFf4R/SginwJ9po4Q2G/z5RBxjGzRxfJOQBoicPhFPjH11Ag/cScpmBPwdNrYa8706gz5tL81LamJz2gL1ub9FzJ4dnc5HB7fnpxzQUI33/Dbdr4sFN3EBn1EzcZgF3QQRP1RZ77sgCFJ/TONd2QEVF278dRpJbf6OJiqGJHIvlI44SN88+CtfkdXQyaV36PgeXE03yG26MrgHRUHWGdHq9NA== 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=VaFwRVdxg258hQjgBYQTLJItTfN0T46hFEPCoznzKj8=; b=BkD/MtZQmmlpmKUjx9ver/bUbQFBlaa1b8EBuwe19YBQwPrOQgzkSafzEWjBGyDHaiqgh+J8BaFmEGXXyCgBVEltc0XzL05uChrkcVXfILnrlNZ50/6nCQnty94lQi4PT8jSZvdPwH2mMPuFdrLFfW1ym72x0ILbOZqwlILoaInWyc05lyc3xwKQ8ete1/vb/cTFQ5nBxo214/nNN93GwIyE9FSIIB8+bvfTVW7p2rLgZJTUPUQGDvnNwdkK7+yBzZbi2xTRUDVwxDAi8WDQO46PsjhQubgeYUpNjLVEfCh5ZQa9sCszK5o3vAij0lLYj0DNCWUgyS0RBT2WiLSHdw== 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=VaFwRVdxg258hQjgBYQTLJItTfN0T46hFEPCoznzKj8=; b=LVot6T8CGpqGIt7sQ7Wd5gSCrgmCNv20/18vLfSFwh9mroTOatFKROLXQW3HtlHCrtgiAeujiwRmSZ/e0PVFedlXHTcc0PHOWnsFAth6/8revxlLsTdVRfw8XI+mYk8jBDip/H1L4XypNyimTYvC5y04zlDygLJZir1UY6YaKkrHDC945qYM5Xj3Lb4Ux4KXbzHBEETpppAJKRhElXArHWpIfjVt9Dr+fA+vWdO9UNpRbExxnBPjE6v5387oyEOyStJBffLAET0hGZOhyyaqYT3fvjZVs+w/mCzcL8gdxUdRgyTMdbUt8JG9cELej1kVgElnC24166wZtRrbExd3Bg== 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:20 +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:20 +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 4/4] arm64: dts: imx8qm-mek: Add PCIe and sata Date: Wed, 2 Oct 2024 16:47:48 -0400 Message-Id: <20241002204750.597337-4-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) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AS1PR04MB9454:EE_ X-MS-Office365-Filtering-Correlation-Id: 6c9d6e60-a221-412a-a4b2-08dce3238c8d 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: 78HRzAFQQwDFa/qMBSHL3W87tnAVO/jpuMpvOszjtFh0s4fa3kjtHluAhnBLv9hqTzvTu+bK/jlMP+saM7JQcLIwpui/Tl7r/Qw6XnKaa0+VY8CI8X6uCc20oZCda5AbSoZ41XTPCsIitiR4CD7IMa0qdthYq5E/KPqtf/6Ow72PHaLUl7mtVK+qNxkByJiMI0XOVddopSGuwNJGxXPxR6KZWkqJIJDCXtJITPRbYZWl6i306dKwl5uCOIK2NgSuv+Nis9EYHJxjX3xHj4V+8EDRdiqiw/1TEbT6QsZ+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rQEP8JV7tFkjCUtyQV6J0= 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: f35Ep2VbVd4yDAS51S5+uYd9c3QZ2fubbMRyg5w80jh8GByH1FwHvDFWwXhbyRHp+4bSc6mlQgzmVUCxkxawb6gYKOSN9yhSDVKtkrAwXJJKMDm1t6M++f9DxHiSaMkMJqPxLz7nLGKRisbO8aupJLPp7s2xzOS8mq3DLbFYO3X+7n/QBEMUE7F8pymwckSL2uua9RatLg4/vp8FoQLOfEDYpthBW9bP2GH4CIbmfCvkD1H3+L0bxEriQg1fzTUNMm0HxXgSbpHsdsgoaChk2ojZhqLuQxsRbe79pOAtn5XYF07fjv6nk7xG6QSavv6nPO05dst94p9JiJWY6+19047ylNoifim+qHRp0BWYeBH3orLJzZm+6yKOPcIxJr6PAaU6W5ogHNsEFjTUJEp0udBFhwxmGgpZfitBuRXPPUnv1183B/GKv6lt+8CPYMJKOWSsSXMeQZEFS1BUEnHIOPUoOxvJZgZFxlGALEji2LuXf0GfsG8ASatyqEQucmsGWMwLLZZG5IL/vj+qc7ntR7NM26RSD9ZJOVOZJtNnQmwGJ77jnFc68SBTvpiVxGf7qUKstuIEV4o9C6A7qDhI455vuotzoonmF7nGl4hiHcUWsJiFRVPnrM+W0TAntCpkR5xpQIuAy0f9w/2+nzYSP9kQOuQkXBg51NX9lFO3H6gzpHw1vpHXy6l3k5FrD0VhU+ayvZP2H9irfQQvYfcl7+tnF+7U1t/xLjY60Q3uigI5K4toUZJOAXb1DwwEydclWzKWhAS5km38q7daKfgwQj8sDPC9JsMI9iLnGiHgLhyVvQoXAem7Y09AwHYMijCRtebmRtRnPzWYjUdsOpPz70rqJAN1aGuLY77BVtAdy92D/H3Vw2G5Mf74xa2s8T1+Z0J8Z+LZ1KfCBdXiYVUk2wXz8tpLcZHm4jkyl3/HAPEfU4UB9y4kLzzSitjhQM7/IfKPlvp4klu4o3pa5zlD6j3eQ95y2x98F3HSXb7em9Ff7HB75PnfxcLBiXaleHSUnKxLQjUtVqx7hA5Jtzwx71u97Wl8ZK7epotpIup0UxkYXaVTgJ4tZ419wJm+ZHP1PeEFIIAXquPFwolrg+RrDEUhMk7QZX2vsu9gRk1vt5WKbzHalgVl1TDteIxrvEIPHvI+PDZaxuQa9fXgeITH2sZQc4ne1Ndzuinctx6UcApHZ5q4251E4cB+rAwC+IvtlAdLANsUH8MYafl5heXOgI0rbOeSK+Ewwm/JavAaCExz+wbukarp1W/vdd9mPfpPDBipNB9xl/5IKo9/uCTNvrVpWvjCTwEmHR14DdE9ZPiJa82eIVw8PVPjLV4QtDdTfZCLsqWYppaSaTqeTipPBwY1ej0DU25WeUmwEYa3lYW7+THhzYWA7eH/tTpob4j7PP19JesIRGaHmwde0niLwQD376gq280nN297nxaDB9DNmNnUAx6CHpHmTV1988EuKXSpNoHY+ot1+NLL4ta15HErpgINJ4gfuNdX+BG99nRzWXvKIDXfTZdMYT95jNfabrgI+cwzmBQ6tjtD/Gi2RYFsI00Iy4rWJ50rQ6phcugMqFEUieyfJRIrCzqce3ne X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6c9d6e60-a221-412a-a4b2-08dce3238c8d 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:20.3090 (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: 4agi+IF4MhY9PSaJwSUt4DfYVqWNlIcC9fApto2ZBF6AjZxAwS6aQJOJBdMldg4WcqJNH7b3G9QnvwspAsmE9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9454 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241002_134829_246316_7EFF4396 X-CRM114-Status: GOOD ( 11.08 ) 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 --- 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..1245dd535d636 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