From nobody Sun Dec 14 19:25:52 2025 Received: from chessie.everett.org (chessie.fmt1.pfcs.com [66.220.13.234]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC2F71BE843; Fri, 28 Jun 2024 14:04:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.220.13.234 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719583473; cv=none; b=gmYandhQokEfpz/iDTXWITmybLH/wpkkPLArFxc6U7UOPii79D6Tl+O7nF5eb1ex/1KFfNz4MtrdRmOk78iW22BeeR50bslJoPppGy7otJ1R+iA+a3IEHj3yC6Lhm6jYvo2R35usav0v6nztKVHgvMTDEzT1l7rxHCFUhV9X8jo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719583473; c=relaxed/simple; bh=majJpbIEZ5L9h6UbAm35Av5QMsq9MbUrx/XGexo7JsQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TpNR/7Y8xHJmxKZ+WbVGBt+Lzxa3L4Hzimq/5goYxXls8EZtceVLHJjMS9HDjB6ZFeikTzYkmH8GLmA/EsgEHO/2al5PhL/m61kFEZNvmsx7rLri4IYZ2F/znpNZ2UFH3Gn0bc0VS4hmbId+U4zp3AZRnxvviBxCyGU28Ii9ORI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=nwtime.org; spf=pass smtp.mailfrom=nwtime.org; arc=none smtp.client-ip=66.220.13.234 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=nwtime.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nwtime.org Received: from localhost.localdomain (unknown [31.16.248.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 4W9ccY3L1GzMQLT; Fri, 28 Jun 2024 14:04:13 +0000 (UTC) From: Erez Geva To: linux-mtd@lists.infradead.org, Tudor Ambarus , Pratyush Yadav , Michael Walle Cc: linux-kernel@vger.kernel.org, Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Erez Geva Subject: [PATCH 4/4] Add Macronix SPI-NOR mx25l12833f with OTP. Date: Fri, 28 Jun 2024 16:03:28 +0200 Message-Id: <20240628140328.279792-5-erezgeva@nwtime.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240628140328.279792-1-erezgeva@nwtime.org> References: <20240628140328.279792-1-erezgeva@nwtime.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Erez Geva mx25l12833f uses the same JEDEC-id as mx25l12805d. The 2 chips have the same flash size. mx25l12833f support SFDP and have a bigger symmetric OTP. Signed-off-by: Erez Geva --- drivers/mtd/spi-nor/core.c | 1 + drivers/mtd/spi-nor/macronix.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index 0f267da339a4..f2a46add2695 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -3799,6 +3799,7 @@ static const struct spi_device_id spi_nor_dev_ids[] = =3D { */ {"at25df321a"}, {"at25df641"}, {"at26df081a"}, {"mx25l4005a"}, {"mx25l1606e"}, {"mx25l6405d"}, {"mx25l12805d"}, + {"mx25l12833f"}, /* uses the same jedec ID of mx25l12805d */ {"mx25l25635e"},{"mx66l51235l"}, {"n25q064"}, {"n25q128a11"}, {"n25q128a13"}, {"n25q512a"}, {"s25fl256s1"}, {"s25fl512s"}, {"s25sl12801"}, {"s25fl008k"}, diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index f210231468a6..fba3fc8e0d49 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -247,6 +247,11 @@ static const struct flash_info macronix_nor_parts[] = =3D { .size =3D SZ_16M, .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_4BIT_BP, .no_sfdp_flags =3D SECT_4K, + }, { /* Yes, Same JEDEC-id as mx25l12805d */ + .id =3D SNOR_ID(0xc2, 0x20, 0x18), + .name =3D "mx25l12833f", + .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_4BIT_BP, + .otp =3D SNOR_OTP(512, 2, 0x000, 0x200), }, { .id =3D SNOR_ID(0xc2, 0x20, 0x19), .name =3D "mx25l25635e", --=20 2.39.2