181fdc7afSAlexandre BelloniWhat: /sys/class/rtc/ 281fdc7afSAlexandre BelloniDate: March 2006 381fdc7afSAlexandre BelloniKernelVersion: 2.6.17 481fdc7afSAlexandre BelloniContact: [email protected] 581fdc7afSAlexandre BelloniDescription: 681fdc7afSAlexandre Belloni The rtc/ class subdirectory belongs to the RTC subsystem. 781fdc7afSAlexandre Belloni 881fdc7afSAlexandre BelloniWhat: /sys/class/rtc/rtcX/ 981fdc7afSAlexandre BelloniDate: March 2006 1081fdc7afSAlexandre BelloniKernelVersion: 2.6.17 1181fdc7afSAlexandre BelloniContact: [email protected] 1281fdc7afSAlexandre BelloniDescription: 1381fdc7afSAlexandre Belloni The /sys/class/rtc/rtc{0,1,2,3,...} directories correspond 1481fdc7afSAlexandre Belloni to each RTC device. 1581fdc7afSAlexandre Belloni 1681fdc7afSAlexandre BelloniWhat: /sys/class/rtc/rtcX/date 1781fdc7afSAlexandre BelloniDate: March 2006 1881fdc7afSAlexandre BelloniKernelVersion: 2.6.17 1981fdc7afSAlexandre BelloniContact: [email protected] 2081fdc7afSAlexandre BelloniDescription: 21*d5bc5cdeSAishwarya Pant (RO) RTC-provided date in YYYY-MM-DD format 2281fdc7afSAlexandre Belloni 2381fdc7afSAlexandre BelloniWhat: /sys/class/rtc/rtcX/hctosys 2481fdc7afSAlexandre BelloniDate: September 2009 2581fdc7afSAlexandre BelloniKernelVersion: 2.6.32 2681fdc7afSAlexandre BelloniContact: [email protected] 2781fdc7afSAlexandre BelloniDescription: 28*d5bc5cdeSAishwarya Pant (RO) 1 if the RTC provided the system time at boot via the 2981fdc7afSAlexandre Belloni CONFIG_RTC_HCTOSYS kernel option, 0 otherwise 3081fdc7afSAlexandre Belloni 3181fdc7afSAlexandre BelloniWhat: /sys/class/rtc/rtcX/max_user_freq 3281fdc7afSAlexandre BelloniDate: October 2007 3381fdc7afSAlexandre BelloniKernelVersion: 2.6.24 3481fdc7afSAlexandre BelloniContact: [email protected] 3581fdc7afSAlexandre BelloniDescription: 36*d5bc5cdeSAishwarya Pant (RW) The maximum interrupt rate an unprivileged user may request 3781fdc7afSAlexandre Belloni from this RTC. 3881fdc7afSAlexandre Belloni 3981fdc7afSAlexandre BelloniWhat: /sys/class/rtc/rtcX/name 4081fdc7afSAlexandre BelloniDate: March 2006 4181fdc7afSAlexandre BelloniKernelVersion: 2.6.17 4281fdc7afSAlexandre BelloniContact: [email protected] 4381fdc7afSAlexandre BelloniDescription: 44*d5bc5cdeSAishwarya Pant (RO) The name of the RTC corresponding to this sysfs directory 4581fdc7afSAlexandre Belloni 4681fdc7afSAlexandre BelloniWhat: /sys/class/rtc/rtcX/since_epoch 4781fdc7afSAlexandre BelloniDate: March 2006 4881fdc7afSAlexandre BelloniKernelVersion: 2.6.17 4981fdc7afSAlexandre BelloniContact: [email protected] 5081fdc7afSAlexandre BelloniDescription: 51*d5bc5cdeSAishwarya Pant (RO) RTC-provided time as the number of seconds since the epoch 5281fdc7afSAlexandre Belloni 5381fdc7afSAlexandre BelloniWhat: /sys/class/rtc/rtcX/time 5481fdc7afSAlexandre BelloniDate: March 2006 5581fdc7afSAlexandre BelloniKernelVersion: 2.6.17 5681fdc7afSAlexandre BelloniContact: [email protected] 5781fdc7afSAlexandre BelloniDescription: 58*d5bc5cdeSAishwarya Pant (RO) RTC-provided time in 24-hour notation (hh:mm:ss) 5981fdc7afSAlexandre Belloni 6081fdc7afSAlexandre BelloniWhat: /sys/class/rtc/rtcX/*/nvmem 6181fdc7afSAlexandre BelloniDate: February 2016 6281fdc7afSAlexandre BelloniKernelVersion: 4.6 6381fdc7afSAlexandre BelloniContact: [email protected] 6481fdc7afSAlexandre BelloniDescription: 65*d5bc5cdeSAishwarya Pant (RW) The non volatile storage exported as a raw file, as 66*d5bc5cdeSAishwarya Pant described in Documentation/nvmem/nvmem.txt 6781fdc7afSAlexandre Belloni 6881fdc7afSAlexandre BelloniWhat: /sys/class/rtc/rtcX/offset 6981fdc7afSAlexandre BelloniDate: February 2016 7081fdc7afSAlexandre BelloniKernelVersion: 4.6 7181fdc7afSAlexandre BelloniContact: [email protected] 7281fdc7afSAlexandre BelloniDescription: 73*d5bc5cdeSAishwarya Pant (RW) The amount which the rtc clock has been adjusted in 74*d5bc5cdeSAishwarya Pant firmware. Visible only if the driver supports clock offset 75*d5bc5cdeSAishwarya Pant adjustment. The unit is parts per billion, i.e. The number of 76*d5bc5cdeSAishwarya Pant clock ticks which are added to or removed from the rtc's base 77*d5bc5cdeSAishwarya Pant clock per billion ticks. A positive value makes a day pass more 78*d5bc5cdeSAishwarya Pant slowly, longer, and a negative value makes a day pass more 79*d5bc5cdeSAishwarya Pant quickly. 8081fdc7afSAlexandre Belloni 8181fdc7afSAlexandre BelloniWhat: /sys/class/rtc/rtcX/wakealarm 8281fdc7afSAlexandre BelloniDate: February 2007 8381fdc7afSAlexandre BelloniKernelVersion: 2.6.20 8481fdc7afSAlexandre BelloniContact: [email protected] 8581fdc7afSAlexandre BelloniDescription: 86*d5bc5cdeSAishwarya Pant (RW) The time at which the clock will generate a system wakeup 87*d5bc5cdeSAishwarya Pant event. This is a one shot wakeup event, so must be reset after 88*d5bc5cdeSAishwarya Pant wake if a daily wakeup is required. Format is seconds since the 89*d5bc5cdeSAishwarya Pant epoch by default, or if there's a leading +, seconds in the 90*d5bc5cdeSAishwarya Pant future, or if there is a leading +=, seconds ahead of the 91*d5bc5cdeSAishwarya Pant current alarm. 92