Fixed Voltage regulators
Schema identifier ($id): "http://devicetree.org/schemas/regulator/fixed-regulator.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Liam Girdwood <lgirdwood@gmail.com>", "Mark Brown <broonie@kernel.org>"
Any property defined as part of the core regulator binding, defined in regulator.yaml, can also be used. However a fixed voltage regulator is expected to have the regulator-min-microvolt and regulator-max-microvolt to be the same.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):regulator.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"regulator-fixed-clock"When the condition matches (
then) #
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"regulator-fixed-domain"When the condition matches (
then) #Required in this object (
required):"power-domains","required-opps"
Rule 4 #
This rule must not match (
not) #
Properties and child nodes (properties) #
$nodename — not listed as required here #
At least one of these rules must match (anyOf) #
Rule 1
Preferred name is 'regulator-[0-9]v[0-9]'
String pattern (
pattern):"^regulator(-[0-9]+v[0-9]+|-[0-9a-z-]+)?$"
Rule 2
Any name allowed
Deprecated (
deprecated):true
compatible — required here #
Allowed values (enum): "regulator-fixed", "regulator-fixed-clock", "regulator-fixed-domain"
regulator-name — required here #
true — No constraints added by this property rule.
gpio — not listed as required here #
gpio to use for enable control
Maximum number of items (maxItems): 1
gpios — not listed as required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
clock to use for enable control. This binding is only available if the compatible is chosen to regulator-fixed-clock. The clock binding is mandatory if compatible is chosen to regulator-fixed-clock.
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Deprecated (deprecated): true
Power domain to use for enable control. This binding is only available if the compatible is chosen to regulator-fixed-domain.
Maximum number of items (maxItems): 1
required-opps — not listed as required here #
Deprecated (deprecated): true
Performance state to use for enable control. This binding is only available if the compatible is chosen to regulator-fixed-domain. The power-domain binding is mandatory if compatible is chosen to regulator-fixed-domain.
Maximum number of items (maxItems): 1
startup-delay-us — not listed as required here #
startup time in microseconds
off-on-delay-us — not listed as required here #
off delay time in microseconds
enable-active-high — not listed as required here #
Polarity of GPIO is Active high. If this property is missing, the default assumed is Active low.
Value type (type): "boolean"
gpio-open-drain — not listed as required here #
GPIO is open drain type. If this property is missing then default assumption is false.
Value type (type): "boolean"
vin-supply — not listed as required here #
Input supply phandle.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Interrupt signaling a critical under-voltage event.
system-critical-regulator — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "regulator-name"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
reg_1v8: regulator-1v8 {
compatible = "regulator-fixed";
regulator-name = "1v8";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
gpio = <&gpio1 16 0>;
startup-delay-us = <70000>;
enable-active-high;
regulator-boot-on;
gpio-open-drain;
vin-supply = <&parent_reg>;
};
reg_1v8_clk: regulator-1v8-clk {
compatible = "regulator-fixed-clock";
regulator-name = "1v8";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
clocks = <&clock1>;
startup-delay-us = <70000>;
enable-active-high;
regulator-boot-on;
vin-supply = <&parent_reg>;
};
reg_1v8_domain: regulator-1v8-domain {
compatible = "regulator-fixed-domain";
regulator-name = "1v8";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
power-domains = <&domain1>;
required-opps = <&domain1_state1>;
startup-delay-us = <70000>;
enable-active-high;
regulator-boot-on;
vin-supply = <&parent_reg>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0