Maxim MAX1027 and similar ADCs
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/maxim,max1027.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>", "Philippe Reynes <tremyfr@yahoo.fr>"
300ks/s SPI ADCs with temperature sensors.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxim,max1027", "maxim,max1029", "maxim,max1031", "maxim,max1227", "maxim,max1229", "maxim,max1231"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 10000000
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
maxadc: adc@0 {
compatible = "maxim,max1027";
reg = <0>;
#io-channel-cells = <1>;
interrupt-parent = <&gpio5>;
interrupts = <15 IRQ_TYPE_EDGE_RISING>;
spi-max-frequency = <1000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 19: 10-bit 8 channels
Line 21: 10-bit 12 channels
Line 23: 10-bit 16 channels
Line 25: 12-bit 8 channels
Line 27: 12-bit 12 channels
Line 29: 12-bit 16 channels