1# Copyright 2023 The ChromiumOS Authors 2# SPDX-License-Identifier: Apache-2.0 3 4description: | 5 When an io-channel measures the voltage over a current sense amplifier, 6 the interesting measurement is almost always the current through the 7 sense resistor, not the voltage over it. This binding describes such a current 8 sense circuit. 9 10 This is based on Linux, documentation: 11 https://www.kernel.org/doc/Documentation/devicetree/bindings/iio/afe/current-sense-amplifier.yaml 12 13compatible: "current-sense-amplifier" 14 15include: base.yaml 16 17properties: 18 io-channels: 19 required: true 20 description: | 21 Channels available with this divider configuration. 22 23 sense-resistor-milli-ohms: 24 type: int 25 required: true 26 description: | 27 Resistance of the shunt resistor in milli-ohms. 28 29 sense-gain-mult: 30 type: int 31 default: 1 32 description: | 33 Amplifier gain multiplier. The default is <1>. The maximum value is <65535>. 34 35 sense-gain-div: 36 type: int 37 default: 1 38 description: | 39 Amplifier gain divider. The default is <1>. The maximum value is <65535>. 40 41 power-gpios: 42 type: phandle-array 43 description: | 44 Control power to the current amplifier. 45 46 If present the corresponding GPIO must be set to an active level 47 to enable the current amplifier. 48