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.

AM3352: Adding external EPSON RX8130CE driver to kernel 3.2

Part Number: AM3352

Hi,

I am trying to add EPSON RX8130CE to my eval board with AM3352 and have followed the steps as specified below.

1. Copy the file rtc-rx8130.c into the directory ./linux-3.8.x/drivers/rtc. "linux-3.8.x" refers to
the base of the linux kernel source tree.
2. Add the following lines into the drivers/rtc/Kconfig file:
config RTC_DRV_RX8130
tristate "Epson RX8130CE"
help
If you say yes here you get support for the Epson
RX8130CE RTC chips.
This driver can also be built as a module. If so, the module
will be called rtc-rx8130.
3. Add the following line to the drivers/rtc/Makefile:
obj-$(CONFIG_RTC_DRV_RX8130) += rtc-rx8130.o
4. During the rebuild, make sure to include the 'Epson RX8130CE' option in the Kernel
Configuration window under 'Device Drivers' -> 'Real Time Clock'.

Same is provided in the EPSON website in the RX8130_readme.pdf.

https://www5.epsondevice.com/en/information/support/linux_rtc/down_load.html

Only difference is I am adding the support for kernel 3.2.

So in order to support that, I have modified the rtc-rx8130.c as below 

1.
static int __init rx8130_rtc_init(void)
{
    return i2c_add_driver(&rx8130_driver);
}

static void __exit rx8130_rtc_exit(void)
{
    i2c_del_driver(&rx8130_driver);
}
module_init(rx8130_rtc_init);
module_exit(rx8130_rtc_exit);
from
module_i2c_driver(rx8130_driver);
2. RTC_VL_READ and RTC_VL_CLR is not supported in linux architecture for kernel 3.2 , I have commented that part of the code from the rtc-rx8130.c  file.
So the problem I am facing is that the node /dev/rtc1 is not getting created as specified by Epson and my application code is not able to access the dev node.
Any help or direction to resolve this, will be great.
Thanks and regards,
Dev