Hello kee wee yeo,
eSPI is supported in hypervisor mode, in the P2041 default hypervisor dtb file RR_PX_0x09/hv-2p-lnx-lnx/hv.dts, eSPI has already been allocated into the first partition, I think you could find espi setup information in the Kernel boot log of the first partition. What kind of device do you use on eSPI bus, Flash? If so, you could access /dev/mtdblock* after Kernel boot up and you should get the following similar information when the first partition boot up.
root@p3041ds:~# dmesg | grep spi
[ 0.833048] fsl_espi ffe110000.spi: master is unqueued, this is deprecated
[ 0.838846] m25p80 spi32766.0: found s25fl129p1, expected s25sl12801
[ 0.843894] m25p80 spi32766.0: s25fl129p1 (16384 Kbytes)
[ 0.847895] 4 ofpart partitions found on MTD device spife110000.0
[ 0.852665] Creating 4 MTD partitions on "spife110000.0":
[ 0.873275] fsl_espi ffe110000.spi: at 0xf1106000 (irq = 53)
If your problem remains, please provide your boot log and hv.dtb.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------