Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3437595pxb; Mon, 24 Jan 2022 09:31:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJy05fKWYAQ2v8MU1qBQ7BOCWR2P8ITf9FkTUAaTyFZbpfaRa+LeJSZu7dL56NfLjmtyv58F X-Received: by 2002:a17:90a:4a98:: with SMTP id f24mr2868774pjh.189.1643045494767; Mon, 24 Jan 2022 09:31:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643045494; cv=none; d=google.com; s=arc-20160816; b=zpu78Y+Z1vFFSpNZP09Po7o+g6kwH+tcEIHE/mqps5xsy7gJNAzq1QzH/slVxSsBkX ZrN+DsAsPN4Wmjy8t0w9IEk/Y9viBbHd8phqZ/yqcmkwXqAFNLCWNjN+pnPIz0GUF+QA sHDjy462WvuTsbqO8jRo+a9LuiHOzzwvR2oAB6aoUzkV0k95UTxiCwPnsm2sG5N3UYm9 77YQRobt30CRlVbSoFNpr+3D75n4x1JMMJM0ZG7d5PAXfstSXb5ZK1DJtBSMNEjfHx2o R+plFZ16UDdZ3hqC7RT6ZlAaC7cS5foa8K3qGWvTjgQczXCGPKXWjq3w0NDFB1Q298UC btaA== 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 :message-id:date:subject:cc:to:from; bh=ecLMCdQZdGfrk+d0A+zqQz6QLYNwt8YvYxvsunfvSQY=; b=rcinCh++Z6pjn004G0Azla5APBT3doz5p5hSFxlekmm2TBNLQFWxFWuM+RPBTWZGF2 FEIj7lexg1sw+FSKS+7Wranq2eVkIAxDdv8pDPz2RUnUwWH/yHgqNaLs8HzxGAoahklY 8k4czhipHVkaLVUVAxezBfT32b7FO2ON9KF51KcQvbS7oZbejBzxWNTWPvPyqBm91B6N 4sY6RChQuQmvUgefu4gjcZznHBt9rLS/YfAqLOwOLGOETtp13b1fBxTKrn5DkGzRTN7R TU09zp5sZ6g0MC2/x2L2I5xHFP6xvzNFMONYa8HNgbhWciVnxeCbhPaAfRQAl0/lpkks yoxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i71si2456879pge.194.2022.01.24.09.31.22; Mon, 24 Jan 2022 09:31:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235759AbiAXHFI (ORCPT + 99 others); Mon, 24 Jan 2022 02:05:08 -0500 Received: from [58.34.33.2] ([58.34.33.2]:26524 "EHLO MAIL-SVR" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229776AbiAXHFG (ORCPT ); Mon, 24 Jan 2022 02:05:06 -0500 X-Greylist: delayed 3724 seconds by postgrey-1.27 at vger.kernel.org; Mon, 24 Jan 2022 02:05:05 EST Received: from ubuntu.localdomain (Unknown [192.168.110.22]) by MAIL-SVR with ESMTPA ; Mon, 24 Jan 2022 14:02:03 +0800 From: Ley Foon Tan To: Tudor Ambarus , Pratyush Yadav Cc: Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Ley Foon Tan Subject: [PATCH] mtd: spi-nor: macronix: Add support for mx66u1g45g Date: Mon, 24 Jan 2022 14:02:25 +0800 Message-Id: <20220124060225.149007-1-leyfoon.tan@linux.starfivetech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Macronix mx66u1g45g [1] is a 1.8V, 1Gbit (128MB) flash device that supports x1, x2, or x4 operation. The mx66u1g45g is the smaller sibling of the mx66u2g45g that is already supported. Tested on StarFive Dubhe hardware on FPGA. Validated by erase and read back, write and read back. [1] https://www.macronix.com/Lists/Datasheet/Attachments/7877/MX66U1G45G,%201.8V,%201Gb,%20v1.4.pdf Signed-off-by: Ley Foon Tan --- drivers/mtd/spi-nor/macronix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 97dba1ae7fb1..79ee808c5442 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -97,6 +97,9 @@ static const struct flash_info macronix_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) + NO_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