[PATCH 0/2] Make i.MX9 OCOTP work as accessing controller
Peng Fan (OSS)
peng.fan at oss.nxp.com
Thu Dec 12 00:24:40 PST 2024
Previously there was discussion on using "feature-controller" or
adding a specific node to group the fuse information for U-Boot to
parse and update node. But rejected by DT maintainer(Rob).
Since the STM32 engineers added access controller concept and landed
the support in Linux Kernel, reuse the concept for i.MX.
i.MX OCOTP eFuse has some bits to indicate a specific periphral or
function is avaiable for current chip, for example i.MX93 has variants
that not have NPU. So introduce '#access-controller-cells' for OCOTP,
and add "#access-controllers = <&ocotp [gate_index]>" for periphrals
that needs accessing control checking.
In OCOTP driver, the nodes under "/soc at 0" will be iterated, and checked
if property "#access-controllers" exsits. If not allow access, detach
the node.
In the end, cpu nodes should still be handled by bootloader.
And I may also update i.MX8M to use same method to support variants
if this patchset is good.
Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
Peng Fan (2):
dt-bindings: nvmem: imx-ocotp: Introduce #access-controller-cells
nvmem: imx-ocotp-ele: Support accessing controller for i.MX9
.../devicetree/bindings/nvmem/imx-ocotp.yaml | 5 +
drivers/nvmem/imx-ocotp-ele.c | 187 ++++++++++++++++++++-
include/dt-bindings/nvmem/fsl,imx93-ocotp.h | 24 +++
include/dt-bindings/nvmem/fsl,imx95-ocotp.h | 43 +++++
4 files changed, 258 insertions(+), 1 deletion(-)
---
base-commit: 3e42dc9229c5950e84b1ed705f94ed75ed208228
change-id: 20241212-imx-ocotp-cbef304140f5
Best regards,
--
Peng Fan <peng.fan at nxp.com>
More information about the linux-arm-kernel
mailing list