Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1101427rwb; Wed, 9 Nov 2022 12:54:28 -0800 (PST) X-Google-Smtp-Source: AMsMyM68M5S0BIWGFCGKtaYRw3LFGOXf3STJ3vCz3EvMtU3gbZYx2iTK4XuWpKg4NmZ8md/6VUWQ X-Received: by 2002:a17:903:1211:b0:178:a692:b1e3 with SMTP id l17-20020a170903121100b00178a692b1e3mr64729635plh.48.1668027268685; Wed, 09 Nov 2022 12:54:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668027268; cv=none; d=google.com; s=arc-20160816; b=nvm2fBhNidhHnTLDXqFk7FZQ7nKTUL4ArjB90U138nhjzX2uLCHYHLr1C6RowX2tm+ DPl/xDSdcfX5VLTS7EEM49f5tBgDUkihbAYDDkC9wHOPmynTrMSxMoAX61XSNbYmptb9 DIlSLGL+p6HfgvHFqqHoFcNBTjIt8V6RUH6s146ldxWkx/78VSBN1ZQg6B6VMA+7r+n4 JkZgTSP5c1D3DRunDWJROxB4OMRXrQnHZ+r1uNjWXnMe8pZ5XbLMjxezXDOgcBcNDs1s elQDo2cla9PPbFYq65CeRFpGL++4faj5NvRtvtkAFJ5riXOj/3hgv/77YMsPGOo/ccG/ OqEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ntyf2SqV3Ptk4mEe1bu2Gewc1u6/sGCGvZ/+S2hlQDQ=; b=UJloFrOgZxpno9S0lV5u0LdsSw+srz5Y357ADx2qokIhAlxkFE44Dx2sC6ub1Qwrky e6HCoEn8oLSy3v5G1yXSF3tLM+5kU8UCDC2MFIxGJY0BQv3hw/qTb2T/bvnsHPtPpgEB 076Bs3dMFQZ1uEG6CGc44xew2vF60X3jlwcTY1VfPQbZemg726yCXzW7mu8Nwh2i89ft qr33lROE4fP+avr7GoMTmEmHGrYprtWhEhD56gOaUJRQDrhqTgBWjem7DFB/f+EMn6he 3OGwh3T+0T34R5KLErO1nqEsI4e9lepQ62LDyjelC3wYEhthG3lBj+OYDpLaoY5brsE+ Ageg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YTvRSomo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds9-20020a056a004ac900b0053836f22d73si16394333pfb.214.2022.11.09.12.54.17; Wed, 09 Nov 2022 12:54:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YTvRSomo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231215AbiKIUYG (ORCPT + 92 others); Wed, 9 Nov 2022 15:24:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231169AbiKIUYE (ORCPT ); Wed, 9 Nov 2022 15:24:04 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0212DBC27 for ; Wed, 9 Nov 2022 12:24:04 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A7E32B8200A for ; Wed, 9 Nov 2022 20:24:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 770BBC433C1; Wed, 9 Nov 2022 20:24:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668025441; bh=7+5jyTKDsBSnzUCypgmhEzafnQWwO3MDHgaXspdMOVI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YTvRSomozFkiUg/FfR3yII1xY8PkR+w5h0C/UzmWX0Itx4wzX7VptefOqXmMGxhuP MLJcDXaJXSOVudCNuNYZLGjRZN8AzVQ465SU3fu3UfOoo7lX3vbjLPPQPCxLHY2SVI MDQ/q4RNeM7fhlwIOJ5HjoN+Q2ipG0WlrtKMpfMePmp4kFbj7EdPipxB3q1saktGFX 1NVQ7oK3PxBPht7A8b/ipFkNUvUK/hJTW38VKoz2V+Vhpc7OjD5pckLOue2tng3hUG Xg/RTX8xz5yGtuD4kc9AgisLEzwowboi0BftHtgGCAF8IHzvEvXsHAVjbkLHdyLz1x MpcU0Bf7dqq/g== From: Dinh Nguyen To: linux-mtd@lists.infradead.org Cc: dinguyen@kernel.org, tudor.ambarus@microchip.com, pratyush@kernel.org, michael@walle.cc, linux-kernel@vger.kernel.org, Niravkumar L Rabara Subject: [PATCH] mtd: spi-nor: macronix: Add support for mx66u1g45g Date: Wed, 9 Nov 2022 14:23:48 -0600 Message-Id: <20221109202348.93666-2-dinguyen@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221109202348.93666-1-dinguyen@kernel.org> References: <20221109202348.93666-1-dinguyen@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The MX66U1G45G is the smaller sibling (128MB) of the MX66U2G45G (256MB) that is already supported. Tested on Intel N5X socdk board, - random data write, erase, read - verified erase operations - random data write, read and compare - verified write/read operations Signed-off-by: Niravkumar L Rabara Signed-off-by: Dinh Nguyen --- drivers/mtd/spi-nor/macronix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index d81a4cb2812b..46ba898f3dd0 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -97,6 +97,10 @@ static const struct flash_info macronix_nor_parts[] = { SPI_NOR_QUAD_READ) }, { "mx66l1g55g", INFO(0xc2261b, 0, 64 * 1024, 2048) NO_SFDP_FLAGS(SPI_NOR_QUAD_READ) }, + { "mx66u1g45g", INFO(0xc2253b, 0, 64 * 1024, 2048) + PARSE_SFDP, + FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) + FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, { "mx66u2g45g", INFO(0xc2253c, 0, 64 * 1024, 4096) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, -- 2.25.1