Hello there,
I am working with a custom designed imx536 board that makes use of the MC34708. Currently I am trying to tackle the same problems as Johan described. When I boot into Linux, the driver works fine, I can set/read the RTC with the mxc_rtc driver with no problems. Running the RTC unit test also passes.
However, when I shut down the board and kill the power, looking at the VSRTC line it drops from 1.3V to 1.2V. However, according to the MC34708 datasheet, this is normal behaviour. See page 27 of the MC34708 datasheet which states, "... VSRTC will be set to 1.3 V in on mode (on, on standby and on standby low power modes). In off and coin cell modes the VSRTC voltage will drop to 1.2 V."
Looking at the CLK32KMCU line from the MC34708 I see a very nice looking 32.768Khz clock pulse that persists after power has been removed when the 3V cell is present.
My power up sequence should be fine, as it is determined by the MC34708 PUMS bits which I have configured for DDR3 mode. For the power down sequence, I am simply issuing the "halt" command in Linux, and then turning off the main power once the init has completed running and the kernel reports that it is halted. However, I dont think it makes sense that the power down sequence should affect the RTC LP. It seems to me that the main reason for an RTC backup is that in the event of an unexpected power failure you can maintain time. If the power cut event is unexpected, then you cant turn off the regulators in any particular order.
I'm currently digging through the driver trying to identify any problems. I'll post here if I have found anything.
Currently using the 11.09 Linux BSP (2.6.35.3-1129 kernel)
Regards,
Mark Roy