xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/imx7d-adc.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotFreescale imx7d ADC bindings
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe devicetree bindings are for the ADC driver written for
4*c66ec88fSEmmanuel Vadotimx7d SoC.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotRequired properties:
7*c66ec88fSEmmanuel Vadot- compatible: Should be "fsl,imx7d-adc"
8*c66ec88fSEmmanuel Vadot- reg: Offset and length of the register set for the ADC device
9*c66ec88fSEmmanuel Vadot- interrupts: The interrupt number for the ADC device
10*c66ec88fSEmmanuel Vadot- clocks: The root clock of the ADC controller
11*c66ec88fSEmmanuel Vadot- clock-names: Must contain "adc", matching entry in the clocks property
12*c66ec88fSEmmanuel Vadot- vref-supply: The regulator supply ADC reference voltage
13*c66ec88fSEmmanuel Vadot- #io-channel-cells: Must be 1 as per ../iio-bindings.txt
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotExample:
16*c66ec88fSEmmanuel Vadotadc1: adc@30610000 {
17*c66ec88fSEmmanuel Vadot	compatible = "fsl,imx7d-adc";
18*c66ec88fSEmmanuel Vadot	reg = <0x30610000 0x10000>;
19*c66ec88fSEmmanuel Vadot	interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
20*c66ec88fSEmmanuel Vadot	clocks = <&clks IMX7D_ADC_ROOT_CLK>;
21*c66ec88fSEmmanuel Vadot	clock-names = "adc";
22*c66ec88fSEmmanuel Vadot	vref-supply = <&reg_vcc_3v3_mcu>;
23*c66ec88fSEmmanuel Vadot	#io-channel-cells = <1>;
24*c66ec88fSEmmanuel Vadot};
25