summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/iio/afe/current-sense-shunt.txt
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2021-01-19 05:41:43 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-01-19 05:41:43 +0100
commita0633c4cbc3c06c4e6de0505e02a9585020b3497 (patch)
tree3784abccebad9a596bd3eac3f72d883d97ba6714 /dts/Bindings/iio/afe/current-sense-shunt.txt
parentd595653acba82fde36f67c86b88109decd09ddab (diff)
parent89b195969ec4dd07c7a8dfbd2f3f1eb83ead4c16 (diff)
downloadbarebox-a0633c4cbc3c06c4e6de0505e02a9585020b3497.tar.gz
barebox-a0633c4cbc3c06c4e6de0505e02a9585020b3497.tar.xz
Merge branch 'for-next/dts'
Diffstat (limited to 'dts/Bindings/iio/afe/current-sense-shunt.txt')
-rw-r--r--dts/Bindings/iio/afe/current-sense-shunt.txt41
1 files changed, 0 insertions, 41 deletions
diff --git a/dts/Bindings/iio/afe/current-sense-shunt.txt b/dts/Bindings/iio/afe/current-sense-shunt.txt
deleted file mode 100644
index 0f67108a07..0000000000
--- a/dts/Bindings/iio/afe/current-sense-shunt.txt
+++ /dev/null
@@ -1,41 +0,0 @@
-Current Sense Shunt
-===================
-
-When an io-channel measures the voltage over a current sense shunt,
-the interesting measurement is almost always the current through the
-shunt, not the voltage over it. This binding describes such a current
-sense circuit.
-
-Required properties:
-- compatible : "current-sense-shunt"
-- io-channels : Channel node of a voltage io-channel.
-- shunt-resistor-micro-ohms : The shunt resistance in microohms.
-
-Example:
-The system current is measured by measuring the voltage over a
-3.3 ohms shunt resistor.
-
-sysi {
- compatible = "current-sense-shunt";
- io-channels = <&tiadc 0>;
-
- /* Divide the voltage by 3300000/1000000 (or 3.3) for the current. */
- shunt-resistor-micro-ohms = <3300000>;
-};
-
-&i2c {
- tiadc: adc@48 {
- compatible = "ti,ads1015";
- reg = <0x48>;
- #io-channel-cells = <1>;
-
- #address-cells = <1>;
- #size-cells = <0>;
-
- channel@0 { /* IN0,IN1 differential */
- reg = <0>;
- ti,gain = <1>;
- ti,datarate = <4>;
- };
- };
-};