1*c66ec88fSEmmanuel VadotADS1015 (I2C) 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotThis device is a 12-bit A-D converter with 4 inputs. 4*c66ec88fSEmmanuel Vadot 5*c66ec88fSEmmanuel VadotThe inputs can be used single ended or in certain differential combinations. 6*c66ec88fSEmmanuel Vadot 7*c66ec88fSEmmanuel VadotFor configuration all possible combinations are mapped to 8 channels: 8*c66ec88fSEmmanuel Vadot 0: Voltage over AIN0 and AIN1. 9*c66ec88fSEmmanuel Vadot 1: Voltage over AIN0 and AIN3. 10*c66ec88fSEmmanuel Vadot 2: Voltage over AIN1 and AIN3. 11*c66ec88fSEmmanuel Vadot 3: Voltage over AIN2 and AIN3. 12*c66ec88fSEmmanuel Vadot 4: Voltage over AIN0 and GND. 13*c66ec88fSEmmanuel Vadot 5: Voltage over AIN1 and GND. 14*c66ec88fSEmmanuel Vadot 6: Voltage over AIN2 and GND. 15*c66ec88fSEmmanuel Vadot 7: Voltage over AIN3 and GND. 16*c66ec88fSEmmanuel Vadot 17*c66ec88fSEmmanuel VadotEach channel can be configured individually: 18*c66ec88fSEmmanuel Vadot - pga is the programmable gain amplifier (values are full scale) 19*c66ec88fSEmmanuel Vadot 0: +/- 6.144 V 20*c66ec88fSEmmanuel Vadot 1: +/- 4.096 V 21*c66ec88fSEmmanuel Vadot 2: +/- 2.048 V (default) 22*c66ec88fSEmmanuel Vadot 3: +/- 1.024 V 23*c66ec88fSEmmanuel Vadot 4: +/- 0.512 V 24*c66ec88fSEmmanuel Vadot 5: +/- 0.256 V 25*c66ec88fSEmmanuel Vadot - data_rate in samples per second 26*c66ec88fSEmmanuel Vadot 0: 128 27*c66ec88fSEmmanuel Vadot 1: 250 28*c66ec88fSEmmanuel Vadot 2: 490 29*c66ec88fSEmmanuel Vadot 3: 920 30*c66ec88fSEmmanuel Vadot 4: 1600 (default) 31*c66ec88fSEmmanuel Vadot 5: 2400 32*c66ec88fSEmmanuel Vadot 6: 3300 33*c66ec88fSEmmanuel Vadot 34*c66ec88fSEmmanuel Vadot1) The /ads1015 node 35*c66ec88fSEmmanuel Vadot 36*c66ec88fSEmmanuel Vadot Required properties: 37*c66ec88fSEmmanuel Vadot 38*c66ec88fSEmmanuel Vadot - compatible : must be "ti,ads1015" 39*c66ec88fSEmmanuel Vadot - reg : I2C bus address of the device 40*c66ec88fSEmmanuel Vadot - #address-cells : must be <1> 41*c66ec88fSEmmanuel Vadot - #size-cells : must be <0> 42*c66ec88fSEmmanuel Vadot 43*c66ec88fSEmmanuel Vadot The node contains child nodes for each channel that the platform uses. 44*c66ec88fSEmmanuel Vadot 45*c66ec88fSEmmanuel Vadot Example ADS1015 node: 46*c66ec88fSEmmanuel Vadot 47*c66ec88fSEmmanuel Vadot ads1015@49 { 48*c66ec88fSEmmanuel Vadot compatible = "ti,ads1015"; 49*c66ec88fSEmmanuel Vadot reg = <0x49>; 50*c66ec88fSEmmanuel Vadot #address-cells = <1>; 51*c66ec88fSEmmanuel Vadot #size-cells = <0>; 52*c66ec88fSEmmanuel Vadot 53*c66ec88fSEmmanuel Vadot [ child node definitions... ] 54*c66ec88fSEmmanuel Vadot } 55*c66ec88fSEmmanuel Vadot 56*c66ec88fSEmmanuel Vadot2) channel nodes 57*c66ec88fSEmmanuel Vadot 58*c66ec88fSEmmanuel Vadot Required properties: 59*c66ec88fSEmmanuel Vadot 60*c66ec88fSEmmanuel Vadot - reg : the channel number 61*c66ec88fSEmmanuel Vadot 62*c66ec88fSEmmanuel Vadot Optional properties: 63*c66ec88fSEmmanuel Vadot 64*c66ec88fSEmmanuel Vadot - ti,gain : the programmable gain amplifier setting 65*c66ec88fSEmmanuel Vadot - ti,datarate : the converter data rate 66*c66ec88fSEmmanuel Vadot 67*c66ec88fSEmmanuel Vadot Example ADS1015 channel node: 68*c66ec88fSEmmanuel Vadot 69*c66ec88fSEmmanuel Vadot channel@4 { 70*c66ec88fSEmmanuel Vadot reg = <4>; 71*c66ec88fSEmmanuel Vadot ti,gain = <3>; 72*c66ec88fSEmmanuel Vadot ti,datarate = <5>; 73*c66ec88fSEmmanuel Vadot }; 74