Linux-libre 5.3.12-gnu
[librecmc/linux-libre.git] / Documentation / devicetree / bindings / iio / adc / nuvoton,npcm-adc.txt
1 Nuvoton NPCM Analog to Digital Converter (ADC)
2
3 The NPCM ADC is a 10-bit converter for eight channel inputs.
4
5 Required properties:
6 - compatible: "nuvoton,npcm750-adc" for the NPCM7XX BMC.
7 - reg: specifies physical base address and size of the registers.
8 - interrupts: Contain the ADC interrupt with flags for falling edge.
9
10 Optional properties:
11 - clocks: phandle of ADC reference clock, in case the clock is not
12                   added the ADC will use the default ADC sample rate.
13 - vref-supply: The regulator supply ADC reference voltage, in case the
14                            vref-supply is not added the ADC will use internal voltage
15                            reference.
16
17 Example:
18
19 adc: adc@f000c000 {
20         compatible = "nuvoton,npcm750-adc";
21         reg = <0xf000c000 0x8>;
22         interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
23         clocks = <&clk NPCM7XX_CLK_ADC>;
24 };