cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
HasanCruise27
Visitor
Visitor
207 Views
Registered: ‎02-22-2021

Interface with SPI

Hi,

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 

set_property -dict { PACKAGE_PIN N13 IOSTANDARD LVCMOS18 } [get_ports { SPI_0_ss_io }]; #SS
set_property -dict { PACKAGE_PIN U8 IOSTANDARD LVCMOS18 } [get_ports { SPI_0_io0_io }]; #MOSI
set_property -dict { PACKAGE_PIN M13 IOSTANDARD LVCMOS18 } [get_ports { SPI_0_io1_io }]; #MISO
set_property -dict { PACKAGE_PIN K12 IOSTANDARD LVCMOS18 } [get_ports { SPI_0_sck_io }]; #SCLK

Then on PetaLinux I made sure that Cadence SPI controllerXilinx SPI controller common moduleXilinx 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 ?

0 Kudos
1 Reply
carrick
Visitor
Visitor
43 Views
Registered: ‎09-14-2021

do you resolve it? i meet same issue;

I would appreciate your comments.

Thanks,

0 Kudos