Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
BeagleBone: Add support for rev A2 of the LCD7 cape
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  24 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matthias Kaehlcke  
View profile   Translate to Translated (View Original)
 More options Jul 11 2012, 3:08 pm
From: Matthias Kaehlcke <matth...@kaehlcke.net>
Date: Wed, 11 Jul 2012 21:08:57 +0200
Local: Wed, Jul 11 2012 3:08 pm
Subject: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape
The GPIO pin for switching the power of the LCD7 cape has changed
on rev A2. Select the right pin depending on the hardware revision
read from the eeprom

Signed-off-by: Matthias Kaehlcke <matth...@kaehlcke.net>
---
 arch/arm/mach-omap2/board-am335xevm.c |   23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
index 24811fd..8f714e7 100644
--- a/arch/arm/mach-omap2/board-am335xevm.c
+++ b/arch/arm/mach-omap2/board-am335xevm.c
@@ -85,7 +85,7 @@
 #define AR8051_DEBUG_RGMII_CLK_DLY_REG 0x5
 #define AR8051_RGMII_TX_CLK_DLY                BIT(8)

-#define BEAGLEBONE_LCD_AVDD_EN GPIO_TO_PIN(0, 7)
+static int beaglebone_lcd_avdd_en;
 #define BEAGLEBONE_LCD_BL GPIO_TO_PIN(1, 18)

 #define AM33XX_CTRL_REGADDR(reg)                               \
@@ -100,6 +100,9 @@ int pad_mux_value;

 #define LCD7_CAPE_NAME_2    "BeagleBone LCD7 CAPE"

+#define LCD7_CAPE_NAME_2    "BeagleBone LCD7 CAPE"
+#define LCD7_CAPE_REV_A1    "00A1"
+
 static const struct display_panel disp_panel = {
        WVGA,
        32,
@@ -1339,8 +1342,8 @@ static void bone_lcdc_init(int evm_id, int profile)

        gpio_request(BEAGLEBONE_LCD_BL, "BONE_LCD_BL");
        gpio_direction_output(BEAGLEBONE_LCD_BL, 1);
-       gpio_request(BEAGLEBONE_LCD_AVDD_EN, "BONE_LCD_AVDD_EN");
-       gpio_direction_output(BEAGLEBONE_LCD_AVDD_EN, 1);
+       gpio_request(beaglebone_lcd_avdd_en, "BONE_LCD_AVDD_EN");
+       gpio_direction_output(beaglebone_lcd_avdd_en, 1);

        if (am33xx_register_lcdc(&TFC_S9700RTWV35TR_01B_bone_lcd_cape_pdata))
                pr_info("Failed to register LCDC device\n");
@@ -2604,11 +2607,19 @@ static void bone_setup_daughter_board(struct memory_accessor *m, void *c)
                pr_info("Detected a daughter card on BeagleBone..");

                if (!strcmp(cape_eeprom_config.board_name, "BeagleBone LCD Cape") ||
-                       !strncmp(cape_eeprom_config.board_name, LCD7_CAPE_NAME_2, sizeof(LCD7_CAPE_NAME_2) - 1))
-               {
+                       !strncmp(cape_eeprom_config.board_name, LCD7_CAPE_NAME_2, sizeof(LCD7_CAPE_NAME_2) - 1)) {
                        pr_info("BeagleBone LCD cape board detected\n");
                        printk ("Board Name: %s\n", cape_eeprom_config.board_name);
-                       printk ("manufacurer : %s", cape_eeprom_config.manufacturer);
+                       printk ("Manufacturer : %s", cape_eeprom_config.manufacturer);
+                       printk ("Hardware revision : %s", cape_eeprom_config.version);
+
+                       if (!strncmp(cape_eeprom_config.version, LCD7_CAPE_REV_A1, sizeof(LCD7_CAPE_REV_A1) - 1))
+                               /* rev A1 */
+                               beaglebone_lcd_avdd_en = GPIO_TO_PIN(0, 7);
+                       else
+                               /* rev A2 or later */
+                               beaglebone_lcd_avdd_en = GPIO_TO_PIN(1, 31);
+
                        bone_lcdc_init (DEV_ON_DGHTR_BRD, PROFILE_NONE);
                        lcd_cape_keys_init(DEV_ON_DGHTR_BRD, PROFILE_NONE);
                        lcd_cape_tsc_init ( DEV_ON_DGHTR_BRD, PROFILE_NONE);
--
1.7.10


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Syed Mohammed, Khasim  
View profile   Translate to Translated (View Original)
 More options Jul 12 2012, 2:00 am
From: "Syed Mohammed, Khasim " <sm.kha...@gmail.com>
Date: Thu, 12 Jul 2012 11:30:40 +0530
Local: Thurs, Jul 12 2012 2:00 am
Subject: Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape
Thanks Matthias,

We will push this patch to rowboat next week. Our maintainer is on leave :)

Regards,
Khasim

On Thu, Jul 12, 2012 at 12:38 AM, Matthias Kaehlcke


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ron.birk...@gmail.com  
View profile  
 More options Jul 19 2012, 2:13 pm
From: ron.birk...@gmail.com
Date: Thu, 19 Jul 2012 11:13:47 -0700 (PDT)
Local: Thurs, Jul 19 2012 2:13 pm
Subject: Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape

Matthias,

I wanted to thank you for your patch. Finally, my beaglebone is showing
Android. And, I'm glad to hear it will get incorporated.

One problem I have after applying is that my x coordinates for touch seem
to be reversed. You touch the right side, and touch is detected on the left
side. Y is accurate.

Both the TI SDK and the Angstrom Distro work, so I know it is S/W. Was
wondering if you ran into this at all?

Thanks and cheers,
Ron


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias Kaehlcke  
View profile  
 More options Jul 19 2012, 4:15 pm
From: Matthias Kaehlcke <matth...@kaehlcke.net>
Date: Thu, 19 Jul 2012 22:15:35 +0200
Local: Thurs, Jul 19 2012 4:15 pm
Subject: Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape
Hi Ron,

El Thu, Jul 19, 2012 at 11:13:47AM -0700 ron.birk...@gmail.com ha dit:

>    One problem I have after applying is that my x coordinates for touch seem
>    to be reversed. You touch the right side, and touch is detected on the
>    left side. Y is accurate.

>    Both the TI SDK and the Angstrom Distro work, so I know it is S/W. Was
>    wondering if you ran into this at all?

indeed, i also ran into that problem. i have a couple of patches which
should solve this (can't validate it right now as i don't have the
board at hand), which i will send out separately. the first one is for
the kernel, the other one needs to be applied to the frameworks-base
repository

cheers

--
Matthias Kaehlcke
Embedded Linux Developer
Amsterdam

  Si deseas mantener tu libertad, debes estar preparado para defenderla
                          (Richard Stallman)
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4                  `-


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Remove hacks for the am335x evm touchscreen" by Matthias Kaehlcke
Matthias Kaehlcke  
View profile  
 More options Jul 19 2012, 4:15 pm
From: Matthias Kaehlcke <matth...@kaehlcke.net>
Date: Thu, 19 Jul 2012 22:15:49 +0200
Local: Thurs, Jul 19 2012 4:15 pm
Subject: [PATCH] Remove hacks for the am335x evm touchscreen
The TI touchscreen driver implements some hacks to get the am335x evm
touchscreen working. This causes the Beaglebone touchscreen to not work
properly. Remove the hacks and properly report the xmin, xmax, ymin, ymax
values to the Android input framework via the EVIOCGABS ioctl.

---
 arch/arm/mach-omap2/board-am335xevm.c |    6 ++++--
 drivers/input/touchscreen/ti_tscadc.c |   18 ++----------------
 2 files changed, 6 insertions(+), 18 deletions(-)

diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
index 144092f..10a3471 100644
--- a/arch/arm/mach-omap2/board-am335xevm.c
+++ b/arch/arm/mach-omap2/board-am335xevm.c
@@ -249,8 +249,10 @@ static struct da8xx_lcdc_platform_data dvi_pdata = {
 /* TSc controller */
 static struct tsc_data am335x_touchscreen_data  = {
        .wires  = 4,
-       .x_max = 0x0fff,
-       .y_max = 0x0fff,
+       .x_min = 0xA5,
+       .x_max = 0xFB0,
+       .y_min = 0xDC,
+       .y_max = 0xF43,
        .x_plate_resistance = 200,
 };

diff --git a/drivers/input/touchscreen/ti_tscadc.c b/drivers/input/touchscreen/ti_tscadc.c
index 2733977..c1f98b6 100644
--- a/drivers/input/touchscreen/ti_tscadc.c
+++ b/drivers/input/touchscreen/ti_tscadc.c
@@ -101,14 +101,6 @@

 #define MAX_12BIT                       ((1 << 12) - 1)

-#ifdef CONFIG_MACH_AM335XEVM
-/* Define Touch Screen Boundary Limits */
-#define AM335X_TS_XMIN                 0xA5
-#define AM335X_TS_XMAX                 0xFB0
-#define AM335X_TS_YMIN                 0xDC
-#define AM335X_TS_YMAX                 0xF43
-#endif
-
 int pen = 1;
 unsigned int bckup_x = 0, bckup_y = 0;

@@ -270,14 +262,6 @@ static irqreturn_t tscadc_interrupt(int irq, void *dev)
                        prev_val_y = ready1;
                }

-                /* Calibrate absolute value of x and y co-ordinate */
-               val_x = ts_dev->x_max -
-                       ((ts_dev->x_max * (val_x - AM335X_TS_XMIN)) /
-                               (AM335X_TS_XMAX - AM335X_TS_XMIN));
-                val_y = ts_dev->y_max -
-                       ((ts_dev->y_max * (val_y - AM335X_TS_YMIN)) /
-                               (AM335X_TS_YMAX - AM335X_TS_YMIN));
-
                if (val_x > bckup_x) {
                        diffx = val_x - bckup_x;
                        diffy = val_y - bckup_y;
@@ -440,7 +424,9 @@ static      int __devinit tscadc_probe(struct platform_device *pdev)
        tscadc_writel(ts_dev, TSCADC_REG_CLKDIV, clk_value);

        ts_dev->wires = pdata->wires;
+       ts_dev->x_min = pdata->x_min;
        ts_dev->x_max = pdata->x_max;
+       ts_dev->y_min = pdata->y_min;
        ts_dev->y_max = pdata->y_max;
        ts_dev->x_plate_resistance = pdata->x_plate_resistance;

--
1.7.10


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Remove Beaglebone touchscreen hack" by Matthias Kaehlcke
Matthias Kaehlcke  
View profile  
 More options Jul 19 2012, 4:15 pm
From: Matthias Kaehlcke <matth...@kaehlcke.net>
Date: Thu, 19 Jul 2012 22:15:59 +0200
Local: Thurs, Jul 19 2012 4:15 pm
Subject: [PATCH] Remove Beaglebone touchscreen hack
Remove an hack in the InputReader for the Beaglebone's touchscreen.
The correct x.min, x.max, y.min and y.max raw values are now retrieved
from the touchscreen driver.

---
 services/input/InputReader.cpp |   12 ------------
 1 file changed, 12 deletions(-)

diff --git a/services/input/InputReader.cpp b/services/input/InputReader.cpp
index 8e04383..eeb9076 100644
--- a/services/input/InputReader.cpp
+++ b/services/input/InputReader.cpp
@@ -1449,14 +1449,6 @@ void SingleTouchMotionAccumulator::clearAbsoluteAxes() {
     mAbsTiltY = 0;
 }

-#ifdef BEAGLEBONE
-
-/* Taken from touchscreen driver */
-#define AM335X_TS_YMIN                 0xDC
-#define AM335X_TS_YMAX                 0xF43
-
-#endif
-
 void SingleTouchMotionAccumulator::process(const RawEvent* rawEvent) {
     if (rawEvent->type == EV_ABS) {
         switch (rawEvent->scanCode) {
@@ -1464,11 +1456,7 @@ void SingleTouchMotionAccumulator::process(const RawEvent* rawEvent) {
             mAbsX = rawEvent->value;
             break;
         case ABS_Y:
-#ifdef BEAGLEBONE
-            mAbsY = AM335X_TS_YMAX - rawEvent->value + AM335X_TS_YMIN;
-#else
             mAbsY = rawEvent->value;
-#endif
             break;
         case ABS_PRESSURE:
             mAbsPressure = rawEvent->value;
--
1.7.10


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[PATCH] Remove Beaglebone touchscreen hack" by Satish Patel
Satish Patel  
View profile  
 More options Jul 20 2012, 12:00 am
From: Satish Patel <tosatishpa...@gmail.com>
Date: Fri, 20 Jul 2012 09:30:03 +0530
Local: Fri, Jul 20 2012 12:00 am
Subject: Re: [rowboat] [PATCH] Remove Beaglebone touchscreen hack

Hi Matthias,

Small clarification..
1. Actually we have two reference design with respect to am335x : am335xevm
and beaglebone.

Both are sharing the same board file but when it comes to touch screen,
calibration parameters defers. You patch will perfectly work for beaglebone
but functionality will gets broke for am335xevm.

Either we need to keep the patch as it is or else beaglbone identification
should brought to board file and pass the pdata accordingly...

I hope you got my point.

BR,
satish

On Fri, Jul 20, 2012 at 1:45 AM, Matthias Kaehlcke <matth...@kaehlcke.net>wrote:

--
Regards,
satish patel

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias Kaehlcke  
View profile  
 More options Jul 20 2012, 5:45 am
From: Matthias Kaehlcke <matthias.l...@kaehlcke.net>
Date: Fri, 20 Jul 2012 11:45:18 +0200
Local: Fri, Jul 20 2012 5:45 am
Subject: Re: [rowboat] [PATCH] Remove Beaglebone touchscreen hack
Hi Satish,

El Fri, Jul 20, 2012 at 09:30:03AM +0530 Satish Patel ha dit:

>    Small clarification..
>    1. Actually we have two reference design with respect to am335x :
>    am335xevm and beaglebone.

>    Both are sharing the same board file but when it comes to touch screen,
>    calibration parameters defers. You patch will perfectly work for
>    beaglebone but functionality will gets broke for am335xevm.

>    Either we need to keep the patch as it is or else beaglbone identification
>    should brought to board file and pass the pdata accordingly...

I understand the problem. I think the right thing to do is to pass the
platform data depending on the board. There are (or will be) other lcd
capes for the beaglebone like the lcd3 or lcd4 cape, the code should
be prepared to deal at runtime with these capes based on their eeprom
ids

Next week I'll be travelling and won't find time, when I'm back I'll
have another look at this

Kind regards

Matthias

--
Matthias Kaehlcke
Embedded Linux Developer
Amsterdam

    I am incapable of conceiving infinity, and yet I do not accept finity
                          (Simone de Beauvoir)
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4                  `-


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Satish Patel  
View profile  
 More options Jul 20 2012, 3:03 pm
From: Satish Patel <tosatishpa...@gmail.com>
Date: Sat, 21 Jul 2012 00:33:13 +0530
Local: Fri, Jul 20 2012 3:03 pm
Subject: Re: [rowboat] [PATCH] Remove Beaglebone touchscreen hack

Hi Matthias,

Sure, if you have good solution around this problem, we will be happy to
take it forward.
Waiting for your inputs...

Take Care

-
satish

On Fri, Jul 20, 2012 at 3:15 PM, Matthias Kaehlcke <

--
Regards,
satish patel

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cyrus.man...@gmail.com  
View profile  
 More options Jul 28 2012, 5:09 pm
From: cyrus.man...@gmail.com
Date: Sat, 28 Jul 2012 14:09:49 -0700 (PDT)
Local: Sat, Jul 28 2012 5:09 pm
Subject: Re: [rowboat] [PATCH] Remove Beaglebone touchscreen hack

how do I access and change:
arch/arm/mach-omap2/board-am335xevm.c
drivers/input/touchscreen/ti_tscadc.c
?

I can't seem to find it when I connect to the beaglebone via serial and
also on the SD card itself in Ubuntu.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "BeagleBone: Add support for rev A2 of the LCD7 cape" by Georgi Todorov
Georgi Todorov  
View profile  
 More options Jul 28 2012, 9:02 pm
From: Georgi Todorov <ter...@gmail.com>
Date: Sat, 28 Jul 2012 18:02:23 -0700 (PDT)
Local: Sat, Jul 28 2012 9:02 pm
Subject: Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape

Hi Matthias,

Looks like this patch is for ics-2.6. Have you tried it
on rowboat-am335x-3.2?

Georgi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias Kaehlcke  
View profile  
 More options Jul 29 2012, 1:25 pm
From: Matthias Kaehlcke <matth...@kaehlcke.net>
Date: Sun, 29 Jul 2012 19:25:34 +0200
Local: Sun, Jul 29 2012 1:25 pm
Subject: Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape
Hi Georgi,

El Sat, Jul 28, 2012 at 06:02:23PM -0700 Georgi Todorov ha dit:

>    Looks like this patch is for ics-2.6

what makes you think that?

>    Have you tried it on rowboat-am335x-3.2?

the patch is based on rowboat-am335x-kernel-3.2, which contains the
current branch for am335x

best regards

Matthias

--
Matthias Kaehlcke
Embedded Linux Developer
Amsterdam

  Si deseas mantener tu libertad, debes estar preparado para defenderla
                          (Richard Stallman)
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4                  `-


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape" by Georgi Todorov
Georgi Todorov  
View profile  
 More options Jul 29 2012, 1:51 pm
From: Georgi Todorov <ter...@gmail.com>
Date: Sun, 29 Jul 2012 13:51:31 -0400
Local: Sun, Jul 29 2012 1:51 pm
Subject: Re: [rowboat] Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape
Matthias,

On Jul 29, 2012, at 1:25 PM, Matthias Kaehlcke <matth...@kaehlcke.net> wrote:

> Hi Georgi,

> El Sat, Jul 28, 2012 at 06:02:23PM -0700 Georgi Todorov ha dit:

>>   Looks like this patch is for ics-2.6

> what makes you think that?

Because the line numbers were way off in the am335xevm.c file of the TI-Android-ICS-4.0.3-DevKit-3.0.1.xml manifest, which I thought was using 2.6 kernel.  But I switched my repo to manifest rowboat-ics-am335x.xml and now it applied cleanly.

>>   Have you tried it on rowboat-am335x-3.2?

> the patch is based on rowboat-am335x-kernel-3.2, which contains the
> current branch for am335x

Thanks, I'm compiling it right now!

Georgi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Syed Mohammed, Khasim  
View profile  
 More options Jul 30 2012, 8:40 am
From: "Syed Mohammed, Khasim " <sm.kha...@gmail.com>
Date: Mon, 30 Jul 2012 18:10:51 +0530
Local: Mon, Jul 30 2012 8:40 am
Subject: Re: [rowboat] Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape
All,

We are waiting for latest boards to arrive to test this patch before
pushing, sorry for the delay.

regards,
Khasim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "BeagleBone: Add support for rev A2 of the LCD7 cape" by Platinumphoenix
Platinumphoenix  
View profile  
 More options Aug 13 2012, 8:15 am
From: Platinumphoenix <david.lind...@cirrusresearch.co.uk>
Date: Mon, 13 Aug 2012 05:15:49 -0700 (PDT)
Local: Mon, Aug 13 2012 8:15 am
Subject: Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape

Hi Matthias,
Would it be possible to put this update in a repository? I am not sure how
to go about editing my version downloaded off rowboat and changing the
drivers.
I have managed to find the file you edited but do not understand enough
about the format of the edited file to manually edit the driver.

Thanks
Platinumx


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vishveshwar  
View profile  
 More options Aug 13 2012, 9:10 am
From: Vishveshwar <vishveshwarb...@aim.com>
Date: Mon, 13 Aug 2012 06:10:00 -0700 (PDT)
Subject: Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape

The LCD7 cape support patches are now pushed to rowboat. You can sync up
the kernel sources to get them.

-Vishveshwar


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape" by David Lindley
David Lindley  
View profile  
 More options Aug 13 2012, 10:25 am
From: David Lindley <david.lind...@cirrusresearch.co.uk>
Date: Mon, 13 Aug 2012 15:25:32 +0100
Local: Mon, Aug 13 2012 10:25 am
Subject: Re: [rowboat] Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape

Can you clarify which rowboat repository I should be syncing?
Cheers
Platinumx

On 08/13/2012 02:10 PM, Vishveshwar wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Lindley  
View profile  
 More options Aug 13 2012, 11:26 am
From: David Lindley <david.lind...@cirrusresearch.co.uk>
Date: Mon, 13 Aug 2012 16:26:31 +0100
Local: Mon, Aug 13 2012 11:26 am
Subject: Re: [rowboat] Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape

Scrap last comment found it :).
Any updates on getting the inverted touch screen sorted?

On 08/13/2012 03:25 PM, David Lindley wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
UMAKANTA  
View profile  
 More options Aug 14 2012, 1:10 am
From: UMAKANTA <umasi...@gmail.com>
Date: Tue, 14 Aug 2012 11:10:00 +0600
Subject: Re: [rowboat] Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape

Hi,

We are in process of integrating the TSLIB package to android, so that will
solve the touch screen inverted issue.

--
Thanks & Regards,
Umakanta Patro

On Mon, Aug 13, 2012 at 9:26 PM, David Lindley <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vishveshwar  
View profile  
 More options Aug 14 2012, 1:11 am
From: Vishveshwar <vishveshwarb...@aim.com>
Date: Mon, 13 Aug 2012 22:11:22 -0700 (PDT)
Local: Tues, Aug 14 2012 1:11 am
Subject: Re: [rowboat] Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape

We are currently working on tslib integration with rowboat. Expect to see
some updates soon..

-Vishveshwar


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
david.lind...@cirrusresearch.co.uk  
View profile  
 More options Aug 28 2012, 5:23 am
From: david.lind...@cirrusresearch.co.uk
Date: Tue, 28 Aug 2012 02:23:44 -0700 (PDT)
Local: Tues, Aug 28 2012 5:23 am
Subject: Re: [rowboat] Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape

Hi again,
Having got the LCDcape working with the updated kernel I have a similar
question:

I am attempting to reassign the buttons on the top of the cape to act in
different ways (reassign home, back, menu ect for the android filesystem).

I am assuming the section in "board-am335xevm.c" entitled "/* Keys mapping
*/" (line 880) is where these things are defined?
Could someone help me assign a custom GPIO pin to say the "HOME" button in
the android filesystem?

Thanks
David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Satish Patel  
View profile  
 More options Aug 28 2012, 5:39 am
From: Satish Patel <tosatishpa...@gmail.com>
Date: Tue, 28 Aug 2012 15:09:11 +0530
Local: Tues, Aug 28 2012 5:39 am
Subject: Re: [rowboat] Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape

this might help
http://processors.wiki.ti.com/index.php/Android_Developer_FAQs#Q:_How...

BR,
satish

--
Regards,
satish patel

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Umakanta Patro  
View profile  
 More options Aug 28 2012, 5:50 am
From: Umakanta Patro <umasi...@gmail.com>
Date: Tue, 28 Aug 2012 02:50:07 -0700 (PDT)
Local: Tues, Aug 28 2012 5:50 am
Subject: Re: [rowboat] Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape

Hi David,

The current version of rowboat source has the support for Beaglebone LCD7
cap Rev A1 and A2 with the 5-keys GPIO keypad support.

The usual format followed with the rowboat source code is:

- In kernel register the keys to the functionality, as labelled side to the
button. This is carried out in the "board-am335xevm.c" file.
- In Android currently we have mapped those 5 buttons to Android
functionality, such as: BACK, HOME, MENU, SEARCH, POWER. And this is done
in the file: "device/ti/beaglebone/gpio-keys.kl".

So, if you haven't taken the latest source code, then execute the "getevent"

And a sample output can be:

root@android:/ # getevent
could not get driver version for /dev/input/mice, Not a typewriter
add device 1: /dev/input/event1
  name:     "gpio-keys"
add device 2: /dev/input/event0
  name:     "ti-tsc-adcc"
could not get driver version for /dev/input/mouse0, Not a typewriter
/dev/input/event1: 0001 006a 00000001
/dev/input/event1: 0000 0000 00000000
/dev/input/event1: 0001 006a 00000000
/dev/input/event1: 0000 0000 00000000

Here 6A is the keycode in Hex, sent by the linux to Android. Now in
gpio-keys.kl file, add teh following entry:

# Beaglebone LCD Cape  GPIO KEYPAD keylayout
key 106   HOME               WAKE

Here 106 is the decimal equivalent of 0x6A.

Hope this helps.

Regards,
Umakanta Patro


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
david.lind...@cirrusresearch.co.uk  
View profile  
 More options Aug 28 2012, 10:06 am
From: david.lind...@cirrusresearch.co.uk
Date: Tue, 28 Aug 2012 07:06:08 -0700 (PDT)
Local: Tues, Aug 28 2012 10:06 am
Subject: Re: [rowboat] Re: [PATCH 2/2] BeagleBone: Add support for rev A2 of the LCD7 cape

Cheers guys,
Thats really helpful. Looking through the source code can I assume that
this will work if I don't have an LCD7 Cape? As in could I just simply add
a switch to the GPIO pins of the beaglebone (bypass the cape completely?).

It is ultimately my aim to be able to add some custom buttons in, and not
have the LCD7 cape attached at all.

Thanks
David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »