forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hwmon/adm1275: Support sense resistor parameter from dt
Allow a system to specify the value of an external sense resistor in the device tree. Signed-off-by: Joel Stanley <joel@jms.id.au>
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
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,19 @@ | ||
adm1275 temperature sensor | ||
-------------------------- | ||
|
||
Required property: | ||
|
||
- compatible: "adi,adm1278" | ||
- reg: i2c device address | ||
|
||
Optional property: | ||
|
||
- sense-resistor: external sense resistor value in milliOhms | ||
|
||
Example: | ||
|
||
sensor { | ||
reg = <0x11>; | ||
compatible = "adi,adm1278"; | ||
sense-resistor = < 100 > | ||
} |
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