RTC1 cannot find in the /dev

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

RTC1 cannot find in the /dev

1,803 次查看
hankwang
Contributor V

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 项奖励
回复
2 回复数

1,747 次查看
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 项奖励
回复

1,747 次查看
hankwang
Contributor V

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

/ {

            rtc0 = &rtc_i2c;

            rtc1 = &snvs;

   }

0 项奖励
回复