From patchwork Mon Feb 26 20:33:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13572809 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 0D449C5478C for ; Mon, 26 Feb 2024 20:34:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=eGKv938yWAYXZ6ZhjgieDzQ8rnUagnRERFINooJk/ug=; b=f2lFcY7NbVQYuC gUFVZ4nZj1g98S3iL0Dk0iqVDY8UhL0GJd70kx9DrzCVfV03BvRdooAF5/jObK3FV6YwzCRlYatae VQv7U78lg8q8BEJxxP7ixj3Exkx+0raNicuP9qMdpou+odQTvfI1Z7OARtWX24sUc+1G6Jxh/L6F8 wMKOolagHDHfAV7IRUdqYnfHIzMDunZO20159R26lIdmzpYji8LosXv9Zzdv4zAvZn/aJW/o4UZbi pYbB0BtDQqgncOkE6ggzeadqiQabfclKJdCKZ6LocrgnOswcWj4wsQKU4SnAeJEsfTeunJ4zbsf8p 0T+NgfpxzZWcQDPysU0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rehgP-00000002Xf5-0hLZ; Mon, 26 Feb 2024 20:34:41 +0000 Received: from mail-ve1eur01on062b.outbound.protection.outlook.com ([2a01:111:f400:fe1f::62b] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rehgF-00000002XZ8-34Ea for linux-arm-kernel@lists.infradead.org; Mon, 26 Feb 2024 20:34:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y3GAnXPEaaZbVv2WMZSWK+ZKIqKJWPFC61v9XtVG5ELgbS6o8o7TO6el4NxcmiYthrOcUsZHhedziowZXq7HhX3XQM4sL5GHbzwJc8Aq1EbyYNkemswvalEVtdRVLAtV3+H/WIyGyg/hw++VqQ4uHMj6GH+aYXD4Nb601EXvhhsiLacTH0ppgafAr+oepw/1I8g3HU8pWRbs9f1lGb86onoAfcCadctQcTP85ddB148a0sRuAs74WoBFOV6uiYhWlf+qu82L44ywQXUgYtyuOUAKEWLtVxtbBmDKiSFMPKfwtpJ07kHrjDBmpId2j9iRFkm0DL5R8lR7AE8rotuSgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=94elUAyqTRsGdLlF8H+i+PTZkxKog/OG+KH62Wpp7WY=; b=RKHkeV6jvgNafsiYq70TjiXpC9MQujNx4EJwapZR0r6UAZGQCrbCPw/Ma0+DSGiVaBTCN7bK1zAQBN1J98wQym6sYZoYgdJ+snuWAnbNAqT8I71GtxsBZft6aN/19TkSKCbw2pbtEubUW03Vk5tyZvGG6ptZDRmHi1/JKOaxDS5hTHJ8WhmaJdGps5uo/1WunnfpEMhQ2N3Uzq81gkmPJgha4xHa19uOwL6bl5NWYT4eArR3JzQgb5h9vFcM3UDQcHj4vpKg81HTIX/hueNtuFaFU8zi/KUusNnO6hQIlyuKeU7FKcpSGmW5p6+SKXO6i5GKb4rcr1ClD1GXsEaZcg== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=94elUAyqTRsGdLlF8H+i+PTZkxKog/OG+KH62Wpp7WY=; b=DoyYUA3i4v7vy0ooQ+9/i9m6nCy+3yXW8wC69/WS2jd7LMqJ2SpZks6wqvBpo+aEbd8qKyRsWushETfoKRNQab0wkMF0u2PTsUto+3l0MD+PAcUvtmvfuXeTSkH9NgLMyuAqCI8SHICo2Iff3lMk20ojv8W9apLangwHsy6Wvkw= 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 DB9PR04MB9820.eurprd04.prod.outlook.com (2603:10a6:10:4c3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.36; Mon, 26 Feb 2024 20:34:23 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa%7]) with mapi id 15.20.7316.032; Mon, 26 Feb 2024 20:34:23 +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/3] arm64: dts: imx8qm-mek: add flexspi0 support Date: Mon, 26 Feb 2024 15:33:57 -0500 Message-Id: <20240226203358.275986-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240226203358.275986-1-Frank.Li@nxp.com> References: <20240226203358.275986-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR03CA0229.namprd03.prod.outlook.com (2603:10b6:a03:39f::24) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DB9PR04MB9820:EE_ X-MS-Office365-Filtering-Correlation-Id: bcd76360-5fab-4c8c-acfa-08dc370a516d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Qiyi189Bo+0DtnrUH1HSsHpSt803z81B/XCbsqfe+7Jdku5hh0H2Cg7xYXNAMCMY87kydnck96WxZwuSBkG087lqVGoVjy2uioo4WKeMd41bedZV9fABHdT7vMs6TNaDI+9lysNxL8q2sJMxk+KuwAP1q7PANBYtF4n8Rt6QqaFc6WLdrEsNJPr0CTk5Df1XARofPwhaMrmS0qROJI0Nj92TrBA7Xd0ndtJWHzMrGWIheNecJ5GDUk/fGD+h5E7rJjmFBwhhChlgimAIf86nVA1FX1LVifhFwID+KksHk7QyanzEv6w61XdAOQVDk2eZ8IZAA4WEu97K6gSsGzAlYRedyCnp7ois+6tFcbv7kXNgwPxfSsdsz6f232psk4pJWXnFXXGkylMZ8uResEicbBcEPD/xsDTNu5H5soolFjyjO1l2r2s+mE2gnF/XKN1WYjSQMCuTBkh4YdJjhDmXf/IlovlVrrzKjpXuS7a80vTKyU4VusduxEVRwksKB7IOVgma560zVRaZSarYltRalY1tiRKEZF/bj0aUN6HIdPq5oNHf79rT9vj0OXiQamU7Xq0s2zsnIPTDBHuf85fQt8b8HDALxZSzDgLEwgIVnoGGxRgLsckdMklNdl9tqeLoWG6Z4zbs5GdcnaqUfevK3nV3toay73KRPnO2wop25tl70pTZst5wg8HP9n+MHDnqW4NP97X8UxcZg5lWGKVuTAkqe5AoDaaowegpwLNX3e8= 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:(13230031)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0wlnoZ7Ly2BPYptg7lvVMeIdgQjsFeTdbbAw7+og7sS4NnhXYJVH2rj26jg8gv7ARylD9OYH0vOUhVeFBhmNUPxxxoH+/Gtr2BdAr4pTHqn4gJW2wX2OMefTdJHLxIqC+wkLUArZ4yNsgUXa9xwJxBdz/GbN5Im5ANot1eaue3CUESXFrFItMRJNHwqdSWEbINfJEFcnYUCkf1xP/mrTblXKgKNnLruaAI3DVXu3J81nPa2dsceN/K5pzywv81P/cyFnUq8S+y/Z2TGza0kkolMWmbjtB2QFRBr+dwc1Xc75rLF0yxqO9IOgTONdWWE9x5p9EVql+xwGkVLpsW7HHr5qTTFp4S0TYQ9HkzZZNUR1LeWid8AqiXm4bpz3avmMgz2DOt4E24B/Wj+yJo4fi+9ZmoBQEX0QB1kOWEyxPoPuwXfI5TtOvnc+q64efcdNx/mRGGVSiti0GoDYUAYYq29WBZFsV+DaItorMJ3dLc7ZG/frnhng2DQ/gqxB1iv5DNgmMPZUqKdPKD16BYBurXQ/xwwqoGwy1qmoSAKCRZYrycWeCmL6ae9FFDQBaM9hYrdxv1cWsP08kTgt5HyY0dCVTlNNNxMSiUNr9lpU6h2rW/pa5Z8L1fnNMPmb14FPFt9W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prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2024 20:34:23.6971 (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: uhUAmzOcaFJu5noBPAwwkizjj9Dq7AP3mG8lUMHsAVQhPRw1hZmWCnboju1p30ragwfGJKpRTyTt4HxribCoZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9820 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240226_123431_827766_0E0F750D X-CRM114-Status: GOOD ( 10.06 ) 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 flexspi0 support for imx8qm-mek board. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 38 ++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 800dcb67642b1..7077e394e855b 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -101,6 +101,23 @@ spidev0: spi@0 { }; }; +&flexspi0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexspi0>; + nxp,fspi-dll-slvdly = <4>; + status = "okay"; + + flash0: mt35xu512aba@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + spi-max-frequency = <133000000>; + spi-tx-bus-width = <8>; + spi-rx-bus-width = <8>; + }; +}; + &fec1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_fec1>; @@ -199,6 +216,27 @@ IMX8QM_SPI2_CS0_LSIO_GPIO3_IO10 0x21 >; }; + pinctrl_flexspi0: flexspi0grp { + fsl,pins = < + IMX8QM_QSPI0A_DATA0_LSIO_QSPI0A_DATA0 0x06000021 + IMX8QM_QSPI0A_DATA1_LSIO_QSPI0A_DATA1 0x06000021 + IMX8QM_QSPI0A_DATA2_LSIO_QSPI0A_DATA2 0x06000021 + IMX8QM_QSPI0A_DATA3_LSIO_QSPI0A_DATA3 0x06000021 + IMX8QM_QSPI0A_DQS_LSIO_QSPI0A_DQS 0x06000021 + IMX8QM_QSPI0A_SS0_B_LSIO_QSPI0A_SS0_B 0x06000021 + IMX8QM_QSPI0A_SS1_B_LSIO_QSPI0A_SS1_B 0x06000021 + IMX8QM_QSPI0A_SCLK_LSIO_QSPI0A_SCLK 0x06000021 + IMX8QM_QSPI0B_SCLK_LSIO_QSPI0B_SCLK 0x06000021 + IMX8QM_QSPI0B_DATA0_LSIO_QSPI0B_DATA0 0x06000021 + IMX8QM_QSPI0B_DATA1_LSIO_QSPI0B_DATA1 0x06000021 + IMX8QM_QSPI0B_DATA2_LSIO_QSPI0B_DATA2 0x06000021 + IMX8QM_QSPI0B_DATA3_LSIO_QSPI0B_DATA3 0x06000021 + IMX8QM_QSPI0B_DQS_LSIO_QSPI0B_DQS 0x06000021 + IMX8QM_QSPI0B_SS0_B_LSIO_QSPI0B_SS0_B 0x06000021 + IMX8QM_QSPI0B_SS1_B_LSIO_QSPI0B_SS1_B 0x06000021 + >; + }; + pinctrl_lpuart0: lpuart0grp { fsl,pins = < IMX8QM_UART0_RX_DMA_UART0_RX 0x06000020