ads1015.txt 1.6 KB

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