Path: blob/master/Documentation/devicetree/bindings/iio/afe/current-sense-shunt.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/afe/current-sense-shunt.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Current Sense Shunt78maintainers:9- Peter Rosin <peda@axentia.se>1011description: |12When an io-channel measures the voltage over a current sense shunt,13the interesting measurement is almost always the current through the14shunt, not the voltage over it. This binding describes such a current15sense circuit.1617properties:18compatible:19const: current-sense-shunt2021io-channels:22maxItems: 123description: |24Channel node of a voltage io-channel.2526"#io-channel-cells":27const: 02829shunt-resistor-micro-ohms:30description: The shunt resistance.3132required:33- compatible34- io-channels35- shunt-resistor-micro-ohms3637additionalProperties: false3839examples:40- |41i2c {42#address-cells = <1>;43#size-cells = <0>;44tiadc: adc@48 {45compatible = "ti,ads1015";46reg = <0x48>;47#io-channel-cells = <1>;4849#address-cells = <1>;50#size-cells = <0>;5152channel@0 { /* IN0,IN1 differential */53reg = <0>;54ti,gain = <1>;55ti,datarate = <4>;56};57};58};59sysi {60compatible = "current-sense-shunt";61io-channels = <&tiadc 0>;62#io-channel-cells = <0>;6364/* Divide the voltage by 3300000/1000000 (or 3.3) for the current. */65shunt-resistor-micro-ohms = <3300000>;66};67...686970