AnsweredAssumed Answered

spi loaded at /dev/spidev32765.0?

Question asked by Ben Rathke on Feb 11, 2014
Latest reply on Jul 21, 2016 by Qinghua Zhu

Hello All -

I am new to device tree and trying to configure an spi port for spidev access in /dev/spidevX.Y. I was somewhat successful with the code shown below... the port works, I can run a loopback test, however it gets mounted as /dev/spidev32765.0 instead of what I was expecting, /dev/spidev1.0.

 

I am running on an imx6slevk, kernel 3.10.17, with the following additions to imx6sl-evk.dts:

&ecspi2 {

  fsl,spi-num-chipselects = <1>;

  cs-gpios = <0>;

  pinctrl-names = "default";

  pinctrl-0 = <&pinctrl_ecspi2_1>;

  status = "okay";

    spidev@0x00 {

        compatible = "spidev";

        spi-max-frequency = <20000000>;

        reg = <0>;

    };

};

 

&iomuxc {

...

...

     ecspi2 {

       pinctrl_ecspi2_1: ecspi2grp-1 {

            fsl,pins = <

                 MX6SL_PAD_LCD_DAT10__ECSPI2_MISO 0x100b1

                 MX6SL_PAD_LCD_DAT9__ECSPI2_MOSI 0x100b1

                 MX6SL_PAD_LCD_DAT8__ECSPI2_SCLK 0x100b1

                 MX6SL_PAD_ECSPI2_SS0__ECSPI2_SS0 0x100b1

            >;

       };

     };

 

Any ideas? Thanks -Ben

 

 

Outcomes