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