[meta-ti] Writing a driver for beaglebone black ?

Riko Ho antonius.riko at gmail.com
Wed Jul 12 20:18:57 PDT 2017


Dear Meta-TI Team Member,

How can I make a driver for beaglebone black ?

I saw an example for Atmel,

============

/arch/arm/mach-at91/board-
sam9260-ek.c:

struct 110xx_board_info {
int device_id;
int gpio_reset;
int gpio_dreq;
};
struct 110xx_board_info 110xx_device_0 = {
.device_id  = 0,             // = /dev/vs10xx­0
.gpio_reset = AT91_PIN_PB16, // = GPIO 80
.gpio_dreq  = AT91_PIN_PB17, // = GPIO 81

============

How can I implement those on beaglebone black ?

I have enabled GPIO from DTS (am335x-boneblack.dts), how can I connect 
it to kernel or it's the way connecting my GPIO to kernel ?

I want to make something like /dev/110xx_board and pass data to it, if 
possible ?

Thanks,

-- 
*

/*******/
Sent by Ubuntu LTS 16.04,
Kind regards,
Riko Ho
/*******/

*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-ti/attachments/20170713/9edff603/attachment.html>


More information about the meta-ti mailing list