xref: /linux/Documentation/ABI/testing/sysfs-devices-platform-ACPI-TAD (revision 95c513ec84f7ff35cd9d8c7ce4a99f770bd82c3b)
1*95c513ecSRafael J. Wysocki		ACPI Time and Alarm (TAD) device attributes.
2*95c513ecSRafael J. Wysocki
3*95c513ecSRafael J. WysockiWhat:		/sys/bus/platform/devices/ACPI000E:00/caps
4*95c513ecSRafael J. WysockiDate:		March 2018
5*95c513ecSRafael J. WysockiContact:	Rafael J. Wysocki <rafael.j.wysocki@intel.com>
6*95c513ecSRafael J. WysockiDescription:
7*95c513ecSRafael J. Wysocki		(RO) Hexadecimal bitmask of the TAD attributes are reported by
8*95c513ecSRafael J. Wysocki		the platform firmware (see ACPI 6.2, section 9.18.2):
9*95c513ecSRafael J. Wysocki
10*95c513ecSRafael J. Wysocki		BIT(0): AC wakeup implemented if set
11*95c513ecSRafael J. Wysocki		BIT(1): DC wakeup implemented if set
12*95c513ecSRafael J. Wysocki		BIT(2): Get/set real time features implemented if set
13*95c513ecSRafael J. Wysocki		BIT(3): Real time accuracy in milliseconds if set
14*95c513ecSRafael J. Wysocki		BIT(4): Correct status reported for wakeups from S4/S5 if set
15*95c513ecSRafael J. Wysocki		BIT(5): The AC timer wakes up from S4 if set
16*95c513ecSRafael J. Wysocki		BIT(6): The AC timer wakes up from S5 if set
17*95c513ecSRafael J. Wysocki		BIT(7): The DC timer wakes up from S4 if set
18*95c513ecSRafael J. Wysocki		BIT(8): The DC timer wakes up from S5 if set
19*95c513ecSRafael J. Wysocki
20*95c513ecSRafael J. Wysocki		The other bits are reserved.
21*95c513ecSRafael J. Wysocki
22*95c513ecSRafael J. WysockiWhat:		/sys/bus/platform/devices/ACPI000E:00/ac_alarm
23*95c513ecSRafael J. WysockiDate:		March 2018
24*95c513ecSRafael J. WysockiContact:	Rafael J. Wysocki <rafael.j.wysocki@intel.com>
25*95c513ecSRafael J. WysockiDescription:
26*95c513ecSRafael J. Wysocki		(RW) The AC alarm timer value.
27*95c513ecSRafael J. Wysocki
28*95c513ecSRafael J. Wysocki		Reads return the current AC alarm timer value in seconds or
29*95c513ecSRafael J. Wysocki		"disabled", if the AC alarm is not set to wake up the system.
30*95c513ecSRafael J. Wysocki
31*95c513ecSRafael J. Wysocki		Write a new AC alarm timer value in seconds or "disabled" to it
32*95c513ecSRafael J. Wysocki		to set the AC alarm timer or to disable it, respectively.
33*95c513ecSRafael J. Wysocki
34*95c513ecSRafael J. Wysocki		If the AC alarm timer is set through this attribute and it
35*95c513ecSRafael J. Wysocki		expires, it will immediately wake up the system from the S3
36*95c513ecSRafael J. Wysocki		sleep state (and from S4/S5 too if supported) until its status
37*95c513ecSRafael J. Wysocki		is explicitly cleared via the ac_status attribute.
38*95c513ecSRafael J. Wysocki
39*95c513ecSRafael J. WysockiWhat:		/sys/bus/platform/devices/ACPI000E:00/ac_policy
40*95c513ecSRafael J. WysockiDate:		March 2018
41*95c513ecSRafael J. WysockiContact:	Rafael J. Wysocki <rafael.j.wysocki@intel.com>
42*95c513ecSRafael J. WysockiDescription:
43*95c513ecSRafael J. Wysocki		(RW) The AC alarm expired timer wake policy (see ACPI 6.2,
44*95c513ecSRafael J. Wysocki		Section 9.18 for details).
45*95c513ecSRafael J. Wysocki
46*95c513ecSRafael J. Wysocki		Reads return the current expired timer wake delay for the AC
47*95c513ecSRafael J. Wysocki		alarm timer or "never", if the policy is to discard AC timer
48*95c513ecSRafael J. Wysocki		wakeups if the system is on DC power.
49*95c513ecSRafael J. Wysocki
50*95c513ecSRafael J. Wysocki		Write a new expired timer wake delay for the AC alarm timer in
51*95c513ecSRafael J. Wysocki		seconds or "never" to it to set the expired timer wake delay for
52*95c513ecSRafael J. Wysocki		the AC alarm timer or to set its expired wake policy to discard
53*95c513ecSRafael J. Wysocki		wakeups if the system is on DC power, respectively.
54*95c513ecSRafael J. Wysocki
55*95c513ecSRafael J. WysockiWhat:		/sys/bus/platform/devices/ACPI000E:00/ac_status
56*95c513ecSRafael J. WysockiDate:		March 2018
57*95c513ecSRafael J. WysockiContact:	Rafael J. Wysocki <rafael.j.wysocki@intel.com>
58*95c513ecSRafael J. WysockiDescription:
59*95c513ecSRafael J. Wysocki		(RW) The AC alarm status.
60*95c513ecSRafael J. Wysocki
61*95c513ecSRafael J. Wysocki		Reads return a hexadecimal bitmask representing the AC alarm
62*95c513ecSRafael J. Wysocki		timer status with the following meaning of bits (see ACPI 6.2,
63*95c513ecSRafael J. Wysocki		Section 9.18.5):
64*95c513ecSRafael J. Wysocki
65*95c513ecSRafael J. Wysocki		Bit(0): The timer has expired if set.
66*95c513ecSRafael J. Wysocki		Bit(1): The timer has woken up the system from a sleep state
67*95c513ecSRafael J. Wysocki		        (S3 or S4/S5 if supported) if set.
68*95c513ecSRafael J. Wysocki
69*95c513ecSRafael J. Wysocki		The other bits are reserved.
70*95c513ecSRafael J. Wysocki
71*95c513ecSRafael J. Wysocki		Reads also cause the AC alarm timer status to be reset.
72*95c513ecSRafael J. Wysocki
73*95c513ecSRafael J. Wysocki		Another way to reset the the status of the AC alarm timer is to
74*95c513ecSRafael J. Wysocki		write (the number) 0 to this file.
75*95c513ecSRafael J. Wysocki
76*95c513ecSRafael J. Wysocki		If the status return value indicates that the timer has expired,
77*95c513ecSRafael J. Wysocki		it will immediately wake up the system from the S3 sleep state
78*95c513ecSRafael J. Wysocki		(and from S4/S5 too if supported) until its status is explicitly
79*95c513ecSRafael J. Wysocki		cleared through this attribute.
80*95c513ecSRafael J. Wysocki
81*95c513ecSRafael J. WysockiWhat:		/sys/bus/platform/devices/ACPI000E:00/dc_alarm
82*95c513ecSRafael J. WysockiDate:		March 2018
83*95c513ecSRafael J. WysockiContact:	Rafael J. Wysocki <rafael.j.wysocki@intel.com>
84*95c513ecSRafael J. WysockiDescription:
85*95c513ecSRafael J. Wysocki		(RW,optional) The DC alarm timer value.
86*95c513ecSRafael J. Wysocki
87*95c513ecSRafael J. Wysocki		This attribute is only present if the TAD supports a separate
88*95c513ecSRafael J. Wysocki		DC timer.
89*95c513ecSRafael J. Wysocki
90*95c513ecSRafael J. Wysocki		It is analogous to the ac_alarm attribute.
91*95c513ecSRafael J. Wysocki
92*95c513ecSRafael J. WysockiWhat:		/sys/bus/platform/devices/ACPI000E:00/dc_policy
93*95c513ecSRafael J. WysockiDate:		March 2018
94*95c513ecSRafael J. WysockiContact:	Rafael J. Wysocki <rafael.j.wysocki@intel.com>
95*95c513ecSRafael J. WysockiDescription:
96*95c513ecSRafael J. Wysocki		(RW,optional) The DC alarm expired timer wake policy.
97*95c513ecSRafael J. Wysocki
98*95c513ecSRafael J. Wysocki		This attribute is only present if the TAD supports a separate
99*95c513ecSRafael J. Wysocki		DC timer.
100*95c513ecSRafael J. Wysocki
101*95c513ecSRafael J. Wysocki		It is analogous to the ac_policy attribute.
102*95c513ecSRafael J. Wysocki
103*95c513ecSRafael J. WysockiWhat:		/sys/bus/platform/devices/ACPI000E:00/dc_status
104*95c513ecSRafael J. WysockiDate:		March 2018
105*95c513ecSRafael J. WysockiContact:	Rafael J. Wysocki <rafael.j.wysocki@intel.com>
106*95c513ecSRafael J. Wysocki
107*95c513ecSRafael J. WysockiDescription:
108*95c513ecSRafael J. Wysocki		(RW,optional) The DC alarm status.
109*95c513ecSRafael J. Wysocki
110*95c513ecSRafael J. Wysocki		This attribute is only present if the TAD supports a separate
111*95c513ecSRafael J. Wysocki		DC timer.
112*95c513ecSRafael J. Wysocki
113*95c513ecSRafael J. Wysocki		It is analogous to the ac_status attribute.
114