Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1273006pxv; Fri, 23 Jul 2021 04:29:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWmnCcIBYdSToVAwdfC3/DbgueKq6r3QocFHBYhUn/q95yL5wUlJAwnaeG2UIwgsSfclhU X-Received: by 2002:a02:380b:: with SMTP id b11mr3758492jaa.83.1627039751536; Fri, 23 Jul 2021 04:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627039751; cv=none; d=google.com; s=arc-20160816; b=JWIw7C9WRX4QVtSBJcX2Sw0jgIkp0SbXzf57qHps8FRsRx8u1uaVBQ67WGbMqtN8sD EpPQHIbsR/T3NHPjJQ1pSuKZWPWATzImyak3xHjpK7P+VqW+OKZfgJJIXMfHMVJVeK7T jdcjlHdECx2CNtLMfO+9+oHywod+jbR/QGv5kS09/jIMoPIKznZeekA4ny7llrL1phSu j7Zo9MEvIHIPGeNw/v0wvFBRpYcWVjm3aGJVNZi2ViSTG2K7mMatZEVSrjIhi17NPZd0 681cNe96777LBGraMt1V6A9cfo8pD/SDqFN03lyZFM4GGIrH/p51q/Tl6pEQYljGsGn/ nzRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=dD4m+5jvnpLz3g9QjfJTZRKHJTBtcnmMU1A7kvKDBLY=; b=Y3thG5PiS6z9Ks+WjO7u6ZZdHb7D+ckarRysGOZQAv8aJwKDQazIQKfvGm2poyY0sz Htc5m21ndlou021YhRT3F5Orn7Yuk4gajxs7QsPzCLuXcPHGyCGW/D8VA48jrhHPgZLY 18s+KTndtIu6ueLWZWRB3SPvr5JB1abLn9piCkMkbCn1bpjAQt019ZWXBl31SASid1CU Ns3wv63HajMtPmIqsLT/8JMfjNOgOENEGphgS3E1rbEGdq4ys+jS7qAJiA/3UD9n0OIv bRNiCRGw+ErGlrnIk46jY7MvoQO1NdVPr6EmZrXW4CDkPUT5PguA1SFI4Krmsyif+QVH ystA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=VFIv+9oX; dkim=pass header.i=@tq-group.com header.s=key1 header.b=S05bLAhT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n21si25224313jaj.97.2021.07.23.04.28.59; Fri, 23 Jul 2021 04:29:11 -0700 (PDT) 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; dkim=pass header.i=@tq-group.com header.s=key1 header.b=VFIv+9oX; dkim=pass header.i=@tq-group.com header.s=key1 header.b=S05bLAhT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234353AbhGWKrj (ORCPT + 99 others); Fri, 23 Jul 2021 06:47:39 -0400 Received: from mx1.tq-group.com ([93.104.207.81]:16149 "EHLO mx1.tq-group.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232129AbhGWKrh (ORCPT ); Fri, 23 Jul 2021 06:47:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1627039691; x=1658575691; h=from:to:cc:subject:date:message-id; bh=dD4m+5jvnpLz3g9QjfJTZRKHJTBtcnmMU1A7kvKDBLY=; b=VFIv+9oXQnKMF2XUs+hlgiWNGTjrZfLjMxmlmhljJ7MAD/+GmtH0K5KA HhGWJWJ2lTtooDtihZWEo4NK/ucTwhcxi7zpG6v8ouD5BO3bsdbi5VgEI s1BgiwHLVQUueuJ6xkI9JNTQkYzdsH4RpcoumC714GI8Xfd07GZ16z15B 5bVbN8YxYOW6g+t7vI/0GDFwTdP/tvE6A74VPN7KQgYJwKYLlCfIJYngP Wj3uRqe9i7e8oeqdyI0dsEADTPIGKzT9/2gNkTjmpR/E1Zl5XXGfJGiKv /8s8DC5dkuA1qh16Dt4lu/UvPoOjfFAPNQcFlLtnisf+3ZFY50V5Xaae/ Q==; X-IronPort-AV: E=Sophos;i="5.84,263,1620684000"; d="scan'208";a="18612751" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 23 Jul 2021 13:28:09 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Fri, 23 Jul 2021 13:28:09 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Fri, 23 Jul 2021 13:28:09 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1627039689; x=1658575689; h=from:to:cc:subject:date:message-id; bh=dD4m+5jvnpLz3g9QjfJTZRKHJTBtcnmMU1A7kvKDBLY=; b=S05bLAhTE9aoIg4LVyrkgqzmo+gN345ba6bBlWbUDT6o6saGV8LCryL5 1IE0ixdtbca5yUD82OR31H5uCWC9ewZf52WSIb+AucZTuJ2PzXTD0hn5m LfUcUZ/sHC2YzDDT0DZLEA4eE5JA/0O4PDxg1uumOQ/6Lz/zEZccusAmK D28yRsbcn6WQVhQEk8+N5Vr/b8BM+6PtHNKMB2d3bL+eotBax18WWxnkp zudYD1AZ1lpEq6/LlZH1xaLSkuxqUF36+NI1BbeWYYTikjdA55m8X+WoZ yRcrbR3iphe/C0a0mjv88UUIKSfii7apet9rXa3vNps0bIf7zzHVrjzAj g==; X-IronPort-AV: E=Sophos;i="5.84,263,1620684000"; d="scan'208";a="18612750" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 23 Jul 2021 13:28:09 +0200 Received: from schifferm-ubuntu4.tq-net.de (schifferm-ubuntu4.tq-net.de [10.121.48.12]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id 3FA2C280075; Fri, 23 Jul 2021 13:28:09 +0200 (CEST) From: Matthias Schiffer To: Tudor Ambarus , Michael Walle , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Matthias Schiffer Subject: [PATCH 2/2] mtd: spi-nor: micron-st: add support for mt25ql01g and mt25qu01g Date: Fri, 23 Jul 2021 13:27:48 +0200 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Split these mt25q models from the older n25q models by matching their extended IDs to allow adding support for 4byte opcodes. Signed-off-by: Matthias Schiffer --- drivers/mtd/spi-nor/micron-st.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/mtd/spi-nor/micron-st.c b/drivers/mtd/spi-nor/micron-st.c index d5baa8762c8d..2fca5de2504f 100644 --- a/drivers/mtd/spi-nor/micron-st.c +++ b/drivers/mtd/spi-nor/micron-st.c @@ -172,11 +172,17 @@ static const struct flash_info st_parts[] = { SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6) }, + { "mt25ql01g", INFO6(0x20ba21, 0x104400, 64 * 1024, 2048, + SECT_4K | USE_FSR | SPI_NOR_DUAL_READ | + SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) }, { "n25q00", INFO(0x20ba21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6 | NO_CHIP_ERASE) }, + { "mt25qu01g", INFO6(0x20bb21, 0x104400, 64 * 1024, 2048, + SECT_4K | USE_FSR | SPI_NOR_DUAL_READ | + SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) }, { "n25q00a", INFO(0x20bb21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) }, -- 2.17.1