Page 1 of 1

NanoPi Neo Plus2: How to enable I2C for DS1307 RTC?

Posted: Thu Jan 11, 2018 12:08 pm
by ctetzlaff
Hello,

I've enabled all I2C interfaces via the npi-config tool and connected a DS1307 RTC modules (which works fine on Raspberry PI 3 with raspian). My RTC module requires loading of three kernel modules on raspberry:
  • i2c_bcm2708
  • i2c_dev
  • rtc-ds1307

Based on the "nanopi-neo-plus2_FriendlyCore-Xenial_4.14.0_20171208" I'm only able to load the last two ones and only rtc-ds1307 is shown under lsmod as loaded. When I watch dmesg and load module rtc-ds1307 then an error occurs:

Code: Select all

i2c i2c-0: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x68, flags: 0x0


Is there some further kernel module to run i2c properly?

Thanks for any help!

Re: NanoPi Neo Plus2: How to enable I2C for DS1307 RTC?

Posted: Thu Jan 11, 2018 3:56 pm
by ctetzlaff
The situation has been cleared.
It is enough to load module rtc-ds1307 and work on I2C bus address 0.