Maxim MAX8952 voltage regulator
Schema identifier ($id): "http://devicetree.org/schemas/regulator/maxim,max8952.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):regulator.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "maxim,max8952"
max8952,default-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
index of default DVS voltage
max8952,dvs-mode-microvolt — required here #
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 4
Array item rules (items) #
Minimum value (
minimum):770000Maximum value (
maximum):1400000
Array of 4 integer values defining DVS voltages in microvolts. All values must be from range <770000, 1400000>.
max8952,en-gpio — not listed as required here #
Maximum number of items (maxItems): 1
GPIO used to control enable status of regulator
max8952,ramp-speed — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7
Default value (default): 0
Voltage ramp speed, values map to: - 0: 32mV/us - 1: 16mV/us - 2: 8mV/us - 3: 4mV/us - 4: 2mV/us - 5: 1mV/us - 6: 0.5mV/us - 7: 0.25mV/us Defaults to 32mV/us if not specified.
max8952,sync-freq — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
Default value (default): 0
Sync frequency, values map to: - 0: 26 MHz - 1: 13 MHz - 2: 19.2 MHz Defaults to 26 MHz if not specified.
max8952,vid-gpios — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
Array of two GPIO pins used for DVS voltage selection
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "max8952,dvs-mode-microvolt", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
pmic@60 {
compatible = "maxim,max8952";
reg = <0x60>;
max8952,vid-gpios = <&gpx0 3 GPIO_ACTIVE_HIGH>,
<&gpx0 4 GPIO_ACTIVE_HIGH>;
max8952,default-mode = <0>;
max8952,dvs-mode-microvolt = <1250000>, <1200000>,
<1050000>, <950000>;
max8952,sync-freq = <0>;
max8952,ramp-speed = <0>;
regulator-name = "VARM_1.2V_C210";
regulator-min-microvolt = <770000>;
regulator-max-microvolt = <1400000>;
regulator-always-on;
regulator-boot-on;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause