RTC1 cannot find in the /dev

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RTC1 cannot find in the /dev

901 Views
hankwang
Contributor IV

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.

0 Kudos
2 Replies

845 Views
igorpadykov
NXP Employee
NXP Employee

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:

Real-Time Clock (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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

845 Views
hankwang
Contributor IV

Hi , We resolved the issue. The device tree modify code.

/ {

            rtc0 = &rtc_i2c;

            rtc1 = &snvs;

   }

0 Kudos