AnsweredAssumed Answered

iMX287 SSP0 in SPI mode

Question asked by kamel B on Nov 12, 2018
Latest reply on Nov 16, 2018 by Bio_TICFSL

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.

Outcomes