Message ID | 20210812150135.4005-8-zhengxunli.mxic@gmail.com |
---|---|
State | Not Applicable |
Delegated to: | Ambarus Tudor |
Headers | show
Return-Path: <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: 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=YUDJ9E+I; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=tpS4/s0A; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gld6d16V4z9sPf for <incoming@patchwork.ozlabs.org>; Thu, 12 Aug 2021 17:07:21 +1000 (AEST) 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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id: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=rue4LCvZOfT31cDq0fQoz5J36Sbfu62VRgbJ8KGX3lc=; b=YUDJ9E+I2Z0X7D fq4+KBNpkrcn0M1Kmh96hH5Wg0Qh8ycPgn9osSZ/BIwjsNkWVHoLhk3zCMNdQ2TEWgzVkbPEMyN6A Q6L0xL4roEl1qdW0cLQ3ugLFwj/9+e8tiEqW4Ii4xbLIDgR7iErmc87F+BYlqZmav0G6S4CfDYue/ VSSAe3nJNRY59oyL2hK9GS/Jl0taCFNq2+nYPt3K51xMGotjQ9BBsfyNnmase79r4JpFeZsBJkmGo Z8DPXio4FqJeolFf5XXxgFqj7cFqlT1E8rZ7rpxudJRipjypee0Rc4azSHDjQZ49O4Dn2cYbhGzCc TlnBpoPotqdaAJ5qms6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4nV-008qWP-IB; Thu, 12 Aug 2021 07:06:37 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE4kB-008pX5-9k for linux-mtd@lists.infradead.org; Thu, 12 Aug 2021 07:03:12 +0000 Received: by mail-pl1-x636.google.com with SMTP id l11so6080498plk.6 for <linux-mtd@lists.infradead.org>; Thu, 12 Aug 2021 00:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=e0OL+Y9dD0HrzJnF0rwEi+Zyd3FbI/NxZD56uSAW3Fg=; b=tpS4/s0AaeWSeMsNqUODSfCixK8Wq9pfkqCYL2NPNrhrqcA9jB3T8RWPpcdRx2YsZb tK8ftEfHDD19WaWwM2UpXb+PHXy+6+9ZFomGpVTEKvG4jqqczDEjqXfXahHlaGQ8vT1Y xG16EzM7RGsOFFNpdQF7WLJNOkLVvIrMDAgDLyRXb5ZH11I7AteEh8WBDQLnCHht6mjx bOuzg2sj4URE0iKUbH9AsHijoj1B1UOSGyzx8dQIIMOMC6asEabE7YukW2o1lUZmK6zB O1U1yS6lnas2MXVLZN/sNzuszSv4joc3DWb7Y1LKs1eqWS/tbKg7+6gXJgtNw/Y4Y70j STrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=e0OL+Y9dD0HrzJnF0rwEi+Zyd3FbI/NxZD56uSAW3Fg=; b=AEOXPVPYhXQ3/MMmLHM6mLVtaDAhQGXlijWuq89jCRChWqh4APUqpF788xfXgt6TPC ZufagpZ44Avsrnel4SJANpb7nt7kx3oGDePwK7YwYO5l80cUoIXHXEDIDrgkwhv4jPHn yqWouic8mQfGhtC4Qtf+dS2n2kTsch1VX+f0vs1KegTYQ95qaWQ83s/UufHTvdtOeyHl DkRZcwZLgN65pecz2IE7YLfKIKeJ//WigO3RACQmYjHJtMFlY2i+gV4h/0PZ8icVDg5w e1v4cx4rK4HJdFkLE2LdFXGw7LCPNXxS/UFGZ5COb5cbrHTM69EiZhrwzBEUflSI0zmR neag== X-Gm-Message-State: AOAM531LJpU0R+QwiXdJUny44Gsc2x64FTjU4pWc40gX6Z7KLks/nayr QrFllt9vxNPqIhNCIXrFBsk= X-Google-Smtp-Source: ABdhPJy1PwinnOXbioH/RBrVnVoMQ9LW8Ukeck3fhdK1tqotFubsBYpAocitacq8z51Dob4v5aOixQ== X-Received: by 2002:a63:5505:: with SMTP id j5mr2613618pgb.250.1628751790324; Thu, 12 Aug 2021 00:03:10 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id o127sm1946962pfb.48.2021.08.12.00.03.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 00:03:09 -0700 (PDT) From: Zhengxun <zhengxunli.mxic@gmail.com> To: tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, vigneshr@ti.com, miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Cc: zhengxunli@mxic.com.tw, Zhengxun <zhengxunli.mxic@gmail.com> Subject: [PATCH v6 07/15] mtd: spi-nor: macronix: Add support for mx66uw1g45g Date: Thu, 12 Aug 2021 15:01:27 +0000 Message-Id: <20210812150135.4005-8-zhengxunli.mxic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> References: <20210812150135.4005-1-zhengxunli.mxic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_000311_376609_7D9C2434 X-CRM114-Status: GOOD ( 11.29 ) X-Spam-Score: -0.2 (/) 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: Add support for mx66uw1g45g spi-nor chips. Signed-off-by: Zhengxun --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c2813b zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/sp [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:636 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [zhengxunli.mxic[at]gmail.com] 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -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 X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
Add octal DTR support for Macronix flash
|
expand
|
diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index d9ffba32dde1..0f257b8b0bec 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -197,6 +197,11 @@ static const struct flash_info macronix_parts[] = { SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | SPI_NOR_4B_OPCODES) .fixups = &octaflash_fixups }, + { "mx66uw1g45g", INFO(0xc2813b, 0, 32 * 1024, 4096, + SECT_4K | SPI_NOR_PARSE_SFDP | + SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP | + SPI_NOR_4B_OPCODES) + .fixups = &octaflash_fixups }, }; static void macronix_default_init(struct spi_nor *nor)
Add support for mx66uw1g45g spi-nor chips. Signed-off-by: Zhengxun <zhengxunli.mxic@gmail.com> --- zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id c2813b zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer macronix zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/partname mx66uw1g45g zynq> cat /sys/bus/spi/devices/spi0.0/spi-nor/sfdp > mx66uw1g45g zynq> hexdump mx66uw1g45g 0000000 4653 5044 0108 fd04 0700 1401 0040 ff00 0000010 0187 1c01 0090 ff00 000a 0801 0100 ff00 0000020 0005 0501 0120 ff00 0084 0201 0134 ff00 0000030 0000 0000 0000 0000 ffff ffff ffff ffff 0000040 20e5 ff8a ffff 3fff ff00 ff00 ff00 ff00 0000050 ffee ffff ffff ff00 ffff ff00 200c d810 0000060 ff00 ff00 798b 0001 128f e200 04cc 4667 0000070 b030 b030 bdf4 5cd5 0000 ff00 1010 2000 0000080 0000 0000 0000 a37c 0048 0000 0000 8888 0000090 0000 0000 0000 4000 d10f f3ff d10f f3ff 00000a0 0500 9000 0500 b100 2b00 9500 2b00 9600 00000b0 7172 b803 7172 b803 0000 0000 a390 8218 00000c0 c000 9669 0000 0000 0000 0000 7172 9800 00000d0 7172 b800 7172 9900 0000 0000 7172 9800 00000e0 7172 f800 7172 9900 7172 f900 0000 0000 00000f0 0000 0000 1501 d001 7172 d806 0000 5086 0000100 0000 0106 0000 0000 0002 0301 0200 0000 0000110 0000 0106 0000 0000 0000 0672 0200 0000 0000120 ee00 69c0 7272 7171 d800 f6f7 0a00 0000 0000130 4514 8098 0643 000f dc21 ffff 000013c drivers/mtd/spi-nor/macronix.c | 5 +++++ 1 file changed, 5 insertions(+)