amlogic,meson-saradc.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. * Amlogic Meson SAR (Successive Approximation Register) A/D converter
  2. Required properties:
  3. - compatible: depending on the SoC this should be one of:
  4. - "amlogic,meson8-saradc" for Meson8
  5. - "amlogic,meson8b-saradc" for Meson8b
  6. - "amlogic,meson8m2-saradc" for Meson8m2
  7. - "amlogic,meson-gxbb-saradc" for GXBB
  8. - "amlogic,meson-gxl-saradc" for GXL
  9. - "amlogic,meson-gxm-saradc" for GXM
  10. - "amlogic,meson-axg-saradc" for AXG
  11. along with the generic "amlogic,meson-saradc"
  12. - reg: the physical base address and length of the registers
  13. - interrupts: the interrupt indicating end of sampling
  14. - clocks: phandle and clock identifier (see clock-names)
  15. - clock-names: mandatory clocks:
  16. - "clkin" for the reference clock (typically XTAL)
  17. - "core" for the SAR ADC core clock
  18. optional clocks:
  19. - "adc_clk" for the ADC (sampling) clock
  20. - "adc_sel" for the ADC (sampling) clock mux
  21. - vref-supply: the regulator supply for the ADC reference voltage
  22. - #io-channel-cells: must be 1, see ../iio-bindings.txt
  23. Example:
  24. saradc: adc@8680 {
  25. compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
  26. #io-channel-cells = <1>;
  27. reg = <0x0 0x8680 0x0 0x34>;
  28. interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
  29. clocks = <&xtal>,
  30. <&clkc CLKID_SAR_ADC>,
  31. <&clkc CLKID_SANA>,
  32. <&clkc CLKID_SAR_ADC_CLK>,
  33. <&clkc CLKID_SAR_ADC_SEL>;
  34. clock-names = "clkin", "core", "sana", "adc_clk", "adc_sel";
  35. };