18c2ecf20Sopenharmony_ciCurrent Sense Amplifier
28c2ecf20Sopenharmony_ci=======================
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ciWhen an io-channel measures the output voltage from a current sense
58c2ecf20Sopenharmony_ciamplifier, the interesting measurement is almost always the current
68c2ecf20Sopenharmony_cithrough the sense resistor, not the voltage output. This binding
78c2ecf20Sopenharmony_cidescribes such a current sense circuit.
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciRequired properties:
108c2ecf20Sopenharmony_ci- compatible : "current-sense-amplifier"
118c2ecf20Sopenharmony_ci- io-channels : Channel node of a voltage io-channel.
128c2ecf20Sopenharmony_ci- sense-resistor-micro-ohms : The sense resistance in microohms.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciOptional properties:
158c2ecf20Sopenharmony_ci- sense-gain-mult: Amplifier gain multiplier. The default is <1>.
168c2ecf20Sopenharmony_ci- sense-gain-div: Amplifier gain divider. The default is <1>.
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciExample:
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_cisysi {
218c2ecf20Sopenharmony_ci	compatible = "current-sense-amplifier";
228c2ecf20Sopenharmony_ci	io-channels = <&tiadc 0>;
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci	sense-resistor-micro-ohms = <20000>;
258c2ecf20Sopenharmony_ci	sense-gain-mul = <50>;
268c2ecf20Sopenharmony_ci};
27