mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
a8ddfea095
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>
26 lines
578 B
Plaintext
26 lines
578 B
Plaintext
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;
|
|
};
|