Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+51 -27
-27
Documentation/devicetree/bindings/iio/adc/max9611.txt
··· 1 - * Maxim max9611/max9612 current sense amplifier with 12-bits ADC interface 2 - 3 - Maxim max9611/max9612 is an high-side current sense amplifier with integrated 4 - 12-bits ADC communicating over I2c bus. 5 - The device node for this driver shall be a child of a I2c controller. 6 - 7 - Required properties 8 - - compatible: Should be "maxim,max9611" or "maxim,max9612" 9 - - reg: The 7-bits long I2c address of the device 10 - - shunt-resistor-micro-ohms: Value, in micro Ohms, of the current sense shunt 11 - resistor 12 - 13 - Example: 14 - 15 - &i2c4 { 16 - csa: adc@7c { 17 - compatible = "maxim,max9611"; 18 - reg = <0x7c>; 19 - 20 - shunt-resistor-micro-ohms = <5000>; 21 - }; 22 - }; 23 - 24 - This device node describes a current sense amplifier sitting on I2c4 bus 25 - with address 0x7c (read address is 0xf9, write address is 0xf8). 26 - A sense resistor of 0,005 Ohm is installed between RS+ and RS- current-sensing 27 - inputs.
+51
Documentation/devicetree/bindings/iio/adc/maxim,max9611.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/adc/maxim,max9611.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Maxim MAX9611 and similar current sense amplifiers with integrated ADCs 8 + 9 + maintainers: 10 + - Jacopo Mondi <jacopo@jmondi.org> 11 + 12 + description: | 13 + These devices combine a high-side current sense amplifier with a 12 bit ADC. 14 + They have an i2c interface. 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - maxim,max9611 20 + - maxim,max9612 21 + 22 + reg: 23 + maxItems: 1 24 + 25 + shunt-resistor-micro-ohms: 26 + $ref: /schemas/types.yaml#/definitions/uint32 27 + description: | 28 + Value in micro Ohms of the shunt resistor connected between the RS+ and 29 + RS- inputs, across which the current is measured. Value needed to compute 30 + the scaling of the measured current. 31 + 32 + additionalProperties: false 33 + 34 + required: 35 + - compatible 36 + - reg 37 + - shunt-resistor-micro-ohms 38 + 39 + examples: 40 + - | 41 + i2c { 42 + #address-cells = <1>; 43 + #size-cells = <0>; 44 + 45 + adc@7c { 46 + compatible = "maxim,max9611"; 47 + reg = <0x7c>; 48 + shunt-resistor-micro-ohms = <5000>; 49 + }; 50 + }; 51 + ...