一、问题描述
嵌入式linux开发,RTC(pcf8563)报错如下:
<<-GTP-INFO->> GTP driver installing...
i2c_add_driver : 0
drivers/rtc/hctosys.c: unable to open rtc device (rtc1)
二、问题分析
pcf8563驱动问题,未能实现I2C的有效通信。
三、解决方案
pcf8563驱动已集成,主要确认板级文件对应的pcf8563的配置。pcf8563的地址为0x51.
#ifdef CONFIG_RTC_DRV_PCF8563
{I2C_BOARD_INFO("pcf8563", 0x51),},
#endif