Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5408327rwb; Tue, 1 Aug 2023 01:55:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlEBl7pOWjmbMyy9XPu2He0dixRTitZDyAN+VrT1BefTN464/cA1ORI3yhoIG1NfP2HY7ZZh X-Received: by 2002:a05:6a00:190e:b0:666:b0e7:10ea with SMTP id y14-20020a056a00190e00b00666b0e710eamr11693874pfi.31.1690880112278; Tue, 01 Aug 2023 01:55:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690880112; cv=none; d=google.com; s=arc-20160816; b=0/6TpZrTKqxNzoJo4GNdS7XL2wveJd46Wqf4Az9qZrE56l8dEIN1NdAcvlUq59y8lR zcYvX0IMp5xp8Bs8kdlU9FVRj1nO70TvCcoSQoh9xBAzQHK3hS+1BowjvSLXo/cEnEcO Vh29Jnq1hwUuIqJ4JOiX+1ePMqXHOa72HzuRNNNOA2HHUpzCvimTg3mOocbpAPNoO3/n z6bhWVp3pSGY1UIMRITvFfCTCldVLCI0EsK45eRfRC0if5CQ5xZvcDXY6E2gl5GoICkU yiHgFkWfTt8j+A0N3OLrj1r09gvxFlfUazguPUxE5x6sOsZjXZD5/CXxyDZnfDYuoxBZ FqqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:references :in-reply-to:subject:cc:to:from:date:mime-version:dkim-signature; bh=qtne1oRy95jjB378HJsXyUADvrjcstZr+O9u6YT0B9I=; fh=dUgsp+GwD/h6XU3eMWVMQfLyuByZFnE6SEx4kyybbik=; b=igfmvkuzNjlOxikn6CRhE4q6tmHaaeMmWyu1tpKssDO9BQ2/7WrtLujkLGbRoO0W/E Tzj0qUlNIbzGVI9gMKiJDXC8H4o7joCsV71n4VRxlfSF7R0Xc6u/I0FMGRwknijHbeq+ HOKtVIrWi7jeldHjO3tZoXTaYyWdo4wAa7mqMYoQaQJ/i4fKGlEzgL3Z6kvNdSlKoSoK 7Nm14IPTQhAncyqJiLUxG9IZpH3aZHq7FKbcdGGifijrYuOvXL4Xl3L2N7SxhPcIo/cn 7CS7bNXy9IjHkHONgupbHyckAq8B8TNGkro7/uI/HluhzbIQrUwtoU2HA+4WtNkua6SZ lVow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b="tbq/CepJ"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l19-20020a056a0016d300b00625559a78a2si5385529pfc.107.2023.08.01.01.55.00; Tue, 01 Aug 2023 01:55:12 -0700 (PDT) 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=@walle.cc header.s=mail2022082101 header.b="tbq/CepJ"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229843AbjHAHON (ORCPT + 99 others); Tue, 1 Aug 2023 03:14:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbjHAHOM (ORCPT ); Tue, 1 Aug 2023 03:14:12 -0400 Received: from mail.3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C73F1736 for ; Tue, 1 Aug 2023 00:14:10 -0700 (PDT) Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 898BC5D1; Tue, 1 Aug 2023 09:14:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1690874047; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qtne1oRy95jjB378HJsXyUADvrjcstZr+O9u6YT0B9I=; b=tbq/CepJ8AtWLx+C6gXI2AE4u64RKxNxntWUkBYdPp16wYrkzRRljwnGn2giTPi/AhTKHJ UQO1ydStgCDQLClUyPprXyZDNZJk1mjQJcQ2NTFdivZ/Bu63QniTaVvbRH4WR8IYIlK7m9 +jqGeJlPZrzOHkEgkbVpJLQ9D44N4B/Ysc3LL2YB/39Jy28UvaDbMIoadmdDf5T3JIWwgK E5IE7w43QIt1E6Xchkw/GojVmIT3biea9BBbgRtn4dSA+Dh2lJYbBMUlVGHfJ384F5XWBq /BZo57Aa4Kx01InrCBtnpykZ7bzDsjC9n+jSoc/YD3TToSBoFUbVlmJ4o7UU6Q== MIME-Version: 1.0 Date: Tue, 01 Aug 2023 09:14:07 +0200 From: Michael Walle To: Wadim Mueller Cc: Wadim Mueller , Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] SPI-NOR: Add support for Micron mt35x01g In-Reply-To: <20230728150810.205656-1-wadim.mueller@continental-corporation.com> References: <20230728150810.205656-1-wadim.mueller@continental-corporation.com> Message-ID: <7ac5ad977aae9ba124d81588a8521cbc@walle.cc> X-Sender: michael@walle.cc Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi, Am 2023-07-28 17:08, schrieb Wadim Mueller: > From: Wadim Mueller > > Currently only the mt35xu512aba and mt35xu02g are supported, > support for the 1G version is missing. This patch adds > the corresponding entry in the micron_parts structure. > > Verification and tests were done on a custom NXP S32G2 board with the > mt35xu01g qspi nor populated > > Signed-off-by: Wadim Mueller > --- > drivers/mtd/spi-nor/micron-st.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/mtd/spi-nor/micron-st.c > b/drivers/mtd/spi-nor/micron-st.c > index 4b919756a205..fe97583547fe 100644 > --- a/drivers/mtd/spi-nor/micron-st.c > +++ b/drivers/mtd/spi-nor/micron-st.c > @@ -166,6 +166,11 @@ static const struct flash_info micron_nor_parts[] > = { > MFR_FLAGS(USE_FSR) > .fixups = &mt35xu512aba_fixups > }, > + { "mt35xu01g", INFO(0x2c5b1b, 0, 128 * 1024, 1024) > + NO_SFDP_FLAGS(SECT_4K | SPI_NOR_OCTAL_READ) > + FIXUP_FLAGS(SPI_NOR_4B_OPCODES) > + MFR_FLAGS(USE_FSR) > + }, I guess this flash have SFDP tables. Please dump them according to [1]. If so, please have a look wether this flash works with the generic driver [2]. No NO_SFDP_FLAGS() with new drivers. also the 4B_OPCODES should *hopefully* be superfluous due to the 4bait SFDP table. -michael [1] https://lore.kernel.org/r/4304e19f3399a0a6e856119d01ccabe0@walle.cc/ [2] https://elixir.bootlin.com/linux/v6.4-rc6/source/drivers/mtd/spi-nor/core.c#L2019 > { "mt35xu02g", INFO(0x2c5b1c, 0, 128 * 1024, 2048) > NO_SFDP_FLAGS(SECT_4K | SPI_NOR_OCTAL_READ) > FIXUP_FLAGS(SPI_NOR_4B_OPCODES)