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: 6e941d0ceSLiam Girdwood Each regulator directory will contain a field called 7e941d0ceSLiam Girdwood state. This holds the regulator output state. 8e941d0ceSLiam Girdwood 9e941d0ceSLiam Girdwood This will be one of the following strings: 10e941d0ceSLiam Girdwood 11e941d0ceSLiam Girdwood 'enabled' 12e941d0ceSLiam Girdwood 'disabled' 13e941d0ceSLiam Girdwood 'unknown' 14e941d0ceSLiam Girdwood 15e941d0ceSLiam Girdwood 'enabled' means the regulator output is ON and is supplying 16e941d0ceSLiam Girdwood power to the system. 17e941d0ceSLiam Girdwood 18e941d0ceSLiam Girdwood 'disabled' means the regulator output is OFF and is not 19e941d0ceSLiam Girdwood supplying power to the system.. 20e941d0ceSLiam Girdwood 21e941d0ceSLiam Girdwood 'unknown' means software cannot determine the state. 22e941d0ceSLiam Girdwood 23e941d0ceSLiam Girdwood NOTE: this field can be used in conjunction with microvolts 24e941d0ceSLiam Girdwood and microamps to determine regulator output levels. 25e941d0ceSLiam Girdwood 26e941d0ceSLiam Girdwood 27e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../type 28e941d0ceSLiam GirdwoodDate: April 2008 29e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 308a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 31e941d0ceSLiam GirdwoodDescription: 32e941d0ceSLiam Girdwood Each regulator directory will contain a field called 33e941d0ceSLiam Girdwood type. This holds the regulator type. 34e941d0ceSLiam Girdwood 35e941d0ceSLiam Girdwood This will be one of the following strings: 36e941d0ceSLiam Girdwood 37e941d0ceSLiam Girdwood 'voltage' 38e941d0ceSLiam Girdwood 'current' 39e941d0ceSLiam Girdwood 'unknown' 40e941d0ceSLiam Girdwood 41e941d0ceSLiam Girdwood 'voltage' means the regulator output voltage can be controlled 42e941d0ceSLiam Girdwood by software. 43e941d0ceSLiam Girdwood 44e941d0ceSLiam Girdwood 'current' means the regulator output current limit can be 45e941d0ceSLiam Girdwood controlled by software. 46e941d0ceSLiam Girdwood 47e941d0ceSLiam Girdwood 'unknown' means software cannot control either voltage or 48e941d0ceSLiam Girdwood current limit. 49e941d0ceSLiam Girdwood 50e941d0ceSLiam Girdwood 51e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../microvolts 52e941d0ceSLiam GirdwoodDate: April 2008 53e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 548a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 55e941d0ceSLiam GirdwoodDescription: 56e941d0ceSLiam Girdwood Each regulator directory will contain a field called 57e941d0ceSLiam Girdwood microvolts. This holds the regulator output voltage setting 58e941d0ceSLiam Girdwood measured in microvolts (i.e. E-6 Volts). 59e941d0ceSLiam Girdwood 60e941d0ceSLiam Girdwood NOTE: This value should not be used to determine the regulator 61e941d0ceSLiam Girdwood output voltage level as this value is the same regardless of 62e941d0ceSLiam Girdwood whether the regulator is enabled or disabled. 63e941d0ceSLiam Girdwood 64e941d0ceSLiam Girdwood 65e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../microamps 66e941d0ceSLiam GirdwoodDate: April 2008 67e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 688a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 69e941d0ceSLiam GirdwoodDescription: 70e941d0ceSLiam Girdwood Each regulator directory will contain a field called 71e941d0ceSLiam Girdwood microamps. This holds the regulator output current limit 72e941d0ceSLiam Girdwood setting measured in microamps (i.e. E-6 Amps). 73e941d0ceSLiam Girdwood 74e941d0ceSLiam Girdwood NOTE: This value should not be used to determine the regulator 75e941d0ceSLiam Girdwood output current level as this value is the same regardless of 76e941d0ceSLiam Girdwood whether the regulator is enabled or disabled. 77e941d0ceSLiam Girdwood 78e941d0ceSLiam Girdwood 79e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../opmode 80e941d0ceSLiam GirdwoodDate: April 2008 81e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 828a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 83e941d0ceSLiam GirdwoodDescription: 84e941d0ceSLiam Girdwood Each regulator directory will contain a field called 85e941d0ceSLiam Girdwood opmode. This holds the regulator operating mode setting. 86e941d0ceSLiam Girdwood 87e941d0ceSLiam Girdwood The opmode value can be one of the following strings: 88e941d0ceSLiam Girdwood 89e941d0ceSLiam Girdwood 'fast' 90e941d0ceSLiam Girdwood 'normal' 91e941d0ceSLiam Girdwood 'idle' 92e941d0ceSLiam Girdwood 'standby' 93e941d0ceSLiam Girdwood 'unknown' 94e941d0ceSLiam Girdwood 95e941d0ceSLiam Girdwood The modes are described in include/linux/regulator/regulator.h 96e941d0ceSLiam Girdwood 97e941d0ceSLiam Girdwood NOTE: This value should not be used to determine the regulator 98e941d0ceSLiam Girdwood output operating mode as this value is the same regardless of 99e941d0ceSLiam Girdwood whether the regulator is enabled or disabled. 100e941d0ceSLiam Girdwood 101e941d0ceSLiam Girdwood 102e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../min_microvolts 103e941d0ceSLiam GirdwoodDate: April 2008 104e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1058a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 106e941d0ceSLiam GirdwoodDescription: 107e941d0ceSLiam Girdwood Each regulator directory will contain a field called 108e941d0ceSLiam Girdwood min_microvolts. This holds the minimum safe working regulator 109e941d0ceSLiam Girdwood output voltage setting for this domain measured in microvolts. 110e941d0ceSLiam Girdwood 111e941d0ceSLiam Girdwood NOTE: this will return the string 'constraint not defined' if 112e941d0ceSLiam Girdwood the power domain has no min microvolts constraint defined by 113e941d0ceSLiam Girdwood platform code. 114e941d0ceSLiam Girdwood 115e941d0ceSLiam Girdwood 116e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../max_microvolts 117e941d0ceSLiam GirdwoodDate: April 2008 118e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1198a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 120e941d0ceSLiam GirdwoodDescription: 121e941d0ceSLiam Girdwood Each regulator directory will contain a field called 122e941d0ceSLiam Girdwood max_microvolts. This holds the maximum safe working regulator 123e941d0ceSLiam Girdwood output voltage setting for this domain measured in microvolts. 124e941d0ceSLiam Girdwood 125e941d0ceSLiam Girdwood NOTE: this will return the string 'constraint not defined' if 126e941d0ceSLiam Girdwood the power domain has no max microvolts constraint defined by 127e941d0ceSLiam Girdwood platform code. 128e941d0ceSLiam Girdwood 129e941d0ceSLiam Girdwood 130e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../min_microamps 131e941d0ceSLiam GirdwoodDate: April 2008 132e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1338a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 134e941d0ceSLiam GirdwoodDescription: 135e941d0ceSLiam Girdwood Each regulator directory will contain a field called 136e941d0ceSLiam Girdwood min_microamps. This holds the minimum safe working regulator 137e941d0ceSLiam Girdwood output current limit setting for this domain measured in 138e941d0ceSLiam Girdwood microamps. 139e941d0ceSLiam Girdwood 140e941d0ceSLiam Girdwood NOTE: this will return the string 'constraint not defined' if 141e941d0ceSLiam Girdwood the power domain has no min microamps constraint defined by 142e941d0ceSLiam Girdwood platform code. 143e941d0ceSLiam Girdwood 144e941d0ceSLiam Girdwood 145e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../max_microamps 146e941d0ceSLiam GirdwoodDate: April 2008 147e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1488a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 149e941d0ceSLiam GirdwoodDescription: 150e941d0ceSLiam Girdwood Each regulator directory will contain a field called 151e941d0ceSLiam Girdwood max_microamps. This holds the maximum safe working regulator 152e941d0ceSLiam Girdwood output current limit setting for this domain measured in 153e941d0ceSLiam Girdwood microamps. 154e941d0ceSLiam Girdwood 155e941d0ceSLiam Girdwood NOTE: this will return the string 'constraint not defined' if 156e941d0ceSLiam Girdwood the power domain has no max microamps constraint defined by 157e941d0ceSLiam Girdwood platform code. 158e941d0ceSLiam Girdwood 159e941d0ceSLiam Girdwood 160bc558a60SMark BrownWhat: /sys/class/regulator/.../name 161bc558a60SMark BrownDate: October 2008 162bc558a60SMark BrownKernelVersion: 2.6.28 163bc558a60SMark BrownContact: Liam Girdwood <lrg@slimlogic.co.uk> 164bc558a60SMark BrownDescription: 165bc558a60SMark Brown Each regulator directory will contain a field called 166bc558a60SMark Brown name. This holds a string identifying the regulator for 167bc558a60SMark Brown display purposes. 168bc558a60SMark Brown 169bc558a60SMark Brown NOTE: this will be empty if no suitable name is provided 170bc558a60SMark Brown by platform or regulator drivers. 171bc558a60SMark Brown 172bc558a60SMark Brown 173e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../num_users 174e941d0ceSLiam GirdwoodDate: April 2008 175e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1768a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 177e941d0ceSLiam GirdwoodDescription: 178e941d0ceSLiam Girdwood Each regulator directory will contain a field called 179e941d0ceSLiam Girdwood num_users. This holds the number of consumer devices that 180e941d0ceSLiam Girdwood have called regulator_enable() on this regulator. 181e941d0ceSLiam Girdwood 182e941d0ceSLiam Girdwood 183e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../requested_microamps 184e941d0ceSLiam GirdwoodDate: April 2008 185e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1868a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 187e941d0ceSLiam GirdwoodDescription: 188e941d0ceSLiam Girdwood Each regulator directory will contain a field called 189e941d0ceSLiam Girdwood requested_microamps. This holds the total requested load 190e941d0ceSLiam Girdwood current in microamps for this regulator from all its consumer 191e941d0ceSLiam Girdwood devices. 192e941d0ceSLiam Girdwood 193e941d0ceSLiam Girdwood 194e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../parent 195e941d0ceSLiam GirdwoodDate: April 2008 196e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 1978a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 198e941d0ceSLiam GirdwoodDescription: 199e941d0ceSLiam Girdwood Some regulator directories will contain a link called parent. 200e941d0ceSLiam Girdwood This points to the parent or supply regulator if one exists. 201e941d0ceSLiam Girdwood 202e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_mem_microvolts 203e941d0ceSLiam GirdwoodDate: May 2008 204e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2058a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 206e941d0ceSLiam GirdwoodDescription: 207e941d0ceSLiam Girdwood Each regulator directory will contain a field called 208e941d0ceSLiam Girdwood suspend_mem_microvolts. This holds the regulator output 209e941d0ceSLiam Girdwood voltage setting for this domain measured in microvolts when 210e941d0ceSLiam Girdwood the system is suspended to memory. 211e941d0ceSLiam Girdwood 212e941d0ceSLiam Girdwood NOTE: this will return the string 'not defined' if 213e941d0ceSLiam Girdwood the power domain has no suspend to memory voltage defined by 214e941d0ceSLiam Girdwood platform code. 215e941d0ceSLiam Girdwood 216e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_disk_microvolts 217e941d0ceSLiam GirdwoodDate: May 2008 218e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2198a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 220e941d0ceSLiam GirdwoodDescription: 221e941d0ceSLiam Girdwood Each regulator directory will contain a field called 222e941d0ceSLiam Girdwood suspend_disk_microvolts. This holds the regulator output 223e941d0ceSLiam Girdwood voltage setting for this domain measured in microvolts when 224e941d0ceSLiam Girdwood the system is suspended to disk. 225e941d0ceSLiam Girdwood 226e941d0ceSLiam Girdwood NOTE: this will return the string 'not defined' if 227e941d0ceSLiam Girdwood the power domain has no suspend to disk voltage defined by 228e941d0ceSLiam Girdwood platform code. 229e941d0ceSLiam Girdwood 230e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_standby_microvolts 231e941d0ceSLiam GirdwoodDate: May 2008 232e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2338a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 234e941d0ceSLiam GirdwoodDescription: 235e941d0ceSLiam Girdwood Each regulator directory will contain a field called 236e941d0ceSLiam Girdwood suspend_standby_microvolts. This holds the regulator output 237e941d0ceSLiam Girdwood voltage setting for this domain measured in microvolts when 238e941d0ceSLiam Girdwood the system is suspended to standby. 239e941d0ceSLiam Girdwood 240e941d0ceSLiam Girdwood NOTE: this will return the string 'not defined' if 241e941d0ceSLiam Girdwood the power domain has no suspend to standby voltage defined by 242e941d0ceSLiam Girdwood platform code. 243e941d0ceSLiam Girdwood 244e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_mem_mode 245e941d0ceSLiam GirdwoodDate: May 2008 246e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2478a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 248e941d0ceSLiam GirdwoodDescription: 249e941d0ceSLiam Girdwood Each regulator directory will contain a field called 250e941d0ceSLiam Girdwood suspend_mem_mode. This holds the regulator operating mode 251e941d0ceSLiam Girdwood setting for this domain when the system is suspended to 252e941d0ceSLiam Girdwood memory. 253e941d0ceSLiam Girdwood 254e941d0ceSLiam Girdwood NOTE: this will return the string 'not defined' if 255e941d0ceSLiam Girdwood the power domain has no suspend to memory mode defined by 256e941d0ceSLiam Girdwood platform code. 257e941d0ceSLiam Girdwood 258e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_disk_mode 259e941d0ceSLiam GirdwoodDate: May 2008 260e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2618a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 262e941d0ceSLiam GirdwoodDescription: 263e941d0ceSLiam Girdwood Each regulator directory will contain a field called 264e941d0ceSLiam Girdwood suspend_disk_mode. This holds the regulator operating mode 265e941d0ceSLiam Girdwood setting for this domain when the system is suspended to disk. 266e941d0ceSLiam Girdwood 267e941d0ceSLiam Girdwood NOTE: this will return the string 'not defined' if 268e941d0ceSLiam Girdwood the power domain has no suspend to disk mode defined by 269e941d0ceSLiam Girdwood platform code. 270e941d0ceSLiam Girdwood 271e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_standby_mode 272e941d0ceSLiam GirdwoodDate: May 2008 273e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2748a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 275e941d0ceSLiam GirdwoodDescription: 276e941d0ceSLiam Girdwood Each regulator directory will contain a field called 277e941d0ceSLiam Girdwood suspend_standby_mode. This holds the regulator operating mode 278e941d0ceSLiam Girdwood setting for this domain when the system is suspended to 279e941d0ceSLiam Girdwood standby. 280e941d0ceSLiam Girdwood 281e941d0ceSLiam Girdwood NOTE: this will return the string 'not defined' if 282e941d0ceSLiam Girdwood the power domain has no suspend to standby mode defined by 283e941d0ceSLiam Girdwood platform code. 284e941d0ceSLiam Girdwood 285e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_mem_state 286e941d0ceSLiam GirdwoodDate: May 2008 287e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 2888a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 289e941d0ceSLiam GirdwoodDescription: 290e941d0ceSLiam Girdwood Each regulator directory will contain a field called 291e941d0ceSLiam Girdwood suspend_mem_state. This holds the regulator operating state 292e941d0ceSLiam Girdwood when suspended to memory. 293e941d0ceSLiam Girdwood 294e941d0ceSLiam Girdwood This will be one of the following strings: 295e941d0ceSLiam Girdwood 296e941d0ceSLiam Girdwood 'enabled' 297e941d0ceSLiam Girdwood 'disabled' 298e941d0ceSLiam Girdwood 'not defined' 299e941d0ceSLiam Girdwood 300e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_disk_state 301e941d0ceSLiam GirdwoodDate: May 2008 302e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 3038a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 304e941d0ceSLiam GirdwoodDescription: 305e941d0ceSLiam Girdwood Each regulator directory will contain a field called 306e941d0ceSLiam Girdwood suspend_disk_state. This holds the regulator operating state 307e941d0ceSLiam Girdwood when suspended to disk. 308e941d0ceSLiam Girdwood 309e941d0ceSLiam Girdwood This will be one of the following strings: 310e941d0ceSLiam Girdwood 311e941d0ceSLiam Girdwood 'enabled' 312e941d0ceSLiam Girdwood 'disabled' 313e941d0ceSLiam Girdwood 'not defined' 314e941d0ceSLiam Girdwood 315e941d0ceSLiam GirdwoodWhat: /sys/class/regulator/.../suspend_standby_state 316e941d0ceSLiam GirdwoodDate: May 2008 317e941d0ceSLiam GirdwoodKernelVersion: 2.6.26 3188a62ab4cSLiam GirdwoodContact: Liam Girdwood <lrg@slimlogic.co.uk> 319e941d0ceSLiam GirdwoodDescription: 320e941d0ceSLiam Girdwood Each regulator directory will contain a field called 321e941d0ceSLiam Girdwood suspend_standby_state. This holds the regulator operating 322e941d0ceSLiam Girdwood state when suspended to standby. 323e941d0ceSLiam Girdwood 324e941d0ceSLiam Girdwood This will be one of the following strings: 325e941d0ceSLiam Girdwood 326e941d0ceSLiam Girdwood 'enabled' 327e941d0ceSLiam Girdwood 'disabled' 328e941d0ceSLiam Girdwood 'not defined' 329