Hello @gusarambula and thank you for the quick reply, unfortunately, it is fully incorrect and misleading and I hope you'll edit or delete it. Let me explain:
- The original question was about the OTP fuses support in the new BSP based on kernel 5.4.x, if the user-space access is supported in it and if the original, sane way, of accessing them via the /sys/fsl_otp/HW_OCOTP_* pseudo-files. I think it was reasonably clear formulated.
Sadly, the answer you gave me is incorrect wrt the 5.4.x based BSP:
"For the i.MX8 processors all fuse writes should pass through u-boot or directly through the SCU, there is no Linux user space support for burning fuses."
False, the driver that is selected ./drivers/nvmem/imx-ocotop.c has full read/write access to eFuses, even for iMX8 series.
Furthermore the page that you linked at is fully obsolete, even the link to the linux-imx is invalid, pointing to the long gone Freescale git server.
What is worse is that the Linux user-mode support is implied to be like the old driver, but this not the case, the driver in the latest 5.4 BSP is the new, ultra-cumbersome, driver that does not have the named fuses anymore, but looks like some kind memory block, where one should spend serious time calculating offsets to be able to do the most simple operation, like setting a MAC address. If this is somehow more reliable and less error prone than the old one where you can just look in the datasheet name of the register and do a echo 0xXXXXXXXX > /sys/fsl_otp/HW_OCOTP_MAC0 and be done with it, I fail to see it, personally I consider it pure laziness to not maintain the names table, is not like they are changing every few days.
Anyways, the correct answer seem to be:
For the current 5.4 kernel BSP the user space access to the eFuses seem to be there, but the /sys/fsl_otp system is gone :smileysad:.
If somebody already ported the old driver to this BSP I will be most happy to hear about it, the current way to access the fuses is insane IMHO.