Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2CBEAC11F66 for ; Tue, 29 Jun 2021 06:01:28 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9956561D7E for ; Tue, 29 Jun 2021 06:01:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9956561D7E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D113D8310D; Tue, 29 Jun 2021 08:01:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="G4neNWhM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CAB658310F; Tue, 29 Jun 2021 08:01:23 +0200 (CEST) Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 741F782E8B for ; Tue, 29 Jun 2021 08:01:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tkuw584924@gmail.com Received: by mail-oi1-x232.google.com with SMTP id 11so16879005oid.3 for ; Mon, 28 Jun 2021 23:01:20 -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:mime-version :content-transfer-encoding; bh=tX6Z0eqipORX99XDJu1n6200c1xsbkGs7HKAMB1vzoI=; b=G4neNWhM78xiTCu7EOXXsREaXPSXTs0ol3Sivv8z6fPV/AyWhV/FZULDFExx1XtDVA nO20mL33vCI5Zrmuu70ngBlmimt4xQMBtU9JapjJ7HNdZ7GgRDlBjDjRRz/mXlLUZfbG 8wshgii1xG+KYKLQb4OdiPyzVys3N2+GYArQTjmOgB0fIQ/2qhbyoQ8vOPJ8/MIPMZfT 12pUyZyploPutFFhquCLSewMC/Hli60neqWpxnwNX4j6kaZT+wPh/tCZVsAzmva5lGtd dxFHsvEhTkzWsU45TtHC1nUZefHxj0IDIZGKxcmFc4FmxpxBdt8z3MUVGTSK7ipUZYyO sTdg== 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:mime-version :content-transfer-encoding; bh=tX6Z0eqipORX99XDJu1n6200c1xsbkGs7HKAMB1vzoI=; b=q9ZOHHHkdyE9DZyr+6DSzApq/gwcXavdMOvR/v3xGRIje5SruHFBpQcMQP9H4x7Z1L lDOJMc887uttcO3o+5Bnw6QBgpjEgWFyvPkqE8pdQJJxstIVOb7LTgUPEKlyNWITrpgn yWM4j+AHXmDX04Y5Ze0DSyH3jwmyRXoItEWXgT4yk2AH+YepV1ymYX4MDIevKaWByKt6 mJmdGyaBOeEzMZ5oCIqEYOB/uZt4HoAHJzvVmJhWnHFQjFxmHW6dXD3lW+zZIkLeImMr oomDzlK+K0zZiTg6LCf8fxvWu777gnmaDKfmoFTOW7xtXewbnAVNXArHQdGkmr64oPe/ M8tA== X-Gm-Message-State: AOAM530/yKByhX+GoKlxTf/VPWMcbUkS8H+Tb52pFh+oxIuN6F9YcX2S RF++ZyA0OhtxoyL1JHjCXoPIQfh80zY= X-Google-Smtp-Source: ABdhPJyqrCXQs9h20YYwaSGChrMMUEJjFiiY0mRAkOjUdPpS2Fnz4wL0/n0FzM46EswYO6UC1ZftRQ== X-Received: by 2002:a54:4e87:: with SMTP id c7mr23177259oiy.82.1624946479021; Mon, 28 Jun 2021 23:01:19 -0700 (PDT) Received: from ISCNPF1JZGWX.infineon.com (zz20174137476F6254EB.userreverse.dion.ne.jp. [111.98.84.235]) by smtp.gmail.com with ESMTPSA id a44sm977168ooj.12.2021.06.28.23.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Jun 2021 23:01:18 -0700 (PDT) From: tkuw584924@gmail.com X-Google-Original-From: Takahiro.Kuwano@infineon.com To: u-boot@lists.denx.de Cc: jagan@amarulasolutions.com, vigneshr@ti.com, p.yadav@ti.com, tkuw584924@gmail.com, Bacem.Daassi@infineon.com, Takahiro Kuwano Subject: [PATCH v9 0/9] mtd: spi-nor: Add support for Cypress s25hl-t/s25hs-t Date: Tue, 29 Jun 2021 15:00:55 +0900 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: Takahiro Kuwano The S25HL-T/S25HS-T family is the Cypress Semper Flash with Quad SPI. The summary datasheets can be found in the following links. https://www.cypress.com/file/424146/download (256Mb/512Mb/1Gb, single die) https://www.cypress.com/file/499246/download (2Gb/4Gb, dual/quad die) The full version can be found in the following links (registration required). https://community.cypress.com/t5/Semper-Flash-Access-Program/Datasheet-Semper-Flash-with-Quad-SPI/ta-p/260789?attachment-id=19522 https://community.cypress.com/t5/Semper-Flash-Access-Program/Datasheet-2Gb-MCP-Semper-Flash-with-Quad-SPI/ta-p/260823?attachment-id=29503 Tested on Xilinx Zynq-7000 FPGA board. Changes since v9: - Rebased on top of u-boot-spi/next Changes since v8: - Took another patch from Pratyush's series - Define spansion_quad_enable_volatile() under CONFIG_SPI_FLASH_SPANSION Changes since v7: - Fixed return type of s25hx_t_erase_non_uniform() to 'int' Changes since v6: - Took some patches from Pratyush's series - Removed USE_CLSR flag from S25HL02GT and S25HS02GT - Defined SPINOR_OP_EX4B_CYPRESS and use it - Removed mtd.writesize fixup - Added uniform sector check for multi-die package parts - Remove spansion_quad_enable_volatile() from tiny - Fixed some other minor issues Changes since v5: - Removed 256Mb and 4Gb parts support - Fixed register offset issue in spansion_quad_enable_volatile() - Added spi_nor_default_ready() and moved existing code into it - Separated spansion_sr_read() to new patch - Renamed spansion_overlaid_erase() to spansion_non_uniform_erase() and changed the implementation to issue the proper erase command based on the address - Added s25hx_t_erase_non_uniform() - Changed mtd.writesize and mtd.flags in s25hx_t_setup() - Fixed page size and erase size issues in s25hx_t_post_bfpt_fixup() Changes since v4: - Added Read/Write Any Register support - Added the ->ready() hook to support multi-die package parts - Added S25HL02GT/S25HL04GT/S25HS02GT/S25HS04GT support Changes since v3: - Split into multiple patches Changes since v2: - Fixed typo in comment for spansion_overlaid_erase() - Fixed expressions for addr and len check in spansion_overlaid_erase() - Added device ID check to make the changes effective for S25 only - Added nor->setup() and fixup hooks based on the following patches https://patchwork.ozlabs.org/project/uboot/patch/20200904153500.3569-7-p.yadav@ti.com/ https://patchwork.ozlabs.org/project/uboot/patch/20200904153500.3569-8-p.yadav@ti.com/ https://patchwork.ozlabs.org/project/uboot/patch/20200904153500.3569-9-p.yadav@ti.com/ Takahiro Kuwano (9): mtd: spi-nor: Add Cypress manufacturer ID mtd: spi-nor-ids: Add Cypress s25hl-t/s25hs-t mtd: spi-nor-core: Add support for Read/Write Any Register mtd: spi-nor-core: Add support for volatile QE bit mtd: spi-nor-core: Add the ->ready() hook mtd: spi-nor-core: Read status by Read Any Register mtd: spi-nor-core: Add Cypress manufacturer ID in set_4byte mtd: spi-nor-core: Add fixups for Cypress s25hl-t/s25hs-t mtd: spi-nor-tiny: Add fixups for Cypress s25hl-t/s25hs-t drivers/mtd/spi/spi-nor-core.c | 266 ++++++++++++++++++++++++++++++++- drivers/mtd/spi/spi-nor-ids.c | 16 ++ drivers/mtd/spi/spi-nor-tiny.c | 6 + include/linux/mtd/spi-nor.h | 11 ++ 4 files changed, 297 insertions(+), 2 deletions(-) -- 2.25.1