treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / iio / adc / brcm,iproc-static-adc.txt
blob7b1b1e4086d4f1eb11a12bfba7a256e1aba86727
1 * Broadcom's IPROC Static ADC controller
3 Broadcom iProc ADC controller has 8 channels 10bit ADC.
4 Allows user to convert analog input voltage values to digital.
6 Required properties:
8 - compatible: Must be "brcm,iproc-static-adc"
10 - adc-syscon: Handler of syscon node defining physical base address of the
11   controller and length of memory mapped region.
13 - #io-channel-cells = <1>; As ADC has multiple outputs
14   refer to Documentation/devicetree/bindings/iio/iio-bindings.txt for details.
16 - io-channel-ranges:
17   refer to Documentation/devicetree/bindings/iio/iio-bindings.txt for details.
19 - clocks: Clock used for this block.
21 - clock-names: Clock name should be given as tsc_clk.
23 - interrupts: interrupt line number.
25 For example:
27         ts_adc_syscon: ts_adc_syscon@180a6000 {
28                 compatible = "brcm,iproc-ts-adc-syscon","syscon";
29                 reg = <0x180a6000 0xc30>;
30         };
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         };