Path: blob/main/sys/contrib/device-tree/Bindings/iio/afe/current-sense-shunt.txt
48524 views
Current Sense Shunt1===================23When an io-channel measures the voltage over a current sense shunt,4the interesting measurement is almost always the current through the5shunt, not the voltage over it. This binding describes such a current6sense circuit.78Required properties:9- compatible : "current-sense-shunt"10- io-channels : Channel node of a voltage io-channel.11- shunt-resistor-micro-ohms : The shunt resistance in microohms.1213Example:14The system current is measured by measuring the voltage over a153.3 ohms shunt resistor.1617sysi {18compatible = "current-sense-shunt";19io-channels = <&tiadc 0>;2021/* Divide the voltage by 3300000/1000000 (or 3.3) for the current. */22shunt-resistor-micro-ohms = <3300000>;23};2425&i2c {26tiadc: adc@48 {27compatible = "ti,ads1015";28reg = <0x48>;29#io-channel-cells = <1>;3031#address-cells = <1>;32#size-cells = <0>;3334channel@0 { /* IN0,IN1 differential */35reg = <0>;36ti,gain = <1>;37ti,datarate = <4>;38};39};40};414243