mcp320x.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. * Microchip Analog to Digital Converter (ADC)
  2. The node for this driver must be a child node of a SPI controller, hence
  3. all mandatory properties described in
  4. Documentation/devicetree/bindings/spi/spi-bus.txt
  5. must be specified.
  6. Required properties:
  7. - compatible: Must be one of the following, depending on the
  8. model:
  9. "mcp3001" (DEPRECATED)
  10. "mcp3002" (DEPRECATED)
  11. "mcp3004" (DEPRECATED)
  12. "mcp3008" (DEPRECATED)
  13. "mcp3201" (DEPRECATED)
  14. "mcp3202" (DEPRECATED)
  15. "mcp3204" (DEPRECATED)
  16. "mcp3208" (DEPRECATED)
  17. "mcp3301" (DEPRECATED)
  18. "microchip,mcp3001"
  19. "microchip,mcp3002"
  20. "microchip,mcp3004"
  21. "microchip,mcp3008"
  22. "microchip,mcp3201"
  23. "microchip,mcp3202"
  24. "microchip,mcp3204"
  25. "microchip,mcp3208"
  26. "microchip,mcp3301"
  27. "microchip,mcp3550-50"
  28. "microchip,mcp3550-60"
  29. "microchip,mcp3551"
  30. "microchip,mcp3553"
  31. NOTE: The use of the compatibles with no vendor prefix
  32. is deprecated and only listed because old DT use them.
  33. - spi-cpha, spi-cpol (boolean):
  34. Either SPI mode (0,0) or (1,1) must be used, so specify
  35. none or both of spi-cpha, spi-cpol. The MCP3550/1/3
  36. is more efficient in mode (1,1) as only 3 instead of
  37. 4 bytes need to be read from the ADC, but not all SPI
  38. masters support it.
  39. - vref-supply: Phandle to the external reference voltage supply.
  40. Examples:
  41. spi_controller {
  42. mcp3x0x@0 {
  43. compatible = "microchip,mcp3002";
  44. reg = <0>;
  45. spi-max-frequency = <1000000>;
  46. vref-supply = <&vref_reg>;
  47. };
  48. };