Regulator for MAX5970 Smart Switch from Maxim Integrated
Schema identifier ($id): "http://devicetree.org/schemas/mfd/maxim,max5970.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Patrick Rudolph <patrick.rudolph@9elements.com>"
The smart switch provides no output regulation, but independent fault protection and voltage and current sensing. Programming is done through I2C bus.
Datasheets:
https://datasheets.maximintegrated.com/en/ds/MAX5970.pdf
https://datasheets.maximintegrated.com/en/ds/MAX5978.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxim,max5970", "maxim,max5978"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
leds — not listed as required here #
Value type (type): "object"
Properties for four LEDS.
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-3]$ — name matches this regular expression
Shared schema rule ($ref): /schemas/leds/common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Value type (type): "object"
Properties and child nodes (properties)
reg — not listed as required here
Maximum value (maximum): 3
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
vss1-supply — required here #
Supply of the first channel.
vss2-supply — not listed as required here #
Supply of the second channel.
regulators — required here #
Value type (type): "object"
Properties for both hot swap control/switch.
Properties matching a name pattern (patternProperties) #
^sw[0-1]$ — name matches this regular expression
Shared schema rule ($ref): /schemas/regulator/regulator.yaml#
Value type (type): "object"
Properties and child nodes (properties)
shunt-resistor-micro-ohms — required here
The value of current sense resistor in microohms.
Required in this object (required): "shunt-resistor-micro-ohms"
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "regulators", "vss1-supply"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
regulator@3a {
compatible = "maxim,max5978";
reg = <0x3a>;
vss1-supply = <&p3v3>;
regulators {
sw0_ref_0: sw0 {
shunt-resistor-micro-ohms = <12000>;
};
};
leds {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
label = "led0";
default-state = "on";
};
led@1 {
reg = <1>;
label = "led1";
default-state = "on";
};
};
};
};
i2c {
#address-cells = <1>;
#size-cells = <0>;
regulator@3a {
compatible = "maxim,max5970";
reg = <0x3a>;
vss1-supply = <&p3v3>;
vss2-supply = <&p5v>;
regulators {
sw0_ref_1: sw0 {
shunt-resistor-micro-ohms = <12000>;
};
sw1_ref_1: sw1 {
shunt-resistor-micro-ohms = <10000>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)