Hi,
I am trying to interface RTC (ISL1208) to I2C1 channel of
i.mx28evk. The steps which followed are as follows
1) In Menuconfig option.. Selected Device Drivers ->Real Time
Clock-> Intersil ISL1208
2) In Menuconfig option. I2C support-> I2C Hardware BUS
support -> Enable I2C1 module
3) In mx28evk.c ->
static struct i2c_board_info __initdata mxs_i2c_device[] = {
{ I2C_BOARD_INFO("sgtl5000-i2c", 0xa), .flags =
I2C_M_TEN },
{ I2C_BOARD_INFO("rtc-isl1208", 0x6f), .flags =
I2C_M_TEN }
};
static void __init i2c_device_init(void)
{
i2c_register_board_info(0, mxs_i2c_device,
ARRAY_SIZE(mxs_i2c_device));
i2c_register_board_info(1, mxs_i2c_device,
ARRAY_SIZE(mxs_i2c_device));
}
4) Compiled the kernel and booted the board through NFS.
5) In debug serial window,
$cd /sys/class/i2c-dev
$ls
i2c-0 i2c-1
but i can't read the time and set the time in ISL1208 IC.
I can't find anyfile to read the time and other setting. Please
help me sort out..
Thanks & Regards,
RAM :smileyhappy: