Received: by 2002:ab2:604e:0:b0:1f4:60f3:cb4a with SMTP id a14csp19550lqm; Fri, 5 Apr 2024 07:43:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUaaout3NtjlK8o5tDhhSxhhnizMy7kmOrn48pu4faSKZxU4vTJKIkX+y+m0KsCgsw+OAQFZEg/KrRgPvpESwgXUGu60eUlygEEvvubsw== X-Google-Smtp-Source: AGHT+IE5QVnJvn6kbdcCYBWVnkCg5uFVTlB5AE0y95T65UNbpciZZHbd6DyVJs0pk/bCaskti4n7 X-Received: by 2002:a05:6a20:9585:b0:1a7:479b:846b with SMTP id iu5-20020a056a20958500b001a7479b846bmr1081233pzb.26.1712328225983; Fri, 05 Apr 2024 07:43:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712328225; cv=pass; d=google.com; s=arc-20160816; b=uPziDXGkmOXppkNFQ0iVdB/yV3awI8F1pgXQ9lgcQiPWQNSXuu4BqJW0ZtmI1VlbTU 0jh7NXrY4ChKPzuj9U4QqkahtGDBP3RuZQOnKERyb77OA15DrTdrWnTQBCFwl0iXqTXC qezliumTCzPXA6yBsRBef23/+HxUNl6gwjtnqgCKnU87skRoAjrS2zy5GB86OLZ5br7C hBrLYmylGrWoWilnySeU+8x8hy/vK7r+07iw+kkvcHesBSGZJVTul8VWKsj0W5IbtgdY fYtU7/5C7LvLJC7jyPctstuMyLId3ONlnC2iXcoS7xU8iCucKS810OgF5QYLbBk8NWvg hZ8A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to :references:subject:to:from:cc:message-id:date:dkim-signature; bh=v/bwcQKSZSmlXtzVNcNqLiZvg8a0hvtza9gMkYj4YSY=; fh=LZLfc/xG5zfG6Iic6xwvi63Ow5UdimPjkF1twy+pliQ=; b=bqu6bi7Cb3SeQAE3rh+bpVPzbw05JR4DBvkryLAygbogWrcrjbppKzWUwp1zOX6Ysl zbsaacpsmN8dnpTyo6GYfMILv42WLVV21hLhxU2CTXcfzUTLZk6xmJPtdTE88KXK/u0+ XDjz8j6ssYbW275dxQPKWzHh+0yvd/Bs8bBpOEkYEOzhraVEEyxIphH7HVRih2D8c1Qv ZJ/kvhv/3AK7DGCjaKcakST/1t0+W/aRh5gOsZi274Sle9UOgaP7ZNlnXPzPyMyQoxUb CqNCInyvjXh8UpSZzqI3JtLfdyEcyRqo7wOHT+SQElU29vLiML4jiRhH+B8cRxT0SLVf 750g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ceKEAO9U; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133177-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e5-20020a63e005000000b005ce05e5d57bsi1488616pgh.574.2024.04.05.07.43.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 07:43:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ceKEAO9U; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133177-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 87360B2234A for ; Fri, 5 Apr 2024 14:41:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 967DC16F28E; Fri, 5 Apr 2024 14:41:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ceKEAO9U" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B93E516EBEF for ; Fri, 5 Apr 2024 14:41:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712328093; cv=none; b=Nx++qFaPdp6GCvbsWs2lC2/L5VoMnusELQ6XTW+DMcKX7rv38LxaQSavT3RXMpujOfYQr0UaobTK1LHrZk3jnefaF2E42MBqKQWWFRUBfpya9fWvem96ZwiSIPCoL3PUtFCdHVeWjb7498hLd8KEl7j9LfMMlSMOEeSKDoo24Dg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712328093; c=relaxed/simple; bh=Btz/Hmez86EgZIrlgPrZQhuTuSmdGF/ahACcmo7T4Mg=; h=Content-Type:Date:Message-Id:Cc:From:To:Subject:References: In-Reply-To; b=HDzqi1bYyTI60m2MK3IVT/LIhEy0G6K7eFQn6ckxmuQszaG2E4bic/d7gVgkNgzWMbsj5QlkL3N5n+bnVNcOVbc9Gw6NlXf1kKR7M4YZhtaVd7Gw6oHdVXqqSuiK+RxH/XlRN2zQr5TfWHhQq0w63F/8L9ozOKUvD/yduWHWvMY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ceKEAO9U; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0203CC433F1; Fri, 5 Apr 2024 14:41:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712328093; bh=Btz/Hmez86EgZIrlgPrZQhuTuSmdGF/ahACcmo7T4Mg=; h=Date:Cc:From:To:Subject:References:In-Reply-To:From; b=ceKEAO9UgifeYaKFh885NRTA4DS7/FeFKKR9QT7dkK3CHRKwAa217pcHGGBK1wM5B PWe4e1byFUEtobZUDsRGGIZ7eyXWhFGJuvEh3aFxafYxb/A8JrKqq5vWt49qQ1plw7 l6SNs8m/5FcsN4oVBqULt8Z1F2+/v4gDk83WsOFH4Q27thtKChR5qSiCMdZvorsy4x AND6dENTJMwSssXppAlY1MIp6VKYAwYz6fX0Nbgrk2soTM9T2hDW+EzZpvZZvomjh4 6EShp2Nk6PmavmEDN0f7ey5HV9Zankjufonefl/0S7JnmInABpjRIVKuwKblw97YZK 7rbEPHrqJhpZQ== Content-Type: multipart/signed; boundary=acb6ba1a78e0ad4c2fe8ee2d551c5ffa69006074ac6e66ab85279d8ddadb; micalg=pgp-sha384; protocol="application/pgp-signature" Date: Fri, 05 Apr 2024 16:41:29 +0200 Message-Id: Cc: , From: "Michael Walle" To: "Flavio Suligoi" , "Tudor Ambarus" , "Pratyush Yadav" , "Miquel Raynal" , "Richard Weinberger" , "Vignesh Raghavendra" Subject: Re: [PATCH 1/1] mtd: spi-nor: everspin: add em004lxb entry X-Mailer: aerc 0.16.0 References: <20240405100104.480779-1-f.suligoi@asem.it> <20240405100104.480779-2-f.suligoi@asem.it> In-Reply-To: <20240405100104.480779-2-f.suligoi@asem.it> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: --acb6ba1a78e0ad4c2fe8ee2d551c5ffa69006074ac6e66ab85279d8ddadb Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Hi Flavio, On Fri Apr 5, 2024 at 12:01 PM CEST, Flavio Suligoi wrote: > Add the Everspin EM0004LXB 4Mb (512KB) Industrial STT-MRAM Persistent > Memory. > This device is JEDEC compatible (JESD251 and JESD251-1), but it is not > able to provide SFDP information. Did you try the at25 driver if it will fit your usecase? Judging from your last response, it sounds like it will do. > > Link: https://www.everspin.com/file/158244/download > > Signed-off-by: Flavio Suligoi > --- > drivers/mtd/spi-nor/everspin.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/mtd/spi-nor/everspin.c b/drivers/mtd/spi-nor/everspi= n.c > index 5f321e24ae7d..4741930ce9a8 100644 > --- a/drivers/mtd/spi-nor/everspin.c > +++ b/drivers/mtd/spi-nor/everspin.c > @@ -31,6 +31,14 @@ static const struct flash_info everspin_nor_parts[] = =3D { > .size =3D SZ_512K, > .sector_size =3D SZ_512K, > .flags =3D SPI_NOR_NO_ERASE | SPI_NOR_NO_FR, > + }, { > + .id =3D SNOR_ID(0x6b, 0xbb, 0x13), > + .name =3D "em004lxb", > + .size =3D SZ_512K, > + .sector_size =3D SZ_512K, > + .flags =3D SPI_NOR_NO_ERASE | SPI_NOR_NO_FR | SPI_NOR_HAS_LOCK | Will it also work without SPI_NOR_NO_ERASE? Also, the flash supports fast read, so drop NO_FR. Also, please have a look at [1] for the testing requirements. Thanks. -michael > + SPI_NOR_HAS_TB | SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6, > + .no_sfdp_flags =3D SPI_NOR_SKIP_SFDP, > } > }; > =20 [1] https://docs.kernel.org/driver-api/mtd/spi-nor.html --acb6ba1a78e0ad4c2fe8ee2d551c5ffa69006074ac6e66ab85279d8ddadb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iKgEABMJADAWIQTIVZIcOo5wfU/AngkSJzzuPgIf+AUCZhANmRIcbXdhbGxlQGtl cm5lbC5vcmcACgkQEic87j4CH/hh6wF/W6ehEKW1KipXS15k6n/JOHz5SNhKHN3B vpilSYvkfW+/ZLMZBgGjNTKnOFlePmnOAYCVhLAxPiDYQ1p8FHwGOLNFEjYLw/Lu GRDEhq8JnOuyKnFJMv9UO0OaGygMib3W9Xg= =bbaR -----END PGP SIGNATURE----- --acb6ba1a78e0ad4c2fe8ee2d551c5ffa69006074ac6e66ab85279d8ddadb--