diff options
author | Sam Povilus <kernel.development@povil.us> | 2017-03-29 21:46:37 -0600 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2017-04-02 07:01:53 -0700 |
commit | a8ddfea09566c37aabe70fbb6d07ff232982c9f4 (patch) | |
tree | 84498c3c597cd25339c01e011375c82435a6ccc8 /Documentation/devicetree/bindings/hwmon/ads7828.txt | |
parent | a4811b6cb4069eb2f17ffebcd29f2e5b0f76ee31 (diff) |
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>
Diffstat (limited to 'Documentation/devicetree/bindings/hwmon/ads7828.txt')
-rw-r--r-- | Documentation/devicetree/bindings/hwmon/ads7828.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/hwmon/ads7828.txt b/Documentation/devicetree/bindings/hwmon/ads7828.txt new file mode 100644 index 000000000000..fe0cc4ad7ea9 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/ads7828.txt @@ -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; + }; |