Voltage/Current Regulators
Schema identifier ($id): "http://devicetree.org/schemas/regulator/regulator.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Liam Girdwood <lgirdwood@gmail.com>", "Mark Brown <broonie@kernel.org>"
Properties and child nodes (properties) #
regulator-name — not listed as required here #
A string used as a descriptive name for regulator outputs
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
regulator-min-microvolt — not listed as required here #
smallest voltage consumers may set
regulator-max-microvolt — not listed as required here #
largest voltage consumers may set
regulator-microvolt-offset — not listed as required here #
Offset applied to voltages to compensate for voltage drops
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
regulator-min-microamp — not listed as required here #
smallest current consumers may set
regulator-max-microamp — not listed as required here #
largest current consumers may set
regulator-input-current-limit-microamp — not listed as required here #
maximum input current regulator allows
regulator-power-budget-milliwatt — not listed as required here #
power budget of the regulator
regulator-always-on — not listed as required here #
boolean, regulator should never be disabled
Value type (type): "boolean"
regulator-boot-on — not listed as required here #
bootloader/firmware enabled regulator. It's expected that this regulator was left on by the bootloader. If the bootloader didn't leave it on then OS should turn it on at boot but shouldn't prevent it from being turned off later. This property is intended to only be used for regulators where software cannot read the state of the regulator.
Value type (type): "boolean"
regulator-allow-bypass — not listed as required here #
allow the regulator to go into bypass mode
Value type (type): "boolean"
regulator-allow-set-load — not listed as required here #
allow the regulator performance level to be configured
Value type (type): "boolean"
regulator-ramp-delay — not listed as required here #
ramp delay for regulator(in uV/us) For hardware which supports disabling ramp rate, it should be explicitly initialised to zero (regulator-ramp-delay = <0>) for disabling ramp delay.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
regulator-enable-ramp-delay — not listed as required here #
The time taken, in microseconds, for the supply rail to reach the target voltage, plus/minus whatever tolerance the board design requires. This property describes the total system ramp time required due to the combination of internal ramping of the regulator itself, and board design issues such as trace capacitance and load on the supply.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
regulator-settling-time-us — not listed as required here #
Settling time, in microseconds, for voltage change if regulator have the constant time for any level voltage change. This is useful when regulator have exponential voltage change.
regulator-settling-time-up-us — not listed as required here #
Settling time, in microseconds, for voltage increase if the regulator needs a constant time to settle after voltage increases of any level. This is useful for regulators with exponential voltage changes.
regulator-settling-time-down-us — not listed as required here #
Settling time, in microseconds, for voltage decrease if the regulator needs a constant time to settle after voltage decreases of any level. This is useful for regulators with exponential voltage changes.
regulator-soft-start — not listed as required here #
Enable soft start so that voltage ramps slowly
Value type (type): "boolean"
regulator-initial-mode — not listed as required here #
initial operating mode. The set of possible operating modes depends on the capabilities of every hardware so each device binding documentation explains which values the regulator supports.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
regulator-allowed-modes — not listed as required here #
list of operating modes that software is allowed to configure for the regulator at run-time. Elements may be specified in any order. The set of possible operating modes depends on the capabilities of every hardware so each device binding document explains which values the regulator supports.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
regulator-system-load — not listed as required here #
Load in uA present on regulator that is not captured by any consumer request.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
regulator-pull-down — not listed as required here #
Enable pull down resistor when the regulator is disabled.
Value type (type): "boolean"
system-critical-regulator — not listed as required here #
Set if the regulator is critical to system stability or functionality.
Value type (type): "boolean"
regulator-over-current-protection — not listed as required here #
Enable over current protection.
Value type (type): "boolean"
regulator-oc-protection-microamp — not listed as required here #
Set over current protection limit. This is a limit where hardware performs emergency shutdown. Zero can be passed to disable protection and value '1' indicates that protection should be enabled but limit setting can be omitted.
regulator-oc-error-microamp — not listed as required here #
Set over current error limit. This is a limit where part of the hardware probably is malfunctional and damage prevention is requested. Zero can be passed to disable error detection and value '1' indicates that detection should be enabled but limit setting can be omitted.
regulator-oc-warn-microamp — not listed as required here #
Set over current warning limit. This is a limit where hardware is assumed still to be functional but approaching limit where it gets damaged. Recovery actions should be initiated. Zero can be passed to disable detection and value '1' indicates that detection should be enabled but limit setting can be omitted.
regulator-ov-protection-microvolt — not listed as required here #
Set over voltage protection limit. This is a limit where hardware performs emergency shutdown. Zero can be passed to disable protection and value '1' indicates that protection should be enabled but limit setting can be omitted. Limit is given as microvolt offset from voltage set to regulator.
regulator-ov-error-microvolt — not listed as required here #
Set over voltage error limit. This is a limit where part of the hardware probably is malfunctional and damage prevention is requested Zero can be passed to disable error detection and value '1' indicates that detection should be enabled but limit setting can be omitted. Limit is given as microvolt offset from voltage set to regulator.
regulator-ov-warn-microvolt — not listed as required here #
Set over voltage warning limit. This is a limit where hardware is assumed still to be functional but approaching limit where it gets damaged. Recovery actions should be initiated. Zero can be passed to disable detection and value '1' indicates that detection should be enabled but limit setting can be omitted. Limit is given as microvolt offset from voltage set to regulator.
regulator-uv-protection-microvolt — not listed as required here #
Set under voltage protection limit. This is a limit where hardware performs emergency shutdown. Zero can be passed to disable protection and value '1' indicates that protection should be enabled but limit setting can be omitted. Limit is given as microvolt offset from voltage set to regulator.
regulator-uv-error-microvolt — not listed as required here #
Set under voltage error limit. This is a limit where part of the hardware probably is malfunctional and damage prevention is requested Zero can be passed to disable error detection and value '1' indicates that detection should be enabled but limit setting can be omitted. Limit is given as microvolt offset from voltage set to regulator.
regulator-uv-warn-microvolt — not listed as required here #
Set under voltage warning limit. This is a limit where hardware is assumed still to be functional but approaching limit where it gets damaged. Recovery actions should be initiated. Zero can be passed to disable detection and value '1' indicates that detection should be enabled but limit setting can be omitted. Limit is given as microvolt offset from voltage set to regulator.
regulator-uv-less-critical-window-ms — not listed as required here #
Specifies the time window (in milliseconds) following a critical under-voltage event during which the system can continue to operate safely while performing less critical operations. This property provides a defined duration before a more severe reaction to the under-voltage event is needed, allowing for certain non-urgent actions to be carried out in preparation for potential power loss.
regulator-temp-protection-kelvin — not listed as required here #
Set over temperature protection limit. This is a limit where hardware performs emergency shutdown. Zero can be passed to disable protection and value '1' indicates that protection should be enabled but limit setting can be omitted.
regulator-temp-error-kelvin — not listed as required here #
Set over temperature error limit. This is a limit where part of the hardware probably is malfunctional and damage prevention is requested Zero can be passed to disable error detection and value '1' indicates that detection should be enabled but limit setting can be omitted.
regulator-temp-warn-kelvin — not listed as required here #
Set over temperature warning limit. This is a limit where hardware is assumed still to be functional but approaching limit where it gets damaged. Recovery actions should be initiated. Zero can be passed to disable detection and value '1' indicates that detection should be enabled but limit setting can be omitted.
regulator-active-discharge — not listed as required here #
tristate, enable/disable active discharge of regulators. The values are: 0: Disable active discharge. 1: Enable active discharge. Absence of this property will leave configuration to default.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
regulator-coupled-with — not listed as required here #
Regulators with which the regulator is coupled. The linkage is 2-way - all coupled regulators should be linked with each other. A regulator should not be coupled with its supplier.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Maximum number of items (
maxItems):1
regulator-coupled-max-spread — not listed as required here #
Array of maximum spread between voltages of coupled regulators in microvolts, each value in the array relates to the corresponding couple specified by the regulator-coupled-with property.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
regulator-max-step-microvolt — not listed as required here #
Maximum difference between current and target voltages that can be changed safely in a single step.
Properties matching a name pattern (patternProperties) #
.*-supply$ — name matches this regular expression #
Input supply phandle(s) for this node
^regulator-state-(standby|mem|disk)$ — name matches this regular expression #
Value type (type): "object"
sub-nodes for regulator state in Standby, Suspend-to-RAM, and Suspend-to-DISK modes. Equivalent with standby, mem, and disk Linux sleep states.
Properties and child nodes (properties) #
regulator-on-in-suspend — not listed as required here
regulator should be on in suspend state.
Value type (type): "boolean"
regulator-off-in-suspend — not listed as required here
regulator should be off in suspend state.
Value type (type): "boolean"
regulator-suspend-min-microvolt — not listed as required here
minimum voltage may be set in suspend state.
regulator-suspend-max-microvolt — not listed as required here
maximum voltage may be set in suspend state.
regulator-suspend-microvolt — not listed as required here
the default voltage which regulator would be set in suspend. This property is now deprecated, instead setting voltage for suspend mode via the API which regulator driver provides is recommended.
Deprecated (deprecated): true
regulator-changeable-in-suspend — not listed as required here
whether the default voltage and the regulator on/off in suspend can be changed in runtime.
Value type (type): "boolean"
regulator-mode — not listed as required here
operating mode in the given suspend state. The set of possible operating modes depends on the capabilities of every hardware so the valid modes are documented on each regulator device tree binding document.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
xyzreg: regulator {
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <2500000>;
regulator-always-on;
vin-supply = <&vin>;
regulator-state-mem {
regulator-on-in-suspend;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0