Peter Rosin | 2e9a128 | 2018-04-23 23:08:08 +0200 | [diff] [blame] | 1 | Current Sense Amplifier |
| 2 | ======================= |
| 3 | |
| 4 | When an io-channel measures the output voltage from a current sense |
Geert Uytterhoeven | bed1895 | 2018-05-15 15:06:24 +0200 | [diff] [blame^] | 5 | amplifier, the interesting measurement is almost always the current |
Peter Rosin | 2e9a128 | 2018-04-23 23:08:08 +0200 | [diff] [blame] | 6 | through the sense resistor, not the voltage output. This binding |
| 7 | describes such a current sense circuit. |
| 8 | |
| 9 | Required properties: |
| 10 | - compatible : "current-sense-amplifier" |
| 11 | - io-channels : Channel node of a voltage io-channel. |
| 12 | - sense-resistor-micro-ohms : The sense resistance in microohms. |
| 13 | |
| 14 | Optional properties: |
| 15 | - sense-gain-mult: Amplifier gain multiplier. The default is <1>. |
| 16 | - sense-gain-div: Amplifier gain divider. The default is <1>. |
| 17 | |
| 18 | Example: |
| 19 | |
| 20 | sysi { |
| 21 | compatible = "current-sense-amplifier"; |
| 22 | io-channels = <&tiadc 0>; |
| 23 | |
| 24 | sense-resistor-micro-ohms = <20000>; |
| 25 | sense-gain-mul = <50>; |
| 26 | }; |