]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
nvmem: imx-ocotp-ele: Add i.MX94 OCOTP support
authorAlice Guo <alice.guo@nxp.com>
Fri, 14 Nov 2025 11:06:36 +0000 (11:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Nov 2025 17:06:22 +0000 (18:06 +0100)
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 <alice.guo@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
Link: https://patch.msgid.link/20251114110636.143268-9-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/imx-ocotp-ele.c

index 7807ec0e2d18dcec257a739378768683c0cb6c38..7cf7e809a8f51afd94089b18d9b06c71295d6906 100644 (file)
@@ -186,6 +186,25 @@ static const struct ocotp_devtype_data imx93_ocotp_data = {
        },
 };
 
+static const struct ocotp_devtype_data imx94_ocotp_data = {
+       .reg_off = 0x8000,
+       .reg_read = imx_ocotp_reg_read,
+       .size = 3296, /* 103 Banks */
+       .num_entry = 10,
+       .entry = {
+               { 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 = {
        .reg_off = 0x8000,
        .reg_read = imx_ocotp_reg_read,
@@ -209,6 +228,7 @@ static const struct ocotp_devtype_data imx95_ocotp_data = {
 
 static const struct of_device_id imx_ele_ocotp_dt_ids[] = {
        { .compatible = "fsl,imx93-ocotp", .data = &imx93_ocotp_data, },
+       { .compatible = "fsl,imx94-ocotp", .data = &imx94_ocotp_data, },
        { .compatible = "fsl,imx95-ocotp", .data = &imx95_ocotp_data, },
        {},
 };