iMX287 SSP0 in SPI mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX287 SSP0 in SPI mode

788 Views
mks
Contributor II

Hello,

We have designed a iMX28 board that should use the SSP0 port in SPI mode (that should be ok refering to datasheet).

We are using a stable kernel version 4.4.x-fslc kernel with the following devicetree node defined

             ssp@80010000 {                                                                
                 #address-cells = <1>;                                                     
                 #size-cells = <0>;                                                        
                 compatible = "fsl,imx28-spi";                                             
                 pinctrl-names = "default";                                                
                 pinctrl-0 = <&spi0_pins_a &spi0_sck_cfg>;                                 
                 num-chipselects = <1>;                                                    
                 status = "okay";                                                          
                                                                                           
                enc28j60@0 {                                                               
                     compatible = "microchip,enc28j60";                                    
                     pinctrl-names = "default";                                            
                     pinctrl-0 = <&enc28j60_pins>;                                         
                     interrupt-parent = <&gpio2>;                                          
                     interrupts = <27 0x2>;                                                
                     spi-max-frequency = <20000000>;                                       
                     reg = <0>;                                                            
                 };                                                                                                                                             
             }; 

The pinmux is defined like below:

spi0_pins_a: spi0@0 {
      reg = <0>;
      fsl,pinmux-ids = <
         MX28_PAD_SSP0_SCK__SSP0_SCK
         MX28_PAD_SSP0_CMD__SSP0_CMD
         MX28_PAD_SSP0_DATA0__SSP0_D0
         MX28_PAD_SSP0_DATA3__SSP0_D3
      >;
      fsl,drive-strength = <MXS_DRIVE_8mA>;
      fsl,voltage = <MXS_VOLTAGE_HIGH>;
      fsl,pull-up = <MXS_PULL_ENABLE>;
};

Can you confirm that this configuration is possible ? Until now we did not success making it work.

Labels (1)
0 Kudos
2 Replies

512 Views
tbadolph
Contributor I

Hi:

     Can you share how to add ENC28J60 to  the DTS ? thanks

0 Kudos

653 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Kamel,

The compatible string you use is not correct.

 

Take a look at this dts file that shows the usage of a m25p80 spi flash on mx28,as reference:

imx28-m28evk.dts\dts\boot\arm\arch - kernel/git/stable/linux.git - Linux kernel stable tree 

Regards

0 Kudos