Some more progress:
I used origin/5.15-2.0.x-imx_var01 kernel and I now have in my config:
CONFIG_CRYPTO_DEV_FSL_CAAM_SECVIO=y
CONFIG_CRYPTO_DEV_FSL_CAAM=y
CONFIG_CRYPTO_DEV_FSL_CAAM_SM_TEST=y
CONFIG_CRYPTO_DEV_FSL_DPAA2_CAAM=y
CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API_DESC=y
CONFIG_CRYPTO_DEV_FSL_CAAM_BLOB_GEN=y
CONFIG_CRYPTO_DEV_FSL_CAAM_COMMON=y
CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC=y
CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI=y
CONFIG_CRYPTO_DEV_FSL_CAAM_JR=y
CONFIG_CRYPTO_DEV_FSL_CAAM_JR_UIO=y
CONFIG_CRYPTO_DEV_FSL_CAAM_KEYBLOB_API_DESC=y
CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_PRNG_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_SM=y
CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API_TEST=y
CONFIG_BLK_DEV_DM=y
CONFIG_BLK_DEV_MD=y
CONFIG_DM_CRYPT=y
This gives my the caam-keygen device. And this gives me:
./caam-keygen create randomkeyfordiskenc ecb -s 16
root@imx8mm-var-dart:~# ls -l /data/caam
total 8
-rw-r--r-- 1 root root 36 Sep 12 13:33 randomkeyfordiskenc
-rw-r--r-- 1 root root 96 Sep 12 13:33 randomkeyfordiskenc.bb
So, that seems to work. But.....I have not crypt module for the dm.
root@imx8mm-var-dart:~# dmsetup targets
[ 328.304579] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
striped v1.6.0
linear v1.4.0
error v1.5.0
With the above config I would expect it to be here just as the application note AN12714 states in step 2 of the usage.
Hopefully you can guide me to the complete solution as I am almost there.
Any help appreciated.
(P.S. Should I create a new thread for this? The original problem is solved. This is just the next one.)