Path: blob/master/Documentation/devicetree/bindings/hwmon/adi,adm1177.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/hwmon/adi,adm1177.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices ADM1177 Hot Swap Controller and Digital Power Monitor78maintainers:9- Michael Hennerich <michael.hennerich@analog.com>1011description: |12Analog Devices ADM1177 Hot Swap Controller and Digital Power Monitor13https://www.analog.com/media/en/technical-documentation/data-sheets/ADM1177.pdf1415properties:16compatible:17enum:18- adi,adm11771920reg:21maxItems: 12223avcc-supply:24description:25Phandle to the Avcc power supply2627shunt-resistor-micro-ohms:28description:29The value of current sense resistor in microohms. If not provided,30the current reading and overcurrent alert is disabled.3132adi,shutdown-threshold-microamp:33description:34Specifies the current level at which an over current alert occurs.35If not provided, the overcurrent alert is configured to max ADC range36based on shunt-resistor-micro-ohms.3738adi,vrange-high-enable:39description:40Specifies which internal voltage divider to be used. A 1 selects41a 7:2 voltage divider while a 0 selects a 14:1 voltage divider.42type: boolean4344required:45- compatible46- reg4748allOf:49- $ref: hwmon-common.yaml#5051unevaluatedProperties: false5253examples:54- |55#include <dt-bindings/gpio/gpio.h>56#include <dt-bindings/interrupt-controller/irq.h>57i2c {58#address-cells = <1>;59#size-cells = <0>;6061pwmon@5a {62compatible = "adi,adm1177";63reg = <0x5a>;64shunt-resistor-micro-ohms = <50000>; /* 50 mOhm */65adi,shutdown-threshold-microamp = <1059000>; /* 1.059 A */66adi,vrange-high-enable;67};68};69...707172