This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am335x set gpio mode

hi,

I'm read the http://processors.wiki.ti.com/index.php/Linux_PSP_GPIO_Driver_Guide.

I want to set the gpio1_28, gpio1_30 and gpio1_31 as a gpio_mode( for button event control ).

But, button event is not occured. ( When using the gpio1_27, button event is occurred. )

How do I set up the device tree?

Here is my code :

err = gpio_request(param->pio, name);

err = gpio_direction_input(param->pio);

irq_num = gpio_to_irq(param->pio);

err = request_irq(irq_num, gpio_event_handler, 0, name, (void*)(param->pio));

err = irq_set_irq_type(irq_num, IRQ_TYPE_EDGE_RISING);

gpio_export(param->pio, true);

 

Here is my environment :

u-boot-2014.07-g7e537bf

linux-3.14.26-g2489c02

without emmc