AnsweredAssumed Answered

SPI NOT working in LS1021A-iot board

Question asked by PRABIN CA on Nov 10, 2015

Hi all

I'm working on LS1021A-IOT board(rev 1) and SDK version is 1.8 , I need to test the spi interface for the same. For that I did RCW changes for enabling the SPI. Also added following on dts file.

&dspi1 {

         status = "okay";

         num-cs = <3>;

         bus-num = <1>;

         is-decoded-cs = <0>;

             spidev@0 {

                 compatible = "spidev";

                 reg = <0x0>;

                 spi-max-frequency = <25000000>;

                 #address-cells = <1>;

                 #size-cells = <1>;

              };

            spidev@1 {

                compatible = "spidev";

                reg = <0x1>;

                spi-max-frequency = <25000000>;

                #address-cells = <1>;

                #size-cells = <1>;

             };

          spidev@4 {

               compatible = "spidev";

               reg = <0x4>;

               spi-max-frequency = <25000000>;

               #address-cells = <1>;

               #size-cells = <1>;

          };

};

This dts is worked fine , that is it  showing spidev1.x on /dev . But on probing SPI lines by MSO while reading/writing by spidev_test.c (available in ..../git/Documentation/spi) showing no changes on it. also the driver (spidev.ko) is getting called while read/write (that i have tested  by putting some prints on spidev.c).

 

Please help me, Do i have to add any changes in any other files. Im running out of time.

 

please give some suggestion.

 

Thanks in advance

Outcomes