Commit | Line | Data |
---|---|---|
1e1ab0b9 TM |
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. | |
816abe42 | 9 | - resets : phandle to the reset control for this device. |
1e1ab0b9 TM |
10 | |
11 | Optional 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 | ||
1e1ab0b9 TM |
18 | Example: |
19 | ||
20 | adc: 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>; | |
816abe42 | 25 | resets = <&rstc NPCM7XX_RESET_IPSRST1 NPCM7XX_RESET_ADC>; |
1e1ab0b9 | 26 | }; |