AnsweredAssumed Answered

spi device name

Question asked by Niklas Molin on Feb 28, 2014
Latest reply on Mar 11, 2014 by Niklas Molin

Hi.

 

I'm trying to use 2 ecspi buses.

The problem is that only device name for one bus shows up.

So I think it uses the same name.

If I for instance have:

&ecspi1 {

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

  cs-gpios = <&gpio4 9 0>, <&gpio5 9 0>;

  pinctrl-names = "default";

  pinctrl-0 = <&pinctrl_ecspi1_2>;

  status = "okay";

        chip1: spidev@0 {

               compatible = "spidev";

               spi-max-frequency = <20000000>;

               reg = <0>;

        };

 

 

        chip2: spidev@1 {

               compatible = "spidev";

               spi-max-frequency = <20000000>;

               reg = <1>;

        };

};

 

&ecspi3 {

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

  cs-gpios = <&gpio4 24 0>;

  pinctrl-names = "default";

  pinctrl-0 = <&pinctrl_ecspi3_1>;

  status = "okay";

 

        chip3: spidev@0 {

               compatible = "spidev";

               spi-max-frequency = <20000000>;

               reg = <0>;

        };

};

 

I will only see spidev32766.0 and spidev32766.1 in the /dev directory

Shouldn't the SPI bus number also be included in the device name?

How do I change the name the device will have in /dev?

 

Thanks,

Niklas

Outcomes