-
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: (ads7828) Accept optional parameters from device tree
Adding the ability for the ads7828 and ads7830 to use device tree to get optional parameters instead of using platform devices. This allows people using custom boards to also use the ads7828 in a non-default manner. Signed-off-by: Sam Povilus <kernel.development@povil.us> [groeck: Fixed whitespace errors in ads7828.txt] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
- Loading branch information
Sam Povilus
authored and
Guenter Roeck
committed
Apr 2, 2017
1 parent
a4811b6
commit a8ddfea
Showing
2 changed files
with
40 additions
and
0 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,25 @@ | ||
ads7828 properties | ||
|
||
Required properties: | ||
- compatible: Should be one of | ||
ti,ads7828 | ||
ti,ads7830 | ||
- reg: I2C address | ||
|
||
Optional properties: | ||
|
||
- ti,differential-input | ||
Set to use the device in differential mode. | ||
- vref-supply | ||
The external reference on the device is set to this regulators output. If it | ||
does not exists the internal reference will be used and output by the ads78xx | ||
on the "external vref" pin. | ||
|
||
Example ADS7828 node: | ||
|
||
ads7828: ads@48 { | ||
comatible = "ti,ads7828"; | ||
reg = <0x48>; | ||
vref-supply = <&vref>; | ||
ti,differential-input; | ||
}; |
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