-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hwmon: (ina2xx) Add device tree support to pass the shunt resistor
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>
- Loading branch information
Tang Yuantian
authored and
Guenter Roeck
committed
Jun 27, 2013
1 parent
87438c2
commit 31e7ad7
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
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>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters