dpot-dac.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Bindings for DAC emulation using a digital potentiometer
  2. It is assumed that the dpot is used as a voltage divider between the
  3. current dpot wiper setting and the maximum resistance of the dpot. The
  4. divided voltage is provided by a vref regulator.
  5. .------.
  6. .-----------. | |
  7. | vref |--' .---.
  8. | regulator |--. | |
  9. '-----------' | | d |
  10. | | p |
  11. | | o | wiper
  12. | | t |<---------+
  13. | | |
  14. | '---' dac output voltage
  15. | |
  16. '------+------------+
  17. Required properties:
  18. - compatible: Should be "dpot-dac"
  19. - vref-supply: The regulator supplying the voltage divider.
  20. - io-channels: Channel node of the dpot to be used for the voltage division.
  21. - io-channel-names: Should be "dpot".
  22. Example:
  23. &i2c {
  24. dpot: mcp4651-503@28 {
  25. compatible = "microchip,mcp4651-503";
  26. reg = <0x28>;
  27. #io-channel-cells = <1>;
  28. };
  29. };
  30. dac {
  31. compatible = "dpot-dac";
  32. vref-supply = <&reg_3v3>;
  33. io-channels = <&dpot 0>;
  34. io-channel-names = "dpot";
  35. };