Prepare Answers related to GPIO

2 views
Skip to first unread message

Adarsh Parikh

unread,
Feb 11, 2013, 1:03:55 AM2/11/13
to android_...@googlegroups.com
Hello All,

Prepare following questions asked by Vandana Madam.

---------- Forwarded message ----------
From: vandana salve <vandan...@gmail.com>
Date: Mon, Feb 11, 2013 at 11:22 AM
Subject: Re: Regarding Webex session
To: Adarsh Parikh <adarsh...@eitra.org>
Cc: Ekata Mehul <ekata...@eitra.org>


Hi Adarsh,


Can you send me the detail steps students have carried out to study the GPIO controller on beagle board. 
Here are few things that should address on studying the GPIO controller from the data spec/manual

0) Understanding of GPIO behavior and whats devices are controlled by GPIO pins
1) what is the base address and registers needed to program GPIO controller.
2) what is the interrupt number been used by GPIO controller 
3) which driver in kernel for beagle boards handling the GPIO pins
4) what are GPIO driver goals you are trying to achieve

Thanks,
Vandana

vandana salve

unread,
Feb 13, 2013, 2:18:51 AM2/13/13
to Adarsh Parikh, android_...@googlegroups.com
Hi Adarsh,

Any Progress on GPIO driver efforts? Please follow up with the students who so ever is taking up this task.

Thanks,
Vandana


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

Ekata Mehul

unread,
Feb 13, 2013, 10:30:59 AM2/13/13
to vandana salve, android_...@googlegroups.com
Hello Vandana,

I did follow up with students on this and they will be completing all the answers by today evening itself. Kindly let me know when you can arrange for doubt solving session for tomorrow?

We can start with the session by you first asking them the answers and then solving the doubts.

Regards
--
Ekata Mehul
Head, eiTRA
eInfochips Ltd
+91 9909984110 (office)
+91 98243 47721 (personal)

saiyam doshi

unread,
Feb 15, 2013, 12:32:25 AM2/15/13
to vandana salve, Adarsh Parikh, android_...@googlegroups.com
Hello mam,

we have prepared gpio answers.
PFA.

Thanks,
Saiyam Doshi

On Wed, Feb 13, 2013 at 12:48 PM, vandana salve <vandan...@gmail.com> wrote:
GPIO_Beagleboard.docx

vandana salve

unread,
Feb 15, 2013, 1:47:48 AM2/15/13
to saiyam doshi, Adarsh Parikh, android_...@googlegroups.com
Hi Saiyam, Adarsh

Here's some information about the GPIO device driver implementation for beagle board. 

The GPIO configuration is done at 2 places.

1) In board configuration file  : arch/arm/mach-omap2/board-omap3beagle.c

static struct platform_device *omap3_beagle_devices[] __initdata = {
        &leds_gpio,
        &keys_gpio,
        &madc_hwmon,
};

Where the configuration for LEDS, Few Keys on beagle board (for e.g power key) and HW monitoring unit. The 3  platform devices are registered over here.

2) The base address and interrupt number information is programmed in 
arch/arm/plat-omap/include/plat/irqs.h

/* Max. 128 level 2 IRQs (OMAP1610), 192 GPIOs (OMAP730/850) and
 * 16 MPUIO lines */
#define OMAP_MAX_GPIO_LINES     192
#define IH_GPIO_BASE            (128 + IH2_BASE)
#define IH_MPUIO_BASE           (OMAP_MAX_GPIO_LINES + IH_GPIO_BASE)
#define OMAP_IRQ_END            (IH_MPUIO_BASE + 16)

3) The corresponding device drivers for GPIO keys is at 
drivers/input/keyboard/gpio_keys.c

The GPIO keys should be used for wake up key event or any other input events. 

4) The corresponding device driver for GPIO LEDS is at
drivers/leds/leds-gpio.c

and drivers/gpio/gpio-omap.c

5) The corresponding device driver for HW monitoring is at
"drivers/hwmon/twl4030-madc-hwmon.c"

For your hands try to customized GPIO keys drivers.
Test GPIO keys drivers can be verified  by pressing the keys such as power key or any key specific for wake up the board of sleep state.

I am been travelling and will not be able to take webex session till wednesday. We can have webex session on thursday morning 9am.

I can reply to your mails. Please mail me your queries on working with GPIO pins.
 

Thanks,
Vandana

Ekata Mehul

unread,
Feb 15, 2013, 7:08:25 PM2/15/13
to android_...@googlegroups.com
Hello Team,

Let us start working on the assignments so that we have huge amount of doubts.
Vandana all the students are having final interviews on 22nd Feb and hence please ensure that they do get all the doubts solved; also i would request you and Adarsh to ask some couple of questions to them.

Regards

vandana salve

unread,
Feb 17, 2013, 1:13:20 AM2/17/13
to Ekata Mehul, Adarsh Parikh, android_...@googlegroups.com

Hi Adarsh, lets schedule webex session tomorrow at 9:30am for doubt solving. Rgds, Vandana

Reply all
Reply to author
Forward
0 new messages