SPI on LS1021A-TWR

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPI on LS1021A-TWR

2,315件の閲覧回数
egortolstykh
Contributor I

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?

ラベル(1)
0 件の賞賛
返信
1 返信

1,869件の閲覧回数
Pavel
NXP Employee
NXP Employee

Look at the following pages about spidev using on the LS1021a board:

https://community.nxp.com/thread/385442

 

https://community.nxp.com/thread/379732

 

https://community.nxp.com/thread/322162


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信