summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/iio/adc/vf610-adc.txt
blob: 3eb40e20c1433753c355efe147137b2748e60ac4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Freescale vf610 Analog to Digital Converter bindings

The devicetree bindings are for the new ADC driver written for
vf610/i.MX6slx and upward SoCs from Freescale.

Required properties:
- compatible: Should contain "fsl,vf610-adc"
- reg: Offset and length of the register set for the device
- interrupts: Should contain the interrupt for the device
- clocks: The clock is needed by the ADC controller, ADC clock source is ipg clock.
- clock-names: Must contain "adc", matching entry in the clocks property.
- vref-supply: The regulator supply ADC reference voltage.

Recommended properties:
- fsl,adck-max-frequency: Maximum frequencies according to datasheets operating
  requirements. Three values are required, depending on conversion mode:
  - Frequency in normal mode (ADLPC=0, ADHSC=0)
  - Frequency in high-speed mode (ADLPC=0, ADHSC=1)
  - Frequency in low-power mode (ADLPC=1, ADHSC=0)

Example:
adc0: adc@4003b000 {
	compatible = "fsl,vf610-adc";
	reg = <0x4003b000 0x1000>;
	interrupts = <0 53 0x04>;
	clocks = <&clks VF610_CLK_ADC0>;
	clock-names = "adc";
	fsl,adck-max-frequency = <30000000>, <40000000>,
				<20000000>;
	vref-supply = <&reg_vcc_3v3_mcu>;
};