ti,ads7828.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/hwmon/ti,ads7828.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Texas Instruments ADS7828/ADS7830 Analog to Digital Converter (ADC)
  7. maintainers:
  8. - Krzysztof Kozlowski <krzk@kernel.org>
  9. description: |
  10. The ADS7828 is 12-Bit, 8-Channel Sampling Analog to Digital Converter (ADC)
  11. with an I2C interface.
  12. Datasheets:
  13. https://www.ti.com/product/ADS7828
  14. properties:
  15. compatible:
  16. enum:
  17. - ti,ads7828
  18. - ti,ads7830
  19. reg:
  20. maxItems: 1
  21. ti,differential-input:
  22. description:
  23. Set to use the device in differential mode.
  24. type: boolean
  25. vref-supply:
  26. description:
  27. The regulator to use as an external reference. If it does not exists the
  28. internal reference will be used.
  29. required:
  30. - compatible
  31. - reg
  32. additionalProperties: false
  33. examples:
  34. - |
  35. i2c {
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. adc@48 {
  39. compatible = "ti,ads7828";
  40. reg = <0x48>;
  41. vref-supply = <&vref>;
  42. ti,differential-input;
  43. };
  44. };