cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Contributor
Contributor
440 Views
Registered: ‎04-03-2018

Missing spidev

We are on 2018.3... maybe I am missing a patch or something else obvious ...

Currently, on older design we have in user DT:

spi@ff050000 { /* /dev/spidev2 */
num-cs = <0x2>;
devXXX { /* /dev/spidev2.0 */
compatible = "linux,spidev";
spi-max-frequency = <24000000>;
reg = <0x0>;
};
devYYY { /* /dev/spidev2.1 */
compatible = "linux,spidev";
spi-max-frequency = <24000000>;
reg = <0x1>;
};
};

Above works fine ....

On newer design, we have two identical parts so above becomes:

spi@ff050000 { /* /dev/spidev2 */
num-cs = <0x2>;
devXXX { /* /dev/spidev2.0 */
compatible = "linux,spidev";
spi-max-frequency = <24000000>;
reg = <0x0>;
};
devXXX { /* /dev/spidev2.1 */
compatible = "linux,spidev";
spi-max-frequency = <24000000>;
reg = <0x1>;
};
};

When I run on a new board with above change, spidev2.0 is absent (in /dev) while spidev2.1 is present.

 

Any ideas ?

 

0 Kudos
Reply
3 Replies
Contributor
Contributor
429 Views
Registered: ‎04-03-2018

Wondering if the same label is no-no and I need something like:

spi@ff050000 { /* /dev/spidev2 */
num-cs = <0x2>;
devXXX { /* /dev/spidev2.0 */
compatible = "linux,spidev";
spi-max-frequency = <24000000>;
reg = <0x0>;
};
another_devXXX { /* /dev/spidev2.1 */
compatible = "linux,spidev";
spi-max-frequency = <24000000>;
reg = <0x1>;
};
};
0 Kudos
Reply
Explorer
Explorer
397 Views
Registered: ‎11-09-2015

hi @rrx 

     Take a look at :

https://github.com/Xilinx/linux-xlnx/blob/xilinx-v2018.3/drivers/spi/spidev.c#L667

      I think spidev 's  compatible  devicee node is no more "linux,spidev". 

     An example for you:

 

        spidev@1 {
                spi-max-frequency = <24000000>;
                reg = <0>;
                compatible = "rohm,dh2228fv";
        };

https://stackoverflow.com/questions/53634892/linux-spidev-why-it-shouldnt-be-directly-in-devicetree

 

 

 

BRs

HSQ

0 Kudos
Reply
Moderator
Moderator
374 Views
Registered: ‎09-12-2007

Can you post your HDF file? Also, what version are you using?

0 Kudos
Reply