element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Achievement Levels
    • Benefits of Membership
    • Feedback and Support
    • Members Area
    • Personal Blogs
    • What's New on element14
  • Learn
    Learn
    • eBooks
    • Learning Center
    • Learning Groups
    • STEM Academy
    • Webinars, Training and Events
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Arduino Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Project Groups
    • Raspberry Pi Projects
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Or choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development SPI init error -13 & Connection timed out
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Avnet Boards Forums requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 2 replies
  • Subscribers 174 subscribers
  • Views 736 views
  • Users 0 members are here
Related

SPI init error -13 & Connection timed out

valentino.ricci
valentino.ricci over 6 years ago

I'm creating a Microzed 7010 project using petalinux 2016.3 and linux 4.9 (from github master).

In my project I have 8 spi from AXI QUAD SPI.

Starting linux I obtain error -13 in probe.

I solved it using the spi-xilinx.c from linux 4.6.

Now I have:

spidev spi32766.0: buggy DT: spidev listed directly in DT
spidev spi32765.0: buggy DT: spidev listed directly in DT
spidev spi32764.0: buggy DT: spidev listed directly in DT
spidev spi32763.0: buggy DT: spidev listed directly in DT
spidev spi32762.0: buggy DT: spidev listed directly in DT
spidev spi32761.0: buggy DT: spidev listed directly in DT
spidev spi32760.0: buggy DT: spidev listed directly in DT
spidev spi32759.0: buggy DT: spidev listed directly in DT
 
but 
 
# spidev_test -D /dev/spidev32759.0
spi mode: 0x0
bits per word: 8
max speed: 500000 Hz (500 KHz)
spidev spi32759.0: SPI transfer timed out
can't send spi message: Connection timed out
Aborted
   
  # cat /dev/spidev32759.0
  spidev spi32759.0: SPI transfer timed out
  cat: read error: Connection timed out
 
What can I do? I use AXI Interrupt Controller...
 
 
 
  • Sign in to reply
  • Cancel
  • valentino.ricci
    0 valentino.ricci over 6 years ago
    /dts-v1/;
     
    / {
    #address-cells = <0x1>;
    #size-cells = <0x1>;
    compatible = "xlnx,zynq-microzed", "xlnx,zynq-7000";
    model = "Zynq MicroZED Board";
     
    chosen {
    bootargs = "earlyprintk";
    stdout-path = "serial0:115200n8";
    };
     
    aliases {
    serial0 = "/amba/serial@e0001000";
    ethernet0 = "/amba/ethernet@e000b000";
    spi0 = "/amba/spi@e000d000";
    mmc0 = "/amba/sdhci@e0100000";
    };
     
    memory {
    device_type = "memory";
    reg = <0x0 0x40000000>;
    };
     
    cpus {
    #address-cells = <0x1>;
    #size-cells = <0x0>;
     
    cpu@0 {
    compatible = "arm,cortex-a9";
    device_type = "cpu";
    reg = <0x0>;
    clocks = <0x1 0x3>;
    clock-latency = <0x3e8>;
    cpu0-supply = <0x2>;
    operating-points = <0xa2c2a 0xf4240 0x51615 0xf4240>;
    };
     
    cpu@1 {
    compatible = "arm,cortex-a9";
    device_type = "cpu";
    reg = <0x1>;
    clocks = <0x1 0x3>;
    };
    };
     
    fpga-full {
    compatible = "fpga-region";
    fpga-mgr = <0x3>;
    #address-cells = <0x1>;
    #size-cells = <0x1>;
    ranges;
    };
     
    pmu@f8891000 {
    compatible = "arm,cortex-a9-pmu";
    interrupts = <0x0 0x5 0x4 0x0 0x6 0x4>;
    interrupt-parent = <0x4>;
    reg = <0xf8891000 0x1000 0xf8893000 0x1000>;
    };
     
    fixedregulator {
    compatible = "regulator-fixed";
    regulator-name = "VCCPINT";
    regulator-min-microvolt = <0xf4240>;
    regulator-max-microvolt = <0xf4240>;
    regulator-boot-on;
    regulator-always-on;
    linux,phandle = <0x2>;
    phandle = <0x2>;
    };
     
    amba {
    u-boot,dm-pre-reloc;
    compatible = "simple-bus";
    #address-cells = <0x1>;
    #size-cells = <0x1>;
    interrupt-parent = <0x4>;
    ranges;
     
    adc@f8007100 {
    compatible = "xlnx,zynq-xadc-1.00.a";
    reg = <0xf8007100 0x20>;
    interrupts = <0x0 0x7 0x4>;
    interrupt-parent = <0x4>;
    clocks = <0x1 0xc>;
    };
     
    can@e0008000 {
    compatible = "xlnx,zynq-can-1.0";
    status = "disabled";
    clocks = <0x1 0x13 0x1 0x24>;
    clock-names = "can_clk", "pclk";
    reg = <0xe0008000 0x1000>;
    interrupts = <0x0 0x1c 0x4>;
    interrupt-parent = <0x4>;
    tx-fifo-depth = <0x40>;
    rx-fifo-depth = <0x40>;
    };
     
    can@e0009000 {
    compatible = "xlnx,zynq-can-1.0";
    status = "disabled";
    clocks = <0x1 0x14 0x1 0x25>;
    clock-names = "can_clk", "pclk";
    reg = <0xe0009000 0x1000>;
    interrupts = <0x0 0x33 0x4>;
    interrupt-parent = <0x4>;
    tx-fifo-depth = <0x40>;
    rx-fifo-depth = <0x40>;
    };
     
    gpio@e000a000 {
    compatible = "xlnx,zynq-gpio-1.0";
    #gpio-cells = <0x2>;
    clocks = <0x1 0x2a>;
    gpio-controller;
    interrupt-controller;
    #interrupt-cells = <0x2>;
    interrupt-parent = <0x4>;
    interrupts = <0x0 0x14 0x4>;
    reg = <0xe000a000 0x1000>;
    emio-gpio-width = <0x40>;
    gpio-mask-high = <0x0>;
    gpio-mask-low = <0x5600>;
    linux,phandle = <0x7>;
    phandle = <0x7>;
    };
     
    i2c@e0004000 {
    compatible = "cdns,i2c-r1p10";
    status = "disabled";
    clocks = <0x1 0x26>;
    interrupt-parent = <0x4>;
    interrupts = <0x0 0x19 0x4>;
    reg = <0xe0004000 0x1000>;
    #address-cells = <0x1>;
    #size-cells = <0x0>;
    };
     
    i2c@e0005000 {
    compatible = "cdns,i2c-r1p10";
    status = "disabled";
    clocks = <0x1 0x27>;
    interrupt-parent = <0x4>;
    interrupts = <0x0 0x30 0x4>;
    reg = <0xe0005000 0x1000>;
    #address-cells = <0x1>;
    #size-cells = <0x0>;
    };
     
    interrupt-controller@f8f01000 {
    compatible = "arm,cortex-a9-gic";
    #interrupt-cells = <0x3>;
    interrupt-controller;
    reg = <0xf8f01000 0x1000 0xf8f00100 0x100>;
    num_cpus = <0x2>;
    num_interrupts = <0x60>;
    linux,phandle = <0x4>;
    phandle = <0x4>;
    };
     
    cache-controller@f8f02000 {
    compatible = "arm,pl310-cache";
    reg = <0xf8f02000 0x1000>;
    interrupts = <0x0 0x2 0x4>;
    arm,data-latency = <0x3 0x2 0x2>;
    arm,tag-latency = <0x2 0x2 0x2>;
    cache-unified;
    cache-level = <0x2>;
    };
     
    memory-controller@f8006000 {
    compatible = "xlnx,zynq-ddrc-a05";
    reg = <0xf8006000 0x1000>;
    };
     
    ocmc@f800c000 {
    compatible = "xlnx,zynq-ocmc-1.0";
    interrupt-parent = <0x4>;
    interrupts = <0x0 0x3 0x4>;
    reg = <0xf800c000 0x1000>;
    };
     
    serial@e0000000 {
    compatible = "xlnx,xuartps", "cdns,uart-r1p8";
    status = "disabled";
    clocks = <0x1 0x17 0x1 0x28>;
    clock-names = "uart_clk", "pclk";
    reg = <0xe0000000 0x1000>;
    interrupts = <0x0 0x1b 0x4>;
    };
     
    serial@e0001000 {
    compatible = "xlnx,xuartps", "cdns,uart-r1p8";
    status = "okay";
    clocks = <0x1 0x18 0x1 0x29>;
    clock-names = "uart_clk", "pclk";
    reg = <0xe0001000 0x1000>;
    interrupts = <0x0 0x32 0x4>;
    device_type = "serial";
    port-number = <0x0>;
    u-boot,dm-pre-reloc;
    };
     
    spi@e0006000 {
    compatible = "xlnx,zynq-spi-r1p6";
    reg = <0xe0006000 0x1000>;
    status = "disabled";
    interrupt-parent = <0x4>;
    interrupts = <0x0 0x1a 0x4>;
    clocks = <0x1 0x19 0x1 0x22>;
    clock-names = "ref_clk", "pclk";
    #address-cells = <0x1>;
    #size-cells = <0x0>;
    };
     
    spi@e0007000 {
    compatible = "xlnx,zynq-spi-r1p6";
    reg = <0xe0007000 0x1000>;
    status = "disabled";
    interrupt-parent = <0x4>;
    interrupts = <0x0 0x31 0x4>;
    clocks = <0x1 0x1a 0x1 0x23>;
    clock-names = "ref_clk", "pclk";
    #address-cells = <0x1>;
    #size-cells = <0x0>;
    };
     
    spi@e000d000 {
    clock-names = "ref_clk", "pclk";
    clocks = <0x1 0xa 0x1 0x2b>;
    compatible = "xlnx,zynq-qspi-1.0";
    status = "okay";
    interrupt-parent = <0x4>;
    interrupts = <0x0 0x13 0x4>;
    reg = <0xe000d000 0x1000>;
    #address-cells = <0x1>;
    #size-cells = <0x0>;
    is-dual = <0x0>;
    num-cs = <0x1>;
    u-boot,dm-pre-reloc;
     
    flash@0 {
    compatible = "micron,m25p80";
    reg = <0x0>;
    #address-cells = <0x1>;
    #size-cells = <0x1>;
    spi-max-frequency = <0x2faf080>;
     
    partition@0x00000000 {
    label = "boot";
    reg = <0x0 0x500000>;
    };
     
    partition@0x00500000 {
    label = "bootenv";
    reg = <0x500000 0x20000>;
    };
     
    partition@0x00520000 {
    label = "kernel";
    reg = <0x520000 0xa80000>;
    };
     
    partition@0x00fa0000 {
    label = "jfss2";
    reg = <0xfa0000 0x0>;
    };
    };
    };
     
    memory-controller@e000e000 {
    #address-cells = <0x1>;
    #size-cells = <0x1>;
    status = "disabled";
    clock-names = "memclk", "aclk";
    clocks = <0x1 0xb 0x1 0x2c>;
    compatible = "arm,pl353-smc-r2p1";
    interrupt-parent = <0x4>;
    interrupts = <0x0 0x12 0x4>;
    ranges;
    reg = <0xe000e000 0x1000>;
     
    flash@e1000000 {
    status = "disabled";
    compatible = "arm,pl353-nand-r2p1";
    reg = <0xe1000000 0x1000000>;
    #address-cells = <0x1>;
    #size-cells = <0x1>;
    };
     
    flash@e2000000 {
    status = "disabled";
    compatible = "cfi-flash";
    reg = <0xe2000000 0x2000000>;
    #address-cells = <0x1>;
    #size-cells = <0x1>;
    };
    };
     
    ethernet@e000b000 {
    compatible = "cdns,zynq-gem", "cdns,gem";
    reg = <0xe000b000 0x1000>;
    status = "okay";
    interrupts = <0x0 0x16 0x4>;
    clocks = <0x1 0x1e 0x1 0x1e 0x1 0xd>;
    clock-names = "pclk", "hclk", "tx_clk";
    #address-cells = <0x1>;
    #size-cells = <0x0>;
    phy-mode = "rgmii-id";
    xlnx,ptp-enet-clock = <0x69f6bcb>;
    local-mac-address = [00 0a 35 00 1e 53];
    phy-handle = <0x5>;
     
    ethernet-phy@0 {
    reg = <0x0>;
    linux,phandle = <0x5>;
    phandle = <0x5>;
    };
    };
     
    ethernet@e000c000 {
    compatible = "cdns,zynq-gem", "cdns,gem";
    reg = <0xe000c000 0x1000>;
    status = "disabled";
    interrupts = <0x0 0x2d 0x4>;
    clocks = <0x1 0x1f 0x1 0x1f 0x1 0xe>;
    clock-names = "pclk", "hclk", "tx_clk";
    #address-cells = <0x1>;
    #size-cells = <0x0>;
    };
     
    sdhci@e0100000 {
    compatible = "arasan,sdhci-8.9a";
    status = "okay";
    clock-names = "clk_xin", "clk_ahb";
    clocks = <0x1 0x15 0x1 0x20>;
    interrupt-parent = <0x4>;
    interrupts = <0x0 0x18 0x4>;
    reg = <0xe0100000 0x1000>;
    broken-adma2;
    xlnx,has-cd = <0x1>;
    xlnx,has-power = <0x0>;
    xlnx,has-wp = <0x1>;
    u-boot,dm-pre-reloc;
    };
     
    sdhci@e0101000 {
    compatible = "arasan,sdhci-8.9a";
    status = "disabled";
    clock-names = "clk_xin", "clk_ahb";
    clocks = <0x1 0x16 0x1 0x21>;
    interrupt-parent = <0x4>;
    interrupts = <0x0 0x2f 0x4>;
    reg = <0xe0101000 0x1000>;
    broken-adma2;
    };
     
    slcr@f8000000 {
    #address-cells = <0x1>;
    #size-cells = <0x1>;
    compatible = "xlnx,zynq-slcr", "syscon", "simple-mfd";
    reg = <0xf8000000 0x1000>;
    ranges;
    linux,phandle = <0x6>;
    phandle = <0x6>;
     
    clkc@100 {
    #clock-cells = <0x1>;
    compatible = "xlnx,ps7-clkc";
    fclk-enable = <0x1>;
    clock-output-names = "armpll", "ddrpll", "iopll", "cpu_6or4x", "cpu_3or2x", "cpu_2x", "cpu_1x", "ddr2x", "ddr3x", "dci", "lqspi", "smc", "pcap", "gem0", "gem1", "fclk0", "fclk1", "fclk2", "fclk3", "can0", "can1", "sdio0", "sdio1", "uart0", "uart1", "spi0", "spi1", "dma", "usb0_aper", "usb1_aper", "gem0_aper", "gem1_aper", "sdio0_aper", "sdio1_aper", "spi0_aper", "spi1_aper", "can0_aper", "can1_aper", "i2c0_aper", "i2c1_aper", "uart0_aper", "uart1_aper", "gpio_aper", "lqspi_aper", "smc_aper", "swdt", "dbg_trc", "dbg_apb";
    reg = <0x100 0x100>;
    ps-clk-frequency = <0x1fca055>;
    linux,phandle = <0x1>;
    phandle = <0x1>;
    };
     
    rstc@200 {
    compatible = "xlnx,zynq-reset";
    reg = <0x200 0x48>;
    #reset-cells = <0x1>;
    syscon = <0x6>;
    };
     
    pinctrl@700 {
    compatible = "xlnx,pinctrl-zynq";
    reg = <0x700 0x200>;
    syscon = <0x6>;
    };
    };
     
    dmac@f8003000 {
    compatible = "arm,pl330", "arm,primecell";
    reg = <0xf8003000 0x1000>;
    interrupt-parent = <0x4>;
    interrupt-names = "abort", "dma0", "dma1", "dma2", "dma3", "dma4", "dma5", "dma6", "dma7";
    interrupts = <0x0 0xd 0x4 0x0 0xe 0x4 0x0 0xf 0x4 0x0 0x10 0x4 0x0 0x11 0x4 0x0 0x28 0x4 0x0 0x29 0x4 0x0 0x2a 0x4 0x0 0x2b 0x4>;
    #dma-cells = <0x1>;
    #dma-channels = <0x8>;
    #dma-requests = <0x4>;
    clocks = <0x1 0x1b>;
    clock-names = "apb_pclk";
    };
     
    devcfg@f8007000 {
    compatible = "xlnx,zynq-devcfg-1.0";
    interrupt-parent = <0x4>;
    interrupts = <0x0 0x8 0x4>;
    reg = <0xf8007000 0x100>;
    clocks = <0x1 0xc 0x1 0xf 0x1 0x10 0x1 0x11 0x1 0x12>;
    clock-names = "ref_clk", "fclk0", "fclk1", "fclk2", "fclk3";
    syscon = <0x6>;
    linux,phandle = <0x3>;
    phandle = <0x3>;
    };
     
    efuse@f800d000 {
    compatible = "xlnx,zynq-efuse";
    reg = <0xf800d000 0x20>;
    };
     
    timer@f8f00200 {
    compatible = "arm,cortex-a9-global-timer";
    reg = <0xf8f00200 0x20>;
    interrupts = <0x1 0xb 0x301>;
    interrupt-parent = <0x4>;
    clocks = <0x1 0x4>;
    };
     
    timer@f8001000 {
    interrupt-parent = <0x4>;
    interrupts = <0x0 0xa 0x4 0x0 0xb 0x4 0x0 0xc 0x4>;
    compatible = "cdns,ttc";
    clocks = <0x1 0x6>;
    reg = <0xf8001000 0x1000>;
    };
     
    timer@f8002000 {
    interrupt-parent = <0x4>;
    interrupts = <0x0 0x25 0x4 0x0 0x26 0x4 0x0 0x27 0x4>;
    compatible = "cdns,ttc";
    clocks = <0x1 0x6>;
    reg = <0xf8002000 0x1000>;
    };
     
    timer@f8f00600 {
    interrupt-parent = <0x4>;
    interrupts = <0x1 0xd 0x301>;
    compatible = "arm,cortex-a9-twd-timer";
    reg = <0xf8f00600 0x20>;
    clocks = <0x1 0x4>;
    };
     
    usb@e0002000 {
    compatible = "xlnx,zynq-usb-2.20a", "chipidea,usb2";
    status = "okay";
    clocks = <0x1 0x1c>;
    interrupt-parent = <0x4>;
    interrupts = <0x0 0x15 0x4>;
    reg = <0xe0002000 0x1000>;
    phy_type = "ulpi";
    dr_mode = "host";
    usb-reset = <0x7 0x7 0x0>;
    usb-phy = <0x8>;
    };
     
    usb@e0003000 {
    compatible = "xlnx,zynq-usb-2.20a", "chipidea,usb2";
    status = "disabled";
    clocks = <0x1 0x1d>;
    interrupt-parent = <0x4>;
    interrupts = <0x0 0x2c 0x4>;
    reg = <0xe0003000 0x1000>;
    phy_type = "ulpi";
    };
     
    watchdog@f8005000 {
    clocks = <0x1 0x2d>;
    compatible = "cdns,wdt-r1p2";
    interrupt-parent = <0x4>;
    interrupts = <0x0 0x9 0x1>;
    reg = <0xf8005000 0x1000>;
    timeout-sec = <0xa>;
    };
    };
     
    amba_pl {
    #address-cells = <0x1>;
    #size-cells = <0x1>;
    compatible = "simple-bus";
    ranges;
     
    gpio@41200000 {
    #gpio-cells = <0x2>;
    #interrupt-cells = <0x2>;
    compatible = "xlnx,xps-gpio-1.00.a";
    gpio-controller;
    interrupt-controller;
    interrupt-parent = <0x9>;
    interrupts = <0x10 0x2>;
    reg = <0x41200000 0x10000>;
    xlnx,all-inputs = <0x0>;
    xlnx,all-inputs-2 = <0x0>;
    xlnx,all-outputs = <0x0>;
    xlnx,all-outputs-2 = <0x0>;
    xlnx,dout-default = <0x0>;
    xlnx,dout-default-2 = <0x0>;
    xlnx,gpio-width = <0xd>;
    xlnx,gpio2-width = <0x10>;
    xlnx,interrupt-present = <0x1>;
    xlnx,is-dual = <0x1>;
    xlnx,tri-default = <0xffffffff>;
    xlnx,tri-default-2 = <0xffffffff>;
    };
     
    i2c@41600000 {
    #address-cells = <0x1>;
    #size-cells = <0x0>;
    clock-names = "ref_clk";
    clocks = <0x1 0xf>;
    compatible = "xlnx,xps-iic-2.00.a";
    interrupt-parent = <0x9>;
    interrupts = <0x11 0x2>;
    reg = <0x41600000 0x10000>;
    };
     
    interrupt-controller@41800000 {
    #interrupt-cells = <0x2>;
    compatible = "xlnx,xps-intc-1.00.a";
    interrupt-controller;
    reg = <0x41800000 0x10000>;
    xlnx,kind-of-intr = <0xffff>;
    xlnx,num-intr-inputs = <0x13>;
    linux,phandle = <0x9>;
    phandle = <0x9>;
    };
     
    axi_quad_spi@41e00000 {
    bits-per-word = <0x8>;
    compatible = "xlnx,xps-spi-2.00.a";
    fifo-size = <0x10>;
    interrupt-parent = <0x9>;
    interrupts = <0x0 0x0>;
    num-cs = <0x1>;
    reg = <0x41e00000 0x10000>;
    xlnx,num-ss-bits = <0x1>;
    xlnx,spi-mode = <0x0>;
    status = "okay";
     
    spidev@0x00 {
    compatible = "spidev";
    spi-max-frequency = <0xf4240>;
    reg = <0x0>;
    };
    };
     
    axi_quad_spi@41e10000 {
    bits-per-word = <0x8>;
    compatible = "xlnx,xps-spi-2.00.a";
    fifo-size = <0x10>;
    interrupt-parent = <0x9>;
    interrupts = <0x1 0x0>;
    num-cs = <0x1>;
    reg = <0x41e10000 0x10000>;
    xlnx,num-ss-bits = <0x1>;
    xlnx,spi-mode = <0x0>;
    status = "okay";
     
    spidev@0x01 {
    compatible = "spidev";
    spi-max-frequency = <0xf4240>;
    reg = <0x0>;
    };
    };
     
    axi_quad_spi@41e20000 {
    bits-per-word = <0x8>;
    compatible = "xlnx,xps-spi-2.00.a";
    fifo-size = <0x10>;
    interrupt-parent = <0x9>;
    interrupts = <0x2 0x0>;
    num-cs = <0x1>;
    reg = <0x41e20000 0x10000>;
    xlnx,num-ss-bits = <0x1>;
    xlnx,spi-mode = <0x0>;
    status = "okay";
     
    spidev@0x00 {
    compatible = "spidev";
    spi-max-frequency = <0xf4240>;
    reg = <0x0>;
    };
    };
     
    axi_quad_spi@41e30000 {
    bits-per-word = <0x8>;
    compatible = "xlnx,xps-spi-2.00.a";
    fifo-size = <0x10>;
    interrupt-parent = <0x9>;
    interrupts = <0x3 0x0>;
    num-cs = <0x1>;
    reg = <0x41e30000 0x10000>;
    xlnx,num-ss-bits = <0x1>;
    xlnx,spi-mode = <0x0>;
    status = "okay";
     
    spidev@0x00 {
    compatible = "spidev";
    spi-max-frequency = <0xf4240>;
    reg = <0x0>;
    };
    };
     
    axi_quad_spi@41e40000 {
    bits-per-word = <0x8>;
    compatible = "xlnx,xps-spi-2.00.a";
    fifo-size = <0x10>;
    interrupt-parent = <0x9>;
    interrupts = <0x4 0x0>;
    num-cs = <0x1>;
    reg = <0x41e40000 0x10000>;
    xlnx,num-ss-bits = <0x1>;
    xlnx,spi-mode = <0x0>;
    status = "okay";
     
    spidev@0x00 {
    compatible = "spidev";
    spi-max-frequency = <0xf4240>;
    reg = <0x0>;
    };
    };
     
    axi_quad_spi@41e50000 {
    bits-per-word = <0x8>;
    compatible = "xlnx,xps-spi-2.00.a";
    fifo-size = <0x10>;
    interrupt-parent = <0x9>;
    interrupts = <0x5 0x0>;
    num-cs = <0x1>;
    reg = <0x41e50000 0x10000>;
    xlnx,num-ss-bits = <0x1>;
    xlnx,spi-mode = <0x0>;
    status = "okay";
     
    spidev@0x00 {
    compatible = "spidev";
    spi-max-frequency = <0xf4240>;
    reg = <0x0>;
    };
    };
     
    axi_quad_spi@41e60000 {
    bits-per-word = <0x8>;
    compatible = "xlnx,xps-spi-2.00.a";
    fifo-size = <0x10>;
    interrupt-parent = <0x9>;
    interrupts = <0x6 0x0>;
    num-cs = <0x1>;
    reg = <0x41e60000 0x10000>;
    xlnx,num-ss-bits = <0x1>;
    xlnx,spi-mode = <0x0>;
    status = "okay";
     
    spidev@0x00 {
    compatible = "spidev";
    spi-max-frequency = <0xf4240>;
    reg = <0x0>;
    };
    };
     
    axi_quad_spi@41e70000 {
    bits-per-word = <0x8>;
    compatible = "xlnx,xps-spi-2.00.a";
    fifo-size = <0x10>;
    interrupt-parent = <0x9>;
    interrupts = <0x7 0x0>;
    num-cs = <0x1>;
    reg = <0x41e70000 0x10000>;
    xlnx,num-ss-bits = <0x1>;
    xlnx,spi-mode = <0x0>;
    status = "okay";
     
    spidev@0x00 {
    compatible = "spidev";
    spi-max-frequency = <0xf4240>;
    reg = <0x0>;
    };
    };
     
    serial@42c00000 {
    clock-names = "ref_clk";
    clocks = <0x1 0x0>;
    compatible = "xlnx,xps-uartlite-1.00.a";
    current-speed = <0x2580>;
    device_type = "serial";
    interrupt-parent = <0x9>;
    interrupts = <0x8 0x0>;
    port-number = <0x1>;
    reg = <0x42c00000 0x10000>;
    xlnx,baudrate = <0x2580>;
    xlnx,data-bits = <0x8>;
    xlnx,odd-parity = <0x0>;
    xlnx,s-axi-aclk-freq-hz-d = "100.0";
    xlnx,use-parity = <0x0>;
    };
     
    serial@42c10000 {
    clock-names = "ref_clk";
    clocks = <0x1 0x0>;
    compatible = "xlnx,xps-uartlite-1.00.a";
    current-speed = <0x2580>;
    device_type = "serial";
    interrupt-parent = <0x9>;
    interrupts = <0x9 0x0>;
    port-number = <0x2>;
    reg = <0x42c10000 0x10000>;
    xlnx,baudrate = <0x2580>;
    xlnx,data-bits = <0x8>;
    xlnx,odd-parity = <0x0>;
    xlnx,s-axi-aclk-freq-hz-d = "100.0";
    xlnx,use-parity = <0x0>;
    };
     
    serial@42c20000 {
    clock-names = "ref_clk";
    clocks = <0x1 0x0>;
    compatible = "xlnx,xps-uartlite-1.00.a";
    current-speed = <0x2580>;
    device_type = "serial";
    interrupt-parent = <0x9>;
    interrupts = <0xa 0x0>;
    port-number = <0x3>;
    reg = <0x42c20000 0x10000>;
    xlnx,baudrate = <0x2580>;
    xlnx,data-bits = <0x8>;
    xlnx,odd-parity = <0x0>;
    xlnx,s-axi-aclk-freq-hz-d = "100.0";
    xlnx,use-parity = <0x0>;
    };
     
    serial@42c30000 {
    clock-names = "ref_clk";
    clocks = <0x1 0x0>;
    compatible = "xlnx,xps-uartlite-1.00.a";
    current-speed = <0x2580>;
    device_type = "serial";
    interrupt-parent = <0x9>;
    interrupts = <0xb 0x0>;
    port-number = <0x4>;
    reg = <0x42c30000 0x10000>;
    xlnx,baudrate = <0x2580>;
    xlnx,data-bits = <0x8>;
    xlnx,odd-parity = <0x0>;
    xlnx,s-axi-aclk-freq-hz-d = "100.0";
    xlnx,use-parity = <0x0>;
    };
     
    serial@42c40000 {
    clock-names = "ref_clk";
    clocks = <0x1 0x0>;
    compatible = "xlnx,xps-uartlite-1.00.a";
    current-speed = <0x2580>;
    device_type = "serial";
    interrupt-parent = <0x9>;
    interrupts = <0xc 0x0>;
    port-number = <0x5>;
    reg = <0x42c40000 0x10000>;
    xlnx,baudrate = <0x2580>;
    xlnx,data-bits = <0x8>;
    xlnx,odd-parity = <0x0>;
    xlnx,s-axi-aclk-freq-hz-d = "100.0";
    xlnx,use-parity = <0x0>;
    };
     
    serial@42c50000 {
    clock-names = "ref_clk";
    clocks = <0x1 0x0>;
    compatible = "xlnx,xps-uartlite-1.00.a";
    current-speed = <0x2580>;
    device_type = "serial";
    interrupt-parent = <0x9>;
    interrupts = <0xd 0x0>;
    port-number = <0x6>;
    reg = <0x42c50000 0x10000>;
    xlnx,baudrate = <0x2580>;
    xlnx,data-bits = <0x8>;
    xlnx,odd-parity = <0x0>;
    xlnx,s-axi-aclk-freq-hz-d = "100.0";
    xlnx,use-parity = <0x0>;
    };
     
    serial@42c60000 {
    clock-names = "ref_clk";
    clocks = <0x1 0x0>;
    compatible = "xlnx,xps-uartlite-1.00.a";
    current-speed = <0x2580>;
    device_type = "serial";
    interrupt-parent = <0x9>;
    interrupts = <0xe 0x0>;
    port-number = <0x7>;
    reg = <0x42c60000 0x10000>;
    xlnx,baudrate = <0x2580>;
    xlnx,data-bits = <0x8>;
    xlnx,odd-parity = <0x0>;
    xlnx,s-axi-aclk-freq-hz-d = "100.0";
    xlnx,use-parity = <0x0>;
    };
     
    serial@42c70000 {
    clock-names = "ref_clk";
    clocks = <0x1 0x0>;
    compatible = "xlnx,xps-uartlite-1.00.a";
    current-speed = <0x2580>;
    device_type = "serial";
    interrupt-parent = <0x9>;
    interrupts = <0xf 0x0>;
    port-number = <0x8>;
    reg = <0x42c70000 0x10000>;
    xlnx,baudrate = <0x2580>;
    xlnx,data-bits = <0x8>;
    xlnx,odd-parity = <0x0>;
    xlnx,s-axi-aclk-freq-hz-d = "100.0";
    xlnx,use-parity = <0x0>;
    };
     
    xadc_wiz@43c10000 {
    clock-names = "ref_clk";
    clocks = <0x1 0x0>;
    compatible = "xlnx,axi-xadc-1.00.a";
    interrupt-parent = <0x9>;
    interrupts = <0x12 0x2>;
    reg = <0x43c10000 0x10000>;
    xlnx,alarm-limit-r0 = <0xb5ed>;
    xlnx,alarm-limit-r1 = <0x57e4>;
    xlnx,alarm-limit-r10 = <0x5555>;
    xlnx,alarm-limit-r11 = <0x5111>;
    xlnx,alarm-limit-r12 = <0x9999>;
    xlnx,alarm-limit-r13 = <0x91eb>;
    xlnx,alarm-limit-r14 = <0x6aaa>;
    xlnx,alarm-limit-r15 = <0x6666>;
    xlnx,alarm-limit-r2 = <0xa147>;
    xlnx,alarm-limit-r3 = <0xca33>;
    xlnx,alarm-limit-r4 = <0xa93a>;
    xlnx,alarm-limit-r5 = <0x52c6>;
    xlnx,alarm-limit-r6 = <0x9555>;
    xlnx,alarm-limit-r7 = <0xae4e>;
    xlnx,alarm-limit-r8 = <0x5999>;
    xlnx,alarm-limit-r9 = <0x5111>;
    xlnx,configuration-r0 = <0x1000>;
    xlnx,configuration-r1 = <0x21af>;
    xlnx,configuration-r2 = <0x400>;
    xlnx,dclk-frequency = <0x64>;
    xlnx,external-mux = "none";
    xlnx,external-mux-channel = "VP_VN";
    xlnx,external-muxaddr-enable = <0x0>;
    xlnx,fifo-depth = <0x40>;
    xlnx,has-axi = <0x1>;
    xlnx,has-axi4stream = <0x0>;
    xlnx,has-busy = <0x1>;
    xlnx,has-channel = <0x1>;
    xlnx,has-convst = <0x0>;
    xlnx,has-convstclk = <0x0>;
    xlnx,has-dclk = <0x1>;
    xlnx,has-drp = <0x0>;
    xlnx,has-eoc = <0x1>;
    xlnx,has-eos = <0x1>;
    xlnx,has-external-mux = <0x0>;
    xlnx,has-jtagbusy = <0x0>;
    xlnx,has-jtaglocked = <0x0>;
    xlnx,has-jtagmodified = <0x0>;
    xlnx,has-ot-alarm = <0x0>;
    xlnx,has-reset = <0x0>;
    xlnx,has-temp-bus = <0x0>;
    xlnx,has-user-temp-alarm = <0x0>;
    xlnx,has-vbram-alarm = <0x0>;
    xlnx,has-vccaux-alarm = <0x0>;
    xlnx,has-vccddro-alarm = <0x0>;
    xlnx,has-vccint-alarm = <0x0>;
    xlnx,has-vccpaux-alarm = <0x0>;
    xlnx,has-vccpint-alarm = <0x0>;
    xlnx,has-vn = <0x1>;
    xlnx,has-vp = <0x1>;
    xlnx,include-intr = <0x1>;
    xlnx,sampling-rate = "961538.4615384615";
    xlnx,sequence-r0 = <0xb01>;
    xlnx,sequence-r1 = <0x3f6>;
    xlnx,sequence-r2 = <0xb00>;
    xlnx,sequence-r3 = <0x3f6>;
    xlnx,sequence-r4 = <0x0>;
    xlnx,sequence-r5 = <0x0>;
    xlnx,sequence-r6 = <0x0>;
    xlnx,sequence-r7 = <0x0>;
    xlnx,sim-file-name = "design";
    xlnx,sim-file-rel-path = "./";
    xlnx,sim-file-sel = "Default";
    xlnx,vaux0 = <0x0>;
    xlnx,vaux1 = <0x1>;
    xlnx,vaux10 = <0x0>;
    xlnx,vaux11 = <0x0>;
    xlnx,vaux12 = <0x0>;
    xlnx,vaux13 = <0x0>;
    xlnx,vaux14 = <0x0>;
    xlnx,vaux15 = <0x0>;
    xlnx,vaux2 = <0x1>;
    xlnx,vaux3 = <0x0>;
    xlnx,vaux4 = <0x1>;
    xlnx,vaux5 = <0x1>;
    xlnx,vaux6 = <0x1>;
    xlnx,vaux7 = <0x1>;
    xlnx,vaux8 = <0x1>;
    xlnx,vaux9 = <0x1>;
    };
    };
     
    memory@0 {
    device_type = "memory";
    reg = <0x0 0x40000000>;
    };
     
    phy0 {
    compatible = "usb-nop-xceiv";
    #phy-cells = <0x0>;
    linux,phandle = <0x8>;
    phandle = <0x8>;
    };
    };
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • valentino.ricci
    0 valentino.ricci over 6 years ago

    The problem is related to AXI Interrupt Controller (INTC) v4.1.

    Same Linux configuration works fine on ZedBaord without AXI Interrupt Controller (INTC) v4.1.

    Once I add the AXI Interrupt Controller (INTC) v4.1 (as is), I obtain the timeout issue.

    What is the right configuration of this IP for using with Linux?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube