xref: /openbmc/linux/Documentation/ABI/testing/sysfs-class-rtc (revision c1144d29f405ce1f4e6ede6482beb3d0d09750c6)
181fdc7afSAlexandre BelloniWhat:		/sys/class/rtc/
281fdc7afSAlexandre BelloniDate:		March 2006
381fdc7afSAlexandre BelloniKernelVersion:	2.6.17
481fdc7afSAlexandre BelloniContact:	linux-rtc@vger.kernel.org
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:	linux-rtc@vger.kernel.org
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:	linux-rtc@vger.kernel.org
2081fdc7afSAlexandre BelloniDescription:
21d5bc5cdeSAishwarya 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:	linux-rtc@vger.kernel.org
2781fdc7afSAlexandre BelloniDescription:
28d5bc5cdeSAishwarya 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:	linux-rtc@vger.kernel.org
3581fdc7afSAlexandre BelloniDescription:
36d5bc5cdeSAishwarya 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:	linux-rtc@vger.kernel.org
4381fdc7afSAlexandre BelloniDescription:
44d5bc5cdeSAishwarya Pant		(RO) The name of the RTC corresponding to this sysfs directory
4581fdc7afSAlexandre Belloni
46*71db049eSAlexandre BelloniWhat:		/sys/class/rtc/rtcX/range
47*71db049eSAlexandre BelloniDate:		January 2018
48*71db049eSAlexandre BelloniKernelVersion:	4.16
49*71db049eSAlexandre BelloniContact:	linux-rtc@vger.kernel.org
50*71db049eSAlexandre BelloniDescription:
51*71db049eSAlexandre Belloni		Valid time range for the RTC, as seconds from epoch, formatted
52*71db049eSAlexandre Belloni		as [min, max]
53*71db049eSAlexandre Belloni
5481fdc7afSAlexandre BelloniWhat:		/sys/class/rtc/rtcX/since_epoch
5581fdc7afSAlexandre BelloniDate:		March 2006
5681fdc7afSAlexandre BelloniKernelVersion:	2.6.17
5781fdc7afSAlexandre BelloniContact:	linux-rtc@vger.kernel.org
5881fdc7afSAlexandre BelloniDescription:
59d5bc5cdeSAishwarya Pant		(RO) RTC-provided time as the number of seconds since the epoch
6081fdc7afSAlexandre Belloni
6181fdc7afSAlexandre BelloniWhat:		/sys/class/rtc/rtcX/time
6281fdc7afSAlexandre BelloniDate:		March 2006
6381fdc7afSAlexandre BelloniKernelVersion:	2.6.17
6481fdc7afSAlexandre BelloniContact:	linux-rtc@vger.kernel.org
6581fdc7afSAlexandre BelloniDescription:
66d5bc5cdeSAishwarya Pant		(RO) RTC-provided time in 24-hour notation (hh:mm:ss)
6781fdc7afSAlexandre Belloni
6881fdc7afSAlexandre BelloniWhat:		/sys/class/rtc/rtcX/offset
6981fdc7afSAlexandre BelloniDate:		February 2016
7081fdc7afSAlexandre BelloniKernelVersion:	4.6
7181fdc7afSAlexandre BelloniContact:	linux-rtc@vger.kernel.org
7281fdc7afSAlexandre BelloniDescription:
73d5bc5cdeSAishwarya Pant		(RW) The amount which the rtc clock has been adjusted in
74d5bc5cdeSAishwarya Pant		firmware. Visible only if the driver supports clock offset
75d5bc5cdeSAishwarya Pant		adjustment. The unit is parts per billion, i.e. The number of
76d5bc5cdeSAishwarya Pant		clock ticks which are added to or removed from the rtc's base
77d5bc5cdeSAishwarya Pant		clock per billion ticks. A positive value makes a day pass more
78d5bc5cdeSAishwarya Pant		slowly, longer, and a negative value makes a day pass more
79d5bc5cdeSAishwarya Pant		quickly.
8081fdc7afSAlexandre Belloni
8181fdc7afSAlexandre BelloniWhat:		/sys/class/rtc/rtcX/wakealarm
8281fdc7afSAlexandre BelloniDate:		February 2007
8381fdc7afSAlexandre BelloniKernelVersion:	2.6.20
8481fdc7afSAlexandre BelloniContact:	linux-rtc@vger.kernel.org
8581fdc7afSAlexandre BelloniDescription:
86d5bc5cdeSAishwarya Pant		(RW) The time at which the clock will generate a system wakeup
87d5bc5cdeSAishwarya Pant		event. This is a one shot wakeup event, so must be reset after
88d5bc5cdeSAishwarya Pant		wake if a daily wakeup is required. Format is seconds since the
89d5bc5cdeSAishwarya Pant		epoch by default, or if there's a leading +, seconds in the
90d5bc5cdeSAishwarya Pant		future, or if there is a leading +=, seconds ahead of the
91d5bc5cdeSAishwarya Pant		current alarm.
92