From patchwork Fri Oct 20 11:32:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 1852487 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=cPuK6bWA; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=ba5uaFsR; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SBj4N09HSz23jM for ; Fri, 20 Oct 2023 22:27:48 +1100 (AEDT) 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: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:In-Reply-To:References: List-Owner; bh=Jx4ucodHpI+Dezx/0v4eZuzycF/0Q8JOUPjU08WVWZo=; b=cPuK6bWAr7tudb Q4KkJ/NNQuRxV814pFlbfHwobfC0DkRQL0T41al/fMuhWg1j4E/zvIj+rBbCTDYKVJRLL2TG+2px9 ZQOX1HnSCYtXVLSCqwELpywvTj3tiKzochW3hGkgsJCjcTHZPqwyheg41yc8MSCL6mga6V4PHuPt7 243Jk/1+mf7Qgf32Kk3rD2Z2R9GIUpPpJ6oERUSYbzmD5BIkHAP1ILko3Bq2AfDxhE5oBEKekrrGy 4nwp1hsn9tsF5khzm1/u6ZcEV9sfDmC56FzjsxdKGBlVOntOnMIigDQ/9BTahNZHKxWtJoqaiOIEu 25slKM5DixBu3YzL2r4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qtnem-0028PR-0m; Fri, 20 Oct 2023 11:27:08 +0000 Received: from mail-db8eur05on20608.outbound.protection.outlook.com ([2a01:111:f400:7e1a::608] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qtnek-0028P1-0T for linux-mtd@lists.infradead.org; Fri, 20 Oct 2023 11:27:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Iq26TNuOpYuzGASPJ5l0m/RHvSpdTg5oTwPmAOQQ9PVbJXPaQGfni4sFvO0Y+uPqoAVLAymg9zxxdH+6v7g2m9Bs7Ux7jaJbZvQWofnPhNsVPRYbrnrI4EHNxt2ndof6zmd6YOQ+pxfmCveZXujWT+wNHyCyy500jkfFVoAtTbrW6qWleIOvQnMZgpBhBsS/zN0uhrzy8zdXx+li0cX8mBQfiq/oPRScBz0GYeLfJvAL8ItzhqWEDLUAuyiTPckpLQpC61p1+BUTTqeM19VGGTZDX3EgM3GZjOA5zk0L21TjmkMhsIf6JeMQVCfkdNcKeCwNI7bU/eB+PpY1tS6zDw== 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=dHnoJCpJeHJJToBLqSi0cVCKvHXLFmb1QAC0+kxyM54=; b=nCzg8UlUzJjrXoBG/xpw+T3d92zv0Dvrbmv8D0/dHtK1MGkAVP0M3SnFep0NKCf6PQSab/dbVqYBUmzPM3AZdtYeANeI6JrH9FrQwWimxx+wq3PADvnzpBolRFGVuMMH+D2qdk7R8jDLgf/yz5GHsIM8dzE1raABpa24ZXRozoxkXZIjwFTX2IsC5KNDTRTvE7AbSTCP+w9Zjl+Wp0Uzw86GQbzyYzJsqCwtpmSNvKYHcY50RU/gZEyEPG/jWYTZaBHzNnbwRdjj6ea8EnU9FoLmpaVQxJScnMCxQFWvbpAq4wkpsvsSqUDoAJsA5InxZVijPNBbsMgb4qyo2oOPqg== 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=dHnoJCpJeHJJToBLqSi0cVCKvHXLFmb1QAC0+kxyM54=; b=ba5uaFsRNdCuvaguhy96v4TcrWA3ERWBTy90Gf/JtNTXddV828dE8eyOMpkor0KHB6C9U2fLsjP5iaOagn5n+Hr4i5VGB004kEcy0V65W8Gp/5SMCyqyQp0I+3rpCkcmMSUBTGTyCb68nMWXcKjYi3Ukp90Im1I+SYVeEi70dlg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB4010.eurprd04.prod.outlook.com (2603:10a6:5:21::30) by AS8PR04MB7624.eurprd04.prod.outlook.com (2603:10a6:20b:291::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.8; Fri, 20 Oct 2023 11:26:56 +0000 Received: from DB7PR04MB4010.eurprd04.prod.outlook.com ([fe80::e796:8366:5d4:4188]) by DB7PR04MB4010.eurprd04.prod.outlook.com ([fe80::e796:8366:5d4:4188%4]) with mapi id 15.20.6933.008; Fri, 20 Oct 2023 11:26:56 +0000 From: haibo.chen@nxp.com To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com Cc: haibo.chen@nxp.com, olivier.maignial@hotmail.fr, linux-imx@nxp.com, linux-mtd@lists.infradead.org Subject: [PATCH] mtd: spinand: winbond: Add support for W25N02KW Date: Fri, 20 Oct 2023 19:32:02 +0800 Message-Id: <20231020113202.2782891-1-haibo.chen@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI1PR02CA0005.apcprd02.prod.outlook.com (2603:1096:4:1f7::13) To DB7PR04MB4010.eurprd04.prod.outlook.com (2603:10a6:5:21::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB4010:EE_|AS8PR04MB7624:EE_ X-MS-Office365-Filtering-Correlation-Id: ca2ee159-7c0e-457d-82a9-08dbd15f7766 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eeZJVZyDElmjLqTjOJKm+1xN/U5rS6vAkflNy5E6VnfBvTj7iU/hExGxUmRQir/ar2Vkr+uY17qsyKC4mbhtG00TleGifHrT+SLcj7toeS8+N57sSY1URjXDk6FbIdu5nLGbYwZpfH0bQyWYxwv5AfWV4MrRbm3IfYAyCUfCHlbKsrVJBvYL/Da92ZoWdSTE2RwZVusA4QFIV1AN+IKWuXyS23hDrKfkKD5IEd7pmL4jWQoDheUsVvGCth7VpS4/ZEZtF3wPN9ZyaK+mIjaZKx0yzoZXLWJ3QK1dL5uTJckd9pNdxGfoom43ct6h4j978l+T7VH9W9XPts0+PDj0LjDp8ZrTPZpieWTDaf0iHPA+/JfOurNFs78nB0iPJhF76ZTYKOFUZy6vKlxieqM8POKYtInkZn/Ex5hp/O1tU95FUMsXcd+yR825aSHvUCsiL79QWGlRxMYkiENcP2v/kgEJ9kcjdakcMLNd7e3PaNRdYqmlkwuvztpfVrhxwwgckezmfQYTULAuYJTRzuxQhsRH+KUS14lbURH5t2b9WMdZDP9/ZaLrL09xktYHOEADs+TQ74ruGlTZonv2tC/kbDUM9dOaCz/b2yBoJzveiSnpD4tKx0Z4guxnNnu76KIb X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB4010.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(396003)(136003)(366004)(346002)(376002)(230922051799003)(1800799009)(186009)(451199024)(64100799003)(38350700005)(36756003)(6666004)(478600001)(6486002)(5660300002)(86362001)(38100700002)(4744005)(2906002)(83380400001)(26005)(1076003)(2616005)(316002)(52116002)(9686003)(6512007)(4326008)(66556008)(6506007)(41300700001)(66476007)(66946007)(8936002)(8676002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 8PyTAT8J5ycPARAmHH3jfwWQb9oovjDf6oicqRTyNxHwBqDIjgg80ltQcesTrJ3SbiEiwDfjbk+/C4x+rE0DhfcZm5nLhKU176BWXRBg8L5Mjl0MaulgMNoJOH3UKVJi2cW7cKMP+ru0q+u2NOjd2Pm4ZNTYYynOO52XMFb+ZyFzoYNSIow0sqyF/9VMN4DB5yGveGisFWXOh8/BAIaefwp4wYElzAcPWHo49NYa+YgS4rZ/rh8mWF0amtP0qn5unqgEbUaCt1fE93KpJfBVgIsI6/IEHnCdrOOOVlFgeoW7k5xQqXZ5NyWt3x0iRDXEYd0gjDDqmjjOje/qKrpN3Xllz6VPaJrZY/A8O1N2qR0IqPHYRnN8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ywAn3hBY7mHTBaMjcRlrbYMLlXGyjoH1FEBn4yfwJF/7/ozG8u7K7AFASearchgZFvn3JFOdwiudxclHOR18nJAbV8EDNduhZ4UoTL3CUVeNv+fh8bXShtQL9KD//+zj9oAcsELhkg2IHBKiPwKtm2x0BFmC X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ca2ee159-7c0e-457d-82a9-08dbd15f7766 X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB4010.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2023 11:26:56.1546 (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: fFVs8W9wTs5b9xXBRr5sL40moMyJIE1yTxT9vzqdsdcowgPsKwf74JD4M4rLZxhb6noNC0cnXsn1uwzslRm6bg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7624 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231020_042706_210114_B451F910 X-CRM114-Status: UNSURE ( 8.18 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.8 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Haibo Chen Add the necessary info to support W25N02KW. Signed-off-by: Haibo Chen --- drivers/mtd/nand/spi/winbond.c | 9 +++++++++ 1 file changed, 9 insertions(+) Content analysis details: (0.8 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 1.0 FORGED_SPF_HELO No description available. X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Haibo Chen Add the necessary info to support W25N02KW. Signed-off-by: Haibo Chen --- drivers/mtd/nand/spi/winbond.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/mtd/nand/spi/winbond.c b/drivers/mtd/nand/spi/winbond.c index f507e3759301..5c759656c4f9 100644 --- a/drivers/mtd/nand/spi/winbond.c +++ b/drivers/mtd/nand/spi/winbond.c @@ -169,6 +169,15 @@ static const struct spinand_info winbond_spinand_table[] = { &update_cache_variants), 0, SPINAND_ECCINFO(&w25n02kv_ooblayout, w25n02kv_ecc_get_status)), + SPINAND_INFO("W25N02KW", + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xba, 0x22), + NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 1, 1, 1), + NAND_ECCREQ(8, 512), + SPINAND_INFO_OP_VARIANTS(&read_cache_variants, + &write_cache_variants, + &update_cache_variants), + 0, + SPINAND_ECCINFO(&w25n02kv_ooblayout, w25n02kv_ecc_get_status)), }; static int winbond_spinand_init(struct spinand_device *spinand)