Thanks Robert for suggestion
I did the editing as you proposed, kernel finds it but still does not use it as I expected.
Details follow.
I did edit them like this
extrtc: ds3231@68 {
compatible = "micro-crystal,rv3028";
reg = <0x52>;
};
and change the overlay name in fragment0.
Renamed the file to BB-I2C2-RTC-RV3028.dts
Compiled, installed and included the line
dtb_overlay=/lib/firmware/BB-I2C2-RTC-RV3028.dtbo
in /boot/uEnv.txt
After reboot there is no /dev/rtc0 created, neither the /dev/rtc link
Some filtered results from
$ dmesg
[ 0.000798] timer_probe: no matching timers found
[ 1.373919] omap_rtc 44e3e000.rtc: registered as rtc1
[ 1.663955] PM: rtc0 not available
[ 1.665284] PM: rtc0 not available
[ 1.666533] hctosys: unable to open rtc device (rtc0)
[ 1.933272] PM: rtc0 not available
So the overlay is processed since the renumbering of the rtc (built in becomes rtc1) work.
But the new rtc is not installed in kernel
It is listed in /proc/device-tree/chosen/overlay.
The unit seem to be noticed in /sys/class/i2c-dev/i2c-2/device/2-0052
The file name inside returns the right name
$ cat name
rv3028
But it is not occupied by the kernel since I can still do
$ i2cdetect -y 2 0x52 0x0
22
So any clues how I can get the kernel to use it?
/johan