AnsweredAssumed Answered

DTS entry for slave SPI device on imx28-evk SSP2.

Question asked by Randy Graham on Oct 30, 2012
Latest reply on Feb 6, 2013 by Randy Graham
Branched to a new discussion



I am running mainline 3.7.rc-1 kernel on my imx28-evk board and need some help to configure a SPI slave device on SPI bus SSP2.


I have a microchip msf24j40 802.15.4 device wired as follows to my imx28-evk board (no flash).


SPI bus : SSP2

Interrupt: GPIO3_0

CS      : SSP2_SS0

(chip select)


The driver for this device has modalis = mrf24j40


I assume I need to update my imx28-evk.dts device tree file but am confused as to how .

Also, if I update my dts file, do I need to add anything to my board file ?


I thought I could just modify the existing flash entry in the dts file but am not sure how to do so:

ssp2: ssp@80014000 {

     #address-cells = <1>;

     #size-cells = <0>;

     compatible = "fsl,imx28-spi";

     pinctrl-names = "default";

     pinctrl-0 = <&spi2_pins_a>;

     status = "okay";


     flash: m25p80@0 {

          #address-cells = <1>;

          #size-cells = <1>;

          compatible = "sst,sst25vf016b";

          spi-max-frequency = <40000000>;

          reg = <0>;




Can someone help me with this ?


Thanks for any hints