diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-07-22 18:12:24 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-08-22 10:53:22 +0100 |
commit | 65fb06f0bec8d8a929cdae9e68048adf25883f65 (patch) | |
tree | d116ee7cf93f48483e6b2e9525c0f95f16db7a33 /Documentation/devicetree/bindings/iio/adc/maxim,max9611.yaml | |
parent | fde6da59da6284080ec27c2ff92c0c8eef2bf8f3 (diff) | |
download | linux-stable-65fb06f0bec8d8a929cdae9e68048adf25883f65.tar.gz linux-stable-65fb06f0bec8d8a929cdae9e68048adf25883f65.tar.bz2 linux-stable-65fb06f0bec8d8a929cdae9e68048adf25883f65.zip |
dt-bindings: iio: adc: maxim,max9611 yaml conversions
Straight forward conversion of this binding for this
current sense amplifier and ADC.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/iio/adc/maxim,max9611.yaml')
-rw-r--r-- | Documentation/devicetree/bindings/iio/adc/maxim,max9611.yaml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/adc/maxim,max9611.yaml b/Documentation/devicetree/bindings/iio/adc/maxim,max9611.yaml new file mode 100644 index 000000000000..9475a9e6e920 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/maxim,max9611.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/maxim,max9611.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX9611 and similar current sense amplifiers with integrated ADCs + +maintainers: + - Jacopo Mondi <jacopo@jmondi.org> + +description: | + These devices combine a high-side current sense amplifier with a 12 bit ADC. + They have an i2c interface. + +properties: + compatible: + enum: + - maxim,max9611 + - maxim,max9612 + + reg: + maxItems: 1 + + shunt-resistor-micro-ohms: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Value in micro Ohms of the shunt resistor connected between the RS+ and + RS- inputs, across which the current is measured. Value needed to compute + the scaling of the measured current. + +additionalProperties: false + +required: + - compatible + - reg + - shunt-resistor-micro-ohms + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + adc@7c { + compatible = "maxim,max9611"; + reg = <0x7c>; + shunt-resistor-micro-ohms = <5000>; + }; + }; +... |