Skip to contentSkip to conversation

Writing a driver for beaglebone black ?

DISCUSSION Riko Ho 1 participant 1 message Jul 13, 2017

lore
Share & tools
lore

Riko Ho

author
#0 lore raw

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,

Signature · 9 lines
*

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

*