fsl,imx25-gcq.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Freescale i.MX25 ADC GCQ device
  2. This is a generic conversion queue device that can convert any of the
  3. analog inputs using the ADC unit of the i.MX25.
  4. Required properties:
  5. - compatible: Should be "fsl,imx25-gcq".
  6. - reg: Should be the register range of the module.
  7. - interrupts: Should be the interrupt number of the module.
  8. Typically this is <1>.
  9. - #address-cells: Should be <1> (setting for the subnodes)
  10. - #size-cells: Should be <0> (setting for the subnodes)
  11. Optional properties:
  12. - vref-ext-supply: The regulator supplying the ADC reference voltage.
  13. Required when at least one subnode uses the this reference.
  14. - vref-xp-supply: The regulator supplying the ADC reference voltage on pin XP.
  15. Required when at least one subnode uses this reference.
  16. - vref-yp-supply: The regulator supplying the ADC reference voltage on pin YP.
  17. Required when at least one subnode uses this reference.
  18. Sub-nodes:
  19. Optionally you can define subnodes which define the reference voltage
  20. for the analog inputs.
  21. Required properties for subnodes:
  22. - reg: Should be the number of the analog input.
  23. 0: xp
  24. 1: yp
  25. 2: xn
  26. 3: yn
  27. 4: wiper
  28. 5: inaux0
  29. 6: inaux1
  30. 7: inaux2
  31. Optional properties for subnodes:
  32. - fsl,adc-refp: specifies the positive reference input as defined in
  33. <dt-bindings/iio/adc/fsl-imx25-gcq.h>
  34. - fsl,adc-refn: specifies the negative reference input as defined in
  35. <dt-bindings/iio/adc/fsl-imx25-gcq.h>
  36. Example:
  37. adc: adc@50030800 {
  38. compatible = "fsl,imx25-gcq";
  39. reg = <0x50030800 0x60>;
  40. interrupt-parent = <&tscadc>;
  41. interrupts = <1>;
  42. #address-cells = <1>;
  43. #size-cells = <0>;
  44. inaux@5 {
  45. reg = <5>;
  46. fsl,adc-refp = <MX25_ADC_REFP_INT>;
  47. fsl,adc-refn = <MX25_ADC_REFN_NGND>;
  48. };
  49. };