ad5755.txt 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. * Analog Device AD5755 IIO Multi-Channel DAC Linux Driver
  2. Required properties:
  3. - compatible: Has to contain one of the following:
  4. adi,ad5755
  5. adi,ad5755-1
  6. adi,ad5757
  7. adi,ad5735
  8. adi,ad5737
  9. - reg: spi chip select number for the device
  10. - spi-cpha or spi-cpol: is the only modes that is supported
  11. Recommended properties:
  12. - spi-max-frequency: Definition as per
  13. Documentation/devicetree/bindings/spi/spi-bus.txt
  14. Optional properties:
  15. See include/dt-bindings/iio/ad5755.h
  16. - adi,ext-dc-dc-compenstation-resistor: boolean set if the hardware have an
  17. external resistor and thereby bypasses
  18. the internal compensation resistor.
  19. - adi,dc-dc-phase:
  20. Valid values for DC DC Phase control is:
  21. 0: All dc-to-dc converters clock on the same edge.
  22. 1: Channel A and Channel B clock on the same edge,
  23. Channel C and Channel D clock on opposite edges.
  24. 2: Channel A and Channel C clock on the same edge,
  25. Channel B and Channel D clock on opposite edges.
  26. 3: Channel A, Channel B, Channel C, and Channel D
  27. clock 90 degrees out of phase from each other.
  28. - adi,dc-dc-freq-hz:
  29. Valid values for DC DC frequency is [Hz]:
  30. 250000
  31. 410000
  32. 650000
  33. - adi,dc-dc-max-microvolt:
  34. Valid values for the maximum allowed Vboost voltage supplied by
  35. the dc-to-dc converter is:
  36. 23000000
  37. 24500000
  38. 27000000
  39. 29500000
  40. Optional for every channel:
  41. - adi,mode:
  42. Valid values for DAC modes is:
  43. 0: 0 V to 5 V voltage range.
  44. 1: 0 V to 10 V voltage range.
  45. 2: Plus minus 5 V voltage range.
  46. 3: Plus minus 10 V voltage range.
  47. 4: 4 mA to 20 mA current range.
  48. 5: 0 mA to 20 mA current range.
  49. 6: 0 mA to 24 mA current range.
  50. - adi,ext-current-sense-resistor: boolean set if the hardware a external
  51. current sense resistor.
  52. - adi,enable-voltage-overrange: boolean enable voltage overrange
  53. - adi,slew: Array of slewrate settings should contain 3 fields:
  54. 1: Should be either 0 or 1 in order to enable or disable slewrate.
  55. 2: Slew rate settings:
  56. Valid values for the slew rate update frequency:
  57. 64000
  58. 32000
  59. 16000
  60. 8000
  61. 4000
  62. 2000
  63. 1000
  64. 500
  65. 250
  66. 125
  67. 64
  68. 32
  69. 16
  70. 8
  71. 4
  72. 0
  73. 3: Slew step size:
  74. Valid values for the step size LSBs:
  75. 1
  76. 2
  77. 4
  78. 16
  79. 32
  80. 64
  81. 128
  82. 256
  83. Example:
  84. dac@0 {
  85. #address-cells = <1>;
  86. #size-cells = <0>;
  87. compatible = "adi,ad5755";
  88. reg = <0>;
  89. spi-max-frequency = <1000000>;
  90. spi-cpha;
  91. adi,dc-dc-phase = <0>;
  92. adi,dc-dc-freq-hz = <410000>;
  93. adi,dc-dc-max-microvolt = <23000000>;
  94. channel@0 {
  95. reg = <0>;
  96. adi,mode = <4>;
  97. adi,ext-current-sense-resistor;
  98. adi,slew = <0 64000 1>;
  99. };
  100. channel@1 {
  101. reg = <1>;
  102. adi,mode = <4>;
  103. adi,ext-current-sense-resistor;
  104. adi,slew = <0 64000 1>;
  105. };
  106. channel@2 {
  107. reg = <2>;
  108. adi,mode = <4>;
  109. adi,ext-current-sense-resistor;
  110. adi,slew = <0 64000 1>;
  111. };
  112. channel@3 {
  113. reg = <3>;
  114. adi,mode = <4>;
  115. adi,ext-current-sense-resistor;
  116. adi,slew = <0 64000 1>;
  117. };
  118. };