Nuvoton NPCM BMC Analog to Digital Converter (ADC)
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/nuvoton,npcm750-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tomer Maimon <tmaimon77@gmail.com>"
The NPCM7XX ADC is a 10-bit converter and NPCM8XX ADC is a 12-bit converter, both have eight channel inputs.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nuvoton,npcm750-adc", "nuvoton,npcm845-adc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
ADC interrupt, should be set for falling edge.
resets — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
If not provided the defulat ADC sample rate will be used.
vref-supply — not listed as required here #
If not supplied, the internal voltage reference will be used.
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "resets"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/nuvoton,npcm7xx-clock.h>
#include <dt-bindings/reset/nuvoton,npcm7xx-reset.h>
soc {
#address-cells = <1>;
#size-cells = <1>;
adc@f000c000 {
compatible = "nuvoton,npcm750-adc";
reg = <0xf000c000 0x8>;
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk NPCM7XX_CLK_ADC>;
resets = <&rstc NPCM7XX_RESET_IPSRST1 NPCM7XX_RESET_ADC>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)