What actually generates spidevX.X dev in /dev directory?

39 views
Skip to first unread message

Max Sintar

unread,
Dec 9, 2019, 5:27:38 PM12/9/19
to BeagleBoard
Hi Everyone,

I am relatively new to Beagleboard and Linux but quite experienced with embedded systems. I am exploring Linux Device Drivers and find it a bit challenging. As an example I started looking into spi drivers on bealeboard and I can see that there are 4 spi devices available in /dev directory: spidev1.0, spidev1.1, spidev2.0, spidev2.1. I am trying to figure out how spdevX.X device is created. I have looked into spidev.c file and can see that probe() function would register a device "spidevX.X" but I can't figure out what module is triggering that probe() method? Any help would be much appreciated. Thanks

Robert Nelson

unread,
Dec 9, 2019, 6:06:45 PM12/9/19
to Beagle Board, maxs...@gmail.com
On Mon, Dec 9, 2019 at 4:27 PM Max Sintar <maxs...@gmail.com> wrote:
>
> Hi Everyone,
>
> I am relatively new to Beagleboard and Linux but quite experienced with embedded systems. I am exploring Linux Device Drivers and find it a bit challenging. As an example I started looking into spi drivers on bealeboard and I can see that there are 4 spi devices available in /dev directory: spidev1.0, spidev1.1, spidev2.0, spidev2.1. I am trying to figure out how spdevX.X device is created. I have looked into spidev.c file and can see that probe() function would register a device "spidevX.X" but I can't figure out what module is triggering that probe() method? Any help would be much appreciated. Thanks

https://www.kernel.org/doc/html/latest/driver-api/driver-model/driver.html

Regards,

--
Robert Nelson
https://rcn-ee.com/

ssa...@gmail.com

unread,
Dec 17, 2019, 5:50:17 PM12/17/19
to BeagleBoard
Thanks very much
Reply all
Reply to author
Forward
0 new messages