forked from Minki/linux
31e7ad74f6
Adding another way that is device tree to pass the shunt resistor value to driver except for platform data. Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com> [Guenter Roeck: Added missing of.h include] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
23 lines
376 B
Plaintext
23 lines
376 B
Plaintext
ina2xx properties
|
|
|
|
Required properties:
|
|
- compatible: Must be one of the following:
|
|
- "ti,ina219" for ina219
|
|
- "ti,ina220" for ina220
|
|
- "ti,ina226" for ina226
|
|
- "ti,ina230" for ina230
|
|
- reg: I2C address
|
|
|
|
Optional properties:
|
|
|
|
- shunt-resistor
|
|
Shunt resistor value in micro-Ohm
|
|
|
|
Example:
|
|
|
|
ina220@44 {
|
|
compatible = "ti,ina220";
|
|
reg = <0x44>;
|
|
shunt-resistor = <1000>;
|
|
};
|