This repository contains a driver for TI ADS7138 8-Channel 12-Bit ADC.
&i2c1 {
...
adc: ads7138@16 {
compatible = "ti,ads7138";
reg = <0x16>;
AVDD-supply = <®_5p0v>;
};
...
}
$ cat /sys/class/hwmon/hwmon1/in0_input
5000
Returned value is the voltage in millivolts (mV).