^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/class/regulator/.../state
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) state. This reports the regulator enable control, for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) regulators which can report that input value.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) This will be one of the following strings:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 'enabled'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 'disabled'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 'unknown'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 'enabled' means the regulator output is ON and is supplying
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) power to the system (assuming no error prevents it).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 'disabled' means the regulator output is OFF and is not
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) supplying power to the system (unless some non-Linux
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) control has enabled it).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 'unknown' means software cannot determine the state, or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) the reported state is invalid.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) NOTE: this field can be used in conjunction with microvolts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) or microamps to determine configured regulator output levels.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) What: /sys/class/regulator/.../status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) "status". This reports the current regulator status, for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) regulators which can report that output value.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) This will be one of the following strings:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) - off
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) - on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) - error
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) - fast
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) - normal
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) - idle
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) - standby
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) "off" means the regulator is not supplying power to the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) system.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) "on" means the regulator is supplying power to the system,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) and the regulator can't report a detailed operation mode.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) "error" indicates an out-of-regulation status such as being
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) disabled due to thermal shutdown, or voltage being unstable
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) because of problems with the input power supply.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) "fast", "normal", "idle", and "standby" are all detailed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) regulator operation modes (described elsewhere). They
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) imply "on", but provide more detail.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) Note that regulator status is a function of many inputs,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) not limited to control inputs from Linux. For example,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) the actual load presented may trigger "error" status; or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) a regulator may be enabled by another user, even though
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) Linux did not enable it.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) What: /sys/class/regulator/.../type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) Each regulator directory will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) type. This holds the regulator type.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) This will be one of the following strings:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) - 'voltage'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) - 'current'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) - 'unknown'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) 'voltage' means the regulator output voltage can be controlled
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) by software.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) 'current' means the regulator output current limit can be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) controlled by software.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) 'unknown' means software cannot control either voltage or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) current limit.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) What: /sys/class/regulator/.../microvolts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) microvolts. This holds the regulator output voltage setting
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) measured in microvolts (i.e. E-6 Volts), for regulators
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) which can report the control input for voltage.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) NOTE: This value should not be used to determine the regulator
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) output voltage level as this value is the same regardless of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) whether the regulator is enabled or disabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) What: /sys/class/regulator/.../microamps
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) microamps. This holds the regulator output current limit
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) setting measured in microamps (i.e. E-6 Amps), for regulators
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) which can report the control input for a current limit.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) NOTE: This value should not be used to determine the regulator
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) output current level as this value is the same regardless of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) whether the regulator is enabled or disabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) What: /sys/class/regulator/.../opmode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) opmode. This holds the current regulator operating mode,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) for regulators which can report that control input value.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) The opmode value can be one of the following strings:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) - 'fast'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) - 'normal'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) - 'idle'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) - 'standby'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) - 'unknown'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) The modes are described in include/linux/regulator/consumer.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) NOTE: This value should not be used to determine the regulator
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) output operating mode as this value is the same regardless of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) whether the regulator is enabled or disabled. A "status"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) attribute may be available to determine the actual mode.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) What: /sys/class/regulator/.../min_microvolts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) min_microvolts. This holds the minimum safe working regulator
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) output voltage setting for this domain measured in microvolts,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) for regulators which support voltage constraints.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) NOTE: this will return the string 'constraint not defined' if
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) the power domain has no min microvolts constraint defined by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) platform code.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) What: /sys/class/regulator/.../max_microvolts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) max_microvolts. This holds the maximum safe working regulator
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) output voltage setting for this domain measured in microvolts,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) for regulators which support voltage constraints.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) NOTE: this will return the string 'constraint not defined' if
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) the power domain has no max microvolts constraint defined by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) platform code.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) What: /sys/class/regulator/.../min_microamps
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) min_microamps. This holds the minimum safe working regulator
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) output current limit setting for this domain measured in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) microamps, for regulators which support current constraints.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) NOTE: this will return the string 'constraint not defined' if
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) the power domain has no min microamps constraint defined by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) platform code.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) What: /sys/class/regulator/.../max_microamps
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) max_microamps. This holds the maximum safe working regulator
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) output current limit setting for this domain measured in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) microamps, for regulators which support current constraints.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) NOTE: this will return the string 'constraint not defined' if
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) the power domain has no max microamps constraint defined by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) platform code.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) What: /sys/class/regulator/.../name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) Date: October 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) KernelVersion: 2.6.28
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) Each regulator directory will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) name. This holds a string identifying the regulator for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) display purposes.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) NOTE: this will be empty if no suitable name is provided
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) by platform or regulator drivers.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) What: /sys/class/regulator/.../num_users
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) Each regulator directory will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) num_users. This holds the number of consumer devices that
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) have called regulator_enable() on this regulator.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) What: /sys/class/regulator/.../requested_microamps
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) requested_microamps. This holds the total requested load
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) current in microamps for this regulator from all its consumer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) devices.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) What: /sys/class/regulator/.../parent
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245) Some regulator directories will contain a link called parent.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) This points to the parent or supply regulator if one exists.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248) What: /sys/class/regulator/.../suspend_mem_microvolts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249) Date: May 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254) suspend_mem_microvolts. This holds the regulator output
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255) voltage setting for this domain measured in microvolts when
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256) the system is suspended to memory, for voltage regulators
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257) implementing suspend voltage configuration constraints.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 258)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 259) What: /sys/class/regulator/.../suspend_disk_microvolts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 260) Date: May 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 261) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 262) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 263) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 264) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 265) suspend_disk_microvolts. This holds the regulator output
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 266) voltage setting for this domain measured in microvolts when
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 267) the system is suspended to disk, for voltage regulators
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 268) implementing suspend voltage configuration constraints.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 269)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 270) What: /sys/class/regulator/.../suspend_standby_microvolts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 271) Date: May 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 272) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 273) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 274) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 275) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 276) suspend_standby_microvolts. This holds the regulator output
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 277) voltage setting for this domain measured in microvolts when
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 278) the system is suspended to standby, for voltage regulators
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 279) implementing suspend voltage configuration constraints.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 280)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 281) What: /sys/class/regulator/.../suspend_mem_mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 282) Date: May 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 283) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 284) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 285) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 286) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 287) suspend_mem_mode. This holds the regulator operating mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 288) setting for this domain when the system is suspended to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 289) memory, for regulators implementing suspend mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 290) configuration constraints.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 291)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 292) What: /sys/class/regulator/.../suspend_disk_mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 293) Date: May 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 294) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 295) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 296) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 297) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 298) suspend_disk_mode. This holds the regulator operating mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 299) setting for this domain when the system is suspended to disk,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 300) for regulators implementing suspend mode configuration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 301) constraints.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 302)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 303) What: /sys/class/regulator/.../suspend_standby_mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 304) Date: May 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 305) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 306) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 307) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 308) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 309) suspend_standby_mode. This holds the regulator operating mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 310) setting for this domain when the system is suspended to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 311) standby, for regulators implementing suspend mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 312) configuration constraints.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 313)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 314) What: /sys/class/regulator/.../suspend_mem_state
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 315) Date: May 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 316) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 317) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 318) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 319) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 320) suspend_mem_state. This holds the regulator operating state
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 321) when suspended to memory, for regulators implementing suspend
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 322) configuration constraints.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 323)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 324) This will be one of the same strings reported by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 325) the "state" attribute.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 326)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 327) What: /sys/class/regulator/.../suspend_disk_state
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 328) Date: May 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 329) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 330) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 331) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 332) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 333) suspend_disk_state. This holds the regulator operating state
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 334) when suspended to disk, for regulators implementing
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 335) suspend configuration constraints.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 336)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 337) This will be one of the same strings reported by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 338) the "state" attribute.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 339)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 340) What: /sys/class/regulator/.../suspend_standby_state
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 341) Date: May 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 342) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 343) Contact: Liam Girdwood <lrg@slimlogic.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 344) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 345) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 346) suspend_standby_state. This holds the regulator operating
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 347) state when suspended to standby, for regulators implementing
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 348) suspend configuration constraints.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 349)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 350) This will be one of the same strings reported by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 351) the "state" attribute.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 352)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 353) What: /sys/class/regulator/.../bypass
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 354) Date: September 2012
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 355) KernelVersion: 3.7
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 356) Contact: Mark Brown <broonie@opensource.wolfsonmicro.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 357) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 358) Some regulator directories will contain a field called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 359) bypass. This indicates if the device is in bypass mode.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 360)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 361) This will be one of the following strings:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 362)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 363) - 'enabled'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 364) - 'disabled'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 365) - 'unknown'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 366)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 367) 'enabled' means the regulator is in bypass mode.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 368)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 369) 'disabled' means that the regulator is regulating.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 370)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 371) 'unknown' means software cannot determine the state, or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 372) the reported state is invalid.