brcm,iproc-static-adc.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. * Broadcom's IPROC Static ADC controller
  2. Broadcom iProc ADC controller has 8 channels 10bit ADC.
  3. Allows user to convert analog input voltage values to digital.
  4. Required properties:
  5. - compatible: Must be "brcm,iproc-static-adc"
  6. - adc-syscon: Handler of syscon node defining physical base address of the
  7. controller and length of memory mapped region.
  8. - #io-channel-cells = <1>; As ADC has multiple outputs
  9. refer to Documentation/devicetree/bindings/iio/iio-bindings.txt for details.
  10. - io-channel-ranges:
  11. refer to Documentation/devicetree/bindings/iio/iio-bindings.txt for details.
  12. - clocks: Clock used for this block.
  13. - clock-names: Clock name should be given as tsc_clk.
  14. - interrupts: interrupt line number.
  15. For example:
  16. ts_adc_syscon: ts_adc_syscon@180a6000 {
  17. compatible = "brcm,iproc-ts-adc-syscon","syscon";
  18. reg = <0x180a6000 0xc30>;
  19. };
  20. adc: adc@180a6000 {
  21. compatible = "brcm,iproc-static-adc";
  22. adc-syscon = <&ts_adc_syscon>;
  23. #io-channel-cells = <1>;
  24. io-channel-ranges;
  25. clocks = <&asiu_clks BCM_CYGNUS_ASIU_ADC_CLK>;
  26. clock-names = "tsc_clk";
  27. interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
  28. status = "disabled";
  29. };