Path: blob/main/sys/contrib/device-tree/Bindings/iio/adc/ads1015.txt
48406 views
ADS1015 (I2C)12This device is a 12-bit A-D converter with 4 inputs.34The inputs can be used single ended or in certain differential combinations.56For configuration all possible combinations are mapped to 8 channels:70: Voltage over AIN0 and AIN1.81: Voltage over AIN0 and AIN3.92: Voltage over AIN1 and AIN3.103: Voltage over AIN2 and AIN3.114: Voltage over AIN0 and GND.125: Voltage over AIN1 and GND.136: Voltage over AIN2 and GND.147: Voltage over AIN3 and GND.1516Each channel can be configured individually:17- pga is the programmable gain amplifier (values are full scale)180: +/- 6.144 V191: +/- 4.096 V202: +/- 2.048 V (default)213: +/- 1.024 V224: +/- 0.512 V235: +/- 0.256 V24- data_rate in samples per second250: 128261: 250272: 490283: 920294: 1600 (default)305: 2400316: 330032331) The /ads1015 node3435Required properties:3637- compatible : must be "ti,ads1015"38- reg : I2C bus address of the device39- #address-cells : must be <1>40- #size-cells : must be <0>4142The node contains child nodes for each channel that the platform uses.4344Example ADS1015 node:4546ads1015@49 {47compatible = "ti,ads1015";48reg = <0x49>;49#address-cells = <1>;50#size-cells = <0>;5152[ child node definitions... ]53}54552) channel nodes5657Required properties:5859- reg : the channel number6061Optional properties:6263- ti,gain : the programmable gain amplifier setting64- ti,datarate : the converter data rate6566Example ADS1015 channel node:6768channel@4 {69reg = <4>;70ti,gain = <3>;71ti,datarate = <5>;72};737475