UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
657 Views
Registered: ‎10-19-2017

Spidev in QEMU

Hello, I am trying to get a spidev device emulated in QEMU. I have it enabled in my device tree but it does not appear in the /dev/ folder on my emulated Zynq. Here is my device tree

 

 

/dts-v1/;

/ {
    #address-cells = <0x1>;
     #size-cells = <0x1>;
     compatible = "xlnx,zynq-7000";
      model = "petaproject";




      amba {
          compatible = "simple-bus";
          #address-cells = <0x1>;
          #size-cells = <0x1>;
          interrupt-parent = <0x3>;
          ranges;




           spi@e0006000 {
               compatible = "cdns,spi-r1p6";
               reg = <0xe0007000 0x1000>;
               status = "okay";
               interrupt-parent = <0x3>;
               interrupts = <0x0 0x31 0x4>;
               clocks = <0x1 0x1a 0x1 0x23>;
               clock-names = "ref_clk", "pclk";
               #address-cells = <0x1>;
               #size-cells = <0x0>;
              num-cs = <0x4>;
              is-decoded-cs = <0x0>;

             

             flash@0 {
                 compatible = "sst25wf080";
                 reg = <0x1>;
                 spi-max-frequency = <0xf4240>;
                 #address-cells = <0x1>;
                #size-cells = <0x1>;

                partition@test {
                   label = "spi-flash";
                   reg = <0x0 0x100000>;
                };
            };

            spidev@0x02 {
                 compatible = "spidev";
                  spi-max-frequency = <0x124f80>;
                  reg = <0x0>;
           };
       };

   };


};

 

Can QEMU emulate spidev?

0 Kudos
1 Reply
Moderator
Moderator
559 Views
Registered: ‎09-12-2007

Re: Spidev in QEMU

have you enabled this in the kernel?

0 Kudos