Analog Devices ADM1177 Hot Swap Controller and Digital Power Monitor
Schema identifier ($id): "http://devicetree.org/schemas/hwmon/adi,adm1177.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
Analog Devices ADM1177 Hot Swap Controller and Digital Power Monitor https://www.analog.com/media/en/technical-documentation/data-sheets/ADM1177.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adm1177"
reg — required here #
Maximum number of items (maxItems): 1
avcc-supply — not listed as required here #
Phandle to the Avcc power supply
shunt-resistor-micro-ohms — not listed as required here #
The value of current sense resistor in microohms. If not provided, the current reading and overcurrent alert is disabled.
adi,shutdown-threshold-microamp — not listed as required here #
Specifies the current level at which an over current alert occurs. If not provided, the overcurrent alert is configured to max ADC range based on shunt-resistor-micro-ohms.
adi,vrange-high-enable — not listed as required here #
Specifies which internal voltage divider to be used. A 1 selects a 7:2 voltage divider while a 0 selects a 14:1 voltage divider.
Value type (type): "boolean"
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):hwmon-common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
pwmon@5a {
compatible = "adi,adm1177";
reg = <0x5a>;
shunt-resistor-micro-ohms = <50000>; /* 50 mOhm */
adi,shutdown-threshold-microamp = <1059000>; /* 1.059 A */
adi,vrange-high-enable;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)