Hello Jetson community,
I’ve recently migrated from the Hardkernel Odroid-C2, and was wondering if anyone has experience using a real-time clock that’s connected to a daughter board rather than soldering the coin cell holder to J45.
What I’m using
1 x Jetson Nano Developer Kit
1 x CR2032 coin-cell battery
1 x pcf8563 (datasheet available here)
Current configuration
In my current configuration, I have the 40-pin gpio of the nano connected to a custom pcb via a ribbon cable. Accessible on that board is the pcf8563.
The pcf8563 is connected to i2c-1 and is detectable using i2cdetect at address 0x51
root@jetson-nano-qspi-sd:~# i2cdetect -r -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- 27 -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- 38 -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- 51 -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
I’m currently using a custom image created using meta-tegra
and the Yocto Project, but also have the provided Ubuntu image from NVIDIA as well. I have access to hwclock
, modprobe
, timedatectl
, and all the general command and packages needed for the clock. So for sake of conversation, let’s just say I’m using the ubuntu image.
Thoughts and what I’ve done so far
Since the specific rtc is covered in mainline I feel like it shouldn’t be too out of the ordinary to set up.
I went ahead and checked for the clock. Good it works.
I went and tested hwclock -r
and datetimectl
to attempt setting the clock. Overall it’s going well.
Mainly I’ve just not seen any specific guides for this chip and wanted to know if other developers or the team had a guide or process to enabling this. As I intend to migrate off of the developer kit and simply use the nano module, I’d like to avoid using J45 (the custom pcb has to be industrial-rated, etc.)
Hoping there’s not too much work needed. I’m simply looking to be able to set the datetime, have it persist through reboots, and play nice with the nano so I can configure the clock in my custom image.
Thanks!