• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » DaVinci™ Video Processors » DM37x DaVinci Video Processor Forum » Linux ARM GPIO don't control
Share
DaVinci™ Video Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS

Linux ARM GPIO don't control

Linux ARM GPIO don't control

This question is not answered
yi luo68719
Posted by yi luo68719
on Jun 15 2012 01:10 AM
Intellectual380 points

GPIO_113、GPIO_114 don't control :
my kernel Log is:
[    0.000000] LY:::panther_init,gpio_get_value(113):ret=0
[    0.000000] LY:::panther_init,gpio_get_value(114):ret=0
[    0.000000] LY:::panther_init,gpio_get_value(18):ret=1
[    0.000000] LY:::panther_init,gpio_get_value(19):ret=1

[    2.837341] LY:::gpio_keys_setup_key,button->gpio=18
[    2.842529] LY:::gpio_keys_setup_key,gpio_request:error=0
[    2.848144] LY:::gpio_keys_setup_key,gpio_direction_input:error=0
[    2.854492] LY:::gpio_keys_setup_key,gpio_to_irq:irq=178
[    2.860107] LY:::gpio_keys_setup_key,button->gpio=19
[    2.865264] LY:::gpio_keys_setup_key,gpio_request:error=0
[    2.870910] LY:::gpio_keys_setup_key,gpio_direction_input:error=0
[    2.877258] LY:::gpio_keys_setup_key,gpio_to_irq:irq=179
[    2.882812] LY:::gpio_keys_setup_key,button->gpio=113
[    2.888061] LY:::gpio_keys_setup_key,gpio_request:error=0
[    2.893707] LY:::gpio_keys_setup_key,gpio_direction_input:error=0
[    2.900024] LY:::gpio_keys_setup_key,gpio_to_irq:irq=273
[    2.905578] LY:::gpio_keys_setup_key,button->gpio=114
[    2.910858] LY:::gpio_keys_setup_key,gpio_request:error=0
[    2.916473] LY:::gpio_keys_setup_key,gpio_direction_input:error=0
[    2.922821] LY:::gpio_keys_setup_key,gpio_to_irq:irq=274
[    2.928771] input: gpio-keys as /devices/platform/gpio-keys/input/
input0
[    2.936065] LY:2:gpio_keys_report_event,gpio_get_value:value=1
[    2.942138]
LY:::gpio_keys_report_event,gpio_keys_report_event:state=0,type=0,code=102,­gpio=18
[    2.951141] LY:2:gpio_keys_report_event,gpio_get_value:value=1
[    2.957214]
LY:::gpio_keys_report_event,gpio_keys_report_event:state=0,type=0,code=158,­gpio=19
[    2.966186] LY:2:gpio_keys_report_event,gpio_get_value:value=0
[    2.972259]
LY:::gpio_keys_report_event,gpio_keys_report_event:state=1,type=0,code=115,­gpio=113
[    2.981353] LY:2:gpio_keys_report_event,gpio_get_value:value=0
[    2.987426]
LY:::gpio_keys_report_event,gpio_keys_report_event:state=1,type=0,code=114,­gpio=114
GPIO_18、GPIO_19默认情况下获取到的电平为高,但GPIO_113、GPIO_114在内核驱动里所获取到的电平为低(用
gpio_get_value函数获取),但在硬件电路上表笔测到的GPIO113、GPIO_114为高,已经将CAM驱动的配置Disabled掉
防止csi2_dx1/csi2_dy0的影响,而且硬件电路中没确定没有使用GPIO113/114的情况。

cat /proc/interrutpts
178:          5        GPIO  home
179:          5        GPIO  back
273:          0        GPIO  sound_plus
274:          0        GPIO  sound_minus
当按按键后发现GPIO_113/114没有变化。

GPIO18/19/113/114的使用如下:
static struct gpio_keys_button gpio_buttons[] = {

        {
                .code                   = KEY_HOME,
                .gpio                   = 18,
                .desc                   = "home",
                .active_low             = true,
        },
        {
                .code                   = KEY_BACK,
                .gpio                   = 19,
                .desc                   = "back",
                .active_low             = true,
        },
        {
                .code                   = KEY_VOLUMEUP,
                .gpio                   = 113,
                .desc                   = "sound_plus",
                .active_low             = true,
        },
        {
                .code                   = KEY_VOLUMEDOWN,
                .gpio                   = 114,
                .desc                   = "sound_minus",
                .active_low             = true,
        },

};

HOME/BACK的功能用GPIO_18/19已经实现。

TI GPIO Linux
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Gina Glaser
    Posted by Gina Glaser
    on Jun 18 2012 14:53 PM
    Expert8055 points

    Yi,

    Can you please tell us which OMAP device you are using (ie, OMAP4430, OMAP4460), what board you are testing with (ie, Blaze, Blaze Tablet, or custom), and what software release you are using (ie, 4AI.1.4)?

    Thank you,

    Gina

    Please click the Verify Answer button on this post if it answers your question

    _______________________________________________________

    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • yi luo68719
    Posted by yi luo68719
    on Jun 19 2012 23:59 PM
    Intellectual380 points

    Hi Gina!

    my platform is DM3730 Use Android GingerBread Beagleboard. reference :

    http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1_DeveloperGuide

    and i use GPIO as KEY_VOLUMEUP,is did't work as my want.

    Regards!

    luoyi

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Mohamed Lotfi MOUKNECHE
    Posted by Mohamed Lotfi MOUKNECHE
    on Jul 06 2012 05:50 AM
    Prodigy140 points

    Hi,

    i am using omap4460 with variscite motherboard and i have a problem with the integration of eGalax usbtouchscreen.

    Can any one help me ?

    Best Regards.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Mohamed Lotfi MOUKNECHE
    Posted by Mohamed Lotfi MOUKNECHE
    on Jul 26 2012 05:59 AM
    Prodigy140 points

    Hi Gina,

    i try to integrat NFC module on my board which is variscite costume board with omap4460, the software integration is did but i have a problem with th GPIO.

    the NFC module need  two GPIOs : wakeup and enable,

    can you please tell me how can i define my GPIO on the Board_var_som_om4460.c  and how can i know if the GPIO is used or no by another device.

    Best Regards.

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gina Glaser
    Posted by Gina Glaser
    on Jul 26 2012 09:28 AM
    Expert8055 points

    Mohamed,

    Please post this question as a new thread in the OMAP4 forum: http://e2e.ti.com/support/omap/f/849.aspx

    Thank you,
    Gina 

    Please click the Verify Answer button on this post if it answers your question

    _______________________________________________________

    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use