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.

AM3517 SOM-M2 RTC

Other Parts Discussed in Thread: AM3517

Looking at the hardware specs, the AM3517 SOM-M2 module has a Seiko S35390 RTC attached to the I2C-1 interface.  I have a couple questions regarding using this RTC in user programs.  First off, is is possible to read and write to the registers on the S35390 at the user level even though it is also being used by the Kernel?  So far I have not had any luck reading from them through i2cget or i2c code in a c program.  If it is possible, what is the preferred method of accessing the S35390 registers?

Secondly, my goal here is to use the RTC interrupt line to essentially shut off power to the SOM module and power it back on after a set time interval, by toggling an enable pin on my voltage regulator to the whole SOM. Would this be possible using this RTC or should I explore other options?  Any suggestions are appreciated.

Lastly, I have been seeing some RTC errors during boot up.  How do I go about fixing them?

      rtc-s35390a 1-0030: error resetting chip
      rtc-s35390a: probe of 1-0030 failed with error -5

      drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

Thanks!

Justin

  • Hi Justin,

    For the last errors you mentioned.They are due the following :

    #RTC interface is not connected properly.

    #I2C Clk and data line are not high during no operation(I2C Interface not working properly.)

    Please check above.

    Regards 

    Nitish Mehta