Hi, we added rtc1 function in the device tree of kernel. Our BSP is 4.14.78 and platform is i.mx6ul.
But we can not find rtc1 in the /dev folder. What is problem ?
#include "imx6ul.dtsi"
/ {
aliases {
rtc0 = &rtc_i2c;
rtc1 = "soc/aips-bus@02000000/snvs@020cc000/snvs-rtc-lp@34";
};
Thanks.
Hi hank
for snvs rtc example one can look at
linux/arch/arm/boot/dts/imx6ul.dtsi
imx6ul.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel
may be useful to check examples with two rtc:
How to use the Real Time Clock in Linux
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi , We resolved the issue. The device tree modify code.
/ {
rtc0 = &rtc_i2c;
rtc1 = &snvs;
}