Pine Rock 64 - external RTC

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

Pine Rock 64 - external RTC

Postby PmaxP » Thu Aug 13, 2020 8:03 am

I'm trying to use an external RTC module (ds3231) in a Pine Rock 64.

I've loaded i2c-dev modules and rtc-ds1307 modules but my rtc mod is not detected by i2c (i2cdetect shows nothing connected at address 68)

Hardware is ok (if I boot with ayurfan distro I can see the external RTC module).

Could it be a kernel configuration problem? Has anyone had similar experience?

Regards

Max
PmaxP
 
Posts: 4
Joined: Mon Jan 20, 2020 2:53 pm

Re: Pine Rock 64 - external RTC

Postby PmaxP » Mon Aug 17, 2020 4:31 pm

if anyone would be interested I managed to make it all work.

- i've modified, recompiled and overwrite to original one (in /boot/dtb) rk3328-rock64.dts, adding this fragment of code

$this->bbcode_second_pass_code('', '
&i2c0 {
status = "okay";
ds1307: ds1307@68 {
compatible = "maxim,ds1307";
reg = <0x68>;
status = "okay";
};
ds3231: ds3231@68 {
compatible = "maxim,ds3231";
reg = <0x68>;
status = "okay";
};
};
')

to enable i2c0 bus and to let automatically discovered the rtc device by the kernel at boot time.

- blacklisted rock64 rtc module (rtc_rk808)

- added rtc_ds1307 module to automatic module loading system


After reboot rtc device will be created and the rtc module enabled
PmaxP
 
Posts: 4
Joined: Mon Jan 20, 2020 2:53 pm

Re: Pine Rock 64 - external RTC

Postby kterry » Fri Sep 25, 2020 2:54 pm

I tried to append your code after generating the dts file but I am getting a syntax error. Do you have any suggestions?
kterry
 
Posts: 1
Joined: Fri Sep 25, 2020 2:52 pm


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 3 guests