From nobody Sat Feb 7 22:34:24 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF049312831 for ; Fri, 14 Nov 2025 11:07:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763118446; cv=none; b=FLpX498DemCnX1XbivwZ+vXlBMVfgMyIss4Lcd0G2W9h2su6tQzZhJeNBRjtbzCCToAtqRMOuJWAuhhncZfp7FJYWj9ksEsQZwHdx/eqsj+VtvBF8HCDclcM9zHBU7PWzsaKPirorhoQbBJ0kSDckhQCU9Q/qAO3IARz0O9X/jc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763118446; c=relaxed/simple; bh=ZI7vzj6jeyGcAH7XfySfKKRasSFDtt5a7nilRfYpudQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gCehwN9lRGUrCrfwiPqCxtLfu8Speh1M3LD3XA9HD2qkeSCzkCD8CV1r91tWdVrU5AL01myWeuQ99/DVi1lmEhH4DnVl6gLqSOoI7++2IlpWhJ1fxucNCXv3lONP6asIxrfMW6yKDFlyUWs4HSvxjwRoNySfbkgIN4hUBExQ9FU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Pdr+kWcS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Pdr+kWcS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FE41C16AAE; Fri, 14 Nov 2025 11:07:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763118445; bh=ZI7vzj6jeyGcAH7XfySfKKRasSFDtt5a7nilRfYpudQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pdr+kWcSymgvxe5jRKb0LCJljj9NcopEGOk6BGvGQz4GuL9vUjv/W5t8TfiNWd+p3 SXoR5TNLHa2YEBYmtPsM2SVz9TBVnlzpf2USQWGBdLLFLKWszFtlVwlR6MiBosDZwW dYRxFTeOt0FOfwdYHIPzWXoKC7FVWoL6oSzmqLXxIHwAUodXsvBoyC1wC8jFGt+Jwi BERBKKLIZO+klQGtNcCNa2cYOjmdTtaT9anwkk6EpcrmX3rS6E4nJuMJNuF84SUf7l 2bmpvv7RtXPWFWa1eNxmGFqg3VzVgOVWwC65uo0DHXcwqBWoiMijO1R07vxnjScTmZ azqAoDeJrl4mQ== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Alice Guo , Peng Fan , Frank Li , Srinivas Kandagatla Subject: [PATCH 8/8] nvmem: imx-ocotp-ele: Add i.MX94 OCOTP support Date: Fri, 14 Nov 2025 11:06:36 +0000 Message-ID: <20251114110636.143268-9-srini@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251114110636.143268-1-srini@kernel.org> References: <20251114110636.143268-1-srini@kernel.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: Alice Guo Add OCOTP device type for i.MX94, including register offset, total size, and fuse layout. This enables NVMEM access to the eFuse of i.MX94. Signed-off-by: Alice Guo Reviewed-by: Peng Fan Reviewed-by: Frank Li Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/imx-ocotp-ele.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/nvmem/imx-ocotp-ele.c b/drivers/nvmem/imx-ocotp-ele.c index 7807ec0e2d18..7cf7e809a8f5 100644 --- a/drivers/nvmem/imx-ocotp-ele.c +++ b/drivers/nvmem/imx-ocotp-ele.c @@ -186,6 +186,25 @@ static const struct ocotp_devtype_data imx93_ocotp_dat= a =3D { }, }; =20 +static const struct ocotp_devtype_data imx94_ocotp_data =3D { + .reg_off =3D 0x8000, + .reg_read =3D imx_ocotp_reg_read, + .size =3D 3296, /* 103 Banks */ + .num_entry =3D 10, + .entry =3D { + { 0, 1, FUSE_FSB | FUSE_ECC }, + { 7, 1, FUSE_FSB | FUSE_ECC }, + { 9, 3, FUSE_FSB | FUSE_ECC }, + { 12, 24, FUSE_FSB }, + { 36, 2, FUSE_FSB | FUSE_ECC }, + { 38, 14, FUSE_FSB }, + { 59, 1, FUSE_ELE }, + { 525, 2, FUSE_FSB | FUSE_ECC }, + { 528, 7, FUSE_FSB }, + { 536, 280, FUSE_FSB }, + }, +}; + static const struct ocotp_devtype_data imx95_ocotp_data =3D { .reg_off =3D 0x8000, .reg_read =3D imx_ocotp_reg_read, @@ -209,6 +228,7 @@ static const struct ocotp_devtype_data imx95_ocotp_data= =3D { =20 static const struct of_device_id imx_ele_ocotp_dt_ids[] =3D { { .compatible =3D "fsl,imx93-ocotp", .data =3D &imx93_ocotp_data, }, + { .compatible =3D "fsl,imx94-ocotp", .data =3D &imx94_ocotp_data, }, { .compatible =3D "fsl,imx95-ocotp", .data =3D &imx95_ocotp_data, }, {}, }; --=20 2.51.0