I just wanted to follow up this post: [url]https://archlinuxarm.org/forum/viewtopic.php?f=65&t=14676[/url] which is locked by now.
I was struggling a bit with this and well and solved it with these steps:
Export the device tree:
[code]dtc -I dtb -O dts /boot/dtbs/rockchip/rk3328-rock64.dtb -o rk3328-rock64.dts[/code]
Find the i2c@ff150000 Block in the generated DTS file, change status to "okay" to enable the bus and add the device definitions for DS1307 and DS3231. The i2c@ff150000 Block now should look like this:
[code] i2c@ff150000 {
compatible = "rockchip,rk3328-i2c\0rockchip,rk3399-i2c";
reg = <0x00 0xff150000 0x00 0x1000>;
interrupts = <0x00 0x24 0x04>;
#address-cells = <0x01>;
#size-cells = <0x00>;
clocks = <0x02 0x37 0x02 0xcd>;
clock-names = "i2c\0pclk";
pinctrl-names = "default";
pinctrl-0 = <0x26>;
status = "okay";
phandle = <0x73>;
ds1307@68 {
compatible = "maxim,ds1307";
reg = <0x68>;
status = "okay";
};
ds3231@68 {
compatible = "maxim,ds3231";
reg = <0x68>;
status = "okay";
};
};
[/code]
Recompilethe device tree:
[code]dtc -O dtb -o /boot/dtbs/rockchip/rk3328-rock64.dtb rk3328-rock64.dts[/code]
Also add the rtc_rk808 module to the modprobe blacklist:
[code]echo "blacklist rtc_rk808" >> /etc/modprobe.d/blacklist.conf[/code]