01-27-2019, 03:19 AM
Hi Guys, my RTC PCF8523(https://www.adafruit.com/product/3386) is not working on the Rock64.
It is working on the RPI3B:
root@rpi3b01:~# uname -a
Linux rpi3b01 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux
root@rpi3b01:~# modinfo rtc-pcf8523
filename: /lib/modules/4.14.79-v7+/kernel/drivers/rtc/rtc-pcf8523.ko
license: GPL v2
description: NXP PCF8523 RTC driver
author: Thierry Reding <thierry.reding@avionic-design.de>
srcversion: 88403DCB7B29428A4B359BE
alias: i2c:pcf8523
alias: of:N*T*Cnxp,pcf8523C*
alias: of:N*T*Cnxp,pcf8523
depends:
intree: Y
name: rtc_pcf8523
vermagic: 4.14.79-v7+ SMP mod_unload modversions ARMv7 p2v8
root@rpi3b01:~# i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
It works and being used.
root@rock64:~# uname -a
Linux rock64 4.4.154-1128-rockchip-ayufan-g61b4b1151f9a #1 SMP Tue Dec 25 14:31:31 UTC 2018 aarch64 GNU/Linux
root@rock64:~# modinfo rtc-pcf8523
filename: /lib/modules/4.4.154-1128-rockchip-ayufan-g61b4b1151f9a/kernel/drivers/rtc/rtc-pcf8523.ko
license: GPL v2
description: NXP PCF8523 RTC driver
author: Thierry Reding <thierry.reding@avionic-design.de>
alias: i2c:pcf8523
alias: of:N*T*Cnxp,pcf8523*
depends:
vermagic: 4.4.154-1128-rockchip-ayufan-g61b4b1151f9a SMP mod_unload aarch64
Enabling i2c0:
root@rock64:~# enable_dtoverlay i2c0 i2c@ff150000 okay
Applying...
/dts-v1/;
/ {
fragment@0 {
target-path = "/i2c@ff150000";
__overlay__ {
status="okay";
};
};
};
Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property
Applied!
Right now it the RTC module is not plugged in:
root@rock64:~# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30: -- -- -- -- -- -- -- -- 38 39 3a 3b 3c 3d 3e 3f
40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70: 70 71 72 73 74 75 76 77
If I add the RTC PCF8523. It does not pop at 0x68 as on my RPI3B.
What else should be done in order to get the RTC module working?
Thnx for your help!
It is working on the RPI3B:
root@rpi3b01:~# uname -a
Linux rpi3b01 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux
root@rpi3b01:~# modinfo rtc-pcf8523
filename: /lib/modules/4.14.79-v7+/kernel/drivers/rtc/rtc-pcf8523.ko
license: GPL v2
description: NXP PCF8523 RTC driver
author: Thierry Reding <thierry.reding@avionic-design.de>
srcversion: 88403DCB7B29428A4B359BE
alias: i2c:pcf8523
alias: of:N*T*Cnxp,pcf8523C*
alias: of:N*T*Cnxp,pcf8523
depends:
intree: Y
name: rtc_pcf8523
vermagic: 4.14.79-v7+ SMP mod_unload modversions ARMv7 p2v8
root@rpi3b01:~# i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
It works and being used.
root@rock64:~# uname -a
Linux rock64 4.4.154-1128-rockchip-ayufan-g61b4b1151f9a #1 SMP Tue Dec 25 14:31:31 UTC 2018 aarch64 GNU/Linux
root@rock64:~# modinfo rtc-pcf8523
filename: /lib/modules/4.4.154-1128-rockchip-ayufan-g61b4b1151f9a/kernel/drivers/rtc/rtc-pcf8523.ko
license: GPL v2
description: NXP PCF8523 RTC driver
author: Thierry Reding <thierry.reding@avionic-design.de>
alias: i2c:pcf8523
alias: of:N*T*Cnxp,pcf8523*
depends:
vermagic: 4.4.154-1128-rockchip-ayufan-g61b4b1151f9a SMP mod_unload aarch64
Enabling i2c0:
root@rock64:~# enable_dtoverlay i2c0 i2c@ff150000 okay
Applying...
/dts-v1/;
/ {
fragment@0 {
target-path = "/i2c@ff150000";
__overlay__ {
status="okay";
};
};
};
Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property
Applied!
Right now it the RTC module is not plugged in:
root@rock64:~# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30: -- -- -- -- -- -- -- -- 38 39 3a 3b 3c 3d 3e 3f
40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70: 70 71 72 73 74 75 76 77
If I add the RTC PCF8523. It does not pop at 0x68 as on my RPI3B.
What else should be done in order to get the RTC module working?
Thnx for your help!