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: 6*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 7*7ad68e2fSDavid Brownell state. This reports the regulator enable status, for 8*7ad68e2fSDavid Brownell regulators which can report that 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 17e941d0ceSLiam Girdwood power to the system. 18e941d0ceSLiam Girdwood 19e941d0ceSLiam Girdwood 'disabled' means the regulator output is OFF and is not 20e941d0ceSLiam Girdwood supplying power to the system.. 21e941d0ceSLiam Girdwood 22*7ad68e2fSDavid Brownell 'unknown' means software cannot determine the state, or 23*7ad68e2fSDavid Brownell the reported state is invalid. 24e941d0ceSLiam Girdwood 25e941d0ceSLiam Girdwood NOTE: this field can be used in conjunction with microvolts 26e941d0ceSLiam Girdwood and microamps to determine regulator output levels. 27e941d0ceSLiam Girdwood 28e941d0ceSLiam Girdwood 29e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../type 30e941d0ceSLiam GirdwoodDate: April 2008 31e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 328a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 33e941d0ceSLiam GirdwoodDescription: 34e941d0ceSLiam Girdwood Each regulator directory will contain a field called 35e941d0ceSLiam Girdwood type. This holds the regulator type. 36e941d0ceSLiam Girdwood 37e941d0ceSLiam Girdwood This will be one of the following strings: 38e941d0ceSLiam Girdwood 39e941d0ceSLiam Girdwood 'voltage' 40e941d0ceSLiam Girdwood 'current' 41e941d0ceSLiam Girdwood 'unknown' 42e941d0ceSLiam Girdwood 43e941d0ceSLiam Girdwood 'voltage' means the regulator output voltage can be controlled 44e941d0ceSLiam Girdwood by software. 45e941d0ceSLiam Girdwood 46e941d0ceSLiam Girdwood 'current' means the regulator output current limit can be 47e941d0ceSLiam Girdwood controlled by software. 48e941d0ceSLiam Girdwood 49e941d0ceSLiam Girdwood 'unknown' means software cannot control either voltage or 50e941d0ceSLiam Girdwood current limit. 51e941d0ceSLiam Girdwood 52e941d0ceSLiam Girdwood 53e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../microvolts 54e941d0ceSLiam GirdwoodDate: April 2008 55e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 568a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 57e941d0ceSLiam GirdwoodDescription: 58*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 59e941d0ceSLiam Girdwood microvolts. This holds the regulator output voltage setting 60*7ad68e2fSDavid Brownell measured in microvolts (i.e. E-6 Volts), for regulators 61*7ad68e2fSDavid Brownell which can report that voltage. 62e941d0ceSLiam Girdwood 63e941d0ceSLiam Girdwood NOTE: This value should not be used to determine the regulator 64e941d0ceSLiam Girdwood output voltage level as this value is the same regardless of 65e941d0ceSLiam Girdwood whether the regulator is enabled or disabled. 66e941d0ceSLiam Girdwood 67e941d0ceSLiam Girdwood 68e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../microamps 69e941d0ceSLiam GirdwoodDate: April 2008 70e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 718a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 72e941d0ceSLiam GirdwoodDescription: 73*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 74e941d0ceSLiam Girdwood microamps. This holds the regulator output current limit 75*7ad68e2fSDavid Brownell setting measured in microamps (i.e. E-6 Amps), for regulators 76*7ad68e2fSDavid Brownell which can report that current. 77e941d0ceSLiam Girdwood 78e941d0ceSLiam Girdwood NOTE: This value should not be used to determine the regulator 79e941d0ceSLiam Girdwood output current level as this value is the same regardless of 80e941d0ceSLiam Girdwood whether the regulator is enabled or disabled. 81e941d0ceSLiam Girdwood 82e941d0ceSLiam Girdwood 83e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../opmode 84e941d0ceSLiam GirdwoodDate: April 2008 85e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 868a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 87e941d0ceSLiam GirdwoodDescription: 88*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 89*7ad68e2fSDavid Brownell opmode. This holds the current regulator operating mode, 90*7ad68e2fSDavid Brownell for regulators which can report it. 91e941d0ceSLiam Girdwood 92e941d0ceSLiam Girdwood The opmode value can be one of the following strings: 93e941d0ceSLiam Girdwood 94e941d0ceSLiam Girdwood 'fast' 95e941d0ceSLiam Girdwood 'normal' 96e941d0ceSLiam Girdwood 'idle' 97e941d0ceSLiam Girdwood 'standby' 98e941d0ceSLiam Girdwood 'unknown' 99e941d0ceSLiam Girdwood 100*7ad68e2fSDavid Brownell The modes are described in include/linux/regulator/consumer.h 101e941d0ceSLiam Girdwood 102e941d0ceSLiam Girdwood NOTE: This value should not be used to determine the regulator 103e941d0ceSLiam Girdwood output operating mode as this value is the same regardless of 104e941d0ceSLiam Girdwood whether the regulator is enabled or disabled. 105e941d0ceSLiam Girdwood 106e941d0ceSLiam Girdwood 107e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../min_microvolts 108e941d0ceSLiam GirdwoodDate: April 2008 109e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1108a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 111e941d0ceSLiam GirdwoodDescription: 112*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 113e941d0ceSLiam Girdwood min_microvolts. This holds the minimum safe working regulator 114*7ad68e2fSDavid Brownell output voltage setting for this domain measured in microvolts, 115*7ad68e2fSDavid Brownell for regulators which support voltage constraints. 116e941d0ceSLiam Girdwood 117e941d0ceSLiam Girdwood NOTE: this will return the string 'constraint not defined' if 118e941d0ceSLiam Girdwood the power domain has no min microvolts constraint defined by 119e941d0ceSLiam Girdwood platform code. 120e941d0ceSLiam Girdwood 121e941d0ceSLiam Girdwood 122e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../max_microvolts 123e941d0ceSLiam GirdwoodDate: April 2008 124e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1258a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 126e941d0ceSLiam GirdwoodDescription: 127*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 128e941d0ceSLiam Girdwood max_microvolts. This holds the maximum safe working regulator 129*7ad68e2fSDavid Brownell output voltage setting for this domain measured in microvolts, 130*7ad68e2fSDavid Brownell for regulators which support voltage constraints. 131e941d0ceSLiam Girdwood 132e941d0ceSLiam Girdwood NOTE: this will return the string 'constraint not defined' if 133e941d0ceSLiam Girdwood the power domain has no max microvolts constraint defined by 134e941d0ceSLiam Girdwood platform code. 135e941d0ceSLiam Girdwood 136e941d0ceSLiam Girdwood 137e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../min_microamps 138e941d0ceSLiam GirdwoodDate: April 2008 139e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1408a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 141e941d0ceSLiam GirdwoodDescription: 142*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 143e941d0ceSLiam Girdwood min_microamps. This holds the minimum safe working regulator 144e941d0ceSLiam Girdwood output current limit setting for this domain measured in 145*7ad68e2fSDavid Brownell microamps, for regulators which support current constraints. 146e941d0ceSLiam Girdwood 147e941d0ceSLiam Girdwood NOTE: this will return the string 'constraint not defined' if 148e941d0ceSLiam Girdwood the power domain has no min microamps constraint defined by 149e941d0ceSLiam Girdwood platform code. 150e941d0ceSLiam Girdwood 151e941d0ceSLiam Girdwood 152e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../max_microamps 153e941d0ceSLiam GirdwoodDate: April 2008 154e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1558a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 156e941d0ceSLiam GirdwoodDescription: 157*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 158e941d0ceSLiam Girdwood max_microamps. This holds the maximum safe working regulator 159e941d0ceSLiam Girdwood output current limit setting for this domain measured in 160*7ad68e2fSDavid Brownell microamps, for regulators which support current constraints. 161e941d0ceSLiam Girdwood 162e941d0ceSLiam Girdwood NOTE: this will return the string 'constraint not defined' if 163e941d0ceSLiam Girdwood the power domain has no max microamps constraint defined by 164e941d0ceSLiam Girdwood platform code. 165e941d0ceSLiam Girdwood 166e941d0ceSLiam Girdwood 167bc558a60SMark BrownWhat: /sys/class/regulator/.../name 168bc558a60SMark BrownDate: October 2008 169bc558a60SMark BrownKernelVersion: 2.6.28 170bc558a60SMark BrownContact: Liam Girdwood <lrg@slimlogic.co.uk> 171bc558a60SMark BrownDescription: 172bc558a60SMark Brown Each regulator directory will contain a field called 173bc558a60SMark Brown name. This holds a string identifying the regulator for 174bc558a60SMark Brown display purposes. 175bc558a60SMark Brown 176bc558a60SMark Brown NOTE: this will be empty if no suitable name is provided 177bc558a60SMark Brown by platform or regulator drivers. 178bc558a60SMark Brown 179bc558a60SMark Brown 180e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../num_users 181e941d0ceSLiam GirdwoodDate: April 2008 182e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1838a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 184e941d0ceSLiam GirdwoodDescription: 185e941d0ceSLiam Girdwood Each regulator directory will contain a field called 186e941d0ceSLiam Girdwood num_users. This holds the number of consumer devices that 187e941d0ceSLiam Girdwood have called regulator_enable() on this regulator. 188e941d0ceSLiam Girdwood 189e941d0ceSLiam Girdwood 190e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../requested_microamps 191e941d0ceSLiam GirdwoodDate: April 2008 192e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1938a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 194e941d0ceSLiam GirdwoodDescription: 195*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 196e941d0ceSLiam Girdwood requested_microamps. This holds the total requested load 197e941d0ceSLiam Girdwood current in microamps for this regulator from all its consumer 198e941d0ceSLiam Girdwood devices. 199e941d0ceSLiam Girdwood 200e941d0ceSLiam Girdwood 201e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../parent 202e941d0ceSLiam GirdwoodDate: April 2008 203e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2048a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 205e941d0ceSLiam GirdwoodDescription: 206e941d0ceSLiam Girdwood Some regulator directories will contain a link called parent. 207e941d0ceSLiam Girdwood This points to the parent or supply regulator if one exists. 208e941d0ceSLiam Girdwood 209e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_mem_microvolts 210e941d0ceSLiam GirdwoodDate: May 2008 211e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2128a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 213e941d0ceSLiam GirdwoodDescription: 214*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 215e941d0ceSLiam Girdwood suspend_mem_microvolts. This holds the regulator output 216e941d0ceSLiam Girdwood voltage setting for this domain measured in microvolts when 217*7ad68e2fSDavid Brownell the system is suspended to memory, for voltage regulators 218*7ad68e2fSDavid Brownell implementing suspend voltage configuration constraints. 219e941d0ceSLiam Girdwood 220e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_disk_microvolts 221e941d0ceSLiam GirdwoodDate: May 2008 222e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2238a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 224e941d0ceSLiam GirdwoodDescription: 225*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 226e941d0ceSLiam Girdwood suspend_disk_microvolts. This holds the regulator output 227e941d0ceSLiam Girdwood voltage setting for this domain measured in microvolts when 228*7ad68e2fSDavid Brownell the system is suspended to disk, for voltage regulators 229*7ad68e2fSDavid Brownell implementing suspend voltage configuration constraints. 230e941d0ceSLiam Girdwood 231e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_standby_microvolts 232e941d0ceSLiam GirdwoodDate: May 2008 233e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2348a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 235e941d0ceSLiam GirdwoodDescription: 236*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 237e941d0ceSLiam Girdwood suspend_standby_microvolts. This holds the regulator output 238e941d0ceSLiam Girdwood voltage setting for this domain measured in microvolts when 239*7ad68e2fSDavid Brownell the system is suspended to standby, for voltage regulators 240*7ad68e2fSDavid Brownell implementing suspend voltage configuration constraints. 241e941d0ceSLiam Girdwood 242e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_mem_mode 243e941d0ceSLiam GirdwoodDate: May 2008 244e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2458a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 246e941d0ceSLiam GirdwoodDescription: 247*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 248e941d0ceSLiam Girdwood suspend_mem_mode. This holds the regulator operating mode 249e941d0ceSLiam Girdwood setting for this domain when the system is suspended to 250*7ad68e2fSDavid Brownell memory, for regulators implementing suspend mode 251*7ad68e2fSDavid Brownell configuration constraints. 252e941d0ceSLiam Girdwood 253e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_disk_mode 254e941d0ceSLiam GirdwoodDate: May 2008 255e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2568a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 257e941d0ceSLiam GirdwoodDescription: 258*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 259e941d0ceSLiam Girdwood suspend_disk_mode. This holds the regulator operating mode 260*7ad68e2fSDavid Brownell setting for this domain when the system is suspended to disk, 261*7ad68e2fSDavid Brownell for regulators implementing suspend mode configuration 262*7ad68e2fSDavid Brownell constraints. 263e941d0ceSLiam Girdwood 264e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_standby_mode 265e941d0ceSLiam GirdwoodDate: May 2008 266e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2678a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 268e941d0ceSLiam GirdwoodDescription: 269*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 270e941d0ceSLiam Girdwood suspend_standby_mode. This holds the regulator operating mode 271e941d0ceSLiam Girdwood setting for this domain when the system is suspended to 272*7ad68e2fSDavid Brownell standby, for regulators implementing suspend mode 273*7ad68e2fSDavid Brownell configuration constraints. 274e941d0ceSLiam Girdwood 275e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_mem_state 276e941d0ceSLiam GirdwoodDate: May 2008 277e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2788a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 279e941d0ceSLiam GirdwoodDescription: 280*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 281e941d0ceSLiam Girdwood suspend_mem_state. This holds the regulator operating state 282*7ad68e2fSDavid Brownell when suspended to memory, for regulators implementing suspend 283*7ad68e2fSDavid Brownell configuration constraints. 284e941d0ceSLiam Girdwood 285*7ad68e2fSDavid Brownell This will be one of the same strings reported by 286*7ad68e2fSDavid Brownell the "state" attribute. 287e941d0ceSLiam Girdwood 288e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_disk_state 289e941d0ceSLiam GirdwoodDate: May 2008 290e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2918a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 292e941d0ceSLiam GirdwoodDescription: 293*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 294e941d0ceSLiam Girdwood suspend_disk_state. This holds the regulator operating state 295*7ad68e2fSDavid Brownell when suspended to disk, for regulators implementing 296*7ad68e2fSDavid Brownell suspend configuration constraints. 297e941d0ceSLiam Girdwood 298*7ad68e2fSDavid Brownell This will be one of the same strings reported by 299*7ad68e2fSDavid Brownell the "state" attribute. 300e941d0ceSLiam Girdwood 301e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_standby_state 302e941d0ceSLiam GirdwoodDate: May 2008 303e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 3048a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 305e941d0ceSLiam GirdwoodDescription: 306*7ad68e2fSDavid Brownell Some regulator directories will contain a field called 307e941d0ceSLiam Girdwood suspend_standby_state. This holds the regulator operating 308*7ad68e2fSDavid Brownell state when suspended to standby, for regulators implementing 309*7ad68e2fSDavid Brownell suspend configuration constraints. 310e941d0ceSLiam Girdwood 311*7ad68e2fSDavid Brownell This will be one of the same strings reported by 312*7ad68e2fSDavid Brownell the "state" attribute. 313