Maxim MAX34408/MAX34409 current monitors with overcurrent control
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/maxim,max34408.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ivan Mikhaylov <fr0st61te@gmail.com>"
The MAX34408/MAX34409 are two- and four-channel current monitors that are configured and monitored with a standard I2C/SMBus serial interface. Each unidirectional current sensor offers precision high-side operation with a low full-scale sense voltage. The devices automatically sequence through two or four channels and collect the current-sense samples and average them to reduce the effect of impulse noise. The raw ADC samples are compared to user-programmable digital thresholds to indicate overcurrent conditions. Overcurrent conditions trigger a hardware output to provide an immediate indication to shut down any necessary external circuitry.
Specifications about the devices can be found at: https://www.analog.com/media/en/technical-documentation/data-sheets/MAX34408-MAX34409.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxim,max34408", "maxim,max34409"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
powerdown-gpios — not listed as required here #
Shutdown Output. Open-drain output. This output transitions to high impedance when any of the digital comparator thresholds are exceeded as long as the ENA pin is high.
Maximum number of items (maxItems): 1
powerdown-status-gpios — not listed as required here #
SHTDN Enable Input. CMOS digital input. Connect to GND to clear the latch and unconditionally deassert (force low) the SHTDN output and reset the shutdown delay. Connect to VDD to enable normal latch operation of the SHTDN output.
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
Properties matching a name pattern (patternProperties) #
^channel@[0-3]$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Represents the internal channels of the ADC.
Properties and child nodes (properties) #
reg — required here
Array item rules (items)
Item 1
Minimum value (
minimum):0Maximum value (
maximum):3
maxim,rsense-val-micro-ohms — required here
Adjust the Rsense value to monitor higher or lower current levels for input.
Allowed values (enum): 250, 500, 1000, 5000, 10000, 50000, 100000, 200000, 500000
Default value (default): 1000
Required in this object (required): "reg", "maxim,rsense-val-micro-ohms"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"maxim,max34408"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[2-3]$— name matches this regular expression
false— Not permitted by this property rule.
^channel@[0-1]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):1When the condition does not match (
else) #Properties matching a name pattern (
patternProperties)
^channel@[0-3]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):3
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@1e {
compatible = "maxim,max34409";
reg = <0x1e>;
powerdown-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
powerdown-status-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0x0>;
maxim,rsense-val-micro-ohms = <5000>;
};
channel@1 {
reg = <0x1>;
maxim,rsense-val-micro-ohms = <10000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)