Texas Instruments
  • Samples Cart - Add Samples Samples & Purchase Cart
  • |
  • Contact Us
  • |
  • TI Worldwide: United States
  • |
  • my.TI Login
  • Products
  • Applications
  • Design Support
  • Sample & Buy

  • All Searches
TI Home » TI E2E Community » Support Forums » ARM® & DSP Microprocessors » Sitara™ ARM® Microprocessors » AM335x Cortex-A8 Microprocessors Forum » AM335x omap_i2c omap_i2c.2: controller timed out
  • Join
  • Sign In with my.TI Login

TI E2E™ Community

  • Home
  • Support Forums
  • Videos
  • Blogs
  • Groups
  • More ...
  • Go
  • Advanced Search
Share
Details
Rate This
  • 6 Replies
  • 2 Subscribers
  • 457 Views
  • Posted3 months ago
Options
  • Subscribe via RSS
Tags
  • 1588
  • 1MHz
  • 8bit nand
  • ADC
  • ADEV
  • ADPLLLJ
  • Allen Deviation
  • ALSA
  • am1808
  • AM180x
  • AM335
  • AM3352
  • AM3356 DDR2
  • am3359
  • Am3359 AM335X DDR ram
  • AM3359 AM335X MCSPI SPI
  • AM3359 DDR
  • AM3359 RS485 auto transmit control
  • am3359 SPL/MLO
  • AM3359 USB
  • AM3359ICE
  • AM335x
  • AM335x AM35x application level http and telnet servers
  • AM335x ADC
  • AM335x ADC INL DNL
Forum - Title

Forums

Sitara™ ARM® Microprocessors

Sitara™ ARM® Microprocessors

Welcome to the Sitara™ ARM® Microprocessors Section of the TI E2E Support Community. Ask questions, share knowledge, explore ideas, and help solve problems with fellow engineers. To post a question, click on the forum tab then "New Post".

  • Get this RSS feed
  • Home
  • Announcements
  • Forums

AM335x omap_i2c omap_i2c.2: controller timed out

This question is answered
Colby
Posted by Colby
on Feb 9, 2012 11:50 PM
Prodigy70 points

Hi,everyone,I am using am335x evm board. (Boardname: AM33BONE, Boardversion: 00A3)
I want to use the i2c-1 controller, but I always get message "omap_i2c omap_i2c.2: controller timed out".

The linux kernel from http://arago-project.org/git/projects/?p=linux-am33x.git;a=summary .
And I modify file board-am335xevm.c like this:

static struct evm_dev_cfg beaglebone_dev_cfg[] = {
        {lcdc_init,       DEV_ON_BASEBOARD, PROFILE_NONE},// added, it works !
        {mii1_init,      DEV_ON_BASEBOARD, PROFILE_NONE},
        {usb0_init,     DEV_ON_BASEBOARD, PROFILE_NONE},
        {usb1_init,     DEV_ON_BASEBOARD, PROFILE_NONE},
        {mmc0_init,  DEV_ON_BASEBOARD, PROFILE_NONE},
        {i2c1_init,      DEV_ON_BASEBOARD, PROFILE_NONE}, // added, never work !
        {NULL, 0, 0},
};

When i operate i2c-1 (/dev/i2c-2), there is not any signal(include address signal) on CON-17 & CON-18, and get message

"omap_i2c omap_i2c.2: controller timed out", but the i2c-0(/dev/i2c-1) is OK.

Anyone can help me? Now I don't modify any other kernel code, and I don't know if need to modify/add code.

Thanks!


http://e2e.ti.com/support/dsp/sitara_arm174_microprocessors/f/791/p/addpost.aspx

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Norman Wong
    Posted by Norman Wong
    on Feb 11, 2012 12:04 AM
    Verified Answer
    Verified by Colby
    Mastermind9170 points

    A wild guess. From what I can tell, that is all you have to do in the kernel. Pinmux is handled. I assume that SCL and SDA are coming out on a expansion connector at CON-17 and CON-18. Do you have pullup resistors on those pins?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Colby
    Posted by Colby
    on Feb 11, 2012 2:07 AM
    Prodigy70 points

    thank you.

    there is not pullup resistor, so the inner pullup resistor was used. but it doesn't work.
    the problem may comes from hardware.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Norman Wong
    Posted by Norman Wong
    on Feb 11, 2012 9:50 AM
    Verified Answer
    Verified by Colby
    Mastermind9170 points

    Ooops. I did not notice that internal resistors on I2C1 are enabled. The pinmux mode for the I2C1 lines are defined in board-am335xevm.c as:

    OMAP_MUX_MODE2 | AM33XX_SLEWCTRL_SLOW |    AM33XX_PULL_ENBL | AM33XX_INPUT_EN

    I think that means the a pulldown is enabled. I am guessing that you need to add the pullup flag. Something like this:

    OMAP_MUX_MODE2 | AM33XX_SLEWCTRL_SLOW |    AM33XX_PULL_ENBL | AM33XX_INPUT_EN | AM33XX_PULL_UP

    From what I can see in the datasheet, the pullup current at 3.3V is relatively weak and has a wide variance 31uA to 243uA. You should see a signal but it may not be square.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Colby
    Posted by Colby
    on Feb 11, 2012 10:49 PM
    Prodigy70 points

    Yes , I added this flag, but it didn't work. So I posted this subject.

    Tomorrow I will request the hardware engineer to add  external pullup resistors, and then I'll try again.

    Thank you!

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Colby
    Posted by Colby
    on Feb 12, 2012 8:29 PM
    Prodigy70 points

    ok

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gururaja Hebbar
    Posted by Gururaja Hebbar
    on Feb 14, 2012 12:09 AM
    Intellectual1125 points

    Hi,

    I changed the pin-mux as below and i2c1 is working for me

    static struct pinmux_config i2c1_pin_mux[] = {
         {"spi0_d1.i2c1_sda",    OMAP_MUX_MODE2 | AM33XX_SLEWCTRL_SLOW |
    +                    AM33XX_PIN_INPUT_PULLUP},
         {"spi0_cs0.i2c1_scl",   OMAP_MUX_MODE2 | AM33XX_SLEWCTRL_SLOW |
    +                    AM33XX_PIN_INPUT_PULLUP},
         {NULL, 0},
     };

    on linux

    root@arago-armv7:~# i2cdetect -r 2

    WARNING! This program can confuse your I2C bus, cause data loss and worse!

    I will probe file /dev/i2c-2 using read byte commands.

    I will probe address range 0x03-0x77.

    Continue? [Y/n] Y

         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

    00:          -- -- -- -- -- -- -- -- -- -- -- -- --

    10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    70: -- -- -- -- -- -- -- --

     

    kindly test at your end and let me know.

    Regards

    Gururaja

    Does this help with your question? If not, please send back more information. If it answers your question, please click the  Verify Answer  button.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Share

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.

Products | Applications | Design Support | Sample & Buy RSS

TI Worldwide | About TI | Contact Us | Investor Relations | Press Center | Corporate Citizenship | Careers | Tags | my.TI Login | All Searches | Site Map

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