From patchwork Tue Jun 13 21:19:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 107550 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp836373vqr; Tue, 13 Jun 2023 14:33:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5pAYBpofKvvEjlZgLHmQAliMXcyU8XwW6VN0wHhBpm/YH7DCzRcn9tf+fDe0kHSWSNcOsg X-Received: by 2002:a17:907:26c1:b0:974:4457:b6f with SMTP id bp1-20020a17090726c100b0097444570b6fmr16000577ejc.23.1686692007702; Tue, 13 Jun 2023 14:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686692007; cv=none; d=google.com; s=arc-20160816; b=ARn/tYh8z8h5TmRGcnCp/5CuWOcIJmiddmoySL2HyL9/n5Om2YviGhyfFU7cdcXPcC SdgO/BhxY9vABR5AwBq1IGbi9Nwq3osXO6ExjZ17UJjqlhstRzFoaejJmsI5pPK4TtOZ 3hn5VO7vt1D4HrS6VgqYsrooy80vEESBSvO/99+20rcbEuHpkTnmyl0iqqqJ4hCIEI6e AiwoH/3uiIX5Ij9PyL6BD32bBWwbVTFshS2oz2YpJMh76+qGzwvgZe+xRl/68weeTtMn kSYsBaB/+PJ10kfHcOJqc05sSkL2un/R6tl4IBO2SxZlNAatV1TEVmJS++p6xxEO2Wqg 5paw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language:cc:to :subject:from:user-agent:mime-version:date:message-id:dkim-signature; bh=4jWvY4U8tYba+wNIbdqcQVeFZy9Nih1yvcvBjp24Mas=; b=ycLXiw5Vzg/1EYx4Pr0lAbTMrsgEpch6wYXpbUeZuhDYwt2NOeTXsCNmIRWJqsNgjQ sQcCFfYXF1RFFplOdBg6wRsMXJXl3POECB8u5sLJpH7lISMmKzcfw6T1pu98gbD/IYYn ymkDRey5vZaluTPv3ozA5/K24LHulslBnUf1KJn4GE21RzeYxtuyAAu9Vwm1mgj6xCqO FEezaYdykdRVjfywZh4eBavnsTgEaHVQg+t8wjTP+6Do6EoFwWAaMKs+nZYI4rJxtyxr Qs1IKYKBYAkXJtrtgBWXqRlmOPXhfiRqbenxhzJnQRYdhndG3DounfZc7bc89MFbhm4x 1+TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="qRU/dUZp"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v11-20020a170906858b00b00977e4fd4c05si7524185ejx.459.2023.06.13.14.33.02; Tue, 13 Jun 2023 14:33:27 -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=@gmail.com header.s=20221208 header.b="qRU/dUZp"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239782AbjFMVUI (ORCPT + 99 others); Tue, 13 Jun 2023 17:20:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230411AbjFMVUF (ORCPT ); Tue, 13 Jun 2023 17:20:05 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47DDB129 for ; Tue, 13 Jun 2023 14:20:02 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-5187aa18410so1143243a12.0 for ; Tue, 13 Jun 2023 14:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686691201; x=1689283201; h=content-transfer-encoding:content-language:cc:to:subject:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=4jWvY4U8tYba+wNIbdqcQVeFZy9Nih1yvcvBjp24Mas=; b=qRU/dUZpnh2AVwkbsKA44WLQyrmK9X/p/rf9IDKCQ7dB+mze0KgTsdLfaIX5G2wkNS yiSAHuQ1Ge+PQVcRvhs9MbIryKEnqv9UkSRDAKl2VSOCdNncZbX1sd2EfqURYQi6VDfV exuCx1pEhcm74sgwNmWlXfb2fkCl6L9jYeDLWCzlc1zR4J1MVvQrcNnuLQ8NjSqdnPS+ c4o/AzAvZ0WGsawlk2bSyJINvtuy4o2KjkMff5ia2un8U/ZoPwWH3cEjrPFbW0jGXL6o 0uax62fbwF84CRgCFWS5TdWKFckCZGQT3s+RQ/fzY4MGeXb+WPqGziPP4+e45OSg4SxI Ul3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686691201; x=1689283201; h=content-transfer-encoding:content-language:cc:to:subject:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=4jWvY4U8tYba+wNIbdqcQVeFZy9Nih1yvcvBjp24Mas=; b=j5cE1J6/uNBbAHulEl+Oe0i725LXPDJ6/+MhwnRpR3QpsaP7EocelDsB/H2nFaY//0 2ISRBmR1+8z3+xUkB/iCrFZQwhyTwZEQwBMeO9Q2cwZVA23+rtG5ntHQWC/xRWTV84WU yDKRQDXRMqcUqvLGp2BTkv/Yi868eMyHM0ZVfEgAfXAnjb+PE1LR2gMBYeQkRtJAZKZM Fev645OMc05Qkev4zjVkRzMIHcvU1xwsy3reKItC+3wttv5R9GaCbUnVKK9bDcY9EV6v tP+nYJS3siXYbDgBnir2qzl2QeoOI3POqM2lmVWnUMr9ivaIkzFUek6gcFRBHsG1z7Fi 4jkw== X-Gm-Message-State: AC+VfDx1m1Eg7TlhvMyyQi6k615LMCwAMDthgM4fPs2VOVibI45CraXV kmGhQ8Zsha5gKI4URcsrDE4= X-Received: by 2002:aa7:ccda:0:b0:518:7a40:b75e with SMTP id y26-20020aa7ccda000000b005187a40b75emr1817076edt.25.1686691200508; Tue, 13 Jun 2023 14:20:00 -0700 (PDT) Received: from [192.168.2.2] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id u11-20020aa7d0cb000000b00514a97b6b80sm6922313edo.78.2023.06.13.14.19.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Jun 2023 14:20:00 -0700 (PDT) Message-ID: Date: Tue, 13 Jun 2023 23:19:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 From: Johan Jonker Subject: [PATCH v3 1/2] mtd: rawnand: add basic sandisk manufacturer ops To: miquel.raynal@bootlin.com Cc: richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Content-Language: en-US X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768624758509357388?= X-GMAIL-MSGID: =?utf-8?q?1768624758509357388?= Add basic Sandisk manufacturer ops support to get SDTNQGAMA timing data with the nand_get_sdr_timings() function. Signed-off-by: Johan Jonker --- Changed V3: Separate serie Change prefixes Changed V2: New patch --- Limited to one chip model for now. In need for someone with better knowledge of the Sandisk product range to expand and improve. Documentation is rare to find. --- drivers/mtd/nand/raw/Makefile | 1 + drivers/mtd/nand/raw/internals.h | 1 + drivers/mtd/nand/raw/nand_ids.c | 2 +- drivers/mtd/nand/raw/nand_sandisk.c | 26 ++++++++++++++++++++++++++ 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 drivers/mtd/nand/raw/nand_sandisk.c -- 2.30.2 diff --git a/drivers/mtd/nand/raw/Makefile b/drivers/mtd/nand/raw/Makefile index 917cdfb81..d93e861d8 100644 --- a/drivers/mtd/nand/raw/Makefile +++ b/drivers/mtd/nand/raw/Makefile @@ -67,5 +67,6 @@ nand-objs += nand_esmt.o nand-objs += nand_hynix.o nand-objs += nand_macronix.o nand-objs += nand_micron.o +nand-objs += nand_sandisk.o nand-objs += nand_samsung.o nand-objs += nand_toshiba.o diff --git a/drivers/mtd/nand/raw/internals.h b/drivers/mtd/nand/raw/internals.h index 7016e0f38..e9932da18 100644 --- a/drivers/mtd/nand/raw/internals.h +++ b/drivers/mtd/nand/raw/internals.h @@ -73,6 +73,7 @@ extern const struct nand_manufacturer_ops hynix_nand_manuf_ops; extern const struct nand_manufacturer_ops macronix_nand_manuf_ops; extern const struct nand_manufacturer_ops micron_nand_manuf_ops; extern const struct nand_manufacturer_ops samsung_nand_manuf_ops; +extern const struct nand_manufacturer_ops sandisk_nand_manuf_ops; extern const struct nand_manufacturer_ops toshiba_nand_manuf_ops; /* MLC pairing schemes */ diff --git a/drivers/mtd/nand/raw/nand_ids.c b/drivers/mtd/nand/raw/nand_ids.c index dacc5529b..1a89ed796 100644 --- a/drivers/mtd/nand/raw/nand_ids.c +++ b/drivers/mtd/nand/raw/nand_ids.c @@ -188,7 +188,7 @@ static const struct nand_manufacturer_desc nand_manufacturer_descs[] = { {NAND_MFR_NATIONAL, "National"}, {NAND_MFR_RENESAS, "Renesas"}, {NAND_MFR_SAMSUNG, "Samsung", &samsung_nand_manuf_ops}, - {NAND_MFR_SANDISK, "SanDisk"}, + {NAND_MFR_SANDISK, "SanDisk", &sandisk_nand_manuf_ops}, {NAND_MFR_STMICRO, "ST Micro"}, {NAND_MFR_TOSHIBA, "Toshiba", &toshiba_nand_manuf_ops}, {NAND_MFR_WINBOND, "Winbond"}, diff --git a/drivers/mtd/nand/raw/nand_sandisk.c b/drivers/mtd/nand/raw/nand_sandisk.c new file mode 100644 index 000000000..7c66e4187 --- /dev/null +++ b/drivers/mtd/nand/raw/nand_sandisk.c @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "internals.h" + +static int +sdtnqgama_choose_interface_config(struct nand_chip *chip, + struct nand_interface_config *iface) +{ + onfi_fill_interface_config(chip, iface, NAND_SDR_IFACE, 0); + + return nand_choose_best_sdr_timings(chip, iface, NULL); +} + +static int sandisk_nand_init(struct nand_chip *chip) +{ + if (!strncmp("SDTNQGAMA", chip->parameters.model, + sizeof("SDTNQGAMA") - 1)) + chip->ops.choose_interface_config = + &sdtnqgama_choose_interface_config; + + return 0; +} + +const struct nand_manufacturer_ops sandisk_nand_manuf_ops = { + .init = sandisk_nand_init, +}; From patchwork Tue Jun 13 21:21:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 107565 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp845973vqr; Tue, 13 Jun 2023 14:57:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ51vm7HfD69a2oOOCikrTlDdjLL12N2vG7f81m2tQEiWezzXM4T7DzvWxDoSNn0r8loJCrx X-Received: by 2002:a17:907:2da4:b0:981:a949:2807 with SMTP id gt36-20020a1709072da400b00981a9492807mr7716931ejc.1.1686693425755; Tue, 13 Jun 2023 14:57:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686693425; cv=none; d=google.com; s=arc-20160816; b=Hi9DHY9CRyBfgUbo7xhF023Omx5rTXCtbX10xjNWOj+DHPz7+EYtk+Qp0v2bUjBcKs BcdUdheKqKS4sG0IhQkCEkf75eX+5yWWaLDvZnVhpvEVFw0D8PAhqtz5N/bsdYH6iKfm 48exnBMy7MmDjXXlBz/HGp6Zf8/OMvzIF5u3aYbYqhsddBtODs7GmVwKdjGrtlXH+kj6 Po5/lfvWt0ZDocEeOPz0PBFKXP/cbCWyNzOIG6u8lWGrMShyWm9UyoAOmglzCJWA2kk0 dFy079+VUofsruCVmg9zPVf7GQBmIWAINleZptiP0yxCwoCE9rLY3uKQWJt3UyKydZRb 6CjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=YD94vOp+VeZ4x56jPA7n1R/f7iEhDVnQp4dgxqoTLC0=; b=bACQp9LtTwBle5Vh4bLyaZ+vhm4631N7btSRDOoR5Zd0b0KO+nwKxq9WKFynQqrB/S e/6XiM+kE+Sg6BDx+vrSga5Yy7kQbB8ISmmH3ET/5Iw7/YdKeNduYVJpTZKqX+CBQWy1 Urs6NoTY5hqIp7JXHaPRFHrL2y/ZRpQtEEcmYH5B2542T29B9BzwUA+v4zzwZa6ce0pl WZvgrwc4XnnIEK4AmJF6AiQUd0EHCJHMLyhVDFYkgWaPud/9jK3C9K+cWR0xmNGJ/s8u aGXzkmEiOAb5qxyyu2DWZ0P77EtN2YW3xZA5RE224+mBaWpJMsgGb4tFWr0Chrgpuq6Q e6zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=maAo6QrO; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020aa7c910000000b00514983a993fsi7702900edt.266.2023.06.13.14.56.40; Tue, 13 Jun 2023 14:57:05 -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=@gmail.com header.s=20221208 header.b=maAo6QrO; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239426AbjFMVVN (ORCPT + 99 others); Tue, 13 Jun 2023 17:21:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230220AbjFMVVK (ORCPT ); Tue, 13 Jun 2023 17:21:10 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB236129 for ; Tue, 13 Jun 2023 14:21:09 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-97668583210so3748066b.1 for ; Tue, 13 Jun 2023 14:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686691268; x=1689283268; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=YD94vOp+VeZ4x56jPA7n1R/f7iEhDVnQp4dgxqoTLC0=; b=maAo6QrORoNrVat7yzcWUR6fp3xFXYHuromco3f1O85GNQz0XcDsVTOS5LJi9+0XvE HXEQT7BadwX6Fn7CYhwFB6iF+MccboFdqtnCKflfzcqj4DQjDI82UmMAJxsGC1rzrz72 a7+1QWOKleODvJ3fcENOryX39Ju8PqS0jl94/3VrhDB9ID9dpvHsWEThIfQeNDJ4AWBV WoQ7XpxJejoIU7UBsnmYoX4beuw/kkZF2Gc3YnG28/afe8Vk6NYbhQn6I3zn27ABIoje leqWoflfKjwjXwqraDiYXEFGaP6oUWWMG1GUoYqrqZ9ZsJvQyT2MfdfJaJtSY95SbAht Ufaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686691268; x=1689283268; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YD94vOp+VeZ4x56jPA7n1R/f7iEhDVnQp4dgxqoTLC0=; b=dfUj56rGIuaDg/u8DJdVzEYfZtbOmqtkRBc5JVNbz72R7pU5XdlDPrLU3nHIuD9ctx LXK2JvaWCv4FJmMmMK3+QSwD1R0bPbN7Z7jDyIfC8O+yAztrLjl7r7+FPyBjQwu9gIGg eVFK3GAt0YjI8cdmd8wfaZ02gNTAm5lBUFzNBGrC8lYnXZwg60kGuURBtRp4UxNMJXG+ rUAcIDnzA9DMADJ1zPX4xYwsq6xdL/QaROXhKWMysFPqz+8WZH8dNiTT1RPmJNag3Fz+ bgFrYR3RVZlJf6dc3/KZ9zPA4zMOA8O9SHLLkG7gjhqIwujmknReO0HyfIl7mUnWsmt0 1b4A== X-Gm-Message-State: AC+VfDxSK6JGB0oMPGCNY1Plh/6zycajLzCqk5vFKQOGSa64ov/AVOp1 BrrcgJq5ZlSUBjXEO8t4tW4= X-Received: by 2002:a17:906:db03:b0:974:1f0e:ec2d with SMTP id xj3-20020a170906db0300b009741f0eec2dmr13859467ejb.15.1686691268034; Tue, 13 Jun 2023 14:21:08 -0700 (PDT) Received: from [192.168.2.2] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id x7-20020a170906298700b00965b2d3968csm7229520eje.84.2023.06.13.14.21.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Jun 2023 14:21:07 -0700 (PDT) Message-ID: <98811c98-4681-6ddc-8287-bd9b77559c51@gmail.com> Date: Tue, 13 Jun 2023 23:21:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 From: Johan Jonker Subject: [PATCH v3 2/2] mtd: rawnand: add support for the Sandisk SDTNQGAMA chip To: miquel.raynal@bootlin.com Cc: richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org References: Content-Language: en-US In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768626245528116370?= X-GMAIL-MSGID: =?utf-8?q?1768626245528116370?= Sandisk SDTNQGAMA is a 8GB size, 3.3V 8 bit chip with 16KB page size, 1KB write size and 40 bit ecc support Co-developed-by: Paweł Jarosz Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker --- Changed V3: Separate serie Change prefixes --- drivers/mtd/nand/raw/nand_ids.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.30.2 diff --git a/drivers/mtd/nand/raw/nand_ids.c b/drivers/mtd/nand/raw/nand_ids.c index 1a89ed796..650351c62 100644 --- a/drivers/mtd/nand/raw/nand_ids.c +++ b/drivers/mtd/nand/raw/nand_ids.c @@ -44,6 +44,9 @@ struct nand_flash_dev nand_flash_ids[] = { {"TC58NVG6D2 64G 3.3V 8-bit", { .id = {0x98, 0xde, 0x94, 0x82, 0x76, 0x56, 0x04, 0x20} }, SZ_8K, SZ_8K, SZ_2M, 0, 8, 640, NAND_ECC_INFO(40, SZ_1K) }, + {"SDTNQGAMA 64G 3.3V 8-bit", + { .id = {0x45, 0xde, 0x94, 0x93, 0x76, 0x57} }, + SZ_16K, SZ_8K, SZ_4M, 0, 6, 1280, NAND_ECC_INFO(40, SZ_1K) }, {"SDTNRGAMA 64G 3.3V 8-bit", { .id = {0x45, 0xde, 0x94, 0x93, 0x76, 0x50} }, SZ_16K, SZ_8K, SZ_4M, 0, 6, 1280, NAND_ECC_INFO(40, SZ_1K) },