Shopping Cart | 中文网站
Online Support
  Atmel Boards  (29) TOP10
  MYD-SAM9X5 (7)
  MYS-SAM9X5 (2)
  MYS-SAM9G45 (1)
  MYD-SAMA5D3X (12)
  MYD-SAM9X5-V2 (2)
  MYC-SAM9X5 (4)
  MYC-SAM9X5-V2 (1)
  MYC-SAMA5D3X (0)
  NXP Boards  (3) TOP10
  MYD-LPC435X (2)
  MYD-LPC185X (1)
  MYD-LPC1788 (0)
  Samsung Boards  (0) TOP10
  TI Boards  (10) TOP10
  MYD-AM335X (9)
  MYC-AM335X (1)
  Other  (3) TOP10
  MY-WF003U (1)
  Freescale Boards  (2) TOP10
  MYD-IMX28X (2)
  Xilinx Boards  (7) TOP10
  Z-turn Board (6)
  Home >  Support > Xilinx Boards > Z-turn Board
How to use SPI1 interface on Z-turn Board?
How to use SPI1 interface on Z-turn Board?

The SPI resource is as below:

Kernel Modification
Device tree has added spidev device and the kernel has modified the configuration option:
[mw_shl_code=bash,true]Device Drivers->SPI support->[/mw_shl_code]
User mode SPI device driver support
spi device node is at:
After selected this option, the spi device driver can be realized in user space. Please find relative material on net or refer to the source code:
The spi source code is at:

Device tree modification

The device tree has modified two places.
The first place is as below:
[mw_shl_code=c,true]aliases {
                ethernet0 = &gem0;
                serial0 = &uart1;
                serial1 = &uart0;
                spi0 = &qspi;
                spi1 = &spi1;              // added this row

The second place has added the spi definition.
[mw_shl_code=c,true]&spi1 {
        status = "okay";
        num-cs = <1>;
        spidev@0 {
            compatible = "spidev";
            reg = <0>;
            spi-max-frequency = <50000000>;
Enclosed herewith the compiled kernel, device tree file package as below:

  • uImagekernel image
  • devicetree.dtbdevice tree image (binary)
  • zynq-zturn.dtsdevice tree source file


Room 04, 6th Floor, Building No.2, Fada Road, Yunli Smart Park, Bantian, Longgang District, Shenzhen, Guangdong, China 518129
E-mail: or  Phone: +86-755-22984836  Fax: +86-755-25532724
Copyright © MYIR Tech Limited 2011-2018 all rights reserved.
myirtech_facebook myirtech_Twitter myirtech_linkedin myirtech_youtube