AnsweredAssumed Answered

SPI on LS1021A-TWR

Question asked by Egor Tolstykh on Jun 8, 2017
Latest reply on Jun 13, 2017 by Pavel Chubakov

Hello.

 

I'm trying to use SPI on my LS1021A-TWR board. But spidev does not appear in /dev . I'm using QorIQ SDK 2.0  1703. I've already read all discussions and topics that was started on this forum. I'm loading from SD card. Drivers for SPI in kernel config have the following parameters:

<*> Freescale i.MX SPI controllers
<*> Freescale SPI controller and Aeroflex Gaisler GRLIB SPI controller
<*> Freescale DSPI controller
<*> User mode SPI device driver support

 

 

RCW (source from SD card) looks like this: 

0608000a 00000000 00000000 00000000
30000000 00007900 60040a00 21046000
00000000 00000000 00000000 00020000
00020800 241b7340 00000000 00000000

 

Part of dts file that is corresponding to SPI looks like this:

dspi0: dspi@2100000 {
   compatible = "fsl,ls1021a-v1.0-dspi";
   #address-cells = <1>;
   #size-cells = <0>;
   reg = <0x0 0x2100000 0x0 0x10000>;
   interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
   clock-names = "dspi";
   clocks = <&platform_clk 1>;
   spi-num-chipselects = <5>;
   big-endian;
   status = "okay";
};

 

Part of dtsi file that is corresponding to SPI looks like this:

&dspi0 {
   bus-num = <0>;
   status = "okay";

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

 

If spidev does not suppose to be in /dev, then how should I work with SPI?

Outcomes