Hi,
I have an AM335x Starter kit which I have fitted an i2c DS3232 RTC with battery.
The reason we are using this is because we have Version 1.0 of the Arm chip, so the RTC does not work on battery and I did not know the TPS65910A3 had an RTC built in, but as this doesn't have the xtal and neither RTCs give the option to add a battery on this board we fitted the i2c board.
Now, I have modified the menuconfig and removed the internal RTC driver and added the DS3232, I have modified the board-am335xevm.c file to add the DS3232 to the i2c driver. I also added a .irq setting to the i2c_board_info which allows me to set the alarm. All this works fine and the board sets the system time from the RTC on startup and I can set the alarm using /sys/class/rtc/rtc0/wakealarm and the DS3232 interrupt triggers.
My problem is where to connect the interrupt signal to on the starter kit, I thought about using the external SPI interface connector as I am not using this for anything else, but I can't get it to work.
I can't disable the SPI in the menuconfig as this is being used by something else on board (MMC ?), I believe.
Any ideas of an easy connection point and what else I need to do in the kernel ?
Cheers.
Wayne