Berlin 2 Analog to Digital Converter (ADC)
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/marvell,berlin2-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Antoine Tenart <antoine.tenart@free-electrons.com>"
The Berlin ADC has 8 channels, with one connected to a temperature sensor. It is part of the system controller register set. The ADC node should be a sub-node of the system controller node.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "marvell,berlin2-adc"
interrupts — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"adc"
Item 2
Exact value (
const):"tsen"
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "interrupts", "interrupt-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
sysctrl {
adc {
compatible = "marvell,berlin2-adc";
interrupt-parent = <&sic>;
interrupts = <12>, <14>;
interrupt-names = "adc", "tsen";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)