From patchwork Thu Sep 5 09:43:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 13792067 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 BAC17CD5BA2 for ; Thu, 5 Sep 2024 09:47:04 +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=vx/l0AGaWqXHvTp/Eniw1LbiPRLj5TIvLHJVbEGhTXQ=; b=mOeZ3zJwmWKln7wjk7MAIDTyV1 31cLOacGLinqDzOiZiHyjM0+kTmg0J7tx6dPXmmIYGRnia9t4jMptImaIzW15UUhsf7smgmgXhl92 db3tmJ5xWCt4LECQt8FPnnWkblGHuu+Ez/ZyJRI5a85LMEU/kkjzggqm9uOZb5QIGcvyG+DURhz/w Z7jf2H3V4ImGwDN0ljXq1jDeffxwaL550YYwl0Mo8EdVo3ywUJYH9NrMz43Yv/Uc6zM6QEwRsqnF0 O2nAC0gaRhAqnT8O3R2N2qMJMnBDn6W/E0n3H2IOADQurWGVxazyQL0VskWrcs/mNUvQT5VkWw9EV uQycwZDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sm94q-00000007pcf-3MRl; Thu, 05 Sep 2024 09:46:56 +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.97.1 #2 (Red Hat Linux)) id 1sm92x-00000007p35-1zLC for linux-arm-kernel@lists.infradead.org; Thu, 05 Sep 2024 09:45:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Q8jBWdXBMqvIaMuo7iy8TZjTahRpmY5BPbiEPP8wl4FnCus62+o75XzrFWoyA40teSW2T2lO+VqdTcXfKItaULoGPswJaGpJT84CxvkRnbixThvbhjO6xKDArPehC0CWV+K+8N+PQdt02qB5qyYhDVUiqHHH5GRCVc094jaCpqRBWBlDE7kqdwXQYMdznC8barFuOInVPR3OvZygWglGzgaHczm6zORfuHuIiCzz3gB68WlBTwMCBrxJdsuYXZnQdZuKYnNWuKLS6J1DmVi11eVO5cgOrUHIeuWL/9B3F0xI2LVIb8oSytSgsvTFTxyp+/u9symYuBagxZVlxPSL9A== 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=vx/l0AGaWqXHvTp/Eniw1LbiPRLj5TIvLHJVbEGhTXQ=; b=unYZzkvM/jb2pwDUFysVZzTHsyM6busK9OcxA7xUav9AUbXpx94+nDk8QaXiEIBtCd31DZltQXrqBzA1+C4eCUChnhGlNvwWxAX8gSVKBYUac1dj1Nl9pebYvS0a1qfCPJM71yzjTbAMZTtDwgkUexbIzIJnM9eb41ANNyGHTD77jp9AjVHcIudjdPP5F7dOLB22X5pMXNfbjq0NCTXomz6F5DzaSm91Yn65KN3tSB6tRqalG1/nI/ADgVYSVMuJn9TRWqVy4QlyXqK0RZcnPkOc4ZcOJCeLgWY/KEZMVyWsSf39Y/YLdnwiAjAA6f2yFfDiyaz7cLxjiVYa1Xu9pg== 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=vx/l0AGaWqXHvTp/Eniw1LbiPRLj5TIvLHJVbEGhTXQ=; b=RpiBJK8kjLeqKfA3bI2rTNgzuCuZPbU9ofsOdERUIWbQqVYEJT+yqPwortKnloYtEzKzfUnovaojWJtvDhBeboiyswchZPutc6GwcMobTkH1Gn12RN29ZpkfjqZMlZw6WgPBIy06MzWTyO2ehvi+GDCZKasmMsXyKCCcj6WAyYP1UsgQgeSCT6g9fmUsw0H+jwUFArqcvZ+ghEEVMMTXM9udub9IWWFk2huQvcFrbLglmp6j+QDxHLx96fjFHGuTZIFg/YOjdPgNWz4st/CSd4hlkuWsIC0lt4tS06SP3boE/4Qk67k8vekp4ls3sA7QAhDyhd4T9UGod2+3CcsJ4w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU0PR04MB9496.eurprd04.prod.outlook.com (2603:10a6:10:32d::19) by AS5PR04MB9753.eurprd04.prod.outlook.com (2603:10a6:20b:679::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.27; Thu, 5 Sep 2024 09:44:56 +0000 Received: from DU0PR04MB9496.eurprd04.prod.outlook.com ([fe80::4fa3:7420:14ed:5334]) by DU0PR04MB9496.eurprd04.prod.outlook.com ([fe80::4fa3:7420:14ed:5334%4]) with mapi id 15.20.7918.024; Thu, 5 Sep 2024 09:44:56 +0000 From: haibo.chen@nxp.com To: han.xu@nxp.com, yogeshgaur.83@gmail.com, broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, singh.kuldeep87k@gmail.com, hs@denx.de, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, haibo.chen@nxp.com, peng.fan@nxp.com, stable@kernel.org Subject: [PATCH v3 1/4] dt-bindings: spi: nxp-fspi: add imx8ulp support Date: Thu, 5 Sep 2024 17:43:35 +0800 Message-Id: <20240905094338.1986871-2-haibo.chen@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240905094338.1986871-1-haibo.chen@nxp.com> References: <20240905094338.1986871-1-haibo.chen@nxp.com> X-ClientProxiedBy: SG2P153CA0020.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::7) To DU0PR04MB9496.eurprd04.prod.outlook.com (2603:10a6:10:32d::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9496:EE_|AS5PR04MB9753:EE_ X-MS-Office365-Filtering-Correlation-Id: 26e176a9-b67e-4a71-33bd-08dccd8f6664 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: E9QvkUFRGAD+uYtZksfI8nijCU+SucOtfrVOeE0jMMpqFoMteg0a8rugI4S6IZi4X8PJfNEayJjVLqsnXxfvxNxkzGZqRVxNqbuwF+7094FNjpw4lrHAiLvDd7C8RgnkYeUitNQzCmdrvmAhPluZwhn2cqGVSTx3Nt6AeQf2K4q4fYjEzpAdQDD2LgA9xZbUW9+iTtwjYTu/rUWh237qR9z4ZTtZG3t4JrbEfR06VFkrG4nBgUgsRvmjltFntPtuSQ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ePtd/OM4yt5syHGm8T37g3x51Zwt9V9m8Alkzd3y1ksayufAguTikgIjBoR3gdWla06zopmkKrQvebrW9qAalyw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9496.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(366016)(52116014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: H7PESGMWsmQilBMf0iqLJIBm+1O/pz7tWLR9CJJbOJVfZt6Wp4UZRUGDLumNfX73eCXa9iYta8B0n2Ko/Hmmw5L31iqbR4BCrce0nRqsn4x6Y/5QpwnwmDC6CoVYhS8/q4kkqgmha88gvwvc/S5ep6tqA0b7lWMBP9bRIAaq9o+rcayGkZ19HYQiB3/frb7jfOkYVHxwxDEksFoVLl4fY4TnTk6lGaGw09CljrqhfzaQeifX0bWgtWTGXzo1cIyhO6YQBz5SEQdNZ/bTWYoFk1qaEahDr7X1CgcCKx7qbxQ6AzTt1zle1eq+ECMmOCv+VwQrt6jLcQgOwYMb7oFIqxu5V0pYI1hsrnWpTutY2qKW98g64ZfybbE0yd1Tr7ozLqPl27N+SVYD0ETwqW5K50rFASk0/w6SO3ooYbucPc/eKWw3QOgIx0jlvWpuCYnYckRHmnrC6GzXaa/GZaBPHS2wxKT3pEhBI4SrQc93NmQJL2czrXm36n+UaATvurcwnaIyKJzm7/OxIzujpPcHd50Rx3wq0RKQDVUKZx+xqq7uFaAbKNuUG9qXYLm/lQ0bMh6kq1lcUdu2EB1mkuV9hyvY/nLJ8W79/LgJ/9jY1T9UgObmPy3RYXCXreigUo/fzNPgBLh5mqeuqsgEchDna9Mf8BQZcNikOANX3+OQnd4nfTKMFS5mCbxZuGXIbVUstosDCWnR/8dA6HBuOFjSUhAmqhZTcu8lmnfVgXZhKD3xPLxTBcJXQPJmV8QFqYPLKXQtyPRZy1oht1flZKkn/QJ6rh8aILeRi3dMRnVcGQ/wGA++fMv8EFbdnIb34NHfRWrMRpRIZyR0nPUKpUPc5CTAuiJ50W3LbcCXVT0gO1BEqHiycX0TcKpjrbT7TorGgKdOiVV1R3h4iT6l6SJ7IfA6t5irqkxHkAAXj1hLdUiAjoadINgfTDcYujIBrS4bMP2hW8Lf9gWIyhSp6DqZg9ISzUDIZtUL/vOM1CLjUGgxaK81YoQrXyP/nU/U/eYS5FO756LBQhKyIfqhDhMf6ktIpvQhhBKRWn4hb+LMjmCCGlUVkzyzWuRDnM295Ex31iomd8CpYZpsRVGn+zicZFKlfm174ZE5NMTWTtlz2DDyB42z+VeuYxspeWcW1Hi4FA5PFGBc09WqN4zaFaphrtZe/Fg/kv0I4nUiI6+mYNFeGwdDV0GpbySadsNsbTpnVlfJ7TIwCweKzI+wHQg/EVHrq2CsOmD4igfojxPqgYwGOJOaq/OiGqEIBZ7Z1VrkqaJSXnwK0fJ9WYBsDEUp3l1g8CllvSUqwhcJ4dNEHv1DwRjMeuCTUXVjMMyulu8bTdvfsxl7XGFHFkYeXnPOs+GgZ3Ozjfe3aLyEpu585Er4s8tRek1sfuCUgTvWjk7wOk74Gdk/hh7ImoywAWcugcJmR5YQjkrWVp2Rf8ZgI1AuR1acsewohSWqYsEaSQtEnobWSzhKvfW1botebID/1aK9E2hLIjhnAEIfw/2J/Y4l7hNTTtmXX3NGrnV/ZI9Z99qWfm/XryVtDTHxZ80kHOc+DykRP+++Ii48QJoAO534gZ0O0r0xJHD7N4Skb6uI X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26e176a9-b67e-4a71-33bd-08dccd8f6664 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9496.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2024 09:44:56.4574 (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: AzXEHXnDNoh8IACwyssqPZv/4c1LHK9NyoLF0RxuMe8E6EdIFj2k/X1r4ZgPhD5o9OKLU+xk6vT+OkeyTwNnKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB9753 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240905_024459_540083_F07682C7 X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. 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: Haibo Chen The flexspi on imx8ulp only has 16 number of LUTs, it is different with flexspi on other imx SoC which has 32 number of LUTs. Fixes: ef89fd56bdfc ("arm64: dts: imx8ulp: add flexspi node") Cc: stable@kernel.org Acked-by: Krzysztof Kozlowski Signed-off-by: Haibo Chen --- Documentation/devicetree/bindings/spi/spi-nxp-fspi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-nxp-fspi.yaml b/Documentation/devicetree/bindings/spi/spi-nxp-fspi.yaml index 4a5f41bde00f..902db92da832 100644 --- a/Documentation/devicetree/bindings/spi/spi-nxp-fspi.yaml +++ b/Documentation/devicetree/bindings/spi/spi-nxp-fspi.yaml @@ -21,6 +21,7 @@ properties: - nxp,imx8mm-fspi - nxp,imx8mp-fspi - nxp,imx8qxp-fspi + - nxp,imx8ulp-fspi - nxp,lx2160a-fspi - items: - enum: From patchwork Thu Sep 5 09:43:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 13792068 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 731CBCD5BA2 for ; Thu, 5 Sep 2024 09:48:05 +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=yp0ahkYmTGtbcqQDrUUmhX9lB7qI8K2udlUgJ5jZ7y8=; b=aAQDc1LruJZ0547oA0Yevl6og7 UHjxdOWO845jjmAN/j7P56LbTXG45Le4+h5L2RdD2kATyMovpNMxE8reBalhd9BYGT5+Idh2ttsQ5 UpLiqurrOuByNxet3pqLkyxh7gmimm2Y+ySx6H2Pl/4Pqu13od7isnNvgDAGpXy7Fsxl+7yBzlbDm Dc+TiBGMZd+CedYe65G2kjhVDOANC1ofgRF12hu6BemNf8fSJ4btVqXYrNikqjgaxm1zrN9n21mk0 liQ/zxwRPySsYu2UU5DfW3m21UtXoA86YPAdxVEUzJZVeXHxv5c3WsfFEDHJH6YBDU9Ux/d0N9rEI 8ErScp7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sm95l-00000007psa-48WC; Thu, 05 Sep 2024 09:47:53 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sm936-00000007p5T-285v for linux-arm-kernel@lists.infradead.org; Thu, 05 Sep 2024 09:45:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=k2fvlrqfQhRnXemYRCjPc58eRAbtSBZJojozMvm1C3nJxkYO0lP4IEZVlntVN+2dGVjh9t/UdC9RsxKkotcCKh6OAwVKGHLZM98FoECBZqJ8ZaSeHfwiwvq7THhgYRtaZ1bSpEgGLqv1wuk301dD40QSzXQfuS4CQGWcug2fzpcerLBJ44NWrpRBCc6w8tBPOQMlSe+eY69h789US1USpuRpq5EJWffDxIuUFfI1e5j281fFfb36OkZLpCXkmdM8Kw+WmNkYYW6fPJkY7JJ8GQ87SKctnCky673T9vefx66bLS7cQwTUfuR1i+5KoH8jLJeXujyzoXZx5IKqXedqUQ== 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=yp0ahkYmTGtbcqQDrUUmhX9lB7qI8K2udlUgJ5jZ7y8=; b=mOAgy/gOr35A70jG7LZOnZIybHByhKhbaHd9+ty1eFIumIplTJ/ALlf22BOaRAT/ES8w6Q9LVNZMAVSba9bdFXl9sRwG8qC/KTNZ9a1tLdWhFNKwb0U3qkkKiVziZ5DMNU/NyP8mDILeuw9ZdN1aa0hOMzQNxG/oUNUgr/q//eQK5R6K0rmtZfSETLIAuSaj8dzMbM7jHymyLsr3gxu+K/Of9AV8jNYlpp6R6gCGuh4bNHQhkhehnydTnHPmFBv+pDKVhw72eq3eejc8cWEstwIU03ujEtulOi2tgwbQ9KpX45hcp3im/yjBxdGYteCvCYlJNX5Glb8Sm2deeZSjKg== 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=yp0ahkYmTGtbcqQDrUUmhX9lB7qI8K2udlUgJ5jZ7y8=; b=TjIAKZ8Hp0Yyeo0I5qc0a1k5SiDNjLKM0IEhr2lycMsrwm65pWVbyKaPQ3B3YPPwgWcG9LAGzMOHz2mrMK3N7hfUULrxdcJRSjsCbZ/BQ6n0VivXnGHkYrPnUNHnF2HrEIjp9EZjffgEx5MFx67lKfrs1KAdDksKnKWHR0Rkg0hDBnNd38MMefHHxKJsfHAO8AsUu3k4/bhGT9M0i0wAdx/lcoiDUk85YQuZHDYk1psuNESokP9GU5bkBNzpu7P2udnlxxjJ3WxPtLfhpZLH9gK69ujrubIDSLK2ssCEBHVbytKES+RZZNQM6xRg8ExNGdQtvFfayItv6109XPbw0A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU0PR04MB9496.eurprd04.prod.outlook.com (2603:10a6:10:32d::19) by GV1PR04MB10306.eurprd04.prod.outlook.com (2603:10a6:150:1c9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Thu, 5 Sep 2024 09:45:02 +0000 Received: from DU0PR04MB9496.eurprd04.prod.outlook.com ([fe80::4fa3:7420:14ed:5334]) by DU0PR04MB9496.eurprd04.prod.outlook.com ([fe80::4fa3:7420:14ed:5334%4]) with mapi id 15.20.7918.024; Thu, 5 Sep 2024 09:45:02 +0000 From: haibo.chen@nxp.com To: han.xu@nxp.com, yogeshgaur.83@gmail.com, broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, singh.kuldeep87k@gmail.com, hs@denx.de, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, haibo.chen@nxp.com, peng.fan@nxp.com, stable@kernel.org Subject: [PATCH v3 2/4] spi: fspi: involve lut_num for struct nxp_fspi_devtype_data Date: Thu, 5 Sep 2024 17:43:36 +0800 Message-Id: <20240905094338.1986871-3-haibo.chen@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240905094338.1986871-1-haibo.chen@nxp.com> References: <20240905094338.1986871-1-haibo.chen@nxp.com> X-ClientProxiedBy: SG2P153CA0020.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::7) To DU0PR04MB9496.eurprd04.prod.outlook.com (2603:10a6:10:32d::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9496:EE_|GV1PR04MB10306:EE_ X-MS-Office365-Filtering-Correlation-Id: 452c234d-70a5-4f1e-df8b-08dccd8f6a18 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: Rc0/UyKJ84frWv9P1C5cNyWtIEpt0Kz3nb+sxz436/34CW8SdqKaPYz+qo/F+84KViPeUk3t576Ti1x9T2rTS6NSmB5O4626NWm49lvSZxDD4dl4TN7PL0eYFEqSjYyhr1wfXbDhQwRP5+ZAytzHDTLbMvmJuQgbBtRJxOXXk/J5Pa83YdGh7mX/DNBO3FfdcREiX/YuflW6MuBGfq/kTcTGST/j6xovcGLuAepNPqmD4dyraWqxJ6yS1MgLBsYoV/gK/rlSkj1oV0z70uaH6jiej9rYsmE5r8hX/FmqcUeWCU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+2W/wA45We6xIOvvsyLrjN5ALU8DCDdt1ACTVpbyx/mhGdAA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9496.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(52116014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FBmyjqUSCl0B+w2zirs0SsHOqDBl7MHRgmCZ6vLSvNeBFgWwgZoicm67PTij+hMocfLLZjH0nt9DIGkxHdu+mLNmWwkCWuvohMzGa4iRZWpHv0X/VA+9kej6+GaQdIUE8ZyF7G5PtM2VELREpLg3T0004BwO9aksWY4pVZb66VoMwkFv3hlH1rVl2VNjtqrIbHPKoAkDZ/1XL3cdBdiYTs2E0fWGY6V9bkhlNMlDWmevSa3U2ZTxahh836dFA8vnPvdRrkZefHetTJwwloidD/V7ZuW7tk/346rykDaZ3Bip1Be055sBTMZWOezkmb2O7oPrLytjB09BZeaKikScoG5W3vQVImf4+SmgqhIpU9LeXB0azXJ0NFXdE88vhFZDUM+dTTwuiFUM0/KwHCftFJT/7KUb9u5QFtbBJJiV7s98zs3ReEMWt1vMcTd1y4Jbbaxk+92BaN2XJkQbnJRQiTGPWyYtKEc3fDpYwCCtCA6N8YPhWpMjIf7O7KftmPnPoEuePXqoDV+K6IVr+P8hRscYOi4ipEOFx/Y+ibzDkHriSli81Tya3AckbdFiXOvTSOnQNbh0A/ZCmXwi6aFBHiurnbb8SV+o+m2vdcMB/T+Lj+DlR/3hB191PiilO7d6P91DJVlyDg6ijbzzZyO5rwZxTLCRJsnxrxjjTm1Y0ZwDzLwa8S7uO71Z6UFt4bubuREcgWTuBoMhadQCig2TkLtamlaYYtDn0GjqVJ+bcGpfp26dqPZuyy5fmSTprHL7X5nVTmu0a9z2/EVU9FMyAlRg2lk5ZhxGFP8nMFYPkUZFQF7d1efwYPu9T+E9/MABiynAYovKr8oyrkWTckbUc0Rju/X1P0BPHmAP+vbI03/KbNJAcO7GAsZ+pmy/ArLA6l1OTefqRtoMjYqt53xuCKV0v14QGTp92WMTeSf1U0BFKDWvFMHiqaasRnv5SnH+QjwSDcHVzAivxDzVmctkroKSgOEFMwayrsB7QZfie9Q4mK+AOokgYGeyFfo29vzvaLSoIlCwEe7bnK5r1mPFcwX98kCd3RENT8nOY1qa8ObeL5PL6yFpdWUgmR/uriX6EfrNwSxrpTGHu/VUG6sc4RVTpPl2s8B2u2GCSWhFGW9l32piOwTJjDUIyOLRgqpeQ4xLhyM8OW26sc1Ph3rdzovACTIGyluh08IOS9vMvQoWhv0OMgqmXuiERtNv9qX5GFrCU97ZE4wJ+Xon8oI5LgrQHvM3JayLA8BmJ56Kg2j8cuP7MDh7oUWtzG1ofSnMjMuPgTttEipgW5X/heYYcuVS8nU+C048E4ynveKQmYw48ny56z/UibhBkON4zqvbTBz8FyJNt6iyMES/Ww2RDjNC6V0/CVJ4WWLRMA/ChVbF0+YYiM3dbRrZVzFdq16WHP4hJ81mWaWW5UfdF0flWBRy2IIOb9K7PBDb8nmBjGBH7uGvodLkgRoLSo+phCjOaGPaLDXN9UIi4UgnLdTnwEy1bH4A1C8h02wZ0zn38H0jJJm/KWpr77BZVCn4tstTfGcEVLfjcV1w+aMseO2A3lxnpS7R+MxR3B61oydaKeQAoU+GEKN5ADUEjURDqdwy X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 452c234d-70a5-4f1e-df8b-08dccd8f6a18 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9496.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2024 09:45:02.5791 (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: HbevghjBZESYmCOHFDFGN7wJ6QsOpQtaFhwmYinfAUgLXNMyKMgaadEIBW8ARVy/mxmgniCMGL45cF0wJFJjhg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10306 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240905_024508_591722_024E249D X-CRM114-Status: GOOD ( 19.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: Haibo Chen The flexspi on different SoCs may have different number of LUTs. So involve lut_num in nxp_fspi_devtype_data to make distinguish. This patch prepare for the adding of imx8ulp. Fixes: ef89fd56bdfc ("arm64: dts: imx8ulp: add flexspi node") Cc: stable@kernel.org Signed-off-by: Haibo Chen Reviewed-by: Frank Li --- drivers/spi/spi-nxp-fspi.c | 44 ++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c index fd1816befcd8..f42c14d80289 100644 --- a/drivers/spi/spi-nxp-fspi.c +++ b/drivers/spi/spi-nxp-fspi.c @@ -57,13 +57,6 @@ #include #include -/* - * The driver only uses one single LUT entry, that is updated on - * each call of exec_op(). Index 0 is preset at boot with a basic - * read operation, so let's use the last entry (31). - */ -#define SEQID_LUT 31 - /* Registers used by the driver */ #define FSPI_MCR0 0x00 #define FSPI_MCR0_AHB_TIMEOUT(x) ((x) << 24) @@ -263,9 +256,6 @@ #define FSPI_TFDR 0x180 #define FSPI_LUT_BASE 0x200 -#define FSPI_LUT_OFFSET (SEQID_LUT * 4 * 4) -#define FSPI_LUT_REG(idx) \ - (FSPI_LUT_BASE + FSPI_LUT_OFFSET + (idx) * 4) /* register map end */ @@ -341,6 +331,7 @@ struct nxp_fspi_devtype_data { unsigned int txfifo; unsigned int ahb_buf_size; unsigned int quirks; + unsigned int lut_num; bool little_endian; }; @@ -349,6 +340,7 @@ static struct nxp_fspi_devtype_data lx2160a_data = { .txfifo = SZ_1K, /* (128 * 64 bits) */ .ahb_buf_size = SZ_2K, /* (256 * 64 bits) */ .quirks = 0, + .lut_num = 32, .little_endian = true, /* little-endian */ }; @@ -357,6 +349,7 @@ static struct nxp_fspi_devtype_data imx8mm_data = { .txfifo = SZ_1K, /* (128 * 64 bits) */ .ahb_buf_size = SZ_2K, /* (256 * 64 bits) */ .quirks = 0, + .lut_num = 32, .little_endian = true, /* little-endian */ }; @@ -365,6 +358,7 @@ static struct nxp_fspi_devtype_data imx8qxp_data = { .txfifo = SZ_1K, /* (128 * 64 bits) */ .ahb_buf_size = SZ_2K, /* (256 * 64 bits) */ .quirks = 0, + .lut_num = 32, .little_endian = true, /* little-endian */ }; @@ -373,6 +367,7 @@ static struct nxp_fspi_devtype_data imx8dxl_data = { .txfifo = SZ_1K, /* (128 * 64 bits) */ .ahb_buf_size = SZ_2K, /* (256 * 64 bits) */ .quirks = FSPI_QUIRK_USE_IP_ONLY, + .lut_num = 32, .little_endian = true, /* little-endian */ }; @@ -544,6 +539,8 @@ static void nxp_fspi_prepare_lut(struct nxp_fspi *f, void __iomem *base = f->iobase; u32 lutval[4] = {}; int lutidx = 1, i; + u32 lut_offset = (f->devtype_data->lut_num - 1) * 4 * 4; + u32 target_lut_reg; /* cmd */ lutval[0] |= LUT_DEF(0, LUT_CMD, LUT_PAD(op->cmd.buswidth), @@ -588,8 +585,10 @@ static void nxp_fspi_prepare_lut(struct nxp_fspi *f, fspi_writel(f, FSPI_LCKER_UNLOCK, f->iobase + FSPI_LCKCR); /* fill LUT */ - for (i = 0; i < ARRAY_SIZE(lutval); i++) - fspi_writel(f, lutval[i], base + FSPI_LUT_REG(i)); + for (i = 0; i < ARRAY_SIZE(lutval); i++) { + target_lut_reg = FSPI_LUT_BASE + lut_offset + i * 4; + fspi_writel(f, lutval[i], base + target_lut_reg); + } dev_dbg(f->dev, "CMD[%02x] lutval[0:%08x 1:%08x 2:%08x 3:%08x], size: 0x%08x\n", op->cmd.opcode, lutval[0], lutval[1], lutval[2], lutval[3], op->data.nbytes); @@ -874,7 +873,7 @@ static int nxp_fspi_do_op(struct nxp_fspi *f, const struct spi_mem_op *op) void __iomem *base = f->iobase; int seqnum = 0; int err = 0; - u32 reg; + u32 reg, seqid_lut; reg = fspi_readl(f, base + FSPI_IPRXFCR); /* invalid RXFIFO first */ @@ -890,8 +889,9 @@ static int nxp_fspi_do_op(struct nxp_fspi *f, const struct spi_mem_op *op) * the LUT at each exec_op() call. And also specify the DATA * length, since it's has not been specified in the LUT. */ + seqid_lut = f->devtype_data->lut_num - 1; fspi_writel(f, op->data.nbytes | - (SEQID_LUT << FSPI_IPCR1_SEQID_SHIFT) | + (seqid_lut << FSPI_IPCR1_SEQID_SHIFT) | (seqnum << FSPI_IPCR1_SEQNUM_SHIFT), base + FSPI_IPCR1); @@ -1015,7 +1015,7 @@ static int nxp_fspi_default_setup(struct nxp_fspi *f) { void __iomem *base = f->iobase; int ret, i; - u32 reg; + u32 reg, seqid_lut; /* disable and unprepare clock to avoid glitch pass to controller */ nxp_fspi_clk_disable_unprep(f); @@ -1090,11 +1090,17 @@ static int nxp_fspi_default_setup(struct nxp_fspi *f) fspi_writel(f, reg, base + FSPI_FLSHB1CR1); fspi_writel(f, reg, base + FSPI_FLSHB2CR1); + /* + * The driver only uses one single LUT entry, that is updated on + * each call of exec_op(). Index 0 is preset at boot with a basic + * read operation, so let's use the last entry. + */ + seqid_lut = f->devtype_data->lut_num - 1; /* AHB Read - Set lut sequence ID for all CS. */ - fspi_writel(f, SEQID_LUT, base + FSPI_FLSHA1CR2); - fspi_writel(f, SEQID_LUT, base + FSPI_FLSHA2CR2); - fspi_writel(f, SEQID_LUT, base + FSPI_FLSHB1CR2); - fspi_writel(f, SEQID_LUT, base + FSPI_FLSHB2CR2); + fspi_writel(f, seqid_lut, base + FSPI_FLSHA1CR2); + fspi_writel(f, seqid_lut, base + FSPI_FLSHA2CR2); + fspi_writel(f, seqid_lut, base + FSPI_FLSHB1CR2); + fspi_writel(f, seqid_lut, base + FSPI_FLSHB2CR2); f->selected = -1; From patchwork Thu Sep 5 09:43:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 13792069 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 F1FBBCD5BA2 for ; Thu, 5 Sep 2024 09:48:59 +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=b5DOIcT+K2RMRm8g2YmmN51MmSBtg76QWoltVLmtXZA=; b=BL9KQXJ+2tV7vVDTQqt84bW46s 6dmu1JRWBcM5B2MGKUVWUqeC+qF3RY+8zTNJV75/VsY03Bfj7YwagtM2XusFDXgKNj8Bu/hJ/kTwc x0KSWxs0K7qqUwToaM23j2ahZq9Kwu8cX1SnazgS2YIo0QrQIMyorB1+p2wCGbFdv68ys0WAd2QxY RtXzTdDWZKPPuaY+CUC5XA8x4Jt+G46uLwX/5yj/ecSE0o3bCZwLZcFPs7MkYvSYlK1DCo7ju95XQ UJcDH9vEY9bOKCwXs9LuuXPIdx/5R7YGfz91OGNY2zkfLNVoT5YH6K6TDk/ypm3uX9sUJeq7/gQKO Y6kY0cSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sm96h-00000007q83-0ghw; Thu, 05 Sep 2024 09:48:51 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sm938-00000007p5T-2JRI for linux-arm-kernel@lists.infradead.org; Thu, 05 Sep 2024 09:45:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=t8Wd72B3zvn+pgV1hev2q+jDtt+uX0F59BzsvTOPc67xnwoP8XsJUbW+pZWoy7/Ri4vLeMsgm1txlGAyddUWVNeT2b6Wehp1VNZzd0xGIGrpr2wY6ZLczg9toxuU38sqLeOX7l/T0M5hfMK/ecMAPcp7u0tCglqTFzw4EGTFRkW/Zlq0VsMJRz9C6/0BnDLVBvda/s217pZ89EEDWNSSKSBwVnyrENUKQKJeB2uKRr83HPLhhRrWa5T2uyBJT9vi/Yj5PrIJI623KGr8xzluysjY2Y2MLaJG3DfVyOxyMEGF4+nUkGpRTDnIXsVMh9OY7cOrzUMa+pdnbxjIRnZjVA== 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=b5DOIcT+K2RMRm8g2YmmN51MmSBtg76QWoltVLmtXZA=; b=m++a2m3LcBDj8fbhcp2SmZbFDS1Pf2FWC2VZLVQy8CsBSzUai9SkyS9JYe4mqK4AY7Gr3vFelkaPXApy5vgESbXanQsb5EcXQLPBKz3D8iVsAXdwMMl3CJmMD6MrQg/ZzXtVBEURP5fKGsGARWmEz1bhnAOkTq0Cki4/YBvDhCj77KzqiHOnNSiOZ7GGXOpnF9MAkHzXkHlvuU+COeY5aEAAZHJ5eeWAxWfHIx4HMtsXAgT+eYxdGG7fLS0Tmj9ShGFB6WAuF6h4PqCRGzQPmwNGJj6O8JEPTgp5MLrBAoD8UvweHThks5uMZ1YOYFSlVZ6+lhqyZrcXPsDoRyWZPQ== 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=b5DOIcT+K2RMRm8g2YmmN51MmSBtg76QWoltVLmtXZA=; b=LSxLKJTP7Mn58DVmpt3+iAYTR2qaQuLtAc1q0CLLNrQmkJU9N8GkZrR3D88yAZ5mLRofgHTvf06UFigcDXiMz+s6dv6Vk3+PtVnY+CT7QZ5HYrGV+5x3BAjCZz7j5pDNOKCGYCM9LbZXR5f1oxUTjJPhgKJKCXMJ+ZQDXTuShgi++Xs3+hBRuAnEEyIB89LRM9JgqiRXOt+Jl00MlNqvSkDQu7HPnZIyuL2goruMmSS7RXxlANVsvIU+IYUCMpd3Wd2z6SUeeexQhMmFdviD0g4pCSmnwZ0sqwJTxWI0HgcuUAJGAHTnx12ATs9gkq+dZp74Q1Bd3DTiJWwSdTD/Mg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU0PR04MB9496.eurprd04.prod.outlook.com (2603:10a6:10:32d::19) by GV1PR04MB10306.eurprd04.prod.outlook.com (2603:10a6:150:1c9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Thu, 5 Sep 2024 09:45:08 +0000 Received: from DU0PR04MB9496.eurprd04.prod.outlook.com ([fe80::4fa3:7420:14ed:5334]) by DU0PR04MB9496.eurprd04.prod.outlook.com ([fe80::4fa3:7420:14ed:5334%4]) with mapi id 15.20.7918.024; Thu, 5 Sep 2024 09:45:08 +0000 From: haibo.chen@nxp.com To: han.xu@nxp.com, yogeshgaur.83@gmail.com, broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, singh.kuldeep87k@gmail.com, hs@denx.de, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, haibo.chen@nxp.com, peng.fan@nxp.com, stable@kernel.org Subject: [PATCH v3 3/4] spi: fspi: add support for imx8ulp Date: Thu, 5 Sep 2024 17:43:37 +0800 Message-Id: <20240905094338.1986871-4-haibo.chen@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240905094338.1986871-1-haibo.chen@nxp.com> References: <20240905094338.1986871-1-haibo.chen@nxp.com> X-ClientProxiedBy: SG2P153CA0020.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::7) To DU0PR04MB9496.eurprd04.prod.outlook.com (2603:10a6:10:32d::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9496:EE_|GV1PR04MB10306:EE_ X-MS-Office365-Filtering-Correlation-Id: 487af6ba-2a7f-4f49-3f09-08dccd8f6d83 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|366016|1800799024|38350700014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rjTialv1/93j0m7jKFMljmRtSyw+eZa3hsklGEsV9Y5R4IGDjSJxHVlm+fzVa5lB+BfrJRoEXrni7GygHtXAnW2nIslpi0Vjq0yaZSQndGUxjVhv1JnnyshFaJq9S6wzvxNQCWCvuW2JeM9VNQgTVHQuyayCm/Zlc5Vl8HVilalHTM3FSd4LqmG/aC4zd4VPB7ckeTxp+1q5V7c0cDP6L9tsUIE77+4l3+Hh3bz7/C6MG2JwmNSBcoXpORzf/fEunrEEZPMno37+ELF3bIvUOPzMnVfi88Vy5jftSXBQ7iSzgEKeczH27Y7/917VaYPfm5uvei1Bt2EDlmdEmd7O7buOTJPN3TShWoVmof2BhDN4UQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9496.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(52116014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: siHp5LMeJ7sDUlC4BFLLwsVal16gq2WhznfmTdYFenODST4yyp09dWnbP4nxAGhKNAyTbQm0/PZuBLasiBiJoYIr3Lg1Qc6Zqd120cslEyiGlPC+l6a8P4o/BMA5ojmH9mB4SDcEJt27RFfjY4l4wOfSZLsz+1MuPN4Oo4VCTuEMvbpqLYakZW59cFPGg1DB8RKnO5cQHpjGrboqOb4cIkEizGobVxJ98eMKl8JXvaw6gxzi6d3ub0t7fv31iroGbiOCXOrQ8R0udeaEJj/bI78OawUKIRqRZrFDyZAy3FggY+h4yVnFKteTZb8hKHuVwoW1sSATISxbCYNKc36WDaXn/hnDbKdePVx22zVhV7ec1pqol4ZAgzljFFTRDeB9zYTKJ5wleRA/d5ylfK3xiQWsiZ5BasnthI6nfOkCDFTjz9P3rPXdUYeshnBZuQtfkvrCzPKfnWB1fO+3EkLRRBIdcoMZp6krTR6S7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dbWL00MQ86CMDQ12D X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 487af6ba-2a7f-4f49-3f09-08dccd8f6d83 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9496.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2024 09:45:08.2926 (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: ACl2X3gAjABfSpHzHi/+P5PnxrF04eAHbDTvz51PODsW6SvnzmZxR/0dB58tgVpR3zm6SXfd9uLaDRSwQTiLKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10306 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240905_024510_619484_3C4A77AB X-CRM114-Status: GOOD ( 13.19 ) 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: Haibo Chen The flexspi on imx8ulp only has 16 LUTs, different with others which have up to 32 LUTs. Add a separate compatible string and nxp_fspi_devtype_data to support flexspi on imx8ulp. Fixes: ef89fd56bdfc ("arm64: dts: imx8ulp: add flexspi node") Cc: stable@kernel.org Signed-off-by: Haibo Chen Reviewed-by: Frank Li --- drivers/spi/spi-nxp-fspi.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c index f42c14d80289..69e427b1903b 100644 --- a/drivers/spi/spi-nxp-fspi.c +++ b/drivers/spi/spi-nxp-fspi.c @@ -371,6 +371,15 @@ static struct nxp_fspi_devtype_data imx8dxl_data = { .little_endian = true, /* little-endian */ }; +static struct nxp_fspi_devtype_data imx8ulp_data = { + .rxfifo = SZ_512, /* (64 * 64 bits) */ + .txfifo = SZ_1K, /* (128 * 64 bits) */ + .ahb_buf_size = SZ_2K, /* (256 * 64 bits) */ + .quirks = 0, + .lut_num = 16, + .little_endian = true, /* little-endian */ +}; + struct nxp_fspi { void __iomem *iobase; void __iomem *ahb_addr; @@ -1295,6 +1304,7 @@ static const struct of_device_id nxp_fspi_dt_ids[] = { { .compatible = "nxp,imx8mp-fspi", .data = (void *)&imx8mm_data, }, { .compatible = "nxp,imx8qxp-fspi", .data = (void *)&imx8qxp_data, }, { .compatible = "nxp,imx8dxl-fspi", .data = (void *)&imx8dxl_data, }, + { .compatible = "nxp,imx8ulp-fspi", .data = (void *)&imx8ulp_data, }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, nxp_fspi_dt_ids); From patchwork Thu Sep 5 09:43:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 13792070 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 5E0EDCD5BA2 for ; Thu, 5 Sep 2024 09:50:01 +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=gBIt1Za1kBEnq68eNm7JrLgbI+uKSuTodZCxEFcCF2s=; b=ex1j0KNCIAut6t1TZO5dE3On1R m9Fir8OKc9+zuD9T9yLsUP1A89Kw2GF66TSaRPi2XkLKjBVRzq1jT2tGdorcRqXf6cjEKHBnAm/vI PWGDz3P7jqfhwrdubkDx8rPvzcXXBoOw6Hg7M3oGh5OyKiCbS+vmjxqifst5LrvNgGUWG9VhEDCvN qAt+cEggEeM91joDbuAKHCpD/DQMNi17yt5KwP6OZn3HmxSOUJaZ9Ct5sRs/9blBpOb16ZanaxDIa MIvx56smI8vd0p6SeO0FjOMGLSfSKV8lSxfo68UTN5YB2SZeyTqHXmyHi1CPQIjzne0lD/op4IfZl xaWnGsGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sm97e-00000007qMz-3TKO; Thu, 05 Sep 2024 09:49:50 +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.97.1 #2 (Red Hat Linux)) id 1sm93E-00000007p8c-2d0N for linux-arm-kernel@lists.infradead.org; Thu, 05 Sep 2024 09:45:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=belSZeAe7dgXC1HbAOxiy4c9mJMGuOzx68Ud19qq3f9ySkqWtZo8Ok2zqoTS/I2GCSJOTFdHRvSc5F6dpnE3Rd2AFusp6e3tSSb0/BgC5M9jwV944UJMihPQAPBRL0bYFGleeWvja2LW4+JF+IB7RY/LE3h8xoz8WCWH0uIFDiLJr2E8PwUqshB8arsbhXxOsfWr1TCIhx2eDK0eVYXkzU4kM1aIEXQcDmtJEaFxBXlFi5+WCGfJd9ZxKVDLdQsgG5P0Xu+OKDbYD3dc3N2N36XPR5zy2bncImfcV/BBt6FD/YRXGDfnP908oLyQcjj5AICgC2tWF/MLRHysTUSN3Q== 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=gBIt1Za1kBEnq68eNm7JrLgbI+uKSuTodZCxEFcCF2s=; b=tcnGJIf2MgZoeQuEPdqEdGFenEVYZQY98XA4rg5AbH6FmdWCy0dBg3Agj547vZqTMlMdQAML3A4lsC8sRniUhbUCM48HGDT4if10c7xrTT6hpp0QaPJgoweEw0uj86nnW2rpEKP/TWon7zssSwjnwn2Is+dDy3O71bR4G6WaPUCsWpwPlFn7a/xPGGXn+rpXTZfiY1b5Gku3N5TTEJhtJ74U+EH+WJcDPWTKHpmorwhxzurhCU71BWYqeJ8bla8loolGDnCN1Mn24tfq8GgGyQtDeeDqF4Vukk2LrYeHMd7w9XMD1rP6d8Yf79mZhV5m3jK2mdTFZS5gbyWEG9FomQ== 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=gBIt1Za1kBEnq68eNm7JrLgbI+uKSuTodZCxEFcCF2s=; b=dMYKvCbTiyQKtvuvwiZ0P14TmpvFuNSnwo1S3CHZ6sidGFSK8GBqd52gIqkjb5t7TD8XGSLmeivEBtIM48Q96C6qU/iaNt725cmrZw5uUiYGGLKO1HPM2DN/aEk4o1jeTug8+1/owCZm1bKeSoUA4a6Ed+uzOEBhFfPRUqwMsy+ScDZ327T+iW9IzKCfv5hCMihj6DXBZh5QOcZluKV/0pxIrSEmIgcPCzjIGvXMK11cNSASutioCRPG2zqLJ8O14x5UZBXw4c8VwP/CHn/5bXYEVjniwG5lIEaliyI5HLilfDPIEFx5dVurmUMA534TIVu7De0GA37ud1fRc3IzfA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU0PR04MB9496.eurprd04.prod.outlook.com (2603:10a6:10:32d::19) by GV1PR04MB10306.eurprd04.prod.outlook.com (2603:10a6:150:1c9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Thu, 5 Sep 2024 09:45:14 +0000 Received: from DU0PR04MB9496.eurprd04.prod.outlook.com ([fe80::4fa3:7420:14ed:5334]) by DU0PR04MB9496.eurprd04.prod.outlook.com ([fe80::4fa3:7420:14ed:5334%4]) with mapi id 15.20.7918.024; Thu, 5 Sep 2024 09:45:14 +0000 From: haibo.chen@nxp.com To: han.xu@nxp.com, yogeshgaur.83@gmail.com, broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, singh.kuldeep87k@gmail.com, hs@denx.de, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, haibo.chen@nxp.com, peng.fan@nxp.com, stable@kernel.org Subject: [PATCH v3 4/4] arm64: dts: imx8ulp: correct the flexspi compatible string Date: Thu, 5 Sep 2024 17:43:38 +0800 Message-Id: <20240905094338.1986871-5-haibo.chen@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240905094338.1986871-1-haibo.chen@nxp.com> References: <20240905094338.1986871-1-haibo.chen@nxp.com> X-ClientProxiedBy: SG2P153CA0020.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::7) To DU0PR04MB9496.eurprd04.prod.outlook.com (2603:10a6:10:32d::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9496:EE_|GV1PR04MB10306:EE_ X-MS-Office365-Filtering-Correlation-Id: cd387213-8482-41ba-f8df-08dccd8f70e7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: nfxfPudGxsUoS8wz7K+Lna2PujXOzijv8u3ljRw0MQkYzU1KH4gPwoxbcg2LVw7bupLww0CUeQnINyOjJbDSjT1mmXC1cOsC/iIO1xghgs4w8Zpas8tBg02tCvYZH8K/+RYbl8vpVRxYbPrEviAA009wnOhIFxstD/4lI9JvCDgTi63p0WnREGiBZurZfDaExKIgTz6KNWM9JCw48WjfzweovAPBUQvliU0pYePRFfTvawBEcbC6gFzr+mnnmkAAb2hrCj7apABu9G/0bdU25jNFFCr/VUwPZZcAVnVhwy7CFSQIH49UGVuZ51Z30pGG+k0Ti/cYZ6i+oiJ2lMxNPLyXwy/IaoC2mJtWbBGPFjLJOQBl5GQxCwZAkqbhjF6YS7vZwwX59anOFiNzbvVxVsyURA/mI1JJrH3hUM2pixRXeK//eCEoh2hWmxPsDm+H6axyH10F035xWIucHKMceWiLNN9PxmvHA0fIqyCi8yWTePsgBrRYwxo1TtH4Mfx2tIzLc8RP018xjWjZ1XV6QWWnMeR+J4BbN/+kUsr7iLu1gls4vye8nKOc3C2lG6btX+RjApLrNmAHk7SmT1mMkOdCrZpLFohpYtKjkYzeSuYSGP2tFQxUqI+cpP70rdf+ldpQCVShM82QaEFOiijgpRXCPxDIjlavlxV6HrWQ8Wa3A/Z2Se6W2iCUa2QpENndmOxsxbvVPGis5mAssBi9m1CuoY2ajKYu4DUVtb+PtmtKoK3oFQI6pLD7symTyUmckdgtJPDfOWkdscveuhwMcNMXcXVfAkpo1ex0LvV6lNzT8aOr0c+tRHxaWzmuPr/RjCMJE4IsipbWqHvU3cvRhLIl7w4GHTrQ0dr1YXJ0EZa29r+PY85XIWCupR+f40QUoenHCvTfxO2xfM9l+DrV/07a3pHDTYNkWOeZbAM2D/L+oollJWIM6+uajcQtKea53CfFLiXFzD9AH8rPA/iNVcR24Q9Paex521JCNwcrtmAxN1rFsliepxpGsgp84cedoMa0uzXgmH6W0WU8moI0gZPal+9QPaQN5FZmPqcWo0mKt5VFyi/MHppOCsh59/XrE8sv+q0PyORv0sv4HbtDkdXvVMMbpqCGW4a/lI6xhmm1xnbHeERJ74LgFvv81pEk616vB7IgDxMWNSV+pXEKDvJriIq57wg3BT70a4s/hbApASiaP6hxogW45NRkFrRN62qSGu4L2g9BkdtA5vrCYRm/QUQ1Sub30gUIFjNf2l5q4E8BRkOADYlqINKDRU5gpFEGeWTRfNUMi6ocb+ss9DqNy8ognbnTD5/yUQNWWmhTPxnUkz/4p8MSxM9CMGGSbMLnDyz57pMs6fkvOIk9LzTGRT9Kvke8+IGc/nmrdQUjZ3Cmv1iBg2YfzPjNApebOCyfvKpj2uxD5WWNImdIfw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9496.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(52116014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aVat3Dzxk54oz8SW0uXqE5sL+mY3mfyNvDiD8+7mkO13KsnlvlRTsErJ99liZ9beOAfFnfoK5CtVva2bjuvdm+cUSdhdEY/uz75riZdGO5eaNtXXQM3qESMXjr0TIOwNYEA0KnYOF59kxMUslkpp4i7M4Bhwjp13a5HuVUl78RuJ1Fkrt0mcW/8cVZ+N56Yp2DyaR9uM/7rMWnFpNmL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Ews2SMiVWL+37EoJKzAuLpRRhWGbcHUiyC4Qxv6+8x7o6PNk1QxiU/KKlqa5SmvlhCPENSReYuVFF6RygFNB0PR8yZ+bvtvaqBcMCnHlkKSuL7oVCTMKUTQFRlq4ZsPmR3egyjuhkIpYQxnE7LyIL0f9ATcah3JUciLd8nRfbxS09enOXjKoVux0IzFPvbgOKehWZ8q4qx3wzBKWWOBcJxviPzBtMyOyvbuppO9yeO57OuzhkYOd67XvrdqTQttmxWdsvCLua/bxzImLB9o5Rrp2h+eb4jUFqRtmzC1vYmpO+UVH1JHp0PBIZnoAjg X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd387213-8482-41ba-f8df-08dccd8f70e7 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9496.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2024 09:45:13.9868 (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: LEV3DP0Ax+iTwajvkX10yK0/+XurJ61a8up/3cCl5ydQu/WYwMBmhK+MIn1Wf1URM2YrTcUx/taAsqEXvbaB0w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10306 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240905_024516_701884_2C7152DE X-CRM114-Status: GOOD ( 12.11 ) 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: Haibo Chen The flexspi on imx8ulp only has 16 LUTs, and imx8mm flexspi has 32 LUTs, so correct the compatible string here, otherwise will meet below error: [ 1.119072] ------------[ cut here ]------------ [ 1.123926] WARNING: CPU: 0 PID: 1 at drivers/spi/spi-nxp-fspi.c:855 nxp_fspi_exec_op+0xb04/0xb64 [ 1.133239] Modules linked in: [ 1.136448] CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.11.0-rc6-next-20240902-00001-g131bf9439dd9 #69 [ 1.146821] Hardware name: NXP i.MX8ULP EVK (DT) [ 1.151647] pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 1.158931] pc : nxp_fspi_exec_op+0xb04/0xb64 [ 1.163496] lr : nxp_fspi_exec_op+0xa34/0xb64 [ 1.168060] sp : ffff80008002b2a0 [ 1.171526] x29: ffff80008002b2d0 x28: 0000000000000000 x27: 0000000000000000 [ 1.179002] x26: ffff2eb645542580 x25: ffff800080610014 x24: ffff800080610000 [ 1.186480] x23: ffff2eb645548080 x22: 0000000000000006 x21: ffff2eb6455425e0 [ 1.193956] x20: 0000000000000000 x19: ffff80008002b5e0 x18: ffffffffffffffff [ 1.201432] x17: ffff2eb644467508 x16: 0000000000000138 x15: 0000000000000002 [ 1.208907] x14: 0000000000000000 x13: ffff2eb6400d8080 x12: 00000000ffffff00 [ 1.216378] x11: 0000000000000000 x10: ffff2eb6400d8080 x9 : ffff2eb697adca80 [ 1.223850] x8 : ffff2eb697ad3cc0 x7 : 0000000100000000 x6 : 0000000000000001 [ 1.231324] x5 : 0000000000000000 x4 : 0000000000000000 x3 : 00000000000007a6 [ 1.238795] x2 : 0000000000000000 x1 : 00000000000001ce x0 : 00000000ffffff92 [ 1.246267] Call trace: [ 1.248824] nxp_fspi_exec_op+0xb04/0xb64 [ 1.253031] spi_mem_exec_op+0x3a0/0x430 [ 1.257139] spi_nor_read_id+0x80/0xcc [ 1.261065] spi_nor_scan+0x1ec/0xf10 [ 1.264901] spi_nor_probe+0x108/0x2fc [ 1.268828] spi_mem_probe+0x6c/0xbc [ 1.272574] spi_probe+0x84/0xe4 [ 1.275958] really_probe+0xbc/0x29c [ 1.279713] __driver_probe_device+0x78/0x12c [ 1.284277] driver_probe_device+0xd8/0x15c [ 1.288660] __device_attach_driver+0xb8/0x134 [ 1.293316] bus_for_each_drv+0x88/0xe8 [ 1.297337] __device_attach+0xa0/0x190 [ 1.301353] device_initial_probe+0x14/0x20 [ 1.305734] bus_probe_device+0xac/0xb0 [ 1.309752] device_add+0x5d0/0x790 [ 1.313408] __spi_add_device+0x134/0x204 [ 1.317606] of_register_spi_device+0x3b4/0x590 [ 1.322348] spi_register_controller+0x47c/0x754 [ 1.327181] devm_spi_register_controller+0x4c/0xa4 [ 1.332289] nxp_fspi_probe+0x1cc/0x2b0 [ 1.336307] platform_probe+0x68/0xc4 [ 1.340145] really_probe+0xbc/0x29c [ 1.343893] __driver_probe_device+0x78/0x12c [ 1.348457] driver_probe_device+0xd8/0x15c [ 1.352838] __driver_attach+0x90/0x19c [ 1.356857] bus_for_each_dev+0x7c/0xdc [ 1.360877] driver_attach+0x24/0x30 [ 1.364624] bus_add_driver+0xe4/0x208 [ 1.368552] driver_register+0x5c/0x124 [ 1.372573] __platform_driver_register+0x28/0x34 [ 1.377497] nxp_fspi_driver_init+0x1c/0x28 [ 1.381888] do_one_initcall+0x80/0x1c8 [ 1.385908] kernel_init_freeable+0x1c4/0x28c [ 1.390472] kernel_init+0x20/0x1d8 [ 1.394138] ret_from_fork+0x10/0x20 [ 1.397885] ---[ end trace 0000000000000000 ]--- [ 1.407908] ------------[ cut here ]------------ Fixes: ef89fd56bdfc ("arm64: dts: imx8ulp: add flexspi node") Cc: stable@kernel.org Signed-off-by: Haibo Chen --- arch/arm64/boot/dts/freescale/imx8ulp.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi index e32d5afcf4a9..43f543768444 100644 --- a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi @@ -384,7 +384,7 @@ pcc4: clock-controller@29800000 { }; flexspi2: spi@29810000 { - compatible = "nxp,imx8mm-fspi"; + compatible = "nxp,imx8ulp-fspi"; reg = <0x29810000 0x10000>, <0x60000000 0x10000000>; reg-names = "fspi_base", "fspi_mmap"; #address-cells = <1>;