I am using a zcu102 rev1.0 board, running a petalinux 2019.1. I am trying to interface spi0 with EMIO pins. I built a block design with zynqMP and gave SPI as external pins. Then added the following in the constraints file
Then on PetaLinux I made sure that Cadence SPI controller, Xilinx SPI controller common module, Xilinx Zynq QSPI controller and User mode SPI device driver support are all enabled on the kernel configuration menu.
In the zynqMP.dtsi under spi0 label I enabled it from "disabled" to "okay". When I turn on the board it gives the following error for the spi device :
[ 5.120639] cdns-spi ff040000.spi: failed to add to PM domain domain8: -13 [ 5.127515] cdns-spi: probe of ff040000.spi failed with error -13
Am I missing some other configurations ? I would have to specify the pins being used by the spi0 in the device tree as well right ? If yes, then could anyone tell me how to do that ?