Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2400036rwb; Fri, 11 Nov 2022 08:47:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Yy+Pw2UvNNUSbCEPyJ+c5sEPWSQxvOC4ym1ohfPB6KwK0dcC4ghmMr5aV/YYiZcCZ4/rI X-Received: by 2002:a17:90b:4d89:b0:213:2173:f46a with SMTP id oj9-20020a17090b4d8900b002132173f46amr2785167pjb.103.1668185264865; Fri, 11 Nov 2022 08:47:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668185264; cv=none; d=google.com; s=arc-20160816; b=Md3nKziqnTOEP5K9r9AR5K4I4AFkzQX9A/ujlsCSS2RZAd6oSVtTQQ3DcTaynfnGPq v9w5W0oF183DfTXP+hqLICQL0UIIsuuT/3eWGNvIlh9afa44x3nl8truHuT+LjC4RErZ A5fbsE0LxA39Sw+z0ygpEzcHZuVWTfEfORR7MspYOS1p+Vz2RR7PMo1IJWf2SvZT0/Np K0Z9srxfEZMHZD/YXTQA+q8CJJgQlVXU5qbgBwueg/GMHxT0mhUKY4cqgnw3GOL62E3q 2MEQzOpPK+y9JWx4aCpA0XThiqOWRTMj2mlD0+Dx1Z7tehw00NSR1+gmEd+WL8EUtqSH 0oMQ== 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:dkim-signature; bh=ClXJpQRicOZf7bHN9zO0nQ7GV+gMP6ngTiOhzuwXsmc=; b=gNymExYFTtttphZvvSIqas8aRhNfed37zE/LgAWwAbB+5g4JQiNpDNzRhNtlpR8Fuk 23aGhzdrdFQWDiry0MOCKHOH+ozkYAwRuaFf6XB0adZAwl7Jh1ucHf9iMJfpVdA8zUPX Udu2ed1IL4oT9UlywJLfgsE07ZsDSbXLprHrfoYrvGZpblm4Jq2JK56e2J7z2DaOOmDy Ya6NTxpY4czdTDdUc8CqLkao6ydF+fGkHf2hajeZhN3lSmq34puDg3fL/xPcWncsc7/i fOgHRDF11y3bj5O65Ol1o8sntCTCHjDkPzWe0THpRSLjtBpQRIbs98Z7y5NJJnxaqbpH 0iCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q5VD19RB; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay15-20020a056a00300f00b005633766252asi2776360pfb.313.2022.11.11.08.47.32; Fri, 11 Nov 2022 08:47:44 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=q5VD19RB; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233551AbiKKQk3 (ORCPT + 92 others); Fri, 11 Nov 2022 11:40:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233067AbiKKQk1 (ORCPT ); Fri, 11 Nov 2022 11:40:27 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70A5061BA1 for ; Fri, 11 Nov 2022 08:40:27 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DA2176205E for ; Fri, 11 Nov 2022 16:40:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D15BC433D6; Fri, 11 Nov 2022 16:40:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668184826; bh=T+/dE65GaUmXRopapuVAGdXHeGWYexFvnU1S9HJYdgU=; h=From:To:Cc:Subject:Date:From; b=q5VD19RBLIE0Dl4VZ5MJt/arDRok1DPp/7l+obdroYnEh96Zd4QzWuixEvDWq1CtU ipPwopyOGquhC/3iDqCmypNa06VNC3bkovZRI9s5+UxyM9x5hPEL2nJZcN8qnwtRR5 gFp84Ng2Z0tQaXFAWxmgtqb7WEiR1oS9q0JaNgo/OoSBdIaxrJpJDS+X7STnbV8hwI 6SHk3uiH6qV4eC9l7k5mwOkJUKNTVsf1MCaE8rsvwOWJWdTOnBeloBiH5UyNKEZ9rz grtfmAmsumg2bG72G8uaABzDigHL3EhKMoVGh4AjlMn9AtGT9ZPTMXhQyT1qpDJPZD op70qqFjhZieA== From: Dinh Nguyen To: linux-mtd@lists.infradead.org Cc: dinguyen@kernel.org, tudor.ambarus@microchip.com, pratyush@kernel.org, michael@walle.cc, linux-kernel@vger.kernel.org, Niravkumar L Rabara Subject: [PATCHv2] mtd: spi-nor: macronix: Add support for mx66u1g45g Date: Fri, 11 Nov 2022 10:40:14 -0600 Message-Id: <20221111164015.165581-1-dinguyen@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 The MX66U1G45G is the smaller sibling (128MB) of the MX66U2G45G (256MB) that is already supported. Tested on Intel N5X socdk board, - random data write, erase, read - verified erase operations - random data write, read and compare - verified write/read operations Signed-off-by: Niravkumar L Rabara Signed-off-by: Dinh Nguyen --- v2: fixed compile error by removing , after PARSE_SFDP --- drivers/mtd/spi-nor/macronix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index d81a4cb2812b..07ace9da74b7 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -97,6 +97,10 @@ static const struct flash_info macronix_nor_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) + PARSE_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