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