I am trying to get a real-time clock (RTC) to work on the i2c0 on a CM3+. I want to use pins 44&45 with the i2c0. This used to work with the following entry in config.txt:
Code: Select all
dtoverlay=i2c0,pins_44_45
dtoverlay=i2c0-rtc,pcf8523
This worked well with an older kernel. However, with the latest kernel this no longer seems possible. I am not even able to display the address with i2cdetect -y 0.
Code: Select all
pi@raspberrypi:~ $ i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
With the current kernel, now it should be possible to activate an RTC on i2c0 (pins 44&45) with the following entry:
Code: Select all
dtparam=i2c_vc=on
dtoverlay=i2c-rtc,pcf8523,i2c_csi_dsi
Code: Select all
pi@raspberrypi:~ $ raspi-gpio get
BANK0 (GPIO 0 to 27):
[...]
GPIO 2: level=1 fsel=4 alt=0 func=SDA1
GPIO 3: level=1 fsel=4 alt=0 func=SCL1
GPIO 4: level=1 fsel=0 func=INPUT
[...]
BANK1 (GPIO 28 to 45):
GPIO 28: level=0 fsel=4 alt=0 func=SDA0
GPIO 29: level=0 fsel=4 alt=0 func=SCL0
[...]