Hi,
My custom hardware has an external RTC chip and I would like to disable the AM335X internal RTC. The kernel I am working on is 3.14 from TI's git.
I tried to add the following in device tree.
&rtc {
status= "disabled";
};
I got
Error: arch/arm/boot/dts/am335x-smarc-common.dtsi:817.2-3 label or path, 'rtc', not found
FATAL ERROR: Syntax error parsing input tree
make[1]: *** [arch/arm/boot/dts/am335x-smarct335x.dtb] Error 1
make: *** [am335x-smarct335x.dtb] Error 2
I also tried to uncheck the "TI OMAP1" in defconfig file. I got compiler error as following.
arch/arm/mach-omap2/built-in.o: In function `am33xx_rtc_only_idle':
/home/linux/smarct335x-work/smarc-ti-linux-kernel/arch/arm/mach-omap2/pm33xx.c:213: undefined reference to `omap_rtc_power_off_program'
arch/arm/mach-omap2/built-in.o: In function `am33xx_pm_init':
/home/linux/smarct335x-work/smarc-ti-linux-kernel/arch/arm/mach-omap2/pm33xx.c:720: undefined reference to `omap_rtc_get_base_addr'
make: *** [vmlinux] Error 1
My external RTC chip is from Seiko S35390a and I can see /dev/rtc1 work well. However, I would like to remove /dev/rtc0 from the internal RTC chip and make s35390a as /dev/rtc0.
Is there any way to do this? Thanks.
-Eric