From nobody Mon Feb 9 01:34:45 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88446EB64DC for ; Mon, 17 Jul 2023 15:38:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231223AbjGQPij (ORCPT ); Mon, 17 Jul 2023 11:38:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229928AbjGQPif (ORCPT ); Mon, 17 Jul 2023 11:38:35 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D25AB103 for ; Mon, 17 Jul 2023 08:38:34 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36HASMMG024162; Mon, 17 Jul 2023 15:38:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=HU+dumvfizCNawU2qaE5vID35FX9p4E1RrKO9S5kN2g=; b=fd1gy0rq92ecilZQX18cN2sACLuxDfmlq/gELkbWiXU+vZ/PL97g02gEinOixKkXjOzz SAYcWg06V4uZ16a4beXMtrrzxjuyuKGjV4MPSuT9EF46BqLsuNBPG84iO4CGwYFwd+F5 0aHe49O6uZu48k6O5RbD0/UvE/AuMjwMK5h4jxo7CrdZ3KuJeydHLNV6iiWI5g9b2aHx 6KoGLI5+QSd1dX1OYs0sjwyIAEyKJtbZWIG1vyOItpgbjneN/PJSNKB8ou3hSKnM6r/2 33cSPClipwWnSBwedT3dmBXNFuQ9ejlL5YdOheZoTZTI+twnvFQB3c0TikHXUE9Q2gEK Ow== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3run0cbuhc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Jul 2023 15:38:19 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36HFcIuF025996 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Jul 2023 15:38:18 GMT Received: from sridsn-linux.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Mon, 17 Jul 2023 08:38:15 -0700 From: Sridharan S N To: , , , , , , , CC: Sridharan S N , Md Sadre Alam Subject: [PATCH 1/2] mtd: spi-nor: gigadevice: Add support for gd25lb256e and gd25d{2,4}0c Date: Mon, 17 Jul 2023 21:05:35 +0530 Message-ID: <20230717153536.25700-2-quic_sridsn@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230717153536.25700-1-quic_sridsn@quicinc.com> References: <20230717153536.25700-1-quic_sridsn@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 2033pNI6gybkSGzLljP9uEQc3rBWgouT X-Proofpoint-ORIG-GUID: 2033pNI6gybkSGzLljP9uEQc3rBWgouT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-17_12,2023-07-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 spamscore=0 priorityscore=1501 phishscore=0 malwarescore=0 suspectscore=0 bulkscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307170142 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add support for: gd25lb256e gd25d{2,4}0c All these chips supports uniform 4K-byte erase. Signed-off-by: Sridharan S N Signed-off-by: Md Sadre Alam --- drivers/mtd/spi-nor/gigadevice.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/mtd/spi-nor/gigadevice.c b/drivers/mtd/spi-nor/gigadev= ice.c index d57ddaf1525b..aca3b2362bfd 100644 --- a/drivers/mtd/spi-nor/gigadevice.c +++ b/drivers/mtd/spi-nor/gigadevice.c @@ -67,6 +67,12 @@ static const struct flash_info gigadevice_nor_parts[] = =3D { FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6) FIXUP_FLAGS(SPI_NOR_4B_OPCODES) .fixups =3D &gd25q256_fixups }, + { "gd25lb256e", INFO(0xc86719, 0, 64 * 1024, 512) + NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ) }, + { "gd25d20c", INFO(0xc84012, 0, 64 * 1024, 4) + NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ) }, + { "gd25d40c", INFO(0xc84013, 0, 64 * 1024, 8) + NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ) }, }; =20 const struct spi_nor_manufacturer spi_nor_gigadevice =3D { --=20 2.17.1 From nobody Mon Feb 9 01:34:45 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C586DEB64DC for ; Mon, 17 Jul 2023 15:38:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231245AbjGQPiu (ORCPT ); Mon, 17 Jul 2023 11:38:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231321AbjGQPip (ORCPT ); Mon, 17 Jul 2023 11:38:45 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8EAF10C8 for ; Mon, 17 Jul 2023 08:38:44 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36HDxRYq018806; Mon, 17 Jul 2023 15:38:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=nyTOhvver3QN4jRNMwjMTTG5SDtoqZrJSaCtmkMi0Xk=; b=R+xksM8l4F0GKfLkjBqe1EXWCyLmkFoiaVKs0Y1e6kmVdkNDjS+dGZBkaeHt8LDixJJA /dvXZ0x8rE0+BloeJACXOvhzHGI+jETx5QgVR8bX46H2NLuLTultGBTpL1mocRwQcKxd 8DGXe0Ttz9exfR/tYQIo7vYP4Doi5jDhHwyospcSdoEF56iwIn2rrt+Ov1y6548+knz9 8IjPKTrm4n6wrc3YcjUeSvPt7IG5gBjxsNOKDLMz2nMS74wBUsPNGE8bzA3/couR+2s/ ZatUktxraQjqzHoUlymm1KgpXPLIp8kH0Vv/So+IW0Ew1/ingNff1fIVSaLRS8KDSP+E PA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3run1jkt1c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Jul 2023 15:38:22 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36HFcLFI007683 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Jul 2023 15:38:21 GMT Received: from sridsn-linux.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Mon, 17 Jul 2023 08:38:18 -0700 From: Sridharan S N To: , , , , , , , CC: Sridharan S N , Md Sadre Alam Subject: [PATCH 2/2] mtd: spi-nor: macronix: Add support for mx66u1g45g Date: Mon, 17 Jul 2023 21:05:36 +0530 Message-ID: <20230717153536.25700-3-quic_sridsn@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230717153536.25700-1-quic_sridsn@quicinc.com> References: <20230717153536.25700-1-quic_sridsn@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: Xzffg249V0n4cIq3NVgFB9b9K_qcxKuY X-Proofpoint-GUID: Xzffg249V0n4cIq3NVgFB9b9K_qcxKuY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-17_12,2023-07-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 bulkscore=0 mlxlogscore=999 priorityscore=1501 mlxscore=0 spamscore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307170142 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This chip supports stateless 4-byte opcodes, dual and quad read and uniform 4K-byte erase. Signed-off-by: Sridharan S N Signed-off-by: Md Sadre Alam --- drivers/mtd/spi-nor/macronix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 04888258e891..ac057815ba00 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -103,6 +103,9 @@ static const struct flash_info macronix_nor_parts[] =3D= { { "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) }, + { "mx66u1g45g", INFO(0xc2253b, 0, 64 * 1024, 2048) + NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) + FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, }; =20 static void macronix_nor_default_init(struct spi_nor *nor) --=20 2.17.1