xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/nuvoton,npcm-adc.txt (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1Nuvoton NPCM Analog to Digital Converter (ADC)
2
3The NPCM ADC is a 10-bit converter for eight channel inputs.
4
5Required 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- resets : phandle to the reset control for this device.
10
11Optional properties:
12- clocks: phandle of ADC reference clock, in case the clock is not
13		  added the ADC will use the default ADC sample rate.
14- vref-supply: The regulator supply ADC reference voltage, in case the
15			   vref-supply is not added the ADC will use internal voltage
16			   reference.
17
18Example:
19
20adc: adc@f000c000 {
21	compatible = "nuvoton,npcm750-adc";
22	reg = <0xf000c000 0x8>;
23	interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
24	clocks = <&clk NPCM7XX_CLK_ADC>;
25	resets = <&rstc NPCM7XX_RESET_IPSRST1 NPCM7XX_RESET_ADC>;
26};
27