Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D8708C43334 for ; Mon, 4 Jul 2022 06:12:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EA04C844F8; Mon, 4 Jul 2022 08:12:56 +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="iphaEumf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9FAC884504; Mon, 4 Jul 2022 08:12:55 +0200 (CEST) Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) (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 3F3B583EA0 for ; Mon, 4 Jul 2022 08:12:53 +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=jaimeliao.tw@gmail.com Received: by mail-pj1-x102d.google.com with SMTP id j1-20020a17090aeb0100b001ef777a7befso2510593pjz.0 for ; Sun, 03 Jul 2022 23:12:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=hYAl/7LFJXlTuQfD8cvlaE+bN4/DAuZH/IvTV25fsQg=; b=iphaEumfDeDlnnWkBWb3DbmtraaWSXj/rEq/8sjDeC0Y3MzD/1yFfXpw6Q7IvRlwZw TIadjFFOgdK5vcNX/aV5RcA3bS8g7FSJwyhPYseV5YoMSIRgzFgdnjSgjRVjyp62sGRR pBg0RMYb19LhI0GEQuL3p6d179u70qkFeVmWKhiNz/lifGh33T1rmFIY99Q5pQXk8hKG jMKJtoJUZKQFtA+E4d5UZNzA5bQbqHphOFj9TY391CRRRy49hdxqGjaQFodo6QPxbhib tTeJOpmFa5Sfgmd7lWWBX+GOWXaYgxguQgEenV38YT48gDCAAHELoeLU1xzG3cZPD8EX 6q1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hYAl/7LFJXlTuQfD8cvlaE+bN4/DAuZH/IvTV25fsQg=; b=myV0KZgvwTIepjXIDwrJuKAJGjbSL2ifvzGet1D8AHxTBnx5fgFd11AMYm055+ZMA8 ej/81pUDqoUkX8pudlXDTKKZs2p5I11hjH60chUkvq0nr0weMExH6PHefnDsEtzejOaZ YCWEPWsTH2cGWx7I8UfZo+7HzidCFxCTjF0Ixg5W6f9B7atQw/HM8LC3VQHf19xNQLeW J1Qad41bUgVr37h6vtRgOIuE6efnhg/kAIH0kFsQK37y0e9x5jED3BHIN/mqOpt1+n6K IrERY6xnUSeAMnUvb+tZoSGJBRMLQz6M1tl4FB/6IE/oqfQIpZGM1oW5YI5zkvuJsleb VZGA== X-Gm-Message-State: AJIora+q9Nrf2xUan5ETd4Tg5qj6k1ev5oCquLFT4Y/xJZ7/vcm64HyN DRK3/FSPz4cUK6LfbYgHh+SeKLwL5YU= X-Google-Smtp-Source: AGRyM1s2JKG7CIN7KnSR94gZT0KtSptbUdm/ROh1KFJfIClzMXn6/h2Ra7eVJPh4UlHK1yAnyq/aEw== X-Received: by 2002:a17:903:2285:b0:16a:2ee7:4779 with SMTP id b5-20020a170903228500b0016a2ee74779mr33882258plh.43.1656915171086; Sun, 03 Jul 2022 23:12:51 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id w6-20020a17090a6b8600b001ef86f71721sm1411548pjj.31.2022.07.03.23.12.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jul 2022 23:12:50 -0700 (PDT) From: JaimeLiao To: u-boot@lists.denx.de, jagan@amarulasolutions.com, vigneshr@ti.com, miquel.raynal@bootlin.com Cc: zhengxunli@mxic.com.tw, jaimeliao@mxic.com.tw, JaimeLiao Subject: [PATCH v8 0/4] Add octal DTR support for Macronix flash Date: Mon, 4 Jul 2022 14:12:38 +0800 Message-Id: <20220704061242.21487-1-jaimeliao.tw@gmail.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean This series add support for Macronix octal DTR flash, add flag for Softreset with "INVERT" command extension type on boot and follow linux kernel to enable 4byte opcode when possible. v8: Correct spi nor flash information in IDs table. v7: Correct title and description of patchworks. Correct description for spi_nor_macronix_octal_dtr_enable. Add SFDP informations for flashes in commit log. v6: Parcing SCCR 22nd dword for checking Octal DTR mode support v5: Replace SPI_FLASH_MACRONIX_OCTAL with SPI_FLASH_MACRONIX. Remove patch of set_4byte opcode. v4: Add flag SPI_NOR_BOOT_SOFT_RESET_EXT_INVERT to seperate command extension types. Replace ifdef with CONFIG_IS_ENABLED and modify uncorrect descriptions. v3: Add flag SPI_NOR_CMD_EXT_INVERT to seperate command extension types. replace CONFIG_SPI_FLASH_MACRONIX with SPI_FLASH_MACRONIX_OCTAL for spi_nor_macronix_octal_dtr_enable function. v2: add ret checking for write enable in spi_nor_macronix_octal_dtr_enable function. JaimeLiao (4): mtd: spi-nor: add support for Macronix Octal flash mtd: spi-nor-core: Adding different type of command extension in Soft Reset mtd: spi-nor: Parse SFDP SCCR Map mtd: spi-nor-core: Add support for Macronix Octal flash drivers/mtd/spi/Kconfig | 7 ++ drivers/mtd/spi/spi-nor-core.c | 141 ++++++++++++++++++++++++++++++++- drivers/mtd/spi/spi-nor-ids.c | 19 ++++- include/linux/mtd/spi-nor.h | 11 +++ 4 files changed, 176 insertions(+), 2 deletions(-) -- 2.17.1