blob: bc578bc606284bf248fe87169e8cda0dbdfa4f3a [file] [log] [blame]
Liam Girdwoode941d0c2008-04-30 17:23:59 +01001What: /sys/class/regulator/.../state
2Date: April 2008
3KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +01004Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +01005Description:
David Brownell7ad68e22008-11-11 17:39:02 -08006 Some regulator directories will contain a field called
David Brownell853116a2009-01-14 23:03:17 -08007 state. This reports the regulator enable control, for
8 regulators which can report that input value.
Liam Girdwoode941d0c2008-04-30 17:23:59 +01009
10 This will be one of the following strings:
11
12 'enabled'
13 'disabled'
14 'unknown'
15
16 'enabled' means the regulator output is ON and is supplying
David Brownell853116a2009-01-14 23:03:17 -080017 power to the system (assuming no error prevents it).
Liam Girdwoode941d0c2008-04-30 17:23:59 +010018
19 'disabled' means the regulator output is OFF and is not
David Brownell853116a2009-01-14 23:03:17 -080020 supplying power to the system (unless some non-Linux
21 control has enabled it).
Liam Girdwoode941d0c2008-04-30 17:23:59 +010022
David Brownell7ad68e22008-11-11 17:39:02 -080023 'unknown' means software cannot determine the state, or
24 the reported state is invalid.
Liam Girdwoode941d0c2008-04-30 17:23:59 +010025
26 NOTE: this field can be used in conjunction with microvolts
David Brownell853116a2009-01-14 23:03:17 -080027 or microamps to determine configured regulator output levels.
28
29
30What: /sys/class/regulator/.../status
31Description:
32 Some regulator directories will contain a field called
33 "status". This reports the current regulator status, for
34 regulators which can report that output value.
35
36 This will be one of the following strings:
37
38 off
39 on
40 error
41 fast
42 normal
43 idle
44 standby
45
46 "off" means the regulator is not supplying power to the
47 system.
48
49 "on" means the regulator is supplying power to the system,
50 and the regulator can't report a detailed operation mode.
51
52 "error" indicates an out-of-regulation status such as being
53 disabled due to thermal shutdown, or voltage being unstable
54 because of problems with the input power supply.
55
56 "fast", "normal", "idle", and "standby" are all detailed
57 regulator operation modes (described elsewhere). They
58 imply "on", but provide more detail.
59
60 Note that regulator status is a function of many inputs,
61 not limited to control inputs from Linux. For example,
62 the actual load presented may trigger "error" status; or
63 a regulator may be enabled by another user, even though
64 Linux did not enable it.
Liam Girdwoode941d0c2008-04-30 17:23:59 +010065
66
67What: /sys/class/regulator/.../type
68Date: April 2008
69KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +010070Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +010071Description:
72 Each regulator directory will contain a field called
73 type. This holds the regulator type.
74
75 This will be one of the following strings:
76
77 'voltage'
78 'current'
79 'unknown'
80
81 'voltage' means the regulator output voltage can be controlled
82 by software.
83
84 'current' means the regulator output current limit can be
85 controlled by software.
86
87 'unknown' means software cannot control either voltage or
88 current limit.
89
90
91What: /sys/class/regulator/.../microvolts
92Date: April 2008
93KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +010094Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +010095Description:
David Brownell7ad68e22008-11-11 17:39:02 -080096 Some regulator directories will contain a field called
Liam Girdwoode941d0c2008-04-30 17:23:59 +010097 microvolts. This holds the regulator output voltage setting
David Brownell7ad68e22008-11-11 17:39:02 -080098 measured in microvolts (i.e. E-6 Volts), for regulators
David Brownell853116a2009-01-14 23:03:17 -080099 which can report the control input for voltage.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100100
101 NOTE: This value should not be used to determine the regulator
102 output voltage level as this value is the same regardless of
103 whether the regulator is enabled or disabled.
104
105
106What: /sys/class/regulator/.../microamps
107Date: April 2008
108KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100109Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100110Description:
David Brownell7ad68e22008-11-11 17:39:02 -0800111 Some regulator directories will contain a field called
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100112 microamps. This holds the regulator output current limit
David Brownell7ad68e22008-11-11 17:39:02 -0800113 setting measured in microamps (i.e. E-6 Amps), for regulators
David Brownell853116a2009-01-14 23:03:17 -0800114 which can report the control input for a current limit.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100115
116 NOTE: This value should not be used to determine the regulator
117 output current level as this value is the same regardless of
118 whether the regulator is enabled or disabled.
119
120
121What: /sys/class/regulator/.../opmode
122Date: April 2008
123KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100124Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100125Description:
David Brownell7ad68e22008-11-11 17:39:02 -0800126 Some regulator directories will contain a field called
127 opmode. This holds the current regulator operating mode,
David Brownell853116a2009-01-14 23:03:17 -0800128 for regulators which can report that control input value.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100129
130 The opmode value can be one of the following strings:
131
132 'fast'
133 'normal'
134 'idle'
135 'standby'
136 'unknown'
137
David Brownell7ad68e22008-11-11 17:39:02 -0800138 The modes are described in include/linux/regulator/consumer.h
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100139
140 NOTE: This value should not be used to determine the regulator
141 output operating mode as this value is the same regardless of
David Brownell853116a2009-01-14 23:03:17 -0800142 whether the regulator is enabled or disabled. A "status"
143 attribute may be available to determine the actual mode.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100144
145
146What: /sys/class/regulator/.../min_microvolts
147Date: April 2008
148KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100149Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100150Description:
David Brownell7ad68e22008-11-11 17:39:02 -0800151 Some regulator directories will contain a field called
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100152 min_microvolts. This holds the minimum safe working regulator
David Brownell7ad68e22008-11-11 17:39:02 -0800153 output voltage setting for this domain measured in microvolts,
154 for regulators which support voltage constraints.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100155
156 NOTE: this will return the string 'constraint not defined' if
157 the power domain has no min microvolts constraint defined by
158 platform code.
159
160
161What: /sys/class/regulator/.../max_microvolts
162Date: April 2008
163KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100164Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100165Description:
David Brownell7ad68e22008-11-11 17:39:02 -0800166 Some regulator directories will contain a field called
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100167 max_microvolts. This holds the maximum safe working regulator
David Brownell7ad68e22008-11-11 17:39:02 -0800168 output voltage setting for this domain measured in microvolts,
169 for regulators which support voltage constraints.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100170
171 NOTE: this will return the string 'constraint not defined' if
172 the power domain has no max microvolts constraint defined by
173 platform code.
174
175
176What: /sys/class/regulator/.../min_microamps
177Date: April 2008
178KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100179Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100180Description:
David Brownell7ad68e22008-11-11 17:39:02 -0800181 Some regulator directories will contain a field called
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100182 min_microamps. This holds the minimum safe working regulator
183 output current limit setting for this domain measured in
David Brownell7ad68e22008-11-11 17:39:02 -0800184 microamps, for regulators which support current constraints.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100185
186 NOTE: this will return the string 'constraint not defined' if
187 the power domain has no min microamps constraint defined by
188 platform code.
189
190
191What: /sys/class/regulator/.../max_microamps
192Date: April 2008
193KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100194Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100195Description:
David Brownell7ad68e22008-11-11 17:39:02 -0800196 Some regulator directories will contain a field called
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100197 max_microamps. This holds the maximum safe working regulator
198 output current limit setting for this domain measured in
David Brownell7ad68e22008-11-11 17:39:02 -0800199 microamps, for regulators which support current constraints.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100200
201 NOTE: this will return the string 'constraint not defined' if
202 the power domain has no max microamps constraint defined by
203 platform code.
204
205
Mark Brownbc558a62008-10-10 15:33:20 +0100206What: /sys/class/regulator/.../name
207Date: October 2008
208KernelVersion: 2.6.28
209Contact: Liam Girdwood <lrg@slimlogic.co.uk>
210Description:
211 Each regulator directory will contain a field called
212 name. This holds a string identifying the regulator for
213 display purposes.
214
215 NOTE: this will be empty if no suitable name is provided
216 by platform or regulator drivers.
217
218
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100219What: /sys/class/regulator/.../num_users
220Date: April 2008
221KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100222Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100223Description:
224 Each regulator directory will contain a field called
225 num_users. This holds the number of consumer devices that
226 have called regulator_enable() on this regulator.
227
228
229What: /sys/class/regulator/.../requested_microamps
230Date: April 2008
231KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100232Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100233Description:
David Brownell7ad68e22008-11-11 17:39:02 -0800234 Some regulator directories will contain a field called
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100235 requested_microamps. This holds the total requested load
236 current in microamps for this regulator from all its consumer
237 devices.
238
239
240What: /sys/class/regulator/.../parent
241Date: April 2008
242KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100243Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100244Description:
245 Some regulator directories will contain a link called parent.
246 This points to the parent or supply regulator if one exists.
247
248What: /sys/class/regulator/.../suspend_mem_microvolts
249Date: May 2008
250KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100251Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100252Description:
David Brownell7ad68e22008-11-11 17:39:02 -0800253 Some regulator directories will contain a field called
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100254 suspend_mem_microvolts. This holds the regulator output
255 voltage setting for this domain measured in microvolts when
David Brownell7ad68e22008-11-11 17:39:02 -0800256 the system is suspended to memory, for voltage regulators
257 implementing suspend voltage configuration constraints.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100258
259What: /sys/class/regulator/.../suspend_disk_microvolts
260Date: May 2008
261KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100262Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100263Description:
David Brownell7ad68e22008-11-11 17:39:02 -0800264 Some regulator directories will contain a field called
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100265 suspend_disk_microvolts. This holds the regulator output
266 voltage setting for this domain measured in microvolts when
David Brownell7ad68e22008-11-11 17:39:02 -0800267 the system is suspended to disk, for voltage regulators
268 implementing suspend voltage configuration constraints.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100269
270What: /sys/class/regulator/.../suspend_standby_microvolts
271Date: May 2008
272KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100273Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100274Description:
David Brownell7ad68e22008-11-11 17:39:02 -0800275 Some regulator directories will contain a field called
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100276 suspend_standby_microvolts. This holds the regulator output
277 voltage setting for this domain measured in microvolts when
David Brownell7ad68e22008-11-11 17:39:02 -0800278 the system is suspended to standby, for voltage regulators
279 implementing suspend voltage configuration constraints.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100280
281What: /sys/class/regulator/.../suspend_mem_mode
282Date: May 2008
283KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100284Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100285Description:
David Brownell7ad68e22008-11-11 17:39:02 -0800286 Some regulator directories will contain a field called
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100287 suspend_mem_mode. This holds the regulator operating mode
288 setting for this domain when the system is suspended to
David Brownell7ad68e22008-11-11 17:39:02 -0800289 memory, for regulators implementing suspend mode
290 configuration constraints.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100291
292What: /sys/class/regulator/.../suspend_disk_mode
293Date: May 2008
294KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100295Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100296Description:
David Brownell7ad68e22008-11-11 17:39:02 -0800297 Some regulator directories will contain a field called
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100298 suspend_disk_mode. This holds the regulator operating mode
David Brownell7ad68e22008-11-11 17:39:02 -0800299 setting for this domain when the system is suspended to disk,
300 for regulators implementing suspend mode configuration
301 constraints.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100302
303What: /sys/class/regulator/.../suspend_standby_mode
304Date: May 2008
305KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100306Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100307Description:
David Brownell7ad68e22008-11-11 17:39:02 -0800308 Some regulator directories will contain a field called
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100309 suspend_standby_mode. This holds the regulator operating mode
310 setting for this domain when the system is suspended to
David Brownell7ad68e22008-11-11 17:39:02 -0800311 standby, for regulators implementing suspend mode
312 configuration constraints.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100313
314What: /sys/class/regulator/.../suspend_mem_state
315Date: May 2008
316KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100317Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100318Description:
David Brownell7ad68e22008-11-11 17:39:02 -0800319 Some regulator directories will contain a field called
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100320 suspend_mem_state. This holds the regulator operating state
David Brownell7ad68e22008-11-11 17:39:02 -0800321 when suspended to memory, for regulators implementing suspend
322 configuration constraints.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100323
David Brownell7ad68e22008-11-11 17:39:02 -0800324 This will be one of the same strings reported by
325 the "state" attribute.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100326
327What: /sys/class/regulator/.../suspend_disk_state
328Date: May 2008
329KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100330Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100331Description:
David Brownell7ad68e22008-11-11 17:39:02 -0800332 Some regulator directories will contain a field called
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100333 suspend_disk_state. This holds the regulator operating state
David Brownell7ad68e22008-11-11 17:39:02 -0800334 when suspended to disk, for regulators implementing
335 suspend configuration constraints.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100336
David Brownell7ad68e22008-11-11 17:39:02 -0800337 This will be one of the same strings reported by
338 the "state" attribute.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100339
340What: /sys/class/regulator/.../suspend_standby_state
341Date: May 2008
342KernelVersion: 2.6.26
Liam Girdwood8a62ab42008-09-14 17:40:21 +0100343Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100344Description:
David Brownell7ad68e22008-11-11 17:39:02 -0800345 Some regulator directories will contain a field called
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100346 suspend_standby_state. This holds the regulator operating
David Brownell7ad68e22008-11-11 17:39:02 -0800347 state when suspended to standby, for regulators implementing
348 suspend configuration constraints.
Liam Girdwoode941d0c2008-04-30 17:23:59 +0100349
David Brownell7ad68e22008-11-11 17:39:02 -0800350 This will be one of the same strings reported by
351 the "state" attribute.
Mark Brownf59c8f92012-08-31 10:36:37 -0700352
353What: /sys/class/regulator/.../bypass
354Date: September 2012
355KernelVersion: 3.7
356Contact: Mark Brown <broonie@opensource.wolfsonmicro.com>
357Description:
358 Some regulator directories will contain a field called
359 bypass. This indicates if the device is in bypass mode.
360
361 This will be one of the following strings:
362
363 'enabled'
364 'disabled'
365 'unknown'
366
367 'enabled' means the regulator is in bypass mode.
368
369 'disabled' means that the regulator is regulating.
370
371 'unknown' means software cannot determine the state, or
372 the reported state is invalid.