1e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../state 2e941d0ceSLiam GirdwoodDate: April 2008 3e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 48a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 5e941d0ceSLiam GirdwoodDescription: 67ad68e2fSDavid Brownell Some regulator directories will contain a field called 7853116a1SDavid Brownell state. This reports the regulator enable control, for 8853116a1SDavid Brownell regulators which can report that input value. 9e941d0ceSLiam Girdwood 10e941d0ceSLiam Girdwood This will be one of the following strings: 11e941d0ceSLiam Girdwood 12e941d0ceSLiam Girdwood 'enabled' 13e941d0ceSLiam Girdwood 'disabled' 14e941d0ceSLiam Girdwood 'unknown' 15e941d0ceSLiam Girdwood 16e941d0ceSLiam Girdwood 'enabled' means the regulator output is ON and is supplying 17853116a1SDavid Brownell power to the system (assuming no error prevents it). 18e941d0ceSLiam Girdwood 19e941d0ceSLiam Girdwood 'disabled' means the regulator output is OFF and is not 20853116a1SDavid Brownell supplying power to the system (unless some non-Linux 21853116a1SDavid Brownell control has enabled it). 22e941d0ceSLiam Girdwood 237ad68e2fSDavid Brownell 'unknown' means software cannot determine the state, or 247ad68e2fSDavid Brownell the reported state is invalid. 25e941d0ceSLiam Girdwood 26e941d0ceSLiam Girdwood NOTE: this field can be used in conjunction with microvolts 27853116a1SDavid Brownell or microamps to determine configured regulator output levels. 28853116a1SDavid Brownell 29853116a1SDavid Brownell 30853116a1SDavid BrownellWhat: /sys/class/regulator/.../status 31853116a1SDavid BrownellDescription: 32853116a1SDavid Brownell Some regulator directories will contain a field called 33853116a1SDavid Brownell "status". This reports the current regulator status, for 34853116a1SDavid Brownell regulators which can report that output value. 35853116a1SDavid Brownell 36853116a1SDavid Brownell This will be one of the following strings: 37853116a1SDavid Brownell 38853116a1SDavid Brownell off 39853116a1SDavid Brownell on 40853116a1SDavid Brownell error 41853116a1SDavid Brownell fast 42853116a1SDavid Brownell normal 43853116a1SDavid Brownell idle 44853116a1SDavid Brownell standby 45853116a1SDavid Brownell 46853116a1SDavid Brownell "off" means the regulator is not supplying power to the 47853116a1SDavid Brownell system. 48853116a1SDavid Brownell 49853116a1SDavid Brownell "on" means the regulator is supplying power to the system, 50853116a1SDavid Brownell and the regulator can't report a detailed operation mode. 51853116a1SDavid Brownell 52853116a1SDavid Brownell "error" indicates an out-of-regulation status such as being 53853116a1SDavid Brownell disabled due to thermal shutdown, or voltage being unstable 54853116a1SDavid Brownell because of problems with the input power supply. 55853116a1SDavid Brownell 56853116a1SDavid Brownell "fast", "normal", "idle", and "standby" are all detailed 57853116a1SDavid Brownell regulator operation modes (described elsewhere). They 58853116a1SDavid Brownell imply "on", but provide more detail. 59853116a1SDavid Brownell 60853116a1SDavid Brownell Note that regulator status is a function of many inputs, 61853116a1SDavid Brownell not limited to control inputs from Linux. For example, 62853116a1SDavid Brownell the actual load presented may trigger "error" status; or 63853116a1SDavid Brownell a regulator may be enabled by another user, even though 64853116a1SDavid Brownell Linux did not enable it. 65e941d0ceSLiam Girdwood 66e941d0ceSLiam Girdwood 67e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../type 68e941d0ceSLiam GirdwoodDate: April 2008 69e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 708a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 71e941d0ceSLiam GirdwoodDescription: 72e941d0ceSLiam Girdwood Each regulator directory will contain a field called 73e941d0ceSLiam Girdwood type. This holds the regulator type. 74e941d0ceSLiam Girdwood 75e941d0ceSLiam Girdwood This will be one of the following strings: 76e941d0ceSLiam Girdwood 77e941d0ceSLiam Girdwood 'voltage' 78e941d0ceSLiam Girdwood 'current' 79e941d0ceSLiam Girdwood 'unknown' 80e941d0ceSLiam Girdwood 81e941d0ceSLiam Girdwood 'voltage' means the regulator output voltage can be controlled 82e941d0ceSLiam Girdwood by software. 83e941d0ceSLiam Girdwood 84e941d0ceSLiam Girdwood 'current' means the regulator output current limit can be 85e941d0ceSLiam Girdwood controlled by software. 86e941d0ceSLiam Girdwood 87e941d0ceSLiam Girdwood 'unknown' means software cannot control either voltage or 88e941d0ceSLiam Girdwood current limit. 89e941d0ceSLiam Girdwood 90e941d0ceSLiam Girdwood 91e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../microvolts 92e941d0ceSLiam GirdwoodDate: April 2008 93e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 948a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 95e941d0ceSLiam GirdwoodDescription: 967ad68e2fSDavid Brownell Some regulator directories will contain a field called 97e941d0ceSLiam Girdwood microvolts. This holds the regulator output voltage setting 987ad68e2fSDavid Brownell measured in microvolts (i.e. E-6 Volts), for regulators 99853116a1SDavid Brownell which can report the control input for voltage. 100e941d0ceSLiam Girdwood 101e941d0ceSLiam Girdwood NOTE: This value should not be used to determine the regulator 102e941d0ceSLiam Girdwood output voltage level as this value is the same regardless of 103e941d0ceSLiam Girdwood whether the regulator is enabled or disabled. 104e941d0ceSLiam Girdwood 105e941d0ceSLiam Girdwood 106e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../microamps 107e941d0ceSLiam GirdwoodDate: April 2008 108e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1098a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 110e941d0ceSLiam GirdwoodDescription: 1117ad68e2fSDavid Brownell Some regulator directories will contain a field called 112e941d0ceSLiam Girdwood microamps. This holds the regulator output current limit 1137ad68e2fSDavid Brownell setting measured in microamps (i.e. E-6 Amps), for regulators 114853116a1SDavid Brownell which can report the control input for a current limit. 115e941d0ceSLiam Girdwood 116e941d0ceSLiam Girdwood NOTE: This value should not be used to determine the regulator 117e941d0ceSLiam Girdwood output current level as this value is the same regardless of 118e941d0ceSLiam Girdwood whether the regulator is enabled or disabled. 119e941d0ceSLiam Girdwood 120e941d0ceSLiam Girdwood 121e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../opmode 122e941d0ceSLiam GirdwoodDate: April 2008 123e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1248a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 125e941d0ceSLiam GirdwoodDescription: 1267ad68e2fSDavid Brownell Some regulator directories will contain a field called 1277ad68e2fSDavid Brownell opmode. This holds the current regulator operating mode, 128853116a1SDavid Brownell for regulators which can report that control input value. 129e941d0ceSLiam Girdwood 130e941d0ceSLiam Girdwood The opmode value can be one of the following strings: 131e941d0ceSLiam Girdwood 132e941d0ceSLiam Girdwood 'fast' 133e941d0ceSLiam Girdwood 'normal' 134e941d0ceSLiam Girdwood 'idle' 135e941d0ceSLiam Girdwood 'standby' 136e941d0ceSLiam Girdwood 'unknown' 137e941d0ceSLiam Girdwood 1387ad68e2fSDavid Brownell The modes are described in include/linux/regulator/consumer.h 139e941d0ceSLiam Girdwood 140e941d0ceSLiam Girdwood NOTE: This value should not be used to determine the regulator 141e941d0ceSLiam Girdwood output operating mode as this value is the same regardless of 142853116a1SDavid Brownell whether the regulator is enabled or disabled. A "status" 143853116a1SDavid Brownell attribute may be available to determine the actual mode. 144e941d0ceSLiam Girdwood 145e941d0ceSLiam Girdwood 146e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../min_microvolts 147e941d0ceSLiam GirdwoodDate: April 2008 148e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1498a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 150e941d0ceSLiam GirdwoodDescription: 1517ad68e2fSDavid Brownell Some regulator directories will contain a field called 152e941d0ceSLiam Girdwood min_microvolts. This holds the minimum safe working regulator 1537ad68e2fSDavid Brownell output voltage setting for this domain measured in microvolts, 1547ad68e2fSDavid Brownell for regulators which support voltage constraints. 155e941d0ceSLiam Girdwood 156e941d0ceSLiam Girdwood NOTE: this will return the string 'constraint not defined' if 157e941d0ceSLiam Girdwood the power domain has no min microvolts constraint defined by 158e941d0ceSLiam Girdwood platform code. 159e941d0ceSLiam Girdwood 160e941d0ceSLiam Girdwood 161e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../max_microvolts 162e941d0ceSLiam GirdwoodDate: April 2008 163e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1648a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 165e941d0ceSLiam GirdwoodDescription: 1667ad68e2fSDavid Brownell Some regulator directories will contain a field called 167e941d0ceSLiam Girdwood max_microvolts. This holds the maximum safe working regulator 1687ad68e2fSDavid Brownell output voltage setting for this domain measured in microvolts, 1697ad68e2fSDavid Brownell for regulators which support voltage constraints. 170e941d0ceSLiam Girdwood 171e941d0ceSLiam Girdwood NOTE: this will return the string 'constraint not defined' if 172e941d0ceSLiam Girdwood the power domain has no max microvolts constraint defined by 173e941d0ceSLiam Girdwood platform code. 174e941d0ceSLiam Girdwood 175e941d0ceSLiam Girdwood 176e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../min_microamps 177e941d0ceSLiam GirdwoodDate: April 2008 178e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1798a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 180e941d0ceSLiam GirdwoodDescription: 1817ad68e2fSDavid Brownell Some regulator directories will contain a field called 182e941d0ceSLiam Girdwood min_microamps. This holds the minimum safe working regulator 183e941d0ceSLiam Girdwood output current limit setting for this domain measured in 1847ad68e2fSDavid Brownell microamps, for regulators which support current constraints. 185e941d0ceSLiam Girdwood 186e941d0ceSLiam Girdwood NOTE: this will return the string 'constraint not defined' if 187e941d0ceSLiam Girdwood the power domain has no min microamps constraint defined by 188e941d0ceSLiam Girdwood platform code. 189e941d0ceSLiam Girdwood 190e941d0ceSLiam Girdwood 191e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../max_microamps 192e941d0ceSLiam GirdwoodDate: April 2008 193e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1948a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 195e941d0ceSLiam GirdwoodDescription: 1967ad68e2fSDavid Brownell Some regulator directories will contain a field called 197e941d0ceSLiam Girdwood max_microamps. This holds the maximum safe working regulator 198e941d0ceSLiam Girdwood output current limit setting for this domain measured in 1997ad68e2fSDavid Brownell microamps, for regulators which support current constraints. 200e941d0ceSLiam Girdwood 201e941d0ceSLiam Girdwood NOTE: this will return the string 'constraint not defined' if 202e941d0ceSLiam Girdwood the power domain has no max microamps constraint defined by 203e941d0ceSLiam Girdwood platform code. 204e941d0ceSLiam Girdwood 205e941d0ceSLiam Girdwood 206bc558a60SMark BrownWhat: /sys/class/regulator/.../name 207bc558a60SMark BrownDate: October 2008 208bc558a60SMark BrownKernelVersion: 2.6.28 209bc558a60SMark BrownContact: Liam Girdwood <lrg@slimlogic.co.uk> 210bc558a60SMark BrownDescription: 211bc558a60SMark Brown Each regulator directory will contain a field called 212bc558a60SMark Brown name. This holds a string identifying the regulator for 213bc558a60SMark Brown display purposes. 214bc558a60SMark Brown 215bc558a60SMark Brown NOTE: this will be empty if no suitable name is provided 216bc558a60SMark Brown by platform or regulator drivers. 217bc558a60SMark Brown 218bc558a60SMark Brown 219e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../num_users 220e941d0ceSLiam GirdwoodDate: April 2008 221e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2228a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 223e941d0ceSLiam GirdwoodDescription: 224e941d0ceSLiam Girdwood Each regulator directory will contain a field called 225e941d0ceSLiam Girdwood num_users. This holds the number of consumer devices that 226e941d0ceSLiam Girdwood have called regulator_enable() on this regulator. 227e941d0ceSLiam Girdwood 228e941d0ceSLiam Girdwood 229e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../requested_microamps 230e941d0ceSLiam GirdwoodDate: April 2008 231e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2328a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 233e941d0ceSLiam GirdwoodDescription: 2347ad68e2fSDavid Brownell Some regulator directories will contain a field called 235e941d0ceSLiam Girdwood requested_microamps. This holds the total requested load 236e941d0ceSLiam Girdwood current in microamps for this regulator from all its consumer 237e941d0ceSLiam Girdwood devices. 238e941d0ceSLiam Girdwood 239e941d0ceSLiam Girdwood 240e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../parent 241e941d0ceSLiam GirdwoodDate: April 2008 242e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2438a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 244e941d0ceSLiam GirdwoodDescription: 245e941d0ceSLiam Girdwood Some regulator directories will contain a link called parent. 246e941d0ceSLiam Girdwood This points to the parent or supply regulator if one exists. 247e941d0ceSLiam Girdwood 248e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_mem_microvolts 249e941d0ceSLiam GirdwoodDate: May 2008 250e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2518a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 252e941d0ceSLiam GirdwoodDescription: 2537ad68e2fSDavid Brownell Some regulator directories will contain a field called 254e941d0ceSLiam Girdwood suspend_mem_microvolts. This holds the regulator output 255e941d0ceSLiam Girdwood voltage setting for this domain measured in microvolts when 2567ad68e2fSDavid Brownell the system is suspended to memory, for voltage regulators 2577ad68e2fSDavid Brownell implementing suspend voltage configuration constraints. 258e941d0ceSLiam Girdwood 259e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_disk_microvolts 260e941d0ceSLiam GirdwoodDate: May 2008 261e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2628a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 263e941d0ceSLiam GirdwoodDescription: 2647ad68e2fSDavid Brownell Some regulator directories will contain a field called 265e941d0ceSLiam Girdwood suspend_disk_microvolts. This holds the regulator output 266e941d0ceSLiam Girdwood voltage setting for this domain measured in microvolts when 2677ad68e2fSDavid Brownell the system is suspended to disk, for voltage regulators 2687ad68e2fSDavid Brownell implementing suspend voltage configuration constraints. 269e941d0ceSLiam Girdwood 270e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_standby_microvolts 271e941d0ceSLiam GirdwoodDate: May 2008 272e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2738a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 274e941d0ceSLiam GirdwoodDescription: 2757ad68e2fSDavid Brownell Some regulator directories will contain a field called 276e941d0ceSLiam Girdwood suspend_standby_microvolts. This holds the regulator output 277e941d0ceSLiam Girdwood voltage setting for this domain measured in microvolts when 2787ad68e2fSDavid Brownell the system is suspended to standby, for voltage regulators 2797ad68e2fSDavid Brownell implementing suspend voltage configuration constraints. 280e941d0ceSLiam Girdwood 281e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_mem_mode 282e941d0ceSLiam GirdwoodDate: May 2008 283e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2848a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 285e941d0ceSLiam GirdwoodDescription: 2867ad68e2fSDavid Brownell Some regulator directories will contain a field called 287e941d0ceSLiam Girdwood suspend_mem_mode. This holds the regulator operating mode 288e941d0ceSLiam Girdwood setting for this domain when the system is suspended to 2897ad68e2fSDavid Brownell memory, for regulators implementing suspend mode 2907ad68e2fSDavid Brownell configuration constraints. 291e941d0ceSLiam Girdwood 292e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_disk_mode 293e941d0ceSLiam GirdwoodDate: May 2008 294e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2958a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 296e941d0ceSLiam GirdwoodDescription: 2977ad68e2fSDavid Brownell Some regulator directories will contain a field called 298e941d0ceSLiam Girdwood suspend_disk_mode. This holds the regulator operating mode 2997ad68e2fSDavid Brownell setting for this domain when the system is suspended to disk, 3007ad68e2fSDavid Brownell for regulators implementing suspend mode configuration 3017ad68e2fSDavid Brownell constraints. 302e941d0ceSLiam Girdwood 303e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_standby_mode 304e941d0ceSLiam GirdwoodDate: May 2008 305e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 3068a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 307e941d0ceSLiam GirdwoodDescription: 3087ad68e2fSDavid Brownell Some regulator directories will contain a field called 309e941d0ceSLiam Girdwood suspend_standby_mode. This holds the regulator operating mode 310e941d0ceSLiam Girdwood setting for this domain when the system is suspended to 3117ad68e2fSDavid Brownell standby, for regulators implementing suspend mode 3127ad68e2fSDavid Brownell configuration constraints. 313e941d0ceSLiam Girdwood 314e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_mem_state 315e941d0ceSLiam GirdwoodDate: May 2008 316e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 3178a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 318e941d0ceSLiam GirdwoodDescription: 3197ad68e2fSDavid Brownell Some regulator directories will contain a field called 320e941d0ceSLiam Girdwood suspend_mem_state. This holds the regulator operating state 3217ad68e2fSDavid Brownell when suspended to memory, for regulators implementing suspend 3227ad68e2fSDavid Brownell configuration constraints. 323e941d0ceSLiam Girdwood 3247ad68e2fSDavid Brownell This will be one of the same strings reported by 3257ad68e2fSDavid Brownell the "state" attribute. 326e941d0ceSLiam Girdwood 327e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_disk_state 328e941d0ceSLiam GirdwoodDate: May 2008 329e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 3308a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 331e941d0ceSLiam GirdwoodDescription: 3327ad68e2fSDavid Brownell Some regulator directories will contain a field called 333e941d0ceSLiam Girdwood suspend_disk_state. This holds the regulator operating state 3347ad68e2fSDavid Brownell when suspended to disk, for regulators implementing 3357ad68e2fSDavid Brownell suspend configuration constraints. 336e941d0ceSLiam Girdwood 3377ad68e2fSDavid Brownell This will be one of the same strings reported by 3387ad68e2fSDavid Brownell the "state" attribute. 339e941d0ceSLiam Girdwood 340e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_standby_state 341e941d0ceSLiam GirdwoodDate: May 2008 342e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 3438a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 344e941d0ceSLiam GirdwoodDescription: 3457ad68e2fSDavid Brownell Some regulator directories will contain a field called 346e941d0ceSLiam Girdwood suspend_standby_state. This holds the regulator operating 3477ad68e2fSDavid Brownell state when suspended to standby, for regulators implementing 3487ad68e2fSDavid Brownell suspend configuration constraints. 349e941d0ceSLiam Girdwood 3507ad68e2fSDavid Brownell This will be one of the same strings reported by 3517ad68e2fSDavid Brownell the "state" attribute. 352