On Mon, Sep 11, 2017 at 1:28 PM, Tim Small <[email protected]> wrote: > On 11/09/17 15:50, Robert Nelson wrote: >> I'm thinking we need to do something like here in the Jetson, and add >> a rtc aliases: >> >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/tegra124-jetson-tk1.dts?h=v4.13#n12 > > Thanks Robert - much appreciated... > > I found this - > http://developer.toradex.com/device-tree-customization#aliases - which > concurs. As far as I can tell unfortunately it doesn't seem possible to > dynamically add new aliases using a device tree overlay (yet?), so > that'll mean recompiling the main device tree instead I think. > > Does that sound right? > > I find any other way of forcing /ocp/rtc@44e3e00 to be rtc1 at least, > but I could easily be missing something of course.
I'm close (using a pcf8523) root@beaglebone:~# uname -r 4.9.49-ti-r58 root@beaglebone:~# dmesg | grep rtc [ 2.428569] omap_rtc 44e3e000.rtc: already running [ 2.429071] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0 [ 2.649410] rtc-pcf8523 2-0068: /aliases ID 0 not available [ 2.650843] rtc-pcf8523 2-0068: rtc core: registered rtc-pcf8523 as rtc1 [ 2.693786] PM: bootloader does not support rtc-only! [ 2.694815] omap_rtc 44e3e000.rtc: setting system clock to 2017-09-11 20:09:40 UTC (1505160580) https://github.com/RobertCNelson/bb.org-overlays/blob/rtc-hacks/src/arm/BB-I2C2-PCF8523-00A0.dts for some reason, it still gave rtc0 to omap... Regards, -- Robert Nelson https://rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYhQ98QivQ1csrX0cv9EYAxmOnZopqEE5GmypC7F4Arqmg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
