NXP Successive Approximation ADC
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/nxp,s32g2-sar-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The NXP SAR ADC provides fast and accurate analog-to-digital conversion using the Successive Approximation Register (SAR) method. It has 12-bit resolution with 8 input channels. Conversions can be launched in software or using hardware triggers. It supports continuous and one-shot modes with separate registers.
Maintainers (maintainers): "Daniel Lezcano <daniel.lezcano@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"nxp,s32g2-sar-adc"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"nxp,s32g3-sar-adc"Item 2
Exact value (
const):"nxp,s32g2-sar-adc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
dmas — required here #
Maximum number of items (maxItems): 1
dma-names — required here #
Exact value (const): "rx"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "dmas", "dma-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
adc@401f8000 {
compatible = "nxp,s32g2-sar-adc";
reg = <0x401f8000 0x1000>;
interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks 0x41>;
dmas = <&edma0 0 32>;
dma-names = "rx";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)