From patchwork Thu Sep 5 01:26:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 13791588 Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011053.outbound.protection.outlook.com [52.101.70.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0108DD528 for ; Thu, 5 Sep 2024 01:26:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.53 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725499573; cv=fail; b=hRD8aGiX7yCRxR2nSpjStVNYURsUKUf1nW2Bk8vKTLKDnxY7KhOsGFbCJSpO2kcn3ITzinv0TtA/OFz8MR74q963X6ZIfbc6jYkk1brSEXTTYfuG3UYPX5vgtl4rrfn+GnBXHFXhwVvrUnUtF+G8R4VlQxhQ/zcsPc+iLAcy72g= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725499573; c=relaxed/simple; bh=5utcvPEfSbFGVK6m3qXpI20ANQCfKgNApKa10MwBziQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=carFqQzStmLLwB9RCT6Cw5zDQnIEKJe+UzxtM0NyEEBTh4RrLno3ZU+gTzNtk6J8jCcV7vsN92bM23hp48m6/2SZItOwsyX/EOgw2VFYGaat9srqgqSZe2axfLkXwfxfkNaSdWh59nsf+1xxNOCc/xUvPt92nuPB38+iKfWCU6w= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=UhjJkvID; arc=fail smtp.client-ip=52.101.70.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="UhjJkvID" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pNkjADfyBenrdpy+20VSprj09de2nP15Dqfkqvt6Dv2JdyCrqTGdeOsncm8VrYYGKfRKJJGbSHug0bgTQ3P3Lr6FnBfgvBTiuu4RFJiganfYx+wQAgaayW/Mpx9crhdcX3MjJwxS6wQl7jaty9qvSxHe7Qa/86R9KVzxjRW0bn9FSnZbVxx5E4wpARIEibe8eIXWbJQnBQ6gaY/hmKEsVB59eKqa4X5iuftEWsoAdsUwL5WJ0vrURp41/N1+H42zKqh4s7KBJrjM0QkZXuURLrHJl/iZJfiF3MfG3eYiLNF3yvuSeT+s6R0rHsu7q3y6VtG0CqkpEuSGBT1XsDilTg== 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=nkbIsKKXGOzqsVZkTqHOk3FD/BkwCPhkzIbBbB8eGpc=; b=cekXUtANS9pE1k9SMDuLE6Lz/ODr2g+0Dkms4OWGEL3yBEHaNEdsbuVDv+YztEMNgUyhWLLuDMhoY00EzDKfNHxbwmQk4v79YbMJRiURx49XfK6ISTcuVC2wT6oWv+4sNQ6dsWqRmciJGfPpW5wkW80hciXpk0T3mSTzIg/w7ZdeFm18gtDfkWW+6Pu+3tQp/mZUJ/tlVpzKFIzAYe+kcJt48z4XYmEBhx7RUdCmjgqH7+RmNdolGp8Dw4omALPhgw+6ej3C01RJ6wPM/tYjw3c7rZ751Nv9KdOtz0EgZM3BQdJ/j4xNCJCODHYRiBsz/+WHjplTvHFP+K/lIyKyRw== 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=nkbIsKKXGOzqsVZkTqHOk3FD/BkwCPhkzIbBbB8eGpc=; b=UhjJkvIDiK0P5crXzU17sFpvk2tHq1EMXF2qN5hB1CpjQ9Hk5TCDG+c/prImjbkWkEJGaLCS42qRPSzpB0T3SCP8MRckGF0jWkRKlF2/tWWU8aTuFevASfc+C1fE9wnUnzUkeYHEkip7IVbNJ1BWHt3oXwgTR0RzCj1WUAImOImu3/UaFMsWIYStzuPU97Hvlv5jgbKDzuVmmDdm4Y8hkGUz5qqXqpX0NT959OqOO7HP3do29iLwmRR12I9MJXwN11bs3EBqYxLBKeQFcpMRqwlIjLzMfSrkZWoFObIYREWxXu6Jh+DyO8PVPjQO5Z+MTwmhQq4AjKAr9HKEEXDebA== 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 DBBPR04MB7497.eurprd04.prod.outlook.com (2603:10a6:10:204::9) 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 01:26: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 01:26: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 Subject: [PATCH v2 1/3] dt-bindings: spi: nxp-fspi: add imx8ulp support Date: Thu, 5 Sep 2024 09:26:15 +0800 Message-Id: <20240905012617.1864997-2-haibo.chen@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240905012617.1864997-1-haibo.chen@nxp.com> References: <20240905012617.1864997-1-haibo.chen@nxp.com> X-ClientProxiedBy: SI2PR01CA0047.apcprd01.prod.exchangelabs.com (2603:1096:4:193::10) To DU0PR04MB9496.eurprd04.prod.outlook.com (2603:10a6:10:32d::19) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9496:EE_|DBBPR04MB7497:EE_ X-MS-Office365-Filtering-Correlation-Id: a740cd7f-229d-4f54-ab0a-08dccd49b821 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014; X-Microsoft-Antispam-Message-Info: bx8wjhMVIcmHaL5TGnDU0EihK0CigozSnvZtABMnYsWZLUFQfQ+jbF/fhqN/+3CxiwGaoD+DmtK0WvVFAnRUrougkalxGVE9tbcdWaLSkBlzV+sUdAJwEcKX26+m+C94bvHylO9YmYF3HFfiWfyAHbwb+cC1+t2+kLiK3/qWZ/E+LHE4ZYQFqkQjnJo63qo/ReMcQlkyZQvJ6rHo6GPZUKbo0hg3mO3hZPOoi46EYmvF8gXV3V7j7RMAGn6gpJzNYGQAYQ17WY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hE8HEQE/6/RfLqrbFYrQcYnUWnbl3fjL6Y2T+wso6H1IAzmS9+pW0g777VhAdMoTal9kWbeWIH6rmUBRPeNpLhSkSVMR5GIdvtw== 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)(1800799024)(366016)(52116014)(7416014)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aFKk1zFhbVPumrDshqP6Yate/Ku33Xa8xbyg8nVJeYdtugoVgXy/DMKMDhXeGBQtda3HCjcNOH/rNYDg8MgAaHhCqn1iyTkcyyV6jXNl2bLzAcucqoiwoaxvvs9fPqatOITF5gmGJZIfqJHD/czHX0A1qGiXP43zjCxL61mKixGsV6FFZfMsLF1qEyOgi34M1rRyI6UuzI/78zFFIgf0BFh2tejGTVLGTYZSQUxLo6Icv3fu/cE6OVBMefUF8b4Hal4/8mF5gijkw49v6Jtpo7A6nsZQbBKno/j6beDsOLRLPDIFOSToIjWH2JXjjbXrVhc1wglUkz81Ba+oTeZLKle5B/M53f2l5ht6hVhOlDvZBgNI9ol8BJ+dngmAzIDVy0OmYLOyzEOLGZYmj8StMT+mOr885zHRCA1XWCKEtoALLtY8OK2EuGnrpRUb/bQITOWpOj7M302zgJEdXpLZtS+XbmAUQImdtt/edfnZvOUjlM/n4vDI8z786WczgFTpLkZcEidL3nftg5xb6WC0ir20KWVxazXUrU6B7jtwzQGXdcvJs1xOuFtjy0oVibPflkSgPzXDsdKW5++cEK9KBbww4dP4CYkbQZAfi1//RBUrkGJxqMoSIGf6aQloSHBYm/T305b7CaFAoAAecPQlxf2s2++sJeo87H+PN527AxH2+UQUV6KwSBGv16bA4B0yTrfZWJMdyVHvBw4RhK0fQy29olgVZxEyHHeFGkXBXjYVgH1hY+j+gZIVA1kaIbtOhgammqRKtmcJqtzKthRc46DlN+cGIq3Seklx8YTneXfXJDL/tEQtvtE5aPx/1Wu6Fo9Cn9fMwfHvmR4X+atrahzLQyjYQOD7aQFbwHdYogM06GVd2oShOoLdulZ/GxKSUug3l6N6jdzBQWV8NV9uZiStNkQ0VNH/aECSQLqxF5myiuisvSO2+7qLQKLmzhsBS5wvH5zj2CWdnROgj2nLjRDrO0nAcn65jGA7B41OIyTN+qWWhu1sdjqLbO8JpitPo1pHQP49ehxxbnCtyof5ly5JsK40OQSGFsnKPMLKevQChRx0t6uU8BzCeWmDaeN4cXO8tvRe4rMS2SHrxVgdKmztofWNDfmNrL9lUJY3qTbtuXRavWcprx808ZUcp+6tPbwa152sVHxlBHcoKQxOIiOQirlFBfe/JasoiDBFXjC55e+Gb/d3vD1GCWfhMoUypXm0Iwbyg/wgzpyrG3mzfOw7Kfenb2tvz36sLwZEKCffCy6y/eBZsDYr/tEKX3ixPFBcs4V9jzfT7Z8Jevvl0csdAZzYMJ9dxwcmF4+xG9R27mUF1z1DfXwffS/i2YvwSwepxQ/4qe7hn7GE9qe1zlA2aWmA7sC88KH1boUQOpcHjkurg7k1ar1zRXdjUJE5trBrhs5aTum0t6huES93chWRxSr6jEFxhOeYWwnmgev9ZUFQaljV24AHuiSMyaqHwy/fIRGj4kp6arx3swXdIE9BnHs9OS6em4zTa0u7TNqD5WAUgCL4GT9pPfFdzSm/S2W+tJGoWj055fI+sh1IXTR3KOBm7803ihIIvNe86WTnJxO6gjwh0KYwWYMp1zHr X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a740cd7f-229d-4f54-ab0a-08dccd49b821 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9496.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2024 01:26:08.8296 (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: oKrBfS/99V3fL6Os8THzp/1fO3nEyCM92cgDxwkXMYcGQyFUrPGyXwcaFUEEDpKVdLK1wbYFsJ8/bgdG9kqM+w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7497 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. Signed-off-by: Haibo Chen Reviewed-by: Frank Li Acked-by: Krzysztof Kozlowski --- 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 01:26:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 13791589 Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11013046.outbound.protection.outlook.com [52.101.67.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CDC0F171AF for ; Thu, 5 Sep 2024 01:26:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.67.46 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725499578; cv=fail; b=hywMAexEY8cxi8uosQ5iHD/CBRNwkrfO/zdepZ1utNPhG7A2q3cEdR9+t3Hl4ngPZQ9X/Et0Tqpvi/6HUwwcVIkhh7FzKeLa3JsiUeS2N6caCIsFExCAkeSs6zIBF20WDyjjab4ySAx/OoLlyKKMCjMlT3LQ7p5aVX5GkcAd2lc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725499578; c=relaxed/simple; bh=COHGvEEDbkC6urCMT0IgxMy1By/x0+jktW+K7alvtiM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=akBqkKTQbF2Bnika3OoNE06zko5+Vw1Mq7t2pdTALdTk5IT9lIAl1rXHgsoV1YGwDkJK9QGmYbhQ/mT/MTRNMT2HYh+58NFqt++74LsgQvT3OTyC52mi/ox++CvkMNZL+ujL9oAtynLuzXaHQKEBFzeQ+GaabwxC2rfzV+0A79o= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=oGfgYlzm; arc=fail smtp.client-ip=52.101.67.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="oGfgYlzm" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gSX/865Hf2s5TiouRS7g07SEgaTHduT7FrHooRANZFO8h5fh3gAlCz7FQkXca2SIDNZaN4wGMyumGeaz7EjaeW08vWRRzW26pUC4tKt087vYVWiWuXfYobgv97IDRrLMw8AGMbJV3EQSbHX2kbYE0wdsdQH+iGwKI44jrb3oWtIOeoViF4K4qiN3p02TNVNgrKRF91P82ePC1yKhMyDYKjYUM57PK6GXyp49tu9+XHsLkgf3szcsLuMyXS6tW3a+X4/VQWQCX9muUJ/49SpZCJlGD3o/HQj3vFjpdQ2rPbO9sKkZhSSgLg/lbuzGansplyk1rQU3hLHA74oZFV7kkw== 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=RccuhLfgNyqF0XvjFoKCN7TbiGlqnMAnJJv5yXWPUMA=; b=Of85FJTMjy7VRZ/DnSopwP5q2mDoBZgqyEQkqDs0G4if34gApZhuvfOxYjRrsIWVZQyCpve0/uV/KvYAf7iH7Z2I8GJog+n5LFRgZbJOIst/r7azCQ+qVtujLlr8xuJthNGO59Ueeb0qJ/x8153IAs/t4lKyrs07NPhtN4HZy8nqJvP9gMoCHutPqSpmgUhDarg2Yz0PsGlL0+Je/JnR94b2vxnH9Sp6pPJMg6PIyXeDMxH7wCTAvLD42CTpeHP58JQT49u4pLpfJMDnkWsbdgTAWnMLAuDzFCe1Ey6jDFAsSrWPvnWdx5jr5cVjigO4AfKG/4Y9GSSA/P3XEAt1OA== 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=RccuhLfgNyqF0XvjFoKCN7TbiGlqnMAnJJv5yXWPUMA=; b=oGfgYlzmgPz3YuG68E/KNSCDZ5R/zrYS7Ca4kd2ha0zms0vrv/b6cIFta4opigDP9CpR8A2c25esB+HnhxNluE5ZfeZEpwAPuahO7Pu18GbmPdhyWDWayGg4PW4aJ60ejrYXPZaOYPLeI/bctD2BeVqkd5acSAj9SJWyYamDU4IYBRPmjxRC0tsX/4K+HkIOg3doOZ8ZqbOCSCSHCQg2nPIjXBSA20h3KB2isoMFNo2sXSX/rZxnOFl1UvwV7r++GoS+P7KxVYdD1uEFceTy8f6sacp6zzIqylEbaMpG6MiHxunNGJ8+2OC04PrZ9BoZy+5zKC8CKJyGCs2GhRegyQ== 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 DU4PR04MB10339.eurprd04.prod.outlook.com (2603:10a6:10:565::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.26; Thu, 5 Sep 2024 01:26: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 01:26: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 Subject: [PATCH v2 2/3] spi: fspi: add support for imx8ulp Date: Thu, 5 Sep 2024 09:26:16 +0800 Message-Id: <20240905012617.1864997-3-haibo.chen@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240905012617.1864997-1-haibo.chen@nxp.com> References: <20240905012617.1864997-1-haibo.chen@nxp.com> X-ClientProxiedBy: SI2PR01CA0047.apcprd01.prod.exchangelabs.com (2603:1096:4:193::10) To DU0PR04MB9496.eurprd04.prod.outlook.com (2603:10a6:10:32d::19) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9496:EE_|DU4PR04MB10339:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c64a7ed-5e1e-42a2-41c3-08dccd49bb5d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: bgP0T1SDVhgnaPiW7Nbh9vO2Sq+QFUwBaaV/3gEPzw/Sg7hjpB3VUJ7+JGUDkRSIY60Bfj9w3HGFS3LVi7GbXvQuz9o8d62jOfZuqnRGUKvNxTh0TYd248H1XZaT4+yTenmflYsobRsWOliA4yaS24b3zfFX692uyYNXcYbBQvrizLfdofhHmLiyHAx54xdOM4c/AiF05j0k+gCJr6z0w9qOoORlxzwoW5yKUR1OPwH0U7FM48Ym5CabcOlZZ8tGpoeOXgWE2XhbQKOVRAhXyZtUXywbCZYpsTs+n910yEeOfk55ewyvvnwm6LA66GQBnC7cIioGcfLgZje/TblRYenO99IlMGv4f+DBN0eKwPsoSOVYGv4AXOaJAMbostla+S8GSwv/KDtRb06WX7oAz0fuvI9ogj5XJAC6J5Os09yh8dgs/J+RyAojOvNqigaaVDmfagW9lm+wyuKGRuegV6c60nV1aZZAajB+oUprVCDDtVu46Q9dOHJeqlSgQBXxeb1hP/mQpdJyO5LnMTHbCRqtZdXfznrgxYuIIOKWQseH6dDuSUGG3OZRlfpiQ8Vp1hTtmhJBL8w0neiK6BHhtn3cxlBh6rHG/TiSstRPfucxGHyA1UP0vDn7ZtOqO/aHt8TsP5nxGblc42VzUr3wp3Nuy7W+fx/GtYfHlHqkKfyNefmZ+0csRJ7hHcgDxwXxihSWF9ivSRR38vLK/q6JEcNKq2uEGmKPu2QbkjZzUJ43LZUOvJ7argJUmcwrtvNxyXrHtSvlNZhm6LWkcQXJWuu6MvzKvCmc9u1witZNqWdnhb8YjvSKCmi7PTYDYZCJs0hWkL03Tnus6xyBD7eJLxWGGNTGi1u5nQLbcjlIn0Mi9e1n09aQQPykyJ4n6a7j5DBZaXbEdbPgRLpDl2iIqohLzXw7r7JgGeLtNyHJPm/yuflbY10eH/WWJODaUJHlriGe3pawkyM2ZKeQ6kpiBn6O1oRFWdFGPZecdpwM+KSFxU0aqNn/Ul2Sbt+hWlTiC34k6MBFN+LJYUfjimnx792vcb5w+GECBFx0rF3AAMHFB7vATeS7W0Yc8StKepbts9TL3nNbe+EN6GOFNsSXpsuQwHiUd4vUkix0R746k2/FIFJdCKsaFig5byUN61uoDnQJuY7MVmhluS5pjkH8Qh6AUrzzUdWOeelOAW5JAdHLXguF77xIzrWoaGd6aFlaqHVFwfDrX8VcmqtJxmQDmbHcM7B7+31YVMhVOlxVgcdVN8IiWYzZ6xyefOZIiFA9pNmMNry3zs7RPljzolD2kb/Bjj+X5fjq6L1ZDmdB6BeGDgZmKHN8O213Amn80o0huXxZD2EzS/Qtzr0FwFQF/rlp9uu0bb/8pgN0Dpz9o2jCkNIqCx1eIi8tdaTQ0EDmGTH28SSabgpQc9IkNGdYIg== 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)(1800799024)(7416014)(376014)(52116014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4FTjqY1pctc5IrfDxEH/T8yMyTzWIZHfp2o91rA9Vi4ZsR/vlcl2NhZtJ7NkyZvcMDnBpG1etds7TdEnn7YxrgrV7xTvs+Vn4WfK+r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yWF/oABv2pKV4TocPNJHfxf7RTBGXogQv8jiGPAr3ASNvRiJSfygwc8L2TcFWuLKd1oOHzf4xpt+OoBKShUEOVoMUG8uydR+VA/lCsfXNxWRvQBbAzGcDcsxRETnH61RCktyfHwhIQPON2DJFfhgG1w1LP1AE3Knye4ctTF6qkDYP+nWPxmuKpVi1tz/UEVFUtmYGA+1V5YgtDM89WDWVb+ybAmk+/g3YNyoHFd3f+oC5W4B6MZWGCcbFjVUuXUiiM/ImOY0zoscO3pvgYl4lK4q3hk/8wFQ9rvyXmQJvwmYPpzYaiOfaDacebcr7vafd0h4qqR3zbadGQpq8xhYNjvS8XsrKI7wfc5RWBIw5W0SvzGVG1P02UUKZQ55HeybjGSOSqva7iPsuv6vZEkk3WeQ8sdNRCb095FTtR7iAhQRe4By8 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c64a7ed-5e1e-42a2-41c3-08dccd49bb5d X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9496.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2024 01:26:14.2144 (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: l8TGSQNlEzplNpgO2TJOXa6gNBZRdXzitH57Hfw7wbFtrofBOiquX+HB0B238nyGp6C24S+zGLie5WJn7xsKDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10339 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. Signed-off-by: Haibo Chen --- drivers/spi/spi-nxp-fspi.c | 54 ++++++++++++++++++++++++-------------- 1 file changed, 35 insertions(+), 19 deletions(-) diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c index fd1816befcd8..64af89323802 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,16 @@ 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 */ +}; + +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 */ }; @@ -544,6 +548,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 +594,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 +882,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 +898,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 +1024,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 +1099,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 (31 or 15). + */ + 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; @@ -1289,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 01:26:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 13791590 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012054.outbound.protection.outlook.com [52.101.66.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D609171AF for ; Thu, 5 Sep 2024 01:26:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.54 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725499584; cv=fail; b=PJtCfQqN56y70lWFtB8Vt2Cfgu0g0tPLNRQHo/RUIJs5Yp7arV4/wNdSilfQzy3nHE8IWoSKxDZwGIvATAQFPK4voTbzoXu6LcH/WTs9m65NbkGdXc6Sd2+YTWOhU6FyDismMGXpUcotnMg1UqIuw9q+kbIifodd62LNw1SLOhU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725499584; c=relaxed/simple; bh=SEQuwJn8wkDmLzcjbdqFDyLAUaTL19L69U46AFcUJsg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Vl5kjU0AuVFG2qzamf0UUCt3EIO864TD2xe8Qgg+Z/TxHckWXE0YBH8K2u4I8Fz22Y4pAtfdFuomdlBk3IY8im9KpQA+UGVZcGTmFjI6FPV4Ds4FZLEuxNA0xN9X50vH8ubrFxQSi9hhdr+Grzd+5ph5jfd31lp9Ssv+VlJMsyM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=kLNppWWR; arc=fail smtp.client-ip=52.101.66.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="kLNppWWR" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=t1uaZsgsBsI1TZfAwLeZBvo1GNWydcZwx7qZ1JD5U114+j6i9tmT4vtTjV73wwIsOio5y6m14PWIv6qp9F0+sM26nKiQvvWhdkekS0fD2/pkrKcTkElztU8xg4hnyIEW//uCL7NeKNOAHxzxg28Hf1mdnQ3z1GZ6dwR53yIYZdOUn1wg62eXtvlb0VnO2gVd8CeSwVwngNNaEZeA9258HpEPjFduZVTwnB7FHYk2eeAobexCV6bJSsML5L1IMpLmHwduw7hrhkq8dbRo6gq8k36dgksBOt0A3bmYWHHlkDgbKgNqjqNfcB3RZmuA91IAaBOS4mXJrjgdIHSFBqaQrw== 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=Ymvq7PQ+p1dKhlinLG9w917VkG8Bpe4eeMRo9LuSZ9Y=; b=wKcWHjjri79RtbAlFUW5cQu+u/pu57ZvdJ3upG26BBjmOfB7Ctty5Jwm+Jb4luOq3g+moi0xWnST5KZAqqvfAiLEn1zavqaHUwAE0dT2qsH2t67kYAgMG0BAITGNC2rLPkhDOf4gCLrJRySFxumRKUL8eTCfHeX7wil8sUX0gIPaLPqS7fryklw/1MiHSGu/aqED+o4Tb+ryh3YThsc3T2sTCbl8GLksSygSHMqIFI9xYCUB4/6kfVOBtZ80sf5iEBEqIfj2yusDAl7nI5F9j9g4N8yBzese/YvNbCsoR7p5AG20FfxaStuvTJLKrQFp01/rlVH2M+Rlofi5H1bxhA== 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=Ymvq7PQ+p1dKhlinLG9w917VkG8Bpe4eeMRo9LuSZ9Y=; b=kLNppWWRyUrFw3WSEROy1woLkqGJUPSqJ2QxRUGZq21OAyD+NNpHKtMUrTn30b9B2K20C8Cg9qd2+FUsdcgWLJ92lhudXcEDlG9k0+v2FB9ZHO/quEBVihiVwYdREcEkcZE++rpVztTHUopRs59f2fwNz+I9ln+b+07xRTBumUF6G13ckXtY+DglzDLX+r6O7lLBEiA4I7b9uWrK87Mury9ex5kZ51fRT7zGImWZq50mPQtcXzKU1oZ8GiVJnC9fbSa/S/JHg8L/WofJeoTXnmq3ls++4+hIPubv9hwfroQAB7zrSzl0idqhPl+OqzvXWZ+LMEhfbZXhTECTfULuyg== 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 DU4PR04MB10339.eurprd04.prod.outlook.com (2603:10a6:10:565::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.26; Thu, 5 Sep 2024 01:26:19 +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 01:26:19 +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 Subject: [PATCH v2 3/3] arm64: dts: imx8ulp: correct the flexspi compatible string Date: Thu, 5 Sep 2024 09:26:17 +0800 Message-Id: <20240905012617.1864997-4-haibo.chen@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240905012617.1864997-1-haibo.chen@nxp.com> References: <20240905012617.1864997-1-haibo.chen@nxp.com> X-ClientProxiedBy: SI2PR01CA0047.apcprd01.prod.exchangelabs.com (2603:1096:4:193::10) To DU0PR04MB9496.eurprd04.prod.outlook.com (2603:10a6:10:32d::19) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9496:EE_|DU4PR04MB10339:EE_ X-MS-Office365-Filtering-Correlation-Id: e2e20796-9d4d-4c54-5592-08dccd49be92 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: 6945G2gJ/khF9ZbfPuMJ+5ljldUYK3zWpHWRtgGZkMmZ5/KYQI72I4JaTxe0+dm2+hF7X6KQw5mrpdoLmscLWyzr4ohAet+0+WgRUXZN+naH6QEuNUoF0PesJIZox+zGhv+Ui1dCN12AGKex5o6qv1wisZ2ODZITuDMOyO7LK0C5HC+Bt5HmzZ3YTg1yMj412ACVdeZwssdD4ySvqKfv1vwnJY89ykEBda3LCQm1Jzgs6DVPa/37UXhQsoM14YtK5dtKxa07+tSKgv6v1Z+A4LesHhN0ZUVpJ2q5S3XnGn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/Fd3RFxmoN6Judz6JZ+LVAK4JhaGhRJQbBfEaiSat/lHaZl4OZA== 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)(1800799024)(7416014)(376014)(52116014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: KWu0KDSYd2YCQ9gTCItyA3KlXPVgcEfnzZekV/bs7S5KSs2PcZ/YKKgdI0ks1JgwCSyGp0C1Ah1dX7O7tgzPMYzB75herhjEGM6h9iylOX+FE4Sv+nvEOcBfqDKVXMzhRANSwtQKGmmy7lthXvkieedqH/hi9jLK5bFW7cTBAj3zTLhAFEYJ2v8tEFKQWMC5RVRwLgbom3gasRg0Wm19KYd8Dhyo4AbBoRHmleFmE2BAH2MWG948SoV2LgYKZLpPF8KaxHLNkHNcHorZOtJvIXki28vqP/8fdGN7S2a1I/MDSh9LjT0QaOMkNfeOrOkeyIlXIjF2uNi64GiX2BPP1bbwv6v46FjW+SrOnQ+nq/2qh0XpGwR7aeYrBDf10YFGRrwPDoR6CH7y9bLVye3hmiHi6pYX9pmQ7Us+jTxoySHtpaScrE4UUasJNCwSj5FXOYqtZ3W+DEGaK5sGeiZP2apDnR1a5pVAG0Lu36/istZ9Dp3tfhoBMVt+uQ+eRTI0bABt2OPKvv8Mnflh67nokM5Is1YhYazC68wE3hQtHKEnvPDrrxDyTE3tDPY6TOqvfoUUkO1Zq/XTEba6sItkgMhbFh/A9nql6twYgKqk9VBfhV4WII4+r4DSk/MkXCsZc97NIibo0t/I9F2eN8ncOhMPiE4IocGU3yzty2ffGq0YV1CXi8vEXwgDFanxL6jrr/ryXA/MUUXrt4GCxcR3MZ+h9G3gq+zDa73cYjXw62Bs/AT+VTCAGpNNrMGA+5Gg/2u/sQLASzId+ovjkUOnFvcAUTX6qKnOputkBVY4XQR6LWGKgcYMKflMWt7ABP/HRISgKa3dfvIiIwmwB+zWOHAD87s6kxypiU0ofpghcLzrVPXnmfwFrFyETp1UWGprjfB5v4nVqO16nYRX6KMG4aQNLGRcyvjzzUJRzlgEsCuQQIbeLD7YPDLMhUCLVKlgxHBEWmHE5HpS+ynXtT5EScLZhw/ttleBVIShSEVFkoj90ha7a4t/gWaC1Jc+AeDQaqoI7LGLDyFGxz3tnxkXPkI7Xox2B8V9Pu4gNOBnmth0SG/lLCmtich7Dan17vXg/4jwpZ4i4/nKRg/rp/J17+7fKK6t1DEKDDWvZD+PTpogDISHTxpl7rxdbJIZy9gcamrMa8b1DC4mYRcF/bhbmp+nRRh3QTZUe28rjRwRfdNQiIH4KUsFWQai73v9hn79+HigFo+S7j+Yna84qxmYBH+uyEqb9MumjGg4eX2PH3ndYmAbbjdotA5tJZaAfjB/+iU5OCYFttZMIkU9cw+yglUP3nEVW1D2S9TblML6O7pmvqajbSy1zHS0htXOZ8IejOLEAVV2TNVqSR/D6H3haqr+AQF3qNkgYjf5VgqHHjCzaCaeKRBjHcQ+FPHfDYpmPcnFQnTYYcX/SCevaikI9x98SeqBD887tMnnZfgV/GYuraDtqTkN8SDJwMZlmCQJ8I0d25P58bF57HEGcYboGRroqj6wBvDi5MzMcNjGW+K+5wK/h6iKMJk/8lFfQb1He3W0cqrjcwj34yJ8/al07JtBn0UxtOnTiXxJz2X1JyvAJ6miggEmdbJiJDLXrx8A X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e2e20796-9d4d-4c54-5592-08dccd49be92 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9496.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2024 01:26:19.5223 (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: AilwsKwm9eSdwy2RYDax1oQsWsx3rG0fgLGRFioJLV8sgSD8NzfXLvGe93ijFMM6NQN7o5xJC3kWO2zfK8I3Kg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10339 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 ]------------ 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>;