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 7BF26C0015E for ; Wed, 26 Jul 2023 21:44:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8560386377; Wed, 26 Jul 2023 23:44:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se 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=kwiboo.se header.i=@kwiboo.se header.b="J8Ayesih"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6377B8674E; Wed, 26 Jul 2023 23:44:07 +0200 (CEST) Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.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 C57638620C for ; Wed, 26 Jul 2023 23:44:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:mime-version:to:cc:content-transfer-encoding: content-type:cc:content-type:from:subject:to; s=s1; bh=c66mg/h0Ro3Z6wBP9RxXop+78TV0QwECiQrjo4UT0CU=; b=J8AyesihvGTUEYq6AQ2Qr0FGLWvUXVHKSzB46djLDe9hUr69bRd1syVWFbZB8K2LCClC En1NL2QYNn/Bu5H8kU9DPSMdZ1N1oAASUJ6Jzv89O53pDn+qNJSKkhd953ed2sBi1TVpfH 3UbtYPMRsKLr9K8Ojp/yIF4m6q1t08VvHXka0nT1C+acY+j9bPGrbvP5oFdw5pbYYyZwkg 4u2c2+7Uf3FOZ4gfMldA+nCDzOAMdRvNnI4OyCSJIRk/b2U4ngVMl3GM8khiQQZM6t0cOd opmfQdpAah8rLBZvFd6zUIjQXUn+x4S33aDtXXfmhD/Q6XpsNn315GkuyLYbykqw== Received: by filterdrecv-66949dbc98-xnttg with SMTP id filterdrecv-66949dbc98-xnttg-1-64C193A3-8 2023-07-26 21:44:03.271280313 +0000 UTC m=+2747347.449758802 Received: from bionic.localdomain (unknown) by geopod-ismtpd-0 (SG) with ESMTP id bVq1Gn0YRQSdsvFOocimew Wed, 26 Jul 2023 21:44:02.898 +0000 (UTC) From: Jonas Karlman Subject: [PATCH] mtd: spi-nor: Add support for Silicon Kaiser sk25lp128 Date: Wed, 26 Jul 2023 21:44:03 +0000 (UTC) Message-ID: <20230726214401.929533-1-jonas@kwiboo.se> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0hwWGpkjZAQdcbVE4H?= =?us-ascii?Q?6g77nt5ezKu89fkRJ3wRMZWVQhHw3e4tj5ZJAbb?= =?us-ascii?Q?yEKhaz0tTAlIjk1cgfzEc2uH1DtqZt0S7QJnYUc?= =?us-ascii?Q?ZR0ScBHTm4wvrPd99vTRVkURzlYT6I7t0fZj4Ts?= =?us-ascii?Q?Jrogp2kAQfWwB=2FtRL4hamMwFwkeg93a=2FVt+PwO?= To: Jagan Teki , Vignesh R Cc: Jonas Karlman , u-boot@lists.denx.de X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii 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.8 at phobos.denx.de X-Virus-Status: Clean Add support for Silicon Kaiser sk25lp128 SPI NOR flash found in Pine64 PinePhone Pro and PineTab2. Signed-off-by: Jonas Karlman --- drivers/mtd/spi/Kconfig | 5 +++++ drivers/mtd/spi/spi-nor-ids.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index a9617c6c58c1..4329b88520df 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers/mtd/spi/Kconfig @@ -169,6 +169,11 @@ config SPI_FLASH_MACRONIX help Add support for various Macronix SPI flash chips (MX25Lxxx) +config SPI_FLASH_SILICONKAISER + bool "Silicon Kaiser SPI flash support" + help + Add support for various Silicon Kaiser SPI flash chips (SK25Lxxx) + config SPI_FLASH_SPANSION bool "Spansion SPI flash support" help diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 458721598424..c461c1b928d2 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++ b/drivers/mtd/spi/spi-nor-ids.c @@ -286,6 +286,10 @@ const struct flash_info spi_nor_ids[] = { { INFO("mx25uw6345g", 0xc28437, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_OCTAL_DTR_READ | SPI_NOR_4B_OPCODES) }, #endif +#ifdef CONFIG_SPI_FLASH_SILICONKAISER + { INFO("sk25lp128", 0x257018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, +#endif + #ifdef CONFIG_SPI_FLASH_STMICRO /* STMICRO */ /* Micron */ { INFO("n25q016a", 0x20bb15, 0, 64 * 1024, 32, SECT_4K | SPI_NOR_QUAD_READ) }, -- 2.41.0