pandaboard es spi devicetree

166 views
Skip to first unread message

bdav...@gmail.com

unread,
Dec 26, 2013, 1:26:25 PM12/26/13
to panda...@googlegroups.com
Problem: missing spi devices in /dev directory

I am using the RobertCNelson scripts to build my PandaBoard-ES ubuntu( kernel 3.12.6 ) system and need to implement a custom spi device driver.  

The spidev character devices never show up in the /dev directory.  the /sys directory shows all 4 mcspi entries which indicates to me that I have a devicetree problem.

I have googled this and only seem to find references to the now deprecated board-* init files. 

Any help is appreciated.
Cheers,
Benjamin

benjamin davis

unread,
Dec 28, 2013, 7:36:40 PM12/28/13
to panda...@googlegroups.com
I got it. I Just added a device tree entry for the explicit CS on the mcspi of interest and it works. I thought I would see a mcspi entry like I do the i2c controllers.

ma...@geiman.org

unread,
Jan 6, 2014, 11:38:11 AM1/6/14
to panda...@googlegroups.com
Is there any chance you could give more detail as to where and how you added a device tree entry?  I need to do this exact same thing.

Thanks,

-Matt

benjamin davis

unread,
Jan 20, 2014, 8:52:17 PM1/20/14
to panda...@googlegroups.com

I will try to get to this tomorrow.  Sorry for the delay.

--
You received this message because you are subscribed to the Google Groups "pandaboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandaboard+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

benjamin davis

unread,
Jan 21, 2014, 8:05:38 AM1/21/14
to panda...@googlegroups.com
I added this to my omap4-panda-es.dts

&mcspi4
{
    spidev@0
    {
        compatible = "spidev";
        spi-max-frequency=<4000000>;
        reg = <0>;
    };
};

This extends the device tree node that is defined in omap4.dtsi
You must make sure that the spidev is enabled in your kernel config

You should then have an accessible device /dev/spidev4.0

If you intend to use mcspi1 you can access each of the chip-selects by replicating this code 4 times and changing the "reg" value for each respectively.

Cheers and I hope this helps,
Benjamin

tanvi...@gmail.com

unread,
Feb 12, 2015, 2:18:53 AM2/12/15
to panda...@googlegroups.com
can u give me detail information about board
Reply all
Reply to author
Forward
0 new messages