[meta-freescale] spidev name question

Niklas Molin niklas.p.molin at gmail.com
Sat Mar 1 07:00:53 PST 2014


Hi.

I just wanted to check regarding the name of the spidev under /dev
directory.
I'm using device tree (kernel 3.10) to setup my system and trying to
initialize multiple SPI interfaces.

&ecspi1 {
fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio5 25 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1_1>;
status = "okay";

        chip1: spidev at 0 {
               compatible = "spidev";
               spi-max-frequency = <20000000>;
               reg = <0>;
        };
};

&ecspi3 {
fsl,spi-num-chipselects = <2>;
cs-gpios = <&gpio4 24 0>, <&gpio4 25 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi3_1>;
status = "okay";

        chip2: spidev at 0 {
               compatible = "spidev";
               spi-max-frequency = <20000000>;
               reg = <0>;
        };

        chip3: spidev at 1 {
               compatible = "spidev";
               spi-max-frequency = <20000000>;
               reg = <1>;
        };
};

When I look in the /dev directory in my generated Linux, I only see
spidev32766.0
and spidev32766.1.
My question is, shouldn't also the spi interface number be part of the
device name  (for instance  spidev327661.0, spidev327663.0 and
spidev327663.1)?
Is there something I need to change in my setup to get the spi interface
number included in the name?

Best regards,
Niklas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20140301/c8d089a3/attachment.html>


More information about the meta-freescale mailing list