Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

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.

How to make DS1307 RTC module work with OMAP4?

Hi, is just that i did a connection by I2C between the DS1307 RTC module and a pandaboard based on OMAP4430, and it is connected to level shifters for the connection with the pandaboard, i did activate the driver in the kernel for it, but i don't see any change, is there any other configuration that must be done to make it work????, please help, i need to have this done really soon, and i don't know what else must be configured. I'm using Android ICS and kernel 3.0.8. Thanks in advanced.

Best Regards.

  • Michelle,

    Can you please explain more in detail about the hardware connection with the DS1307.  For example, which I2C bus is used?  Did you add the device to the I2C bus in the kernel board file and change any pin muxing if needed?  Are you able to verify that the hardware connections are functioning properly?

    Regards,
    Gina 

  • Hi, yes, actually there is an i2c to spi bus converter connected and working and other devices, i am using this schematic: 

    and i'm using the same level shifter of the other devices for the SDA and SCL pins, i did activate the RT-DS1307 driver in the kernel, and i am making the connection with the i2c pins of the GPIO of the Pandaboard, so i don't know what to expect or what do i have to configure besides what i did to make it work, when i have the RTC connected and reset the board, Android doesnt save the time and it initiates from 00:00, i am kind of lost here with the configuration with the pandaboard and the omap4430 regarding to the RTC, with the configuration that i have should it work?, because when i see the kernel output events with dmesg, it says that it couldn't find an RTC so the time will be lost on reboot.

    thanks in advanced, Best Regards.

  • Hi Michael,

    What I2C bus are you using?

    Are you sure that the pin muxing for the pins you are using are set for that I2C bus?

    How are you enabling the driver for the RTC?

  • Hi, i am using the I2C pins located in the GPIO of the Pandaboard, it is working with other devices because we have some other ones working with that bus and with the same level shifter, the pin muxing is ok for the i2c mode, and the driver that i am using is the one that is in Device Drivers/ Real Time Clock (RTC) Drivers/  i choose in the I2C section, the driver for the DS1307.

    What should i see through the terminal using dmesg when it is connected, or how do i know that it is being recognized and working, is just that i thought that i should work since the other devices work, does it need some other configuration besides enabling the driver?

    I am using Android ICS, Kernel 3.0.8 from google and the board is a Pandaboard RA3.

    Best Regards.

  • Ok, seems like you have ready the part for the I2C. I am not familiar with the RTC driver, but you need to check if it is being registered to the I2C bus you have connected and that it uses the calls to write/read to that bus.

  • There is this post in Google's groups that contains information about this issue.

    https://groups.google.com/forum/?fromgroups=#!topic/beagleboard/DegreEdtI-Q

    It is base in Panda Board, it is not an official release from TI, but you can use it as a starting point.

  • Thank you very much, it actually worked for me but with the 4th i2c bus at 100KHz, and the battery for the module had to be one similar to the ones that the bios uses in laptops, i tried with another battery but it didn't work, i don't know if that was because of the current but it didn't work, it only worked with the one that i said.

    Best Regards.