Industrial I/O bindings
Single-page view · as markdown
ADIS16201 Dual Axis Inclinometer and similar
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/adi,adis16201.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <Jonathan.Cameron@huawei.com>"
Two similar parts from external interface point of view.
SPI interface.
https://www.analog.com/en/products/adis16201.html
https://www.analog.com/en/products/adis16209.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adis16201", "adi,adis16209"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
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>;
accelerometer@0 {
compatible = "adi,adis16201";
reg = <0>;
spi-max-frequency = <2500000>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
ADIS16240 Programmable Impact Sensor and Recorder driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/adi,adis16240.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcelo Schmitt <marcelo.schmitt@analog.com>", "Nuno Sá <nuno.sa@analog.com>"
ADIS16240 Programmable Impact Sensor and Recorder driver that supports
SPI interface.
https://www.analog.com/en/products/adis16240.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adis16240"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
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>;
/* Example for a SPI device node */
accelerometer@0 {
compatible = "adi,adis16240";
reg = <0>;
spi-max-frequency = <2500000>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices ADXL312, ADXL313, and ADXL314 3-Axis Digital Accelerometers
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/adi,adxl313.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lucas Stankus <lucas.p.stankus@gmail.com>"
Analog Devices ADXL312, ADXL313, and ADXL314 3-Axis Digital Accelerometer that
support both I2C & SPI interfaces.
https://www.analog.com/en/products/adxl312.html
https://www.analog.com/en/products/adxl313.html
https://www.analog.com/en/products/adxl314.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adxl312", "adi,adxl313", "adi,adxl314"
reg — required here #
Maximum number of items (maxItems): 1
spi-3wire — not listed as required here #
true — No constraints added by this property rule.
vs-supply — not listed as required here #
Regulator that supplies power to the accelerometer
vdd-supply — not listed as required here #
Regulator that supplies the digital interface supply voltage
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
/* Example for a I2C device node */
accelerometer@53 {
compatible = "adi,adxl313";
reg = <0x53>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "INT1";
};
};
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
/* Example for a SPI device node */
accelerometer@0 {
compatible = "adi,adxl313";
reg = <0>;
spi-max-frequency = <5000000>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "INT1";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Analog Devices ADXL345/ADXL375 3-Axis Digital Accelerometers
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/adi,adxl345.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
Analog Devices ADXL345/ADXL375 3-Axis Digital Accelerometers that supports
both I2C & SPI interfaces.
https://www.analog.com/en/products/mems/accelerometers/adxl345.html
https://www.analog.com/en/products/sensors-mems/accelerometers/adxl375.html
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"adi,adxl346"Item 2
Exact value (
const):"adi,adxl345"
Rule 2
reg — required here #
Maximum number of items (maxItems): 1
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
spi-3wire — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"INT2"
Property dependencies (dependencies) #
interrupts — applies when this property is present #
Also requires: "interrupt-names"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
/* Example for a I2C device node */
accelerometer@2a {
compatible = "adi,adxl345";
reg = <0x2a>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "INT1";
};
};
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
/* Example for a SPI device node */
accelerometer@0 {
compatible = "adi,adxl345";
reg = <0>;
spi-max-frequency = <5000000>;
spi-cpol;
spi-cpha;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>,
<1 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "INT1", "INT2";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Analog Devices ADXL355 and ADXL359 3-Axis, Low noise MEMS Accelerometers
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/adi,adxl355.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Puranjay Mohan <puranjay12@gmail.com>"
Analog Devices ADXL355 and ADXL359 3-Axis, Low noise MEMS Accelerometers that
support both I2C & SPI interfaces
https://www.analog.com/en/products/adxl355.html
https://www.analog.com/en/products/adxl359.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adxl355", "adi,adxl359"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
Type for DRDY should be IRQ_TYPE_EDGE_RISING. Three configurable interrupt lines exist.
interrupt-names — not listed as required here #
Specify which interrupt line is in use.
Array item rules (items) #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
vdd-supply — not listed as required here #
Regulator that provides power to the sensor
vddio-supply — not listed as required here #
Regulator that provides power to the bus
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
/* Example for a I2C device node */
accelerometer@1d {
compatible = "adi,adxl355";
reg = <0x1d>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "DRDY";
};
};
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
accelerometer@0 {
compatible = "adi,adxl355";
reg = <0>;
spi-max-frequency = <1000000>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "DRDY";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Analog Devices ADXL367 3-Axis Digital Accelerometer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/adi,adxl367.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Cosmin Tanislav <cosmin.tanislav@analog.com>"
The ADXL367 is an ultralow power, 3-axis MEMS accelerometer.
The ADXL367 does not alias input signals by to achieve ultralow power consumption, it samples the full bandwidth of the sensor at all data rates. Measurement ranges of +-2g, +-4g, and +-8g are available, with a resolution of 0.25mg/LSB on the +-2 g range.
In addition to its ultralow power consumption, the ADXL367
has many features to enable true system level power reduction.
It includes a deep multimode output FIFO, a built-in micropower
temperature sensor, and an internal ADC for synchronous conversion
of an additional analog input.
https://www.analog.com/en/products/adxl367.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adxl367"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vddio-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
accelerometer@53 {
compatible = "adi,adxl367";
reg = <0x53>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
};
};
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
accelerometer@0 {
compatible = "adi,adxl367";
reg = <0>;
spi-max-frequency = <1000000>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices ADXL372 3-Axis, +/-(200g) Digital Accelerometer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/adi,adxl372.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcelo Schmitt <marcelo.schmitt@analog.com>", "Nuno Sá <nuno.sa@analog.com>"
Analog Devices ADXL372 3-Axis, +/-(200g) Digital Accelerometer that supports
both I2C & SPI interfaces
https://www.analog.com/en/products/adxl372.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adxl372"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
/* Example for a I2C device node */
accelerometer@53 {
compatible = "adi,adxl372";
reg = <0x53>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
};
};
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
accelerometer@0 {
compatible = "adi,adxl372";
reg = <0>;
spi-max-frequency = <1000000>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Analog Devices ADXL380/382 3-Axis Digital Accelerometer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/adi,adxl380.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ramona Gradinariu <ramona.gradinariu@analog.com>", "Antoniu Miclaus <antoniu.miclaus@analog.com>"
The ADXL380/ADXL382 and ADXL318/ADXL319 are low noise density, low power, 3-axis accelerometers with selectable measurement ranges. The ADXL380 and ADXL318 support the ±4 g, ±8 g, and ±16 g ranges, while the ADXL382 and ADXL319 support ±15 g, ±30 g, and ±60 g ranges.
https://www.analog.com/en/products/adxl318.html https://www.analog.com/en/products/adxl380.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adxl318", "adi,adxl319", "adi,adxl380", "adi,adxl382"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"INT1"
vddio-supply — required here #
true — No constraints added by this property rule.
vsupply-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "vddio-supply", "vsupply-supply"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
accelerometer@54 {
compatible = "adi,adxl380";
reg = <0x54>;
vddio-supply = <&vddio>;
vsupply-supply = <&vsupply>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "INT0";
};
};
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
accelerometer@0 {
compatible = "adi,adxl380";
reg = <0>;
spi-max-frequency = <8000000>;
vddio-supply = <&vddio>;
vsupply-supply = <&vsupply>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "INT0";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Bosch BMA220 Triaxial Acceleration Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/bosch,bma220.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <Jonathan.Cameron@huawei.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "bosch,bma220"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
vdda-supply — not listed as required here #
true — No constraints added by this property rule.
vddd-supply — not listed as required here #
true — No constraints added by this property rule.
vddio-supply — not listed as required here #
true — No constraints added by this property rule.
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>;
accelerometer@0 {
compatible = "bosch,bma220";
reg = <0>;
spi-max-frequency = <2500000>;
spi-cpol;
spi-cpha;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_EDGE_RISING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Bosch BMA255 and Similar Accelerometers
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/bosch,bma255.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>", "Stephan Gerhold <stephan@gerhold.net>"
3 axis accelerometers with varying range and I2C or SPI 4-wire interface.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "bosch,bma222", "bosch,bma222e", "bosch,bma250e", "bosch,bma253", "bosch,bma254", "bosch,bma255", "bosch,bma280", "bosch,bmc150_accel", "bosch,bmc156_accel", "bosch,bmi055_accel", "bosch,bma023", "bosch,bma150", "bosch,bma180", "bosch,bma250", "bosch,smb380"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vddio-supply — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Without interrupt-names, the first interrupt listed must be the one connected to the INT1 pin, the second (optional) interrupt listed must be the one connected to the INT2 pin (if available). The type should be IRQ_TYPE_EDGE_RISING.
BMC156 does not have an INT1 pin, therefore the first interrupt pin is always treated as INT2.
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
mount-matrix — not listed as required here #
an optional 3x3 mounting rotation matrix.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 10000000
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
accelerometer@8 {
compatible = "bosch,bma222";
reg = <0x08>;
vddio-supply = <&vddio>;
vdd-supply = <&vdd>;
interrupts = <57 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "INT1";
};
};
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
accelerometer@10 {
compatible = "bosch,bmc156_accel";
reg = <0x10>;
vddio-supply = <&vddio>;
vdd-supply = <&vdd>;
interrupts = <116 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "INT2";
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
accel@0 {
compatible = "bosch,bma222";
reg = <0>;
spi-max-frequency = <10000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 20: bmc150-accel driver in Linux
Line 32: bma180 driver in Linux
Bosch BMA400 triaxial acceleration sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/bosch,bma400.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dan Robertson <dan@dlrobertson.com>"
Acceleration and temperature iio sensors with an i2c interface
Specifications about the sensor can be found at:
https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMA400-DS000.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "bosch,bma400"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
phandle to the regulator that provides power to the accelerometer
vddio-supply — not listed as required here #
phandle to the regulator that provides power to the sensor's IO
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
accelerometer@14 {
compatible = "bosch,bma400";
reg = <0x14>;
vdd-supply = <&vdd>;
vddio-supply = <&vddio>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Bosch BMI088 IMU accelerometer part
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/bosch,bmi088.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Mike Looijmans <mike.looijmans@topic.nl>"
Acceleration part of the IMU sensor with an SPI interface
Specifications about the sensor can be found at:
https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmi088-ds001.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "bosch,bmi085-accel", "bosch,bmi088-accel", "bosch,bmi090l-accel"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vddio-supply — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Type should be either IRQ_TYPE_LEVEL_HIGH or IRQ_TYPE_LEVEL_LOW. Two configurable interrupt lines exist.
interrupt-names — not listed as required here #
Specify which interrupt line is in use.
Array item rules (items) #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
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>;
bmi088-accel@1 {
compatible = "bosch,bmi088-accel";
reg = <1>;
spi-max-frequency = <10000000>;
interrupt-parent = <&gpio6>;
interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
interrupt-names = "INT2";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale MMA7455 and MMA7456 three axis accelerometers
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/fsl,mma7455.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Devices support both SPI and I2C interfaces.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "fsl,mma7455", "fsl,mma7456"
reg — required here #
Maximum number of items (maxItems): 1
avdd-supply — not listed as required here #
true — No constraints added by this property rule.
vddio-supply — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Data ready is only available on INT1, but events can use either or both pins. If not specified, first element assumed to correspond to INT1 and second (where present) to INT2.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
accelerometer@18 {
compatible = "fsl,mma7455";
reg = <0x18>;
vddio-supply = <&iovdd>;
avdd-supply = <&avdd>;
interrupts = <57 IRQ_TYPE_EDGE_FALLING>, <58 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "INT2", "INT1";
};
};
# include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
accelerometer@0 {
compatible = "fsl,mma7456";
reg = <0>;
spi-max-frequency = <10000000>;
vddio-supply = <&iovdd>;
avdd-supply = <&avdd>;
interrupts = <57 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "INT1";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Freescale MMA8451Q, MMA8452Q, MMA8453Q, MMA8652FC, MMA8653FC or FXLS8471Q triaxial accelerometer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/fsl,mma8452.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Martin Kepplinger <martin.kepplinger@theobroma-systems.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "fsl,mma8451", "fsl,mma8452", "fsl,mma8453", "fsl,mma8652", "fsl,mma8653", "fsl,fxls8471"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
2 highly configurable interrupt lines exist.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Specify which interrupt line is in use.
Array item rules (items) #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vddio-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
accel@1d {
compatible = "fsl,mma8453";
reg = <0x1d>;
interrupt-parent = <&gpio1>;
interrupts = <5 0>;
interrupt-names = "INT2";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ROHM/Kionix KX022A, KX132/134-1211 and KX132/134ACR-LBZ Accelerometers
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/kionix,kx022a.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matti Vaittinen <mazziesaccount@gmail.com>"
KX022A, KX132ACR-LBZ and KX132-1211 are 3-axis accelerometers supporting +/- 2G, 4G, 8G and 16G ranges. The KX134ACR-LBZ and KX134-1211 support +/- 8G, 16G, 32G and 64G. All the sensors also have variable output data-rates and a hardware-fifo buffering. These accelerometers can be accessed either via I2C or SPI.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "kionix,kx022a", "kionix,kx132-1211", "kionix,kx134-1211", "rohm,kx132acr-lbz", "rohm,kx134acr-lbz"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"INT2"
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
io-vdd-supply — not listed as required here #
true — No constraints added by this property rule.
mount-matrix — not listed as required here #
an optional 3x3 mounting rotation matrix.
Required in this object (required): "compatible", "reg", "interrupts"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
accel@1f {
compatible = "kionix,kx022a";
reg = <0x1f>;
interrupt-parent = <&gpio1>;
interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
interrupt-names = "INT1";
io-vdd-supply = <&iovdd>;
vdd-supply = <&vdd>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Kionix KXCJK-1013 Accelerometer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/kionix,kxcjk1013.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Robert Yang <decatf@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "kionix,kxcjk1013", "kionix,kxcj91008", "kionix,kxtj21009", "kionix,kxtf9", "kionix,kx022-1020", "kionix,kx023-1025"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vddio-supply — not listed as required here #
true — No constraints added by this property rule.
mount-matrix — not listed as required here #
an optional 3x3 mounting rotation matrix.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
accel@f {
compatible = "kionix,kxtf9";
reg = <0xf>;
mount-matrix = "0", "1", "0",
"1", "0", "0",
"0", "0", "1";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Kionix KXSD9 Accelerometer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/kionix,kxsd9.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
3 axis 12 bit accelerometer with +-8G range on all axes. Also has a 12 bit auxiliary ADC channel. Interface is either SPI or I2C.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "kionix,kxsd9"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
iovdd-supply — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
mount-matrix — not listed as required here #
an optional 3x3 mounting rotation matrix.
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
accel@18 {
compatible = "kionix,kxsd9";
reg = <0x18>;
iovdd-supply = <&iovdd>;
vdd-supply = <&vdd>;
interrupts = <57 IRQ_TYPE_EDGE_FALLING>;
mount-matrix = "-0.984807753012208", "0", "-0.173648177666930",
"0", "-1", "0",
"-0.173648177666930", "0", "0.984807753012208";
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
accel@0 {
compatible = "kionix,kxsd9";
reg = <0>;
spi-max-frequency = <10000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
MEMSensing digital 3-Axis accelerometer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/memsensing,msa311.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dmitry Rokosov <ddrokosov@sberdevices.ru>"
MSA311 is a tri-axial, low-g accelerometer with I2C digital output for sensitivity consumer applications. It has dynamical user selectable full scales range of +-2g/+-4g/+-8g/+-16g and allows acceleration measurements with output data rates from 1Hz to 1000Hz. Datasheet can be found at following URL https://cdn-shop.adafruit.com/product-files/5309/MSA311-V1.1-ENG.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "memsensing,msa311"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
accelerometer@62 {
compatible = "memsensing,msa311";
reg = <0x62>;
interrupt-parent = <&gpio_intc>;
interrupts = <29 IRQ_TYPE_EDGE_RISING>;
vdd-supply = <&vcc_5v>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Murata SCA3300 Accelerometer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/murata,sca3300.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
3-axis industrial accelerometer with digital SPI interface https://www.murata.com/en-global/products/sensor/accel/sca3300
Maintainers (maintainers): "Tomas Melin <tomas.melin@vaisala.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "murata,sca3300", "murata,scl3300"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 8000000
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
accelerometer@0 {
compatible = "murata,sca3300";
reg = <0x0>;
spi-max-frequency = <4000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NXP FXLS8962AF/FXLS8964AF Accelerometer driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / accel
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/nxp,fxls8962af.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sean Nyekjaer <sean@geanix.com>"
NXP FXLS8962AF/FXLS8964AF Accelerometer driver that supports
SPI and I2C interface.
https://www.nxp.com/docs/en/data-sheet/FXLS8962AF.pdf
https://www.nxp.com/docs/en/data-sheet/FXLS8964AF.pdf
https://www.nxp.com/docs/en/data-sheet/FXLS8967AF.pdf
https://www.nxp.com/docs/en/data-sheet/FXLS8974CF.pdf
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"nxp,fxls8962af"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
phandle to the regulator that provides power to the accelerometer
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
Allowed values (enum): "INT1", "INT2"
drive-open-drain — not listed as required here #
Value type (type): "boolean"
wakeup-source — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable wake on accelerometer event
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
/* Example for a I2C device node */
accelerometer@62 {
compatible = "nxp,fxls8962af";
reg = <0x62>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "INT1";
wakeup-source;
};
};
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
/* Example for a SPI device node */
accelerometer@0 {
compatible = "nxp,fxls8962af";
reg = <0>;
spi-max-frequency = <4000000>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "INT1";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
IIO Common Properties for ADC Channels
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
A few properties are defined in a common way ADC channels.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^channel(@[0-9a-f]+)?$"
A channel index should match reg.
reg — not listed as required here #
Maximum number of items (maxItems): 1
label — not listed as required here #
Unique name to identify which channel this is.
bipolar — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If provided, the channel is to be used in bipolar mode.
diff-channels — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Maximum number of items (maxItems): 2
Minimum number of items (minItems): 2
Many ADCs have dual Muxes to allow different input pins to be routed to both the positive and negative inputs of a differential ADC. The first value specifies the positive input pin, the second specifies the negative input pin. There are also some ADCs, where the differential channel has dedicated positive and negative inputs which can be used to measure differential voltage levels. For those setups, this property can be configured with the 'reg' property for both inputs (i.e. diff-channels = <reg reg>).
single-channel — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
When devices combine single-ended and differential channels, allow the channel for a single element to be specified, independent of reg (as for differential channels). If this and diff-channels are not present reg shall be used instead.
common-mode-channel — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Some ADCs have differential input pins that can be used to measure single-ended or pseudo-differential inputs. This property can be used in addition to single-channel to signal software that this channel is not differential but still specify two inputs. The input pair is specified by setting single-channel to the positive input pin and common-mode-channel to the negative pin.
settling-time-us — not listed as required here #
Time between enabling the channel and first stable readings.
oversampling-ratio — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Oversampling is used as replacement of or addition to the low-pass filter. In some cases, the desired filtering characteristics are a function the device design and can interact with other characteristics such as settling time.
At least one of these rules must match (anyOf) #
Rule 1 #
Exactly one of these rules must match (
oneOf) #Rule 1
Rule 2
Rule 2 #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Analog Devices AD4000 and similar Analog to Digital Converters
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad4000.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcelo Schmitt <marcelo.schmitt@analog.com>"
Analog Devices AD4000 family of Analog to Digital Converters with SPI support.
Specifications can be found at:
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4000-4004-4008.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4001-4005.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4002-4006-4010.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4003-4007-4011.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4020-4021-4022.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4001.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4003.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7685.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7686.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7687.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7688.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7690.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7691.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7693.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7942.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7946.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7980.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7982.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7983.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7984.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7988-1_7988-5.pdf
Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"adi,ad4000","adi,ad4001","adi,ad4002","adi,ad4003","adi,ad4020","adi,adaq4001","adi,adaq4003","adi,ad7687","adi,ad7691","adi,ad7942","adi,ad7946","adi,ad7983"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"adi,ad4000"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"adi,ad4001"
Rule 4
Array item rules (
items)Item 1
Item 2
Exact value (
const):"adi,ad4002"
Rule 5
Array item rules (
items)Item 1
Item 2
Exact value (
const):"adi,ad4003"
Rule 6
Array item rules (
items)Item 1
Item 2
Exact value (
const):"adi,ad4020"
Rule 7
Array item rules (
items)Item 1
Allowed values (
enum):"adi,ad7685","adi,ad7686","adi,ad7980","adi,ad7988-1","adi,ad7988-5"Item 2
Exact value (
const):"adi,ad7983"
Rule 8
Array item rules (
items)Item 1
Item 2
Exact value (
const):"adi,ad7687"
Rule 9
Array item rules (
items)Item 1
Allowed values (
enum):"adi,ad7690","adi,ad7982","adi,ad7984"Item 2
Exact value (
const):"adi,ad7691"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 102040816
adi,sdi-pin — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "high", "low", "cs", "sdi"
Default value (default): "sdi"
Describes how the ADC SDI pin is wired. A value of "sdi" indicates that the ADC SDI is connected to host SDO. "high" indicates that the ADC SDI pin is hard-wired to logic high (VIO). "low" indicates that it is hard-wired low (GND). "cs" indicates that the ADC SDI pin is connected to the host CS line.
#daisy-chained-devices — not listed as required here #
true — No constraints added by this property rule.
vdd-supply — required here #
A 1.8V supply that powers the chip (VDD).
vio-supply — required here #
A 1.8V to 5.5V supply for the digital inputs and outputs (VIO).
ref-supply — required here #
A 2.5 to 5V supply for the external reference voltage (REF).
cnv-gpios — not listed as required here #
When provided, this property indicates the GPIO that is connected to the CNV pin.
Maximum number of items (maxItems): 1
adi,high-z-input — not listed as required here #
Value type (type): "boolean"
High-Z mode allows the amplifier and RC filter in front of the ADC to be chosen based on the signal bandwidth of interest, rather than the settling requirements of the switched capacitor SAR ADC inputs.
adi,gain-milli — not listed as required here #
The hardware gain applied to the ADC input (in milli units). The gain provided by the ADC input scaler is defined by the hardware connections between chip pins OUT+, R1K-, R1K1-, R1K+, R1K1+, and OUT-. If not present, default to 1000 (no actual gain applied).
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Allowed values (enum): 454, 909, 1000, 1900
Default value (default): 1000
interrupts — not listed as required here #
The SDO pin can also function as a busy indicator. This node should be connected to an interrupt that is triggered when the SDO line goes low while the SDI line is high and the CNV line is low ("3-wire" mode) or the SDI line is low and the CNV line is high ("4-wire" mode); or when the SDO line goes high while the SDI and CNV lines are high (chain mode),
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "vdd-supply", "vio-supply", "ref-supply"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad7687","adi,ad7691","adi,ad7942","adi,ad7946","adi,ad7983"When the condition matches (
then) #Properties and child nodes (
properties)
adi,sdi-pin— not listed as required hereAllowed values (
enum):"high","low","cs"Default value (
default):"cs"
Rule 2 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
adi,high-z-input— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Required in this object (
required):"#daisy-chained-devices"When the condition matches (
then) #Properties and child nodes (
properties)
spi-max-frequency— not listed as required hereMaximum value (
maximum):50000000
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereThis rule must not match (
not)Rule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
adi,gain-milli— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad4020";
reg = <0>;
spi-max-frequency = <71000000>;
vdd-supply = <&supply_1_8V>;
vio-supply = <&supply_1_8V>;
ref-supply = <&supply_5V>;
adi,sdi-pin = "cs";
cnv-gpios = <&gpio0 88 GPIO_ACTIVE_HIGH>;
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,adaq4003";
reg = <0>;
spi-max-frequency = <80000000>;
vdd-supply = <&supply_1_8V>;
vio-supply = <&supply_1_8V>;
ref-supply = <&supply_5V>;
adi,high-z-input;
adi,gain-milli = /bits/ 16 <454>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 103: for VIO > 2.7 V, 81300813 for VIO > 1.7 V
Line 169: Single-channel PulSAR devices have SDI either tied to VIO, GND, or host CS.
Line 185: The configuration register can only be accessed if SDI is connected to MOSI
Line 192: chain mode has lower SCLK max rate
Line 199: for VIO > 2.7 V, 40000000 for VIO > 1.7 V
Line 200: Gain property only applies to ADAQ devices
Analog Devices AD4030 and AD4630 ADC families
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad4030.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>", "Nuno Sa <nuno.sa@analog.com>"
Analog Devices AD4030 single channel and AD4630/AD4632 dual channel precision SAR ADC families
* https://www.analog.com/media/en/technical-documentation/data-sheets/ad4030-24-4032-24.pdf * https://www.analog.com/media/en/technical-documentation/data-sheets/ad4630-24_ad4632-24.pdf * https://www.analog.com/media/en/technical-documentation/data-sheets/ad4630-16-4632-16.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad4030-24", "adi,ad4032-24", "adi,ad4630-16", "adi,ad4630-24", "adi,ad4632-16", "adi,ad4632-24"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 102040816
spi-rx-bus-width — not listed as required here #
Maximum number of items (maxItems): 2
Exactly one of these rules must match (oneOf) #
Rule 1
Rule for matching array elements (
contains)Exact value (
const):1
Rule 2
Rule for matching array elements (
contains)Exact value (
const):2
Rule 3
Rule for matching array elements (
contains)Exact value (
const):4
vdd-5v-supply — required here #
true — No constraints added by this property rule.
vdd-1v8-supply — required here #
true — No constraints added by this property rule.
vio-supply — required here #
true — No constraints added by this property rule.
ref-supply — not listed as required here #
Optional External unbuffered reference. Used when refin-supply is not connected.
refin-supply — not listed as required here #
Internal buffered Reference. Used when ref-supply is not connected.
cnv-gpios — required here #
The Convert Input (CNV). It initiates the sampling conversions.
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
The Reset Input (/RST). Used for asynchronous device reset.
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
The BUSY pin is used to signal that the conversions results are available to be transferred when in SPI Clocking Mode. This nodes should be connected to an interrupt that is triggered when the BUSY line goes low.
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
Exact value (const): "busy"
Required in this object (required): "compatible", "reg", "vdd-5v-supply", "vdd-1v8-supply", "vio-supply", "cnv-gpios"
Exactly one of these rules must match (oneOf) #
Rule 1 #
Rule 2 #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
spi-rx-bus-width— not listed as required hereMaximum number of items (
maxItems):1
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad4030-24";
reg = <0>;
spi-max-frequency = <80000000>;
vdd-5v-supply = <&supply_5V>;
vdd-1v8-supply = <&supply_1_8V>;
vio-supply = <&supply_1_8V>;
ref-supply = <&supply_5V>;
cnv-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
};
};
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad4630-24";
reg = <0>;
spi-max-frequency = <80000000>;
spi-rx-bus-width = <4>, <4>;
vdd-5v-supply = <&supply_5V>;
vdd-1v8-supply = <&supply_1_8V>;
vio-supply = <&supply_1_8V>;
ref-supply = <&supply_5V>;
cnv-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright 2024 Analog Devices Inc.
Line 3: Copyright 2024 BayLibre, SAS.
Line 41: all lanes must have the same width
Analog Devices AD4062 ADC family device driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad4062.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jorge Marques <jorge.marques@analog.com>"
Analog Devices AD4062 Single Channel Precision SAR ADC family
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4060.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ad4062.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad4060", "adi,ad4062"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Two pins are available that can be configured as either a general purpose digital output, device enable signal (used to synchronise other parts of the signal chain with ADC sampling), device ready (GP1 only) or various interrupt signals. If intended for use as a GPIO or device enable, will not present here.
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
GP0 pin, cannot be configured as DEV_RDY.
Item 2
GP1 pin, can be configured to any setting.
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"gp0"
Item 2
Exact value (
const):"gp1"
gpio-controller — not listed as required here #
Marks the device node as a GPIO controller. GPs not listed as interrupts are exposed as a GPO.
#gpio-cells — not listed as required here #
Exact value (const): 2
The first cell is the GPIO number and the second cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>.
vdd-supply — required here #
Analog power supply.
vio-supply — required here #
Digital interface logic power supply.
ref-supply — not listed as required here #
Reference voltage to set the ADC full-scale range. If not present, vdd-supply is used as the reference voltage.
Required in this object (required): "compatible", "reg", "vdd-supply", "vio-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/i3c/i3c.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i3c {
#address-cells = <3>;
#size-cells = <0>;
adc@0,2ee007c0000 {
reg = <0x0 0x2ee 0x7c0000>;
vdd-supply = <&vdd>;
vio-supply = <&vio>;
ref-supply = <&ref>;
interrupt-parent = <&gpio>;
interrupts = <0 0 IRQ_TYPE_EDGE_RISING>,
<0 1 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "gp0", "gp1";
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i3c {
#address-cells = <3>;
#size-cells = <0>;
adc@0,2ee007c0000 {
reg = <0x0 0x2ee 0x7c0000>;
vdd-supply = <&vdd>;
vio-supply = <&vio>;
ref-supply = <&ref>;
gpio-controller;
#gpio-cells = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright 2025 Analog Devices Inc.
Analog Devices AD4080 20-Bit, 40 MSPS, Differential SAR ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad4080.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Antoniu Miclaus <antoniu.miclaus@analog.com>"
The AD4080 is a high speed, low noise, low distortion, 20-bit, Easy Drive, successive approximation register (SAR) analog-to-digital converter (ADC). Maintaining high performance (signal-to-noise and distortion (SINAD) ratio > 90 dBFS) at signal frequencies in excess of 1 MHz enables the AD4080 to service a wide variety of precision, wide bandwidth data acquisition applications.
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4080.pdf
Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad4080", "adi,ad4081", "adi,ad4083", "adi,ad4084", "adi,ad4086", "adi,ad4087"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Configuration of the SPI bus.
Maximum value (maximum): 50000000
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"cnv"
vdd33-supply — required here #
true — No constraints added by this property rule.
vdd11-supply — not listed as required here #
true — No constraints added by this property rule.
vddldo-supply — not listed as required here #
true — No constraints added by this property rule.
iovdd-supply — not listed as required here #
true — No constraints added by this property rule.
vrefin-supply — required here #
true — No constraints added by this property rule.
io-backends — not listed as required here #
Maximum number of items (maxItems): 1
adi,lvds-cnv-enable — not listed as required here #
Enable the LVDS signal type on the CNV pin. Default is CMOS.
Value type (type): "boolean"
adi,num-lanes — not listed as required here #
Number of lanes on which the data is sent on the output (DA, DB pins).
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "vdd33-supply", "vrefin-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad4080";
reg = <0>;
spi-max-frequency = <10000000>;
vdd33-supply = <&vdd33>;
vddldo-supply = <&vddldo>;
vrefin-supply = <&vrefin>;
clocks = <&cnv>;
clock-names = "cnv";
io-backends = <&iio_backend>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright 2025 Analog Devices Inc.
Analog Devices AD4130 ADC device driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad4130.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Cosmin Tanislav <cosmin.tanislav@analog.com>"
Bindings for the Analog Devices AD4130 ADC. Datasheet can be found here:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD4130-8.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad4130"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
phandle to the master clock (mclk)
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"mclk"
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
Specify which interrupt pin should be configured as Data Ready / FIFO interrupt. Default if not supplied is int.
Allowed values (enum): "int", "clk", "p2", "dout"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
#clock-cells — not listed as required here #
Exact value (const): 0
clock-output-names — not listed as required here #
Maximum number of items (maxItems): 1
refin1-supply — not listed as required here #
refin1 supply. Can be used as reference for conversion.
refin2-supply — not listed as required here #
refin2 supply. Can be used as reference for conversion.
avdd-supply — not listed as required here #
AVDD voltage supply. Can be used as reference for conversion.
iovdd-supply — not listed as required here #
IOVDD voltage supply. Used for the chip interface.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 5000000
adi,ext-clk-freq-hz — not listed as required here #
Specify the frequency of the external clock.
Allowed values (enum): 76800, 153600
Default value (default): 76800
adi,bipolar — not listed as required here #
Specify if the device should be used in bipolar mode.
Value type (type): "boolean"
adi,vbias-pins — not listed as required here #
Analog inputs to apply a voltage bias of (AVDD − AVSS) / 2 to.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
Array item rules (items) #
Minimum value (
minimum):0Maximum value (
maximum):15
Required in this object (required): "compatible", "reg", "interrupts"
Properties matching a name pattern (patternProperties) #
^channel@([0-9a-f])$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): adc.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
The channel number.
Minimum value (minimum): 0
Maximum value (maximum): 15
diff-channels — required here
Besides the analog inputs available, internal inputs can be used. 16: Internal temperature sensor. 17: AVSS 18: Internal reference 19: DGND 20: (AVDD − AVSS)/6+ 21: (AVDD − AVSS)/6- 22: (IOVDD − DGND)/6+ 23: (IOVDD − DGND)/6- 24: (ALDO − AVSS)/6+ 25: (ALDO − AVSS)/6- 26: (DLDO − DGND)/6+ 27: (DLDO − DGND)/6- 28: V_MV_P 29: V_MV_M
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):29
adi,reference-select — not listed as required here
Select the reference source to use when converting on the specific channel. Valid values are: 0: REFIN1(+)/REFIN1(−) 1: REFIN2(+)/REFIN2(−) 2: REFOUT/AVSS (Internal reference) 3: AVDD/AVSS If not specified, REFIN1 is used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
adi,excitation-pin-0 — not listed as required here
Analog input to apply excitation current to while the channel is active.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
Default value (default): 0
adi,excitation-pin-1 — not listed as required here
Analog input to apply excitation current to while this channel is active.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
Default value (default): 0
adi,excitation-current-0-nanoamp — not listed as required here
Excitation current in nanoamps to be applied to pin specified in adi,excitation-pin-0 while this channel is active.
Allowed values (enum): 0, 100, 10000, 20000, 50000, 100000, 150000, 200000
Default value (default): 0
adi,excitation-current-1-nanoamp — not listed as required here
Excitation current in nanoamps to be applied to pin specified in adi,excitation-pin-1 while this channel is active.
Allowed values (enum): 0, 100, 10000, 20000, 50000, 100000, 150000, 200000
Default value (default): 0
adi,burnout-current-nanoamp — not listed as required here
Burnout current in nanoamps to be applied for this channel.
Allowed values (enum): 0, 500, 2000, 4000
Default value (default): 0
adi,buffered-positive — not listed as required here
Enable buffered mode for positive input.
Value type (type): "boolean"
adi,buffered-negative — not listed as required here
Enable buffered mode for negative input.
Value type (type): "boolean"
Required in this object (required): "reg", "diff-channels"
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>;
adc@0 {
compatible = "adi,ad4130";
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <5000000>;
interrupts = <27 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpio>;
channel@0 {
reg = <0>;
adi,reference-select = <2>;
/* AIN8, AIN9 */
diff-channels = <8 9>;
};
channel@1 {
reg = <1>;
adi,reference-select = <2>;
/* AIN10, AIN11 */
diff-channels = <10 11>;
};
channel@2 {
reg = <2>;
adi,reference-select = <2>;
/* Temperature Sensor, DGND */
diff-channels = <16 19>;
};
channel@3 {
reg = <3>;
adi,reference-select = <2>;
/* Internal reference, DGND */
diff-channels = <18 19>;
};
channel@4 {
reg = <4>;
adi,reference-select = <2>;
/* DGND, DGND */
diff-channels = <19 19>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2022 Analog Devices Inc.
Analog Devices AD4134 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad4134.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcelo Schmitt <marcelo.schmitt@analog.com>"
The AD4134 is a quad channel, low noise, simultaneous sampling, precision
analog-to-digital converter (ADC).
Specifications can be found at:
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4134.pdf
Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad4134"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 50000000
avdd5-supply — required here #
A 5V supply that powers the chip's analog circuitry.
dvdd5-supply — required here #
A 5V supply that powers the chip's digital circuitry.
iovdd-supply — required here #
A 1.8V supply that sets the logic levels for the digital interface pins.
refin-supply — required here #
A 4.096V or 5V supply that serves as reference for ADC conversions.
avdd1v8-supply — not listed as required here #
A 1.8V supply used by the analog circuitry.
dvdd1v8-supply — not listed as required here #
A 1.8V supply used by the digital circuitry.
clkvdd-supply — not listed as required here #
A 1.8V supply for the chip's clock management circuit.
ldoin-supply — not listed as required here #
A 2.6V to 5.5V supply that generates 1.8V for AVDD1V8, DVDD1V8, and CLKVDD pins.
clocks — required here #
Maximum number of items (maxItems): 1
Required external clock source. Can specify either a crystal or CMOS clock source. If an external crystal is set, connect the CLKSEL pin to IOVDD. Otherwise, connect the CLKSEL pin to IOGND and the external CMOS clock signal to the XTAL2/CLKIN pin.
clock-names — required here #
Allowed values (enum): "xtal", "clkin"
Default value (default): "clkin"
#clock-cells — not listed as required here #
Exact value (const): 0
clock-output-names — not listed as required here #
Maximum number of items (maxItems): 1
regulators — not listed as required here #
Value type (type): "object"
list of regulators provided by this controller.
Properties and child nodes (properties) #
vcm-output — not listed as required here
Shared schema rule ($ref): /schemas/regulator/regulator.yaml#
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
powerdown-gpios — not listed as required here #
Active low GPIO connected to the /PDN pin. Forces the device into full power-down mode when brought low. Pull this input to IOVDD for normal operation.
Maximum number of items (maxItems): 1
odr-gpios — not listed as required here #
GPIO connected to ODR pin. Used to sample ADC data in minimum I/O mode.
Maximum number of items (maxItems): 1
adi,asrc-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Asynchronous Sample Rate Converter (ASRC) operation mode control input. Describes whether the MODE pin is set to a high level (for master mode operation) or to a low level (for slave mode operation).
Allowed values (enum): "high", "low"
Default value (default): "low"
adi,dclkio — not listed as required here #
DCLK pin I/O direction control for when the device operates in Pin Control Slave Mode or in SPI Control Mode. Describes if DEC0/DCLKIO pin is at a high level (which configures DCLK as an output) or to set to a low level (configuring DCLK for input).
Allowed values (enum): "out", "in"
Default value (default): "in"
adi,dclkmode — not listed as required here #
DCLK mode control for when the device operates in Pin Control Slave Mode or in SPI Control Mode. Describes whether the DEC1/DCLKMODE pin is set to a high level (configuring the DCLK to operate in free running mode) or to a low level (to configure DCLK to operate in gated mode).
Allowed values (enum): "free-running", "gated"
Default value (default): "gated"
Required in this object (required): "compatible", "reg", "avdd5-supply", "dvdd5-supply", "iovdd-supply", "refin-supply", "clocks", "clock-names"
Exactly one of these rules must match (oneOf) #
Rule 1 #
Rule 2 #
Required in this object (
required):"avdd1v8-supply","dvdd1v8-supply","clkvdd-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad4134";
reg = <0>;
spi-max-frequency = <1000000>;
reset-gpios = <&gpio0 86 GPIO_ACTIVE_LOW>;
odr-gpios = <&gpio0 87 GPIO_ACTIVE_HIGH>;
powerdown-gpios = <&gpio0 88 GPIO_ACTIVE_LOW>;
clocks = <&sys_clk>;
clock-names = "clkin";
avdd5-supply = <&avdd5>;
dvdd5-supply = <&dvdd5>;
iovdd-supply = <&iovdd>;
refin-supply = <&refin>;
avdd1v8-supply = <&avdd1v8>;
dvdd1v8-supply = <&dvdd1v8>;
clkvdd-supply = <&clkvdd>;
regulators {
vcm_reg: vcm-output {
regulator-name = "ad4134-vcm";
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices AD4170-4 and similar Analog to Digital Converters
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad4170-4.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcelo Schmitt <marcelo.schmitt@analog.com>"
Analog Devices AD4170-4 series of Sigma-delta Analog to Digital Converters.
Specifications can be found at:
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4170-4.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4190-4.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4195-4.pdf
Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#
Reusable definitions ($defs) #
reference-buffer #
Enable precharge buffer, full buffer, or skip reference buffering of the positive/negative voltage reference. Because the output impedance of the source driving the voltage reference inputs may be dynamic, resistive/capacitive combinations of those inputs can cause DC gain errors if the reference inputs go unbuffered into the ADC. Enable reference buffering if the provided reference source has dynamic high impedance output. Note the absolute voltage allowed on REFINn+ and REFINn- inputs is from AVSS - 50 mV to AVDD + 50 mV when the reference buffers are disabled but narrows to AVSS to AVDD when reference buffering is enabled or in precharge mode.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "precharge", "full", "disabled"
Default value (default): "full"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad4170-4", "adi,ad4190-4", "adi,ad4195-4"
avss-supply — not listed as required here #
Reference voltage supply for AVSS. A −2.625V minimum and 0V maximum supply that powers the chip. If not provided, AVSS is assumed to be at system ground (0V).
avdd-supply — required here #
A supply of 4.75V to 5.25V relative to AVSS that powers the chip (AVDD).
iovdd-supply — required here #
1.7V to 5.25V reference supply to the serial interface (IOVDD).
refin1p-supply — not listed as required here #
REFIN+ supply that can be used as reference for conversion.
refin1n-supply — not listed as required here #
REFIN- supply that can be used as reference for conversion.
refin2p-supply — not listed as required here #
REFIN2+ supply that can be used as reference for conversion.
refin2n-supply — not listed as required here #
REFIN2- supply that can be used as reference for conversion.
spi-cpol — required here #
true — No constraints added by this property rule.
spi-cpha — required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Interrupt for signaling the completion of conversion results. The data ready signal (RDY) used as interrupt is by default provided on the SDO pin. Alternatively, it can be provided on the DIG_AUX1 pin in which case the chip disables the RDY function on SDO. Thus, there can be only one data ready interrupt enabled at a time.
interrupt-names — not listed as required here #
Specify which pin should be configured as Data Ready interrupt.
Allowed values (enum): "sdo", "dig_aux1"
clocks — not listed as required here #
Maximum number of items (maxItems): 1
Optional external clock source. Can specify either an external clock or external crystal.
clock-names — not listed as required here #
Allowed values (enum): "ext-clk", "xtal"
Default value (default): "ext-clk"
#clock-cells — not listed as required here #
Exact value (const): 0
clock-output-names — not listed as required here #
Maximum number of items (maxItems): 1
gpio-controller — not listed as required here #
true — No constraints added by this property rule.
#gpio-cells — not listed as required here #
Exact value (const): 2
The first cell is for the GPIO number: 0 to 3. The second cell takes standard GPIO flags.
ldac-gpios — not listed as required here #
GPIO connected to DIG_AUX2 pin to be used as LDAC toggle to control the transfer of data from the DAC_INPUT_A register to the DAC.
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
adi,vbias-pins — not listed as required here #
Analog inputs to apply a voltage bias of (AVDD − AVSS) / 2 to.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 9
Array item rules (items) #
Minimum value (
minimum):0Maximum value (
maximum):8
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
ldac-gpios— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #When the condition matches (
then) #
Rule 3 #
Exactly one of these rules must match (
oneOf) #Rule 1
Required in this object (
required):"clocks"Properties and child nodes (
properties)
#clock-cells— not listed as required here
false— Not permitted by this property rule.Rule 2
Required in this object (
required):"#clock-cells"Properties and child nodes (
properties)
clocks— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg", "avdd-supply", "iovdd-supply", "spi-cpol", "spi-cpha"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^channel@[0-9a-f]$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/iio/adc/adc.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Represents the external channels which are connected to the ADC.
Properties and child nodes (properties) #
reg — not listed as required here
The channel number.
Minimum value (minimum): 0
Maximum value (maximum): 15
diff-channels — not listed as required here
This property is used for defining the inputs of a differential voltage channel. The first value is the positive input and the second value is the negative input of the channel.
Besides the analog input pins AIN0 to AIN8, there are special inputs that can be selected with the following values: 17: Internal temperature sensor 18: (AVDD-AVSS)/5 19: (IOVDD-DGND)/5 20: DAC output 21: ALDO 22: DLDO 23: AVSS 24: DGND 25: REFIN+ 26: REFIN- 27: REFIN2+ 28: REFIN2- 29: REFOUT For the internal temperature sensor, use the input number for both inputs (i.e. diff-channels = <17 17>).
Array item rules (items)
Allowed values (
enum):0,1,2,3,4,5,6,7,8,17,18,19,20,21,22,23,24,25,26,27,28,29
adi,reference-select — not listed as required here
Select the reference source to use when converting on the specific channel. Valid values are: 0: REFIN+/REFIN- 1: REFIN2+/REFIN2− 2: REFOUT/AVSS (internal reference) 3: AVDD/AVSS If not specified, REFOUT/AVSS is used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 1
adi,positive-reference-buffer — not listed as required here
Shared schema rule ($ref): #/$defs/reference-buffer
adi,negative-reference-buffer — not listed as required here
Shared schema rule ($ref): #/$defs/reference-buffer
adi,sensor-type — not listed as required here
The AD4170-4 and similar designs have features to aid interfacing with load cell weigh scale, RTD, and thermocouple sensors. Each of those sensor types requires either distinct wiring configuration or external circuitry for proper sensor operation and can use different ADC chip functionality on their setups. A key characteristic of those external sensors is that they must be excited either by voltage supply or by ADC chip excitation signals. The sensor can then be read through a pair of analog inputs. This property specifies which particular sensor type is connected to the ADC so it can be properly setup and handled. Omit this property for conventional (not weigh scale, RTD, or thermocouple) ADC channel setups.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "weighscale", "rtd", "thermocouple"
adi,excitation-pin-0 — not listed as required here
Analog input to apply excitation current to while the channel is active.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 20
Default value (default): 0
adi,excitation-pin-1 — not listed as required here
Analog input to apply excitation current to while the channel is active.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 20
Default value (default): 0
adi,excitation-pin-2 — not listed as required here
Analog input to apply excitation current to while the channel is active.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 20
Default value (default): 0
adi,excitation-pin-3 — not listed as required here
Analog input to apply excitation current to while the channel is active.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 20
Default value (default): 0
adi,excitation-current-0-microamp — not listed as required here
Excitation current in microamperes to be applied to pin specified in adi,excitation-pin-0 while this channel is active.
Allowed values (enum): 0, 10, 50, 100, 250, 500, 1000, 1500
Default value (default): 0
adi,excitation-current-1-microamp — not listed as required here
Excitation current in microamperes to be applied to pin specified in adi,excitation-pin-1 while this channel is active.
Allowed values (enum): 0, 10, 50, 100, 250, 500, 1000, 1500
Default value (default): 0
adi,excitation-current-2-microamp — not listed as required here
Excitation current in microamperes to be applied to pin specified in adi,excitation-pin-2 while this channel is active.
Allowed values (enum): 0, 10, 50, 100, 250, 500, 1000, 1500
Default value (default): 0
adi,excitation-current-3-microamp — not listed as required here
Excitation current in microamperes to be applied to pin specified in adi,excitation-pin-3 while this channel is active.
Allowed values (enum): 0, 10, 50, 100, 250, 500, 1000, 1500
Default value (default): 0
adi,excitation-ac — not listed as required here
Value type (type): "boolean"
Whether the external sensor has to be AC or DC excited. When omitted, it is DC excited.
All of these rules must match (allOf) #
Rule 1
Exactly one of these rules must match (
oneOf)Rule 1
Required in this object (
required):"single-channel","common-mode-channel"Properties and child nodes (
properties)
diff-channels— not listed as required here
false— Not permitted by this property rule.Rule 2
Required in this object (
required):"diff-channels"Properties and child nodes (
properties)
single-channel— not listed as required here
false— Not permitted by this property rule.
common-mode-channel— not listed as required here
false— Not permitted by this property rule.
Rule 2
Condition (
if)This rule must not match (
not)When the condition matches (
then)Properties and child nodes (
properties)
adi,excitation-pin-0— not listed as required here
false— Not permitted by this property rule.
adi,excitation-pin-1— not listed as required here
false— Not permitted by this property rule.
adi,excitation-pin-2— not listed as required here
false— Not permitted by this property rule.
adi,excitation-pin-3— not listed as required here
false— Not permitted by this property rule.
adi,excitation-current-0-microamp— not listed as required here
false— Not permitted by this property rule.
adi,excitation-current-1-microamp— not listed as required here
false— Not permitted by this property rule.
adi,excitation-current-2-microamp— not listed as required here
false— Not permitted by this property rule.
adi,excitation-current-3-microamp— not listed as required here
false— Not permitted by this property rule.
adi,excitation-ac— not listed as required here
false— Not permitted by this property rule.
Rule 3
Condition (
if)All of these rules must match (
allOf)Rule 1
Properties and child nodes (
properties)
adi,sensor-type— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"weighscale"Rule 2
Required in this object (
required):"adi,excitation-ac","adi,excitation-pin-2","adi,excitation-pin-3"Rule 3
This rule must not match (
not)Required in this object (
required):"adi,excitation-current-2-microamp","adi,excitation-current-3-microamp"When the condition matches (
then)Properties and child nodes (
properties)
adi,excitation-pin-2— not listed as required hereExact value (
const):19
adi,excitation-pin-3— not listed as required hereExact value (
const):20
Rule 4
Condition (
if)All of these rules must match (
allOf)Rule 1
Properties and child nodes (
properties)
adi,sensor-type— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"weighscale"Rule 2
Required in this object (
required):"adi,excitation-ac","adi,excitation-pin-0","adi,excitation-pin-1","adi,excitation-pin-2","adi,excitation-pin-3"Rule 3
This rule must not match (
not)Required in this object (
required):"adi,excitation-current-0-microamp","adi,excitation-current-1-microamp","adi,excitation-current-2-microamp","adi,excitation-current-3-microamp"When the condition matches (
then)Properties and child nodes (
properties)
adi,excitation-pin-0— not listed as required hereExact value (
const):17
adi,excitation-pin-1— not listed as required hereExact value (
const):18
adi,excitation-pin-2— not listed as required hereExact value (
const):19
adi,excitation-pin-3— not listed as required hereExact value (
const):20
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad4170-4";
reg = <0>;
spi-max-frequency = <20000000>;
spi-cpol;
spi-cpha;
avdd-supply = <&avdd>;
iovdd-supply = <&iovdd>;
clocks = <&clk>;
clock-names = "xtal";
interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "dig_aux1";
adi,vbias-pins = <8>;
#address-cells = <1>;
#size-cells = <0>;
// Sample AIN0 with respect to DGND throughout AVDD/DGND input range
// Pseudo-differential unipolar
channel@0 {
reg = <0>;
single-channel = <0>;
common-mode-channel = <24>;
adi,reference-select = <3>;
};
// Weigh scale sensor
channel@1 {
reg = <1>;
bipolar;
diff-channels = <1 2>;
adi,reference-select = <0>;
adi,positive-reference-buffer = "precharge";
adi,negative-reference-buffer = "precharge";
adi,sensor-type = "weighscale";
adi,excitation-pin-2 = <19>;
adi,excitation-pin-3 = <20>;
adi,excitation-ac;
};
// RTD sensor
channel@2 {
reg = <2>;
bipolar;
diff-channels = <3 4>;
adi,reference-select = <0>;
adi,sensor-type = "rtd";
adi,excitation-pin-0 = <5>;
adi,excitation-pin-1 = <6>;
adi,excitation-current-0-microamp = <500>;
adi,excitation-current-1-microamp = <500>;
adi,excitation-ac;
};
// Thermocouple sensor
channel@3 {
reg = <3>;
bipolar;
diff-channels = <7 8>;
adi,reference-select = <0>;
adi,sensor-type = "thermocouple";
adi,excitation-pin-0 = <18>;
adi,excitation-current-0-microamp = <500>;
};
};
};
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad4170-4";
reg = <0>;
spi-max-frequency = <20000000>;
spi-cpol;
spi-cpha;
avdd-supply = <&avdd>;
iovdd-supply = <&iovdd>;
#clock-cells = <0>;
clock-output-names = "ad4170-clk16mhz";
interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "dig_aux1";
#address-cells = <1>;
#size-cells = <0>;
// Sample AIN0 with respect to AIN1 throughout AVDD/AVSS input range
// Differential bipolar. If AVSS < 0V, differential true bipolar
channel@0 {
reg = <0>;
bipolar;
diff-channels = <0 1>;
adi,reference-select = <3>;
};
// Sample AIN2 with respect to DGND throughout AVDD/DGND input range
// Pseudo-differential unipolar
channel@1 {
reg = <1>;
single-channel = <2>;
common-mode-channel = <24>;
adi,reference-select = <3>;
};
// Sample AIN3 with respect to 2.5V throughout AVDD/AVSS input range
// Pseudo-differential bipolar
channel@2 {
reg = <2>;
bipolar;
single-channel = <3>;
common-mode-channel = <29>;
adi,reference-select = <3>;
};
// Sample AIN4 with respect to DGND throughout AVDD/AVSS input range
// Pseudo-differential bipolar
channel@3 {
reg = <3>;
bipolar;
single-channel = <4>;
common-mode-channel = <24>;
adi,reference-select = <3>;
};
// Sample AIN5 with respect to 2.5V throughout AVDD/AVSS input range
// Pseudo-differential unipolar (AD4170-4 datasheet page 46 example)
channel@4 {
reg = <4>;
single-channel = <5>;
common-mode-channel = <29>;
adi,reference-select = <3>;
};
// Sample AIN6 with respect to 2.5V throughout REFIN+/REFIN- input range
// Pseudo-differential bipolar
channel@5 {
reg = <5>;
bipolar;
single-channel = <6>;
common-mode-channel = <29>;
adi,reference-select = <0>;
};
// Weigh scale sensor
channel@6 {
reg = <6>;
bipolar;
diff-channels = <7 8>;
adi,reference-select = <0>;
adi,sensor-type = "weighscale";
adi,excitation-pin-0 = <17>;
adi,excitation-pin-1 = <18>;
adi,excitation-pin-2 = <19>;
adi,excitation-pin-3 = <20>;
adi,excitation-ac;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 137: Some devices don't have integrated DAC
Line 149: Require to specify the interrupt pin when using interrupts
Line 157: If an external clock is set, the internal clock cannot go out and vice versa
Line 331: Usual ADC channels don't need external circuitry excitation.
Line 347: Weigh scale bridge AC excited with one pair of predefined signals.
Line 368: Weigh scale bridge AC excited with two pairs of predefined signals.
Analog Devices Easy Drive Multiplexed SAR Analog to Digital Converters
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad4695.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <Michael.Hennerich@analog.com>", "Nuno Sá <nuno.sa@analog.com>"
A family of similar multi-channel analog to digital converters with SPI bus.
* https://www.analog.com/en/products/ad4695.html * https://www.analog.com/en/products/ad4696.html * https://www.analog.com/en/products/ad4697.html * https://www.analog.com/en/products/ad4698.html
Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad4695", "adi,ad4696", "adi,ad4697", "adi,ad4698"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 80000000
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
spi-rx-bus-width — not listed as required here #
Array item rules (items) #
Minimum value (
minimum):1Maximum value (
maximum):4
avdd-supply — required here #
Analog power supply.
vio-supply — required here #
I/O pin power supply.
ldo-in-supply — not listed as required here #
Internal LDO Input. Mutually exclusive with vdd-supply.
vdd-supply — not listed as required here #
Core power supply. Mutually exclusive with ldo-in-supply.
ref-supply — not listed as required here #
External reference voltage. Mutually exclusive with refin-supply.
refin-supply — not listed as required here #
Internal reference buffer input. Mutually exclusive with ref-supply.
com-supply — not listed as required here #
Common voltage supply for pseudo-differential analog inputs.
adi,no-ref-current-limit — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
When this flag is present, the REF Overvoltage Reduced Current protection is disabled.
adi,no-ref-high-z — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable this flag if the ref-supply requires Reference Input High-Z Mode to be disabled for proper operation.
cnv-gpios — not listed as required here #
The Convert Input (CNV). If omitted, CNV is tied to SPI CS.
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
The Reset Input (RESET). Should be configured GPIO_ACTIVE_LOW.
Maximum number of items (maxItems): 1
pwms — not listed as required here #
PWM signal connected to the CNV pin.
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Signal coming from the BSY_ALT_GP0 pin (ALERT or BUSY).
Item 2
Signal coming from the GP2 pin (ALERT).
Item 3
Signal coming from the GP3 pin (BUSY).
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"gp0"
Item 2
Exact value (
const):"gp2"
Item 3
Exact value (
const):"gp3"
gpio-controller — not listed as required here #
true — No constraints added by this property rule.
#gpio-cells — not listed as required here #
Exact value (const): 2
The first cell is the GPn number: 0 to 3. The second cell takes standard GPIO flags.
#trigger-source-cells — not listed as required here #
First cell indicates the output signal: 0 = BUSY, 1 = ALERT. Second cell indicates which GPn pin is used: 0, 2 or 3.
For convenience, macros for these values are available in dt-bindings/iio/adc/adi,ad4695.h.
Exact value (const): 2
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^in(?:[13579]|1[135])-supply$ — name matches this regular expression #
Optional voltage supply for odd numbered channels when they are used as the negative input for a pseudo-differential channel.
^channel@[0-9a-f]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): adc.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Describes each individual channel. In addition the properties defined below, bipolar from adc.yaml is also supported.
Properties and child nodes (properties) #
reg — required here
Maximum value (maximum): 15
common-mode-channel — not listed as required here
Describes the common mode channel for single channels. 0xFF is REFGND and OxFE is COM. Macros are available for these values in dt-bindings/iio/adc/adi,ad4695.h. Values 1 to 15 correspond to INx inputs. Only odd numbered INx inputs can be used as common mode channels.
Allowed values (enum): 1, 3, 5, 7, 9, 11, 13, 15, 254, 255
Default value (default): 255
adi,no-high-z — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable this flag if the input pin requires the Analog Input High-Z Mode to be disabled for proper operation.
Required in this object (required): "reg"
All of these rules must match (allOf) #
Rule 1
Condition (
if)Properties and child nodes (
properties)
common-mode-channel— not listed as required hereExact value (
const):255When the condition matches (
then)Properties and child nodes (
properties)
bipolar— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg", "avdd-supply", "vio-supply"
All of these rules must match (allOf) #
Rule 1 #
Exactly one of these rules must match (
oneOf) #Rule 1
Rule 2
Rule 2 #
Exactly one of these rules must match (
oneOf) #Rule 1
Rule 2
Rule 3 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
adi,no-ref-high-z— not listed as required here
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^in(?:9|1[135])-supply$— name matches this regular expression
false— Not permitted by this property rule.
^channel@[0-7]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):7
common-mode-channel— not listed as required hereAllowed values (
enum):1,3,5,7,254,255
^channel@[8-9a-f]$— name matches this regular expression
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/iio/adc/adi,ad4695.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad4695";
reg = <0>;
spi-cpol;
spi-cpha;
spi-max-frequency = <80000000>;
avdd-supply = <&power_supply>;
ldo-in-supply = <&power_supply>;
vio-supply = <&io_supply>;
refin-supply = <&supply_5V>;
com-supply = <&supply_2V5>;
in3-supply = <&supply_2V5>;
reset-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
#address-cells = <1>;
#size-cells = <0>;
/* Pseudo-differential channel between IN0 and REFGND. */
channel@0 {
reg = <0>;
};
/* Pseudo-differential channel between IN1 and COM. */
channel@1 {
reg = <1>;
common-mode-channel = <AD4695_COMMON_MODE_COM>;
bipolar;
};
/* Pseudo-differential channel between IN2 and IN3. */
channel@2 {
reg = <2>;
common-mode-channel = <3>;
bipolar;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 167: bipolar mode can't be used with REFGND
Line 195: the internal reference buffer always requires high-z mode
Line 203: limit channels for 8-channel chips
Analog Devices AD485X family
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad4851.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sergiu Cuciurean <sergiu.cuciurean@analog.com>", "Dragos Bogdan <dragos.bogdan@analog.com>", "Antoniu Miclaus <antoniu.miclaus@analog.com>"
Analog Devices AD485X fully buffered, 8-channel simultaneous sampling, 16/20-bit, 1 MSPS data acquisition system (DAS) with differential, wide common-mode range inputs.
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4855.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ad4856.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ad4857.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ad4858.pdf
Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad4851", "adi,ad4852", "adi,ad4853", "adi,ad4854", "adi,ad4855", "adi,ad4856", "adi,ad4857", "adi,ad4858", "adi,ad4858i"
reg — required here #
Maximum number of items (maxItems): 1
vcc-supply — required here #
true — No constraints added by this property rule.
vee-supply — required here #
true — No constraints added by this property rule.
vdd-supply — required here #
true — No constraints added by this property rule.
vddh-supply — not listed as required here #
true — No constraints added by this property rule.
vddl-supply — not listed as required here #
true — No constraints added by this property rule.
vio-supply — required here #
true — No constraints added by this property rule.
vrefbuf-supply — not listed as required here #
true — No constraints added by this property rule.
vrefio-supply — not listed as required here #
true — No constraints added by this property rule.
pwms — required here #
PWM connected to the CNV pin.
Maximum number of items (maxItems): 1
io-backends — not listed as required here #
Maximum number of items (maxItems): 1
pd-gpios — not listed as required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 25000000
spi-3wire — not listed as required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^channel(@[0-7])?$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Represents the channels which are connected to the ADC.
Properties and child nodes (properties) #
reg — required here
The channel number, as specified in the datasheet (from 0 to 7).
Minimum value (minimum): 0
Maximum value (maximum): 7
diff-channels — not listed as required here
Each channel can be configured as a bipolar differential channel. The ADC uses the same positive and negative inputs for this. This property must be specified as 'reg' (or the channel number) for both positive and negative inputs (i.e. diff-channels = <reg reg>). Since the configuration is bipolar differential, the 'bipolar' property is required.
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):7
bipolar — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "vcc-supply", "vee-supply", "vdd-supply", "vio-supply", "pwms"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0{
#address-cells = <1>;
#size-cells = <0>;
compatible = "adi,ad4858";
reg = <0>;
spi-max-frequency = <10000000>;
vcc-supply = <&vcc>;
vdd-supply = <&vdd>;
vee-supply = <&vee>;
vddh-supply = <&vddh>;
vddl-supply = <&vddl>;
vio-supply = <&vio>;
pwms = <&pwm_gen 0 0>;
io-backends = <&iio_backend>;
channel@0 {
reg = <0>;
diff-channels = <0 0>;
bipolar;
};
channel@1 {
reg = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright 2024 Analog Devices Inc.
Analog Devices AD7091R-2/-4/-5/-8 Multi-Channel 12-Bit ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7091r5.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>", "Marcelo Schmitt <marcelo.schmitt@analog.com>"
Analog Devices AD7091R5 4-Channel 12-Bit ADC supporting I2C interface https://www.analog.com/media/en/technical-documentation/data-sheets/ad7091r-5.pdf Analog Devices AD7091R-2/AD7091R-4/AD7091R-8 2-/4-/8-Channel 12-Bit ADCs supporting SPI interface https://www.analog.com/media/en/technical-documentation/data-sheets/AD7091R-2_7091R-4_7091R-8.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7091r2", "adi,ad7091r4", "adi,ad7091r5", "adi,ad7091r8"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Provide VDD power to the sensor (VDD range is from 2.7V to 5.25V).
vdrive-supply — not listed as required here #
Determines the voltage level at which the interface logic will operate. The V_drive voltage range is from 1.8V to 5.25V and must not exceed VDD by more than 0.3V.
vref-supply — not listed as required here #
Phandle to the vref power supply
convst-gpios — not listed as required here #
GPIO connected to the CONVST pin. This logic input is used to initiate conversions on the analog input channels.
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Interrupt for signaling when conversion results exceed the high limit for ADC readings or fall below the low limit for them. Interrupt source must be attached to ALERT/BUSY/GPO0 pin.
Maximum number of items (maxItems): 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#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad7091r2","adi,ad7091r4","adi,ad7091r8"When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@2f {
compatible = "adi,ad7091r5";
reg = <0x2f>;
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpio>;
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7091r8";
reg = <0x0>;
spi-max-frequency = <1000000>;
vref-supply = <&adc_vref>;
convst-gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
interrupts = <22 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpio>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 69: AD7091R-2 does not have ALERT/BUSY/GPO pin
Analog Devices AD7124 ADC device driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7124.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcelo Schmitt <marcelo.schmitt@analog.com>", "Nuno Sá <nuno.sa@analog.com>"
Bindings for the Analog Devices AD7124 ADC device. Datasheet can be
found here:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7124-8.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7124-4", "adi,ad7124-8"
reg — required here #
SPI chip select number for the device
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
Optional external clock connected to the CLK pin.
clock-names — not listed as required here #
Deprecated (deprecated): true
MCLK is an internal counter in the ADC. Do not use this property.
Array item rules (items) #
Item 1
Exact value (
const):"mclk"
#clock-cells — not listed as required here #
The CLK pin can be used as an output. When that is the case, include this property.
Exact value (const): 0
interrupts — required here #
IRQ line for the ADC
Maximum number of items (maxItems): 1
rdy-gpios — not listed as required here #
GPIO reading the R̅D̅Y̅ line. Having such a GPIO is technically optional but highly recommended because DOUT/R̅D̅Y̅ toggles during SPI transfers (in its DOUT aka MISO role) and so usually triggers a spurious interrupt. The distinction between such a spurious event and a real one can only be done by reading such a GPIO. (There is a register telling the same information, but accessing that one needs a SPI transfer which then triggers another interrupt event.)
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
refin1-supply — not listed as required here #
refin1 supply can be used as reference for conversion.
refin2-supply — not listed as required here #
refin2 supply can be used as reference for conversion.
avdd-supply — not listed as required here #
avdd supply can be used as reference for conversion.
Required in this object (required): "compatible", "reg", "interrupts"
This rule must not match (not) #
Required in this object (
required):"#clock-cells","clocks"
Properties matching a name pattern (patternProperties) #
^channel@([0-9]|1[0-5])$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Represents the external channels which are connected to the ADC.
Properties and child nodes (properties) #
reg — required here
The channel number. It can have up to 8 channels on ad7124-4 and 16 channels on ad7124-8, numbered from 0 to 15.
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):15
adi,reference-select — not listed as required here
Select the reference source to use when converting on the specific channel. Valid values are: 0: REFIN1(+)/REFIN1(−). 1: REFIN2(+)/REFIN2(−). 3: AVDD If this field is left empty, internal reference is selected.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 3
diff-channels — required here
true — No constraints added by this property rule.
bipolar — not listed as required here
true — No constraints added by this property rule.
adi,buffered-positive — not listed as required here
Enable buffered mode for positive input.
Value type (type): "boolean"
adi,buffered-negative — not listed as required here
Enable buffered mode for negative input.
Value type (type): "boolean"
Required in this object (required): "reg", "diff-channels"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
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/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7124-4";
reg = <0>;
spi-max-frequency = <5000000>;
interrupts = <25 2>;
interrupt-parent = <&gpio>;
rdy-gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
refin1-supply = <&adc_vref>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
diff-channels = <0 1>;
adi,reference-select = <0>;
adi,buffered-positive;
};
channel@1 {
reg = <1>;
bipolar;
diff-channels = <2 3>;
adi,reference-select = <0>;
adi,buffered-positive;
adi,buffered-negative;
};
channel@2 {
reg = <2>;
diff-channels = <4 5>;
};
channel@3 {
reg = <3>;
diff-channels = <6 7>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2019 Analog Devices Inc.
Line 81: Can't have both clock input and output at the same time.
Analog Devices AD7173 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7173.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ceclan Dumitru <dumitru.ceclan@analog.com>"
Analog Devices AD717x ADC's: The AD717x family offer a complete integrated Sigma-Delta ADC solution which can be used in high precision, low noise single channel applications (Life Science measurements) or higher speed multiplexed applications (Factory Automation PLC Input modules). The Sigma-Delta ADC is intended primarily for measurement of signals close to DC but also delivers outstanding performance with input bandwidths out to ~10kHz.
Analog Devices AD411x ADC's: The AD411X family encompasses a series of low power, low noise, 24-bit, sigma-delta analog-to-digital converters that offer a versatile range of specifications. They integrate an analog front end suitable for processing fully differential/single-ended and bipolar voltage inputs.
Datasheets for supported chips:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD4111.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/AD4112.pdf
<AD4113: not released yet>
https://www.analog.com/media/en/technical-documentation/data-sheets/AD4114.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/AD4115.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/AD4116.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7172-2.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7172-4.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7173-8.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7175-2.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7175-8.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7176-2.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7177-2.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad4111", "adi,ad4112", "adi,ad4113", "adi,ad4114", "adi,ad4115", "adi,ad4116", "adi,ad7172-2", "adi,ad7172-4", "adi,ad7173-8", "adi,ad7175-2", "adi,ad7175-8", "adi,ad7176-2", "adi,ad7177-2"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Ready: multiplexed with SPI data out. While SPI CS is low, can be used to indicate the completion of a conversion.
Item 2
Error: The three error bits in the status register (ADC_ERROR, CRC_ERROR, and REG_ERROR) are OR'ed, inverted, and mapped to the ERROR pin. Therefore, the ERROR pin indicates that an error has occurred.
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"rdy"
Item 2
Exact value (
const):"err"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
spi-max-frequency — not listed as required here #
Maximum value (maximum): 20000000
gpio-controller — not listed as required here #
Marks the device node as a GPIO controller.
#gpio-cells — not listed as required here #
Exact value (const): 2
The first cell is the GPIO number and the second cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>.
vref-supply — not listed as required here #
Differential external reference supply used for conversion. The reference voltage (Vref) specified here must be the voltage difference between the REF+ and REF- pins: Vref = (REF+) - (REF-).
vref2-supply — not listed as required here #
Differential external reference supply used for conversion. The reference voltage (Vref2) specified here must be the voltage difference between the REF2+ and REF2- pins: Vref2 = (REF2+) - (REF2-).
avdd-supply — not listed as required here #
Avdd supply, can be used as reference for conversion. This supply is referenced to AVSS, voltage specified here represents (AVDD1 - AVSS).
avdd2-supply — not listed as required here #
Avdd2 supply, used as the input to the internal voltage regulator. This supply is referenced to AVSS, voltage specified here represents (AVDD2 - AVSS).
iovdd-supply — not listed as required here #
iovdd supply, used for the chip digital interface.
clocks — not listed as required here #
Maximum number of items (maxItems): 1
Optional external clock source. Can include one clock source: external clock or external crystal.
clock-names — not listed as required here #
Allowed values (enum): "ext-clk", "xtal"
#clock-cells — not listed as required here #
Exact value (const): 0
rdy-gpios — not listed as required here #
GPIO reading the R̅D̅Y̅ line. Having such a GPIO is technically optional but highly recommended because DOUT/R̅D̅Y̅ toggles during SPI transfers (in its DOUT aka MISO role) and so usually triggers a spurious interrupt. The distinction between such a spurious event and a real one can only be done by reading such a GPIO. (There is a register telling the same information, but accessing that one needs a SPI transfer which then triggers another interrupt event.)
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^channel@[0-9a-f]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): adc.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 15
diff-channels — not listed as required here
This property is used for defining the inputs of a differential voltage channel. The first value is the positive input and the second value is the negative input of the channel.
Family AD411x supports a dedicated VINCOM voltage input.
To select it set the second channel to 16.
(VIN2, VINCOM) -> diff-channels = <2 16>
There are special values that can be selected besides the voltage
analog inputs:
21: REF+
22: REF−
Supported only by AD7172-2, AD7172-4, AD7175-2, AD7175-8, AD7177-2,
must be paired together and can be used to monitor the power supply
of the ADC:
19: ((AVDD1 − AVSS)/5)+
20: ((AVDD1 − AVSS)/5)−
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):31
single-channel — not listed as required here
This property is used for defining a current channel or the positive input of a voltage channel (single-ended or pseudo-differential).
Models AD4111 and AD4112 support current channels.
Example: (IIN2+, IIN2−) -> single-channel = <2>
To correctly configure a current channel set the "adi,current-channel"
property to true.
To configure a single-ended/pseudo-differential channel set the "common-mode-channel" property to the desired negative voltage input.
When used as a voltage channel, special inputs are valid as well.
Minimum value (minimum): 0
Maximum value (maximum): 31
common-mode-channel — not listed as required here
This property is used for defining the negative input of a single-ended or pseudo-differential voltage channel. Special inputs are valid as well.
Minimum value (minimum): 0
Maximum value (maximum): 31
adi,reference-select — not listed as required here
Select the reference source to use when converting on the specific channel. Valid values are: vref : REF+ /REF− vref2 : REF2+ /REF2− refout-avss: REFOUT/AVSS (Internal reference) avdd : AVDD /AVSS
External reference ref2 only available on ad7173-8 and ad7172-4. Internal reference refout-avss not available on ad7172-4.
If not specified, internal reference used (if available).
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "vref", "vref2", "refout-avss", "avdd"
Default value (default): "refout-avss"
adi,current-channel — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Signal that the selected inputs are current channels. Only available on AD4111 and AD4112.
Required in this object (required): "reg"
All of these rules must match (allOf) #
Rule 1
Exactly one of these rules must match (
oneOf)Rule 1
Required in this object (
required):"single-channel"Properties and child nodes (
properties)
diff-channels— not listed as required here
false— Not permitted by this property rule.Rule 2
Required in this object (
required):"diff-channels"Properties and child nodes (
properties)
single-channel— not listed as required here
false— Not permitted by this property rule.
adi,current-channel— not listed as required here
false— Not permitted by this property rule.
common-mode-channel— not listed as required here
false— Not permitted by this property rule.
Rule 2
Condition (
if)When the condition matches (
then)Properties and child nodes (
properties)
adi,current-channel— not listed as required here
false— Not permitted by this property rule.
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#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereThis rule must not match (
not)Rule for matching array elements (
contains)Allowed values (
enum):"adi,ad7172-4","adi,ad7173-8","adi,ad7175-8"When the condition matches (
then) #Properties and child nodes (
properties)
vref2-supply— not listed as required here
false— Not permitted by this property rule.Properties matching a name pattern (
patternProperties)
^channel@[0-9a-f]$— name matches this regular expressionProperties and child nodes (
properties)
adi,reference-select— not listed as required here
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad4114","adi,ad4115","adi,ad4116","adi,ad7173-8","adi,ad7175-8"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-9a-f]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):15
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad7172-2","adi,ad7175-2","adi,ad7176-2","adi,ad7177-2"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-9a-f]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):3
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"adi,ad7172-4"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-9a-f]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):7
adi,reference-select— required here
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad4111","adi,ad4112","adi,ad4113","adi,ad4114","adi,ad4115","adi,ad4116"When the condition matches (
then) #Properties and child nodes (
properties)
avdd2-supply— not listed as required here
false— Not permitted by this property rule.
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereThis rule must not match (
not)Rule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-9a-f]$— name matches this regular expressionProperties and child nodes (
properties)
adi,current-channel— not listed as required here
false— Not permitted by this property rule.
Rule 8 #
Condition (
if) #At least one of these rules must match (
anyOf)Rule 1
Rule 2
When the condition matches (
then) #Properties and child nodes (
properties)
#clock-cells— not listed as required here
false— Not permitted by this property rule.
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>;
adc@0 {
compatible = "adi,ad7173-8";
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "rdy";
interrupt-parent = <&gpio>;
spi-max-frequency = <5000000>;
gpio-controller;
#gpio-cells = <2>;
#clock-cells = <0>;
vref-supply = <&dummy_regulator>;
channel@0 {
reg = <0>;
bipolar;
diff-channels = <0 1>;
adi,reference-select = "vref";
};
channel@1 {
reg = <1>;
diff-channels = <2 3>;
};
channel@2 {
reg = <2>;
bipolar;
diff-channels = <4 5>;
};
channel@3 {
reg = <3>;
bipolar;
diff-channels = <6 7>;
};
channel@4 {
reg = <4>;
diff-channels = <8 9>;
adi,reference-select = "avdd";
};
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad4111";
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "rdy";
interrupt-parent = <&gpio>;
rdy-gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
spi-max-frequency = <5000000>;
gpio-controller;
#gpio-cells = <2>;
#clock-cells = <0>;
channel@0 {
reg = <0>;
bipolar;
diff-channels = <4 5>;
};
// Single ended channel VIN2/VINCOM
channel@1 {
reg = <1>;
bipolar;
single-channel = <2>;
common-mode-channel = <16>;
};
// Current channel IN2+/IN2-
channel@2 {
reg = <2>;
single-channel = <2>;
adi,current-channel;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2023 Analog Devices Inc.
Line 265: Only ad7172-4, ad7173-8 and ad7175-8 support vref2
Line 320: Model ad7172-4 does not support internal reference
Line 380: Example AD7173-8 with external reference connected to REF+/REF-:
Line 437: Example AD4111 with current channel and single-ended channel:
Analog Devices AD7191 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7191.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alisa-Dariana Roman <alisa.roman@analog.com>"
Bindings for the Analog Devices AD7191 ADC device. Datasheet can be found here: https://www.analog.com/media/en/technical-documentation/data-sheets/AD7191.pdf The device's PDOWN pin must be connected to the SPI controller's chip select pin.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7191"
reg — required here #
Maximum number of items (maxItems): 1
spi-cpol — required here #
true — No constraints added by this property rule.
spi-cpha — required here #
true — No constraints added by this property rule.
clocks — not listed as required here #
Maximum number of items (maxItems): 1
Must be present when CLKSEL pin is tied HIGH to select external clock source (either a crystal between MCLK1 and MCLK2 pins, or a CMOS-compatible clock driving MCLK2 pin). Must be absent when CLKSEL pin is tied LOW to use the internal 4.92MHz clock.
interrupts — required here #
Maximum number of items (maxItems): 1
avdd-supply — required here #
AVdd voltage supply
dvdd-supply — required here #
DVdd voltage supply
vref-supply — required here #
Vref voltage supply
odr-gpios — not listed as required here #
ODR1 and ODR2 pins for output data rate selection. Should be defined if adi,odr-value is absent.
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
adi,odr-value — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Should be present if ODR pins are pin-strapped. Possible values: 120 Hz (ODR1=0, ODR2=0) 60 Hz (ODR1=0, ODR2=1) 50 Hz (ODR1=1, ODR2=0) 10 Hz (ODR1=1, ODR2=1) If defined, odr-gpios must be absent.
Allowed values (enum): 120, 60, 50, 10
pga-gpios — not listed as required here #
PGA1 and PGA2 pins for gain selection. Should be defined if adi,pga-value is absent.
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
adi,pga-value — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Should be present if PGA pins are pin-strapped. Possible values: Gain 1 (PGA1=0, PGA2=0) Gain 8 (PGA1=0, PGA2=1) Gain 64 (PGA1=1, PGA2=0) Gain 128 (PGA1=1, PGA2=1) If defined, pga-gpios must be absent.
Allowed values (enum): 1, 8, 64, 128
temp-gpios — required here #
TEMP pin for temperature sensor enable.
Maximum number of items (maxItems): 1
chan-gpios — required here #
CHAN pin for input channel selection.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "avdd-supply", "dvdd-supply", "vref-supply", "spi-cpol", "spi-cpha", "temp-gpios", "chan-gpios"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Exactly one of these rules must match (
oneOf) #Rule 1
Rule 2
Rule 3 #
Exactly one of these rules must match (
oneOf) #Rule 1
Rule 2
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7191";
reg = <0>;
spi-max-frequency = <1000000>;
spi-cpol;
spi-cpha;
clocks = <&ad7191_mclk>;
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpio>;
avdd-supply = <&avdd>;
dvdd-supply = <&dvdd>;
vref-supply = <&vref>;
adi,pga-value = <1>;
odr-gpios = <&gpio 23 GPIO_ACTIVE_HIGH>, <&gpio 24 GPIO_ACTIVE_HIGH>;
temp-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
chan-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2025 Analog Devices Inc.
Analog Devices AD7192 ADC device driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7192.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
Bindings for the Analog Devices AD7192 ADC device. Datasheet can be found here: https://www.analog.com/media/en/technical-documentation/data-sheets/AD7192.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7190", "adi,ad7192", "adi,ad7193", "adi,ad7194", "adi,ad7195"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
reg — required here #
Maximum number of items (maxItems): 1
spi-cpol — required here #
true — No constraints added by this property rule.
spi-cpha — required here #
true — No constraints added by this property rule.
clocks — not listed as required here #
Maximum number of items (maxItems): 1
Optionally, either a crystal can be attached externally between MCLK1 and MCLK2 pins, or an external CMOS-compatible clock can drive the MCLK2 pin. If absent, internal 4.92MHz clock is used, which can be made available on MCLK2 pin.
clock-names — not listed as required here #
Allowed values (enum): "xtal", "mclk"
#clock-cells — not listed as required here #
Exact value (const): 0
If present when internal clock is used, configured as clock provider.
interrupts — required here #
Maximum number of items (maxItems): 1
aincom-supply — not listed as required here #
AINCOM voltage supply. Analog inputs AINx are referenced to this input when configured for pseudo-differential operation.
dvdd-supply — required here #
DVdd voltage supply
avdd-supply — required here #
AVdd voltage supply
vref-supply — required here #
VRef voltage supply
adi,rejection-60-Hz-enable — not listed as required here #
This bit enables a notch at 60 Hz when the first notch of the sinc filter is at 50 Hz. When REJ60 is set, a filter notch is placed at 60 Hz when the sinc filter first notch is at 50 Hz. This allows simultaneous 50 Hz/ 60 Hz rejection.
Value type (type): "boolean"
adi,refin2-pins-enable — not listed as required here #
External reference applied between the P1/REFIN2(+) and P0/REFIN2(−) pins.
Value type (type): "boolean"
adi,buffer-enable — not listed as required here #
Enables the buffer on the analog inputs. If cleared, the analog inputs are unbuffered, lowering the power consumption of the device. If this bit is set, the analog inputs are buffered, allowing the user to place source impedances on the front end without contributing gain errors to the system.
Value type (type): "boolean"
adi,burnout-currents-enable — not listed as required here #
When this bit is set to 1, the 500 nA current sources in the signal path are enabled. When BURN = 0, the burnout currents are disabled. The burnout currents can be enabled only when the buffer is active and when chop is disabled.
Value type (type): "boolean"
bipolar — not listed as required here #
see Documentation/devicetree/bindings/iio/adc/adc.yaml
Value type (type): "boolean"
rdy-gpios — not listed as required here #
GPIO reading the R̅D̅Y̅ line. Having such a GPIO is technically optional but highly recommended because DOUT/R̅D̅Y̅ toggles during SPI transfers (in its DOUT aka MISO role) and so usually triggers a spurious interrupt. The distinction between such a spurious event and a real one can only be done by reading such a GPIO. (There is a register telling the same information, but accessing that one needs a SPI transfer which then triggers another interrupt event.)
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^channel@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): adc.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
The channel index.
Minimum value (minimum): 0
Maximum value (maximum): 271
diff-channels — not listed as required here
Both inputs can be connected to pins AIN1 to AIN16 by choosing the appropriate value from 1 to 16.
Array item rules (items)
Minimum value (
minimum):1Maximum value (
maximum):16
single-channel — not listed as required here
Positive input can be connected to pins AIN1 to AIN16 by choosing the appropriate value from 1 to 16. Negative input is connected to AINCOM.
Minimum value (minimum): 1
Maximum value (maximum): 16
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Required in this object (required): "compatible", "reg", "interrupts", "dvdd-supply", "avdd-supply", "vref-supply", "spi-cpol", "spi-cpha"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereAllowed values (
enum):"adi,ad7190","adi,ad7192","adi,ad7193","adi,ad7195"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-9a-f]+$— name matches this regular expression
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #At least one of these rules must match (
anyOf)Rule 1
Rule 2
When the condition matches (
then) #Properties and child nodes (
properties)
#clock-cells— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7192";
reg = <0>;
spi-max-frequency = <1000000>;
spi-cpol;
spi-cpha;
clocks = <&ad7192_mclk>;
clock-names = "mclk";
interrupts = <25 0x2>;
interrupt-parent = <&gpio>;
rdy-gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
aincom-supply = <&aincom>;
dvdd-supply = <&dvdd>;
avdd-supply = <&avdd>;
vref-supply = <&vref>;
adi,refin2-pins-enable;
adi,rejection-60-Hz-enable;
adi,buffer-enable;
adi,burnout-currents-enable;
};
};
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7194";
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <1000000>;
spi-cpol;
spi-cpha;
#clock-cells = <0>;
interrupts = <25 0x2>;
interrupt-parent = <&gpio>;
rdy-gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
aincom-supply = <&aincom>;
dvdd-supply = <&dvdd>;
avdd-supply = <&avdd>;
vref-supply = <&vref>;
channel@0 {
reg = <0>;
diff-channels = <1 6>;
};
channel@1 {
reg = <1>;
single-channel = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2019 Analog Devices Inc.
Analog Devices AD7280a Lithium Ion Battery Monitoring System
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7280a.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>", "Jonathan Cameron <jic23@kernel.org>"
Bindings for the Analog Devices AD7280a Battery Monitoring System.
Used in devices such as hybrid electric cars, battery backup and power tools.
Multiple chips can be daisy chained and accessed via a single SPI interface.
Data sheet found here:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7280A.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "adi,ad7280a"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
IRQ line for the ADC
Maximum number of items (maxItems): 1
adi,voltage-alert-last-chan — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allows limiting of scope of which channels are considered for voltage alerts, typically because not all are wired to anything. Only applies to last device in the daisy chain.
Default value (default): 5
Allowed values (enum): 3, 4, 5
adi,acquisition-time-ns — not listed as required here #
Additional time may be needed to charge the sampling capacitors depending on external writing.
Default value (default): 400
Allowed values (enum): 400, 800, 1200, 1600
adi,thermistor-termination — not listed as required here #
Value type (type): "boolean"
Enable the thermistor termination function.
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7280a";
reg = <0>;
spi-max-frequency = <700000>;
interrupt-parent = <&gpio>;
interrupts = <25 2>;
adi,thermistor-termination;
adi,acquisition-time-ns = <800>;
adi,voltage-alert-last-chan = <5>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
AD7291 8-Channel, I2C, 12-Bit SAR ADC with Temperature Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7291.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Auchter <michael.auchter@ni.com>"
Analog Devices AD7291 8-Channel I2C 12-Bit SAR ADC with Temperature Sensor https://www.analog.com/media/en/technical-documentation/data-sheets/ad7291.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7291"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — not listed as required here #
The regulator supply for ADC reference voltage.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
ad7291: adc@0 {
compatible = "adi,ad7291";
reg = <0>;
vref-supply = <&adc_vref>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices AD7292 10-Bit Monitor and Control System
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7292.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcelo Schmitt <marcelo.schmitt1@gmail.com>"
Analog Devices AD7292 10-Bit Monitor and Control System with ADC, DACs, Temperature Sensor, and GPIOs
Specifications about the part can be found at:
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7292.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7292"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — not listed as required here #
The regulator supply for ADC and DAC reference voltage.
spi-cpha — required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg", "spi-cpha"
Properties matching a name pattern (patternProperties) #
^channel@[0-7]$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Represents the external channels which are connected to the ADC.
Properties and child nodes (properties) #
reg — required here
The channel number. It can have up to 8 channels numbered from 0 to 7.
Array item rules (items)
Item 1
Minimum value (
minimum):0Maximum value (
maximum):7
diff-channels — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
ad7292: adc@0 {
compatible = "adi,ad7292";
reg = <0>;
spi-max-frequency = <25000000>;
vref-supply = <&adc_vref>;
spi-cpha;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
diff-channels = <0 1>;
};
channel@2 {
reg = <2>;
};
channel@3 {
reg = <3>;
};
channel@4 {
reg = <4>;
};
channel@5 {
reg = <5>;
};
channel@6 {
reg = <6>;
};
channel@7 {
reg = <7>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices AD7298 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7298.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
Bindings for the Analog Devices AD7298 ADC device. Datasheet can be
found here:
https://www.analog.com/en/products/ad7298.html
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "adi,ad7298"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — not listed as required here #
true — No constraints added by this property rule.
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7298";
reg = <0>;
spi-max-frequency = <5000000>;
vref-supply = <&adc_vref>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2019 Analog Devices Inc.
Analog Devices Simultaneous Sampling Analog to Digital Converters
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7380.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <Michael.Hennerich@analog.com>", "Nuno Sá <nuno.sa@analog.com>"
* https://www.analog.com/en/products/ad7380.html * https://www.analog.com/en/products/ad7381.html * https://www.analog.com/en/products/ad7383.html * https://www.analog.com/en/products/ad7384.html * https://www.analog.com/en/products/ad7386.html * https://www.analog.com/en/products/ad7387.html * https://www.analog.com/en/products/ad7388.html * https://www.analog.com/en/products/ad7380-4.html * https://www.analog.com/en/products/ad7381-4.html * https://www.analog.com/en/products/ad7383-4.html * https://www.analog.com/en/products/ad7384-4.html * https://www.analog.com/en/products/ad7386-4.html * https://www.analog.com/en/products/ad7387-4.html * https://www.analog.com/en/products/ad7388-4.html * https://www.analog.com/en/products/ad7389-4.html * https://www.analog.com/en/products/adaq4370-4.html * https://www.analog.com/en/products/adaq4380-4.html * https://www.analog.com/en/products/adaq4381-4.html
Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7380", "adi,ad7381", "adi,ad7383", "adi,ad7384", "adi,ad7386", "adi,ad7387", "adi,ad7388", "adi,ad7380-4", "adi,ad7381-4", "adi,ad7383-4", "adi,ad7384-4", "adi,ad7386-4", "adi,ad7387-4", "adi,ad7388-4", "adi,ad7389-4", "adi,adaq4370-4", "adi,adaq4380-4", "adi,adaq4381-4"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 80000000
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
vcc-supply — required here #
A 3V to 3.6V supply that powers the chip.
vlogic-supply — required here #
A 1.65V to 3.6V supply for the logic pins.
refio-supply — not listed as required here #
A 2.5V to 3.3V supply for the external reference voltage. When omitted, the internal 2.5V reference is used.
refin-supply — not listed as required here #
A 2.5V to 3.3V supply for external reference voltage, for ad7380-4 only. For adaq devices, a 5V supply voltage. A 3.3V internal reference is derived from it. Connect to vs-p-supply for normal operation.
vs-p-supply — not listed as required here #
Amplifiers positive supply.
vs-n-supply — not listed as required here #
Amplifiers negative supply.
ldo-supply — not listed as required here #
LDO supply. Connect to vs-p-supply or a 3.6 to 5.5 V supply.
aina-supply — not listed as required here #
The common mode voltage supply for the AINA- pin on pseudo-differential chips.
ainb-supply — not listed as required here #
The common mode voltage supply for the AINB- pin on pseudo-differential chips.
ainc-supply — not listed as required here #
The common mode voltage supply for the AINC- pin on pseudo-differential chips.
aind-supply — not listed as required here #
The common mode voltage supply for the AIND- pin on pseudo-differential chips.
interrupts — not listed as required here #
When the device is using 1-wire mode, this property is used to optionally specify the ALERT interrupt.
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg", "vcc-supply", "vlogic-supply"
Properties matching a name pattern (patternProperties) #
^channel@[0-3]$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Properties and child nodes (properties) #
reg — required here
The channel number. From 0 to 3 corresponding to channels A,B,C,D
Minimum value (minimum): 0
Maximum value (maximum): 3
adi,gain-milli — not listed as required here
The hardware gain applied to the ADC input (in milli units). If not present, default to 1000 (no actual gain applied). Refer to the typical connection diagrams section of the datasheet for pin wiring.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Allowed values (enum): 300, 600, 1000, 1600
Default value (default): 1000
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereAllowed values (
enum):"adi,ad7383","adi,ad7384","adi,ad7383-4","adi,ad7384-4"When the condition matches (
then) #Required in this object (
required):"aina-supply","ainb-supply"When the condition does not match (
else) #Properties and child nodes (
properties)
aina-supply— not listed as required here
false— Not permitted by this property rule.
ainb-supply— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Required in this object (
required):"ainc-supply","aind-supply"When the condition does not match (
else) #Properties and child nodes (
properties)
ainc-supply— not listed as required here
false— Not permitted by this property rule.
aind-supply— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereAllowed values (
enum):"adi,ad7380-4","adi,adaq4370-4","adi,adaq4380-4","adi,adaq4381-4"When the condition matches (
then) #Properties and child nodes (
properties)
refio-supply— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
refin-supply— not listed as required here
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"adi,ad7389-4"When the condition matches (
then) #Properties and child nodes (
properties)
refio-supply— not listed as required here
false— Not permitted by this property rule.
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereAllowed values (
enum):"adi,adaq4370-4","adi,adaq4380-4","adi,adaq4381-4"When the condition matches (
then) #Required in this object (
required):"vs-p-supply","vs-n-supply","ldo-supply"When the condition does not match (
else) #Properties and child nodes (
properties)
vs-p-supply— not listed as required here
false— Not permitted by this property rule.
vs-n-supply— not listed as required here
false— Not permitted by this property rule.
ldo-supply— not listed as required here
false— Not permitted by this property rule.Properties matching a name pattern (
patternProperties)
^channel@[0-3]$— name matches this regular expression
false— Not permitted by this property rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7380";
reg = <0>;
spi-cpol;
spi-cpha;
spi-max-frequency = <80000000>;
interrupts = <27 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpio0>;
vcc-supply = <&supply_3_3V>;
vlogic-supply = <&supply_3_3V>;
refio-supply = <&supply_2_5V>;
};
};
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,adaq4380-4";
reg = <0>;
spi-cpol;
spi-cpha;
spi-max-frequency = <80000000>;
interrupts = <27 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpio0>;
vcc-supply = <&supply_3_3V>;
vlogic-supply = <&supply_3_3V>;
refin-supply = <&supply_5V>;
vs-p-supply = <&supply_5V>;
vs-n-supply = <&supply_0V>;
ldo-supply = <&supply_5V>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
adi,gain-milli = /bits/ 16 <300>;
};
channel@2 {
reg = <2>;
adi,gain-milli = /bits/ 16 <600>;
};
channel@3 {
reg = <3>;
adi,gain-milli = /bits/ 16 <1000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 163: pseudo-differential chips require common mode voltage supplies,
Line 164: true differential chips don't use them
Line 196: ad7380-4 uses refin-supply as external reference.
Line 197: adaq devices use internal reference only, derived from refin-supply
Line 198: All other chips from ad738x family use refio as optional external reference.
Line 199: When refio-supply is omitted, internal reference is used.
Line 217: adi,ad7389-4 is internal reference only
Line 226: adaq devices need more supplies and using channel to declare gain property
Line 227: only applies to adaq devices
Analog Devices AD7405 family
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7405.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dragos Bogdan <dragos.bogdan@analog.com>", "Pop Ioan Daniel <pop.ioan-daniel@analog.com>"
Analog Devices AD7405 is a high performance isolated ADC, 1-channel, 16-bit with a second-order Σ-Δ modulator that converts an analog input signal into a high speed, single-bit data stream.
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7405.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/adum7701.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/adum7702.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ADuM7703.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7405", "adi,adum7701", "adi,adum7702", "adi,adum7703"
clocks — required here #
Maximum number of items (maxItems): 1
vdd1-supply — required here #
true — No constraints added by this property rule.
vdd2-supply — required here #
true — No constraints added by this property rule.
io-backends — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "clocks", "vdd1-supply", "vdd2-supply", "io-backends"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
adc {
compatible = "adi,ad7405";
clocks = <&axi_clk_gen 0>;
vdd1-supply = <&vdd1>;
vdd2-supply = <&vdd2>;
io-backends = <&axi_adc>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright 2025 Analog Devices Inc.
AD7476 and similar simple SPI ADCs from multiple manufacturers.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7476.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
A lot of simple SPI ADCs have very straight forward interfaces. They typically don't provide a MOSI pin, simply reading out data on MISO when the clock toggles.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"adi,ad7091","adi,ad7091r","adi,ad7273","adi,ad7274","adi,ad7276","adi,ad7277","adi,ad7278","adi,ad7466","adi,ad7467","adi,ad7468","adi,ad7475","adi,ad7476","adi,ad7476a","adi,ad7477","adi,ad7477a","adi,ad7478","adi,ad7478a","adi,ad7495","adi,ad7910","adi,ad7920","adi,ad7940","rohm,bd79105","ti,adc081s","ti,adc101s","ti,adc121s","ti,ads7866","ti,ads7867","ti,ads7868","lltc,ltc2314-14"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"rohm,bu79100g"Item 2
Exact value (
const):"ti,ads7866"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
The data-ready interrupt. Provided via DOUT pin.
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
Main powersupply voltage for the chips, sometimes referred to as VDD on datasheets. If there is no separate vref-supply, then this is needed to establish channel scaling.
vdrive-supply — not listed as required here #
Some devices have separate supply for their digital control side.
vref-supply — not listed as required here #
Some devices have a specific reference voltage supplied on a different pin to the other supplies. Needed to be able to establish channel scaling unless there is also an internal reference available (e.g. ad7091r)
adi,conversion-start-gpios — not listed as required here #
A GPIO used to trigger the start of a conversion
Maximum number of items (maxItems): 1
rdy-gpios — not listed as required here #
A GPIO for detecting the data-ready.
Maximum number of items (maxItems): 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#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required here
true— No constraints added by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad7091","adi,ad7276","adi,ad7277","adi,ad7278","adi,ad7466","adi,ad7467","adi,ad7468","adi,ad7940","ti,adc081s","ti,adc101s","ti,adc121s","ti,ads7866","ti,ads7868"When the condition matches (
then) #
Rule 4 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad7091r","adi,ad7273","adi,ad7274","adi,ad7475","lltc,ltc2314-14","rohm,bd79105"When the condition matches (
then) #Properties and child nodes (
properties)
vref-supply— not listed as required here
false— Not permitted by this property rule.
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad7273","adi,ad7274","adi,ad7475","lltc,ltc2314-14","rohm,bd79105"When the condition matches (
then) #
Rule 6 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad7475","adi,ad7495","rohm,bd79105"When the condition matches (
then) #Properties and child nodes (
properties)
vdrive-supply— not listed as required here
false— Not permitted by this property rule.
Rule 7 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
rdy-gpios— not listed as required here
false— Not permitted by this property rule.
Rule 8 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad7091","adi,ad7091r","rohm,bd79105"When the condition matches (
then) #Properties and child nodes (
properties)
adi,conversion-start-gpios— not listed as required here
false— Not permitted by this property rule.
Rule 9 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Required in this object (
required):"adi,conversion-start-gpios"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7091r";
reg = <0>;
spi-max-frequency = <5000000>;
vcc-supply = <&adc_vcc>;
vref-supply = <&adc_vref>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2019 Analog Devices Inc.
Line 95: Devices with an IRQ
Line 109: Devices where reference is vcc
Line 131: Devices with a vref
Line 147: Devices with a vref where it is not optional
Line 174: Devices which support polling the data-ready via GPIO
Line 199: Devices with a convstart GPIO where it is not optional
Analog Devices AD7606 Simultaneous Sampling ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7606.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
Analog Devices AD7606 Simultaneous Sampling ADC https://www.analog.com/media/en/technical-documentation/data-sheets/AD7605-4.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606_7606-6_7606-4.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/AD7606B.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606c-16.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606c-18.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ad7607.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ad7608.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ad7609.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/AD7616.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7605-4", "adi,ad7606-4", "adi,ad7606-6", "adi,ad7606-8", "adi,ad7606b", "adi,ad7606c-16", "adi,ad7606c-18", "adi,ad7607", "adi,ad7608", "adi,ad7609", "adi,ad7616"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
#trigger-source-cells — not listed as required here #
Cell indicates the output signal: 0 = BUSY, 1 = FIRSTDATA.
For convenience, macros for these values are available in dt-bindings/iio/adc/adi,ad7606.h.
Exact value (const): 1
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
avcc-supply — required here #
true — No constraints added by this property rule.
vdrive-supply — required here #
Determines the voltage level at which the interface logic pins will operate.
refin-supply — not listed as required here #
The voltage supply for optional external reference voltage.
interrupts — not listed as required here #
The BUSY pin falling edge indicates that the conversion is over, and thus new data is available.
Maximum number of items (maxItems): 1
adi,conversion-start-gpios — not listed as required here #
Must be the device tree identifier of the CONVST pin(s). This logic input is used to initiate conversions on the analog input channels. As the line is active high, it should be marked GPIO_ACTIVE_HIGH.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
reset-gpios — not listed as required here #
Must be the device tree identifier of the RESET pin. If specified, it will be asserted during driver probe. On the AD7606x, as the line is active high, it should be marked GPIO_ACTIVE_HIGH. On the AD7616, as the line is active low, it should be marked GPIO_ACTIVE_LOW.
Maximum number of items (maxItems): 1
standby-gpios — not listed as required here #
Must be the device tree identifier of the STBY pin. This pin is used to place the AD7606 into one of two power-down modes, Standby mode or Shutdown mode. As the line is active low, it should be marked GPIO_ACTIVE_LOW.
Maximum number of items (maxItems): 1
adi,first-data-gpios — not listed as required here #
Must be the device tree identifier of the FRSTDATA pin. The FRSTDATA output indicates when the first channel, V1, is being read back on either the parallel, byte or serial interface. As the line is active high, it should be marked GPIO_ACTIVE_HIGH.
Maximum number of items (maxItems): 1
adi,range-gpios — not listed as required here #
Must be the device tree identifier of the RANGE pin. The state on this pin determines the input range of the analog input channels. If this pin is tied to a logic high, the analog input range is ±10V for all channels. On the AD760X, if this pin is tied to a logic low, the analog input range is ±5V for all channels. As the line is active high, it should be marked GPIO_ACTIVE_HIGH. On the AD7616, there are 2 pins, and if the 2 pins are tied to a logic high, software mode is enabled, otherwise one of the 3 possible range values is selected.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
adi,oversampling-ratio-gpios — not listed as required here #
Must be the device tree identifier of the over-sampling mode pins. As the line is active high, it should be marked GPIO_ACTIVE_HIGH. On the AD7606X parts that support it, if all 3 pins are tied to a logic high, software mode is enabled.
Maximum number of items (maxItems): 3
adi,sw-mode — not listed as required here #
Software mode of operation, so far available only for AD7616 and AD7606B. It is enabled when all three oversampling mode pins are connected to high level for the AD7606B, or both the range selection are connected to high level for the AD7616. The device is configured by the corresponding registers. If the adi,oversampling-ratio-gpios property is defined, then the driver will set the oversampling gpios to high. Otherwise, it is assumed that the pins are hardwired to VDD.
Value type (type): "boolean"
pwms — not listed as required here #
In case the conversion is triggered by a PWM instead of a GPIO plugged to the CONVST pin, the PWM must be referenced. The first is the PWM connected to CONVST or CONVST1 for the chips with the 2nd PWM connected to CONVST2, if CONVST2 is available and not shorted to CONVST1.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
pwm-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"convst1"
Item 2
Exact value (
const):"convst2"
io-backends — not listed as required here #
A reference to the iio-backend, which is responsible handling the BUSY pin's falling edge and communication. An example of backend can be found at http://analogdevicesinc.github.io/hdl/library/axi_ad7606x/index.html
Properties matching a name pattern (patternProperties) #
^channel@[1-8]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): adc.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
The channel number, as specified in the datasheet (from 1 to 8).
Minimum value (minimum): 1
Maximum value (maximum): 8
diff-channels — not listed as required here
Each channel can be configured as a bipolar differential channel. The ADC uses the same positive and negative inputs for this. This property must be specified as 'reg' (or the channel number) for both positive and negative inputs (i.e. diff-channels = <reg reg>). Since the configuration is bipolar differential, the 'bipolar' property is required.
Array item rules (items)
Minimum value (
minimum):1Maximum value (
maximum):8
bipolar — required here
The ADC channels can be configured as * Bipolar single-ended * Unipolar single-ended * Bipolar differential Therefore in the DT, if no channel node is specified, it is considered 'unipolar single-ended'. So for the other configurations the 'bipolar' property must be specified. If 'diff-channels' is specified, it is considered a bipolar differential channel. Otherwise it is bipolar single-ended.
adi,rfilter-ohms — not listed as required here
For ADCs that supports gain calibration, this property must be set to the value of the external RFilter resistor. Proper gain error correction is applied based on this value.
Default value (default): 0
Minimum value (minimum): 0
Maximum value (maximum): 64512
Required in this object (required): "reg", "bipolar"
Required in this object (required): "compatible", "reg", "avcc-supply", "vdrive-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Exactly one of these rules must match (
oneOf) #Rule 1
Required in this object (
required):"adi,conversion-start-gpios"Rule 2
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"adi,ad7616"When the condition matches (
then) #Properties and child nodes (
properties)
adi,first-data-gpios— not listed as required here
false— Not permitted by this property rule.
standby-gpios— not listed as required here
false— Not permitted by this property rule.
adi,range-gpios— not listed as required hereMaximum number of items (
maxItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
adi,range-gpios— not listed as required hereMaximum number of items (
maxItems):1
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
adi,oversampling-ratio-gpios— not listed as required here
false— Not permitted by this property rule.
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad7605-4","adi,ad7606-4","adi,ad7606-6","adi,ad7606-8","adi,ad7607","adi,ad7608","adi,ad7609","adi,ad7616"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-9a-f]+$— name matches this regular expressionProperties and child nodes (
properties)
adi,rfilter-ohms— not listed as required here
false— Not permitted by this property rule.
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad7605-4","adi,ad7606-4","adi,ad7606-6","adi,ad7606-8","adi,ad7607","adi,ad7608","adi,ad7609"When the condition matches (
then) #Properties and child nodes (
properties)
adi,sw-mode— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
pwms— not listed as required hereMaximum number of items (
maxItems):1
pwm-names— not listed as required hereMaximum number of items (
maxItems):1
adi,conversion-start-gpios— not listed as required hereMaximum number of items (
maxItems):1
Rule 7 #
Condition (
if) #This rule must not match (
not)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[1-8]$— name matches this regular expression
false— Not permitted by this property rule.
Rule 8 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[1-8]$— name matches this regular expression
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
iio-backend {
#address-cells = <1>;
#size-cells = <0>;
adi_adc@0 {
compatible = "adi,ad7606b";
reg = <0>;
pwms = <&axi_pwm_gen 0 0>;
avcc-supply = <&adc_vref>;
vdrive-supply = <&vdd_supply>;
reset-gpios = <&gpio0 91 GPIO_ACTIVE_HIGH>;
standby-gpios = <&gpio0 90 GPIO_ACTIVE_LOW>;
adi,range-gpios = <&gpio0 89 GPIO_ACTIVE_HIGH>;
adi,oversampling-ratio-gpios = <&gpio0 88 GPIO_ACTIVE_HIGH
&gpio0 87 GPIO_ACTIVE_HIGH
&gpio0 86 GPIO_ACTIVE_HIGH>;
io-backends = <&iio_backend>;
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7606-8";
reg = <0>;
spi-max-frequency = <1000000>;
spi-cpol;
avcc-supply = <&adc_vref>;
vdrive-supply = <&vdd_supply>;
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpio>;
adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
adi,oversampling-ratio-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>,
<&gpio 23 GPIO_ACTIVE_HIGH>,
<&gpio 26 GPIO_ACTIVE_HIGH>;
standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7606c-18";
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <1000000>;
spi-cpol;
avcc-supply = <&adc_vref>;
vdrive-supply = <&vdd_supply>;
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpio>;
adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
adi,sw-mode;
channel@1 {
reg = <1>;
diff-channels = <1 1>;
bipolar;
};
channel@3 {
reg = <3>;
bipolar;
};
channel@8 {
reg = <8>;
diff-channels = <8 8>;
bipolar;
adi,rfilter-ohms = <2048>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 30: Referred to as AD7606 (without -8) in the datasheet
Line 56: According to the datasheet, "Data is clocked in from SDI on the falling
Line 57: edge of SCLK, while data is clocked out on DOUTA on the rising edge of
Line 58: SCLK". Also, even if not stated textually in the datasheet, it is made
Line 59: clear on the diagrams that sclk idles at high. Subsequently, in case SPI
Line 60: interface is used, the correct way is to only set spi-cpol.
Analog Devices Fast PulSAR Analog to Digital Converters
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7625.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <Michael.Hennerich@analog.com>", "Nuno Sá <nuno.sa@analog.com>"
A family of single channel differential analog to digital converters.
* https://www.analog.com/en/products/ad7625.html * https://www.analog.com/en/products/ad7626.html * https://www.analog.com/en/products/ad7960.html * https://www.analog.com/en/products/ad7961.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7625", "adi,ad7626", "adi,ad7960", "adi,ad7961"
vdd1-supply — required here #
true — No constraints added by this property rule.
vdd2-supply — required here #
true — No constraints added by this property rule.
vio-supply — required here #
true — No constraints added by this property rule.
ref-supply — not listed as required here #
Voltage regulator for the external reference voltage (REF).
refin-supply — not listed as required here #
Voltage regulator for the reference buffer input (REFIN).
clocks — required here #
The clock connected to the CLK pins, gated by the clk_gate PWM.
Maximum number of items (maxItems): 1
pwms — required here #
Array item rules (items) #
Item 1
PWM connected to the CNV input on the ADC.
Item 2
PWM that gates the clock connected to the ADC's CLK input.
pwm-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"cnv"
Item 2
Exact value (
const):"clk_gate"
io-backends — required here #
The AXI ADC IP block connected to the D+/- and DCO+/- lines of the ADC. An example backend can be found at http://analogdevicesinc.github.io/hdl/projects/pulsar_lvds/index.html.
Maximum number of items (maxItems): 1
adi,no-dco — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicates the wiring of the DCO+/- lines. If true, then they are grounded and the device is in self-clocked mode. If this is not present, then the device is in echoed clock mode.
adi,en0-always-on — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicates if EN0 is hard-wired to the high state. If neither this nor en0-gpios are present, then EN0 is hard-wired low.
adi,en1-always-on — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicates if EN1 is hard-wired to the high state. If neither this nor en1-gpios are present, then EN1 is hard-wired low.
adi,en2-always-on — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicates if EN2 is hard-wired to the high state. If neither this nor en2-gpios are present, then EN2 is hard-wired low.
adi,en3-always-on — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicates if EN3 is hard-wired to the high state. If neither this nor en3-gpios are present, then EN3 is hard-wired low.
en0-gpios — not listed as required here #
Configurable EN0 pin.
en1-gpios — not listed as required here #
Configurable EN1 pin.
en2-gpios — not listed as required here #
Configurable EN2 pin.
en3-gpios — not listed as required here #
Configurable EN3 pin.
Required in this object (required): "compatible", "vdd1-supply", "vdd2-supply", "vio-supply", "clocks", "pwms", "pwm-names", "io-backends"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
refin-supply— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
ref-supply— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
en2-gpios— not listed as required here
false— Not permitted by this property rule.
en3-gpios— not listed as required here
false— Not permitted by this property rule.
adi,en2-always-on— not listed as required here
false— Not permitted by this property rule.
adi,en3-always-on— not listed as required here
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Exactly one of these rules must match (
oneOf)Rule 1
Rule 2
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
adc {
compatible = "adi,ad7625";
vdd1-supply = <&supply_5V>;
vdd2-supply = <&supply_2_5V>;
vio-supply = <&supply_2_5V>;
io-backends = <&axi_adc>;
clocks = <&ref_clk>;
pwms = <&axi_pwm_gen 0 0>, <&axi_pwm_gen 1 0>;
pwm-names = "cnv", "clk_gate";
en0-gpios = <&gpio0 86 GPIO_ACTIVE_HIGH>;
en1-gpios = <&gpio0 87 GPIO_ACTIVE_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 155: ad796x parts must have one of the two supplies
Analog Devices AD7768-1 ADC family
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7768-1.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
Analog Devices AD7768-1 24-Bit Single Channel Low Power sigma-delta ADC family
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7767-1.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7768-1.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7769-1.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7768-1", "adi,adaq7767-1", "adi,adaq7768-1", "adi,adaq7769-1"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "mclk"
trigger-sources — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
A list of phandles referencing trigger source providers. Each entry represents a trigger source for the ADC:
- First entry specifies the device responsible for driving the
synchronization (SYNC_IN) pin, as an alternative to adi,sync-in-gpios.
This can be a `gpio-trigger` or another `ad7768-1` device. If the
device's own SYNC_OUT pin is internally connected to its SYNC_IN pin,
reference the device itself or omit this property.
- Second entry optionally defines a GPIO3 pin used as a START signal trigger.
Use the accompanying trigger source cell to identify the type of each entry.
interrupts — not listed as required here #
DRDY (Data Ready) pin, which signals conversion results are available.
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
vref-supply — required here #
ADC reference voltage supply
adi,aaf-gain-bp — not listed as required here #
Specifies the gain applied by the Analog Anti-Aliasing Filter (AAF)
to the ADC input in basis points (one hundredth of a percent).
The hardware gain is determined by which input pin(s) the signal goes
through into the AAF. The possible connections are:
* For the ADAQ7767-1: Input connected to IN1±, IN2± or IN3±.
* For the ADAQ7769-1: OUT_PGA pin connected to IN1_AAF+, IN2_AAF+,
or IN3_AAF+.
Allowed values (enum): 1430, 3640, 10000
Default value (default): 10000
pga-gpios — not listed as required here #
GAIN 0, GAIN1 and GAIN2 pins for gain selection. For devices that have PGA configuration input pins, pga-gpios must be defined.
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 3
adi,sync-in-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Enables synchronization of multiple devices that require simultaneous sampling. A pulse is always required if the configuration is changed in any way, for example if the filter decimation rate changes. As the line is active low, it should be marked GPIO_ACTIVE_LOW.
regulators — not listed as required here #
Value type (type): "object"
list of regulators provided by this controller.
Properties and child nodes (properties) #
vcm-output — not listed as required here
Shared schema rule ($ref): /schemas/regulator/regulator.yaml#
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
spi-cpol — required here #
true — No constraints added by this property rule.
spi-cpha — required here #
true — No constraints added by this property rule.
#io-channel-cells — not listed as required here #
Exact value (const): 1
#trigger-source-cells — not listed as required here #
Cell indicates the trigger output signal: 0 = SYNC_OUT, 1 = GPIO3, 2 = DRDY.
For better readability, macros for these values are available in dt-bindings/iio/adc/adi,ad7768-1.h.
Exact value (const): 1
gpio-controller — not listed as required here #
true — No constraints added by this property rule.
#gpio-cells — not listed as required here #
Exact value (const): 2
The first cell is for the GPIO number: 0 to 3. The second cell takes standard GPIO flags.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "vref-supply", "spi-cpol", "spi-cpha"
Property dependencies (dependencies) #
adi,sync-in-gpios — applies when this property is present #
This rule must not match (not) #
trigger-sources — applies when this property is present #
This rule must not match (not) #
Properties matching a name pattern (patternProperties) #
^channel@([0-9]|1[0-5])$ — name matches this regular expression #
Value type (type): "object"
Represents the external channels which are connected to the device.
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
The channel number.
label — not listed as required here
Unique name to identify which channel this is.
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
adi,aaf-gain-bp— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
pga-gpios— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7768-1";
reg = <0>;
spi-max-frequency = <2000000>;
spi-cpol;
spi-cpha;
gpio-controller;
#gpio-cells = <2>;
vref-supply = <&adc_vref>;
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
interrupt-parent = <&gpio>;
adi,sync-in-gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
clocks = <&ad7768_mclk>;
clock-names = "mclk";
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
label = "channel_0";
};
regulators {
vcm_reg: vcm-output {
regulator-name = "ad7768-1-vcm";
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 177: AAF Gain property only applies to ADAQ7767-1 and ADAQ7769-1 devices
Analog Devices AD777X family 8-Channel, 24-Bit, Simultaneous Sampling ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7779.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ramona Nechita <ramona.nechita@analog.com>"
The AD777X family consist of 8-channel, simultaneous sampling analog-to- digital converter (ADC). Eight full Σ-Δ ADCs are on-chip. The AD7771 provides an ultralow input current to allow direct sensor connection. Each input channel has a programmable gain stage allowing gains of 1, 2, 4, and 8 to map lower amplitude sensor outputs into the full-scale ADC input range, maximizing the dynamic range of the signal chain.
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7770.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ad7771.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ad7779.pdf
Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7770", "adi,ad7771", "adi,ad7779"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
clocks — required here #
Maximum number of items (maxItems): 1
avdd1-supply — not listed as required here #
Front-End analog supply AVDD1. Can be used as conversion ref.
avdd2-supply — not listed as required here #
AVDD2 Analog Supply from 2.2 V to 3.6 V.
avdd4-supply — not listed as required here #
AVDD4 SAR Analog Supply and Reference Source.
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
adc_rdy: Interrupt line for DRDY signal which indicates the end of conversion independently of the interface selected to read back the Σ-∆ conversion.
Item 2
Alert: The chip includes self diagnostic features to guarantee the correct operation. If an error is detected, the ALERT pin is pulled high to generate an external interruption to the controller.
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
start-gpios — not listed as required here #
Pin that controls start synchronization pulse.
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
io-backends — not listed as required here #
Maximum number of items (maxItems): 1
adi,num-lanes — not listed as required here #
Number of lanes on which the data is sent on the output when the data output interface is used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 4
Default value (default): 4
Required in this object (required): "compatible", "reg", "clocks"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #This rule must not match (
not)When the condition matches (
then) #Properties and child nodes (
properties)
adi,num-lanes— not listed as required here
false— Not permitted by this property rule.
Exactly one of these rules must match (oneOf) #
Rule 1 #
Rule 2 #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7779";
reg = <0>;
start-gpios = <&gpio0 87 GPIO_ACTIVE_LOW>;
reset-gpios = <&gpio0 93 GPIO_ACTIVE_LOW>;
interrupt-parent = <&intc>;
interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "adc_rdy";
clocks = <&adc_clk>;
};
};
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7779";
reg = <0>;
start-gpios = <&gpio0 87 GPIO_ACTIVE_LOW>;
reset-gpios = <&gpio0 93 GPIO_ACTIVE_LOW>;
clocks = <&adc_clk>;
io-backends = <&iio_backend>;
adi,num-lanes = <4>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices AD7170/AD7171/AD7780/AD7781 analog to digital converters
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7780.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
The ad7780 is a sigma-delta analog to digital converter. This driver provides reading voltage values and status bits from both the ad778x and ad717x series. Its interface also allows writing on the FILTER and GAIN GPIO pins on the ad778x.
Specifications on the converters can be found at:
AD7170:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7170.pdf
AD7171:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7171.pdf
AD7780:
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7780.pdf
AD7781:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7781.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7170", "adi,ad7171", "adi,ad7780", "adi,ad7781"
reg — required here #
Maximum number of items (maxItems): 1
avdd-supply — not listed as required here #
The regulator supply for the ADC reference voltage.
powerdown-gpios — not listed as required here #
Must be the device tree identifier of the PDRST pin. If specified, it will be asserted during driver probe. As the line is active high, it should be marked GPIO_ACTIVE_HIGH.
Maximum number of items (maxItems): 1
adi,gain-gpios — not listed as required here #
Must be the device tree identifier of the GAIN pin. Only for the ad778x chips. If specified, it will be asserted during driver probe. As the line is active low, it should be marked GPIO_ACTIVE_LOW.
Maximum number of items (maxItems): 1
adi,filter-gpios — not listed as required here #
Must be the device tree identifier of the FILTER pin. Only for the ad778x chips. If specified, it will be asserted during driver probe. As the line is active low, it should be marked GPIO_ACTIVE_LOW.
Maximum number of items (maxItems): 1
rdy-gpios — not listed as required here #
GPIO reading the R̅D̅Y̅ line. Having such a GPIO is technically optional but highly recommended because DOUT/R̅D̅Y̅ toggles during SPI transfers (in its DOUT aka MISO role) and so usually triggers a spurious interrupt. The distinction between such a spurious event and a real one can only be done by reading such a GPIO. (There is a register telling the same information, but accessing that one needs a SPI transfer which then triggers another interrupt event.)
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7780";
reg = <0>;
avdd-supply = <&vdd_supply>;
powerdown-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
adi,gain-gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
adi,filter-gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Analog Devices AD7923 and similars with 4 and 8 Channel ADCs.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7923.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
Analog Devices AD7904, AD7914, AD7923, AD7924 4 Channel ADCs, and AD7908, AD7918, AD7927, AD7928 8 Channels ADCs.
Specifications about the part can be found at:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7923.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7904_7914_7924.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7908_7918_7928.pdf
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"adi,ad7904","adi,ad7908","adi,ad7914","adi,ad7918","adi,ad7923","adi,ad7928"
Rule 2
Exact value (
const):"adi,ad7924"Deprecated (
deprecated):true
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"adi,ad7924"Item 2
Exact value (
const):"adi,ad7923"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"adi,ad7927"Item 2
Exact value (
const):"adi,ad7928"
reg — required here #
Maximum number of items (maxItems): 1
refin-supply — not listed as required here #
The regulator supply for ADC reference voltage.
adi,range-double — not listed as required here #
Sets the analog input range from 0 to 2xVREF.
Value type (type): "boolean"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
ad7928: adc@0 {
compatible = "adi,ad7928";
reg = <0>;
spi-max-frequency = <25000000>;
refin-supply = <&adc_vref>;
#address-cells = <1>;
#size-cells = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices PulSAR LFCSP Analog to Digital Converters
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7944.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <Michael.Hennerich@analog.com>", "Nuno Sá <nuno.sa@analog.com>"
A family of pin-compatible single channel differential analog to digital converters with SPI support in a LFCSP package.
* https://www.analog.com/en/products/ad7944.html * https://www.analog.com/en/products/ad7985.html * https://www.analog.com/en/products/ad7986.html
Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7944", "adi,ad7985", "adi,ad7986"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 111111111
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
adi,spi-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "single", "chain"
This property indicates the SPI wiring configuration.
When this property is omitted, it is assumed that the device is using what the datasheet calls "4-wire mode". This is the conventional SPI mode used when there are multiple devices on the same bus. In this mode, the CNV line is used to initiate the conversion and the SDI line is connected to CS on the SPI controller.
When this property is present, it indicates that the device is using one of the following alternative wiring configurations:
* single: The datasheet calls this "3-wire mode". (NOTE: The datasheet's
definition of 3-wire mode is NOT at all related to the standard
spi-3wire property!) This mode is often used when the ADC is the only
device on the bus. In this mode, SDI is tied to VIO, and the CNV line
can be connected to the CS line of the SPI controller or to a GPIO, in
which case the CS line of the controller is unused.
* chain: The datasheet calls this "chain mode". This mode is used to save
on wiring when multiple ADCs are used. In this mode, the SDI line of
one chip is tied to the SDO of the next chip in the chain and the SDI of
the last chip in the chain is tied to GND. Only the first chip in the
chain is connected to the SPI bus. The CNV line of all chips are tied
together. The CS line of the SPI controller can be used as the CNV line
only if it is active high.
#daisy-chained-devices — not listed as required here #
true — No constraints added by this property rule.
avdd-supply — required here #
A 2.5V supply that powers the analog circuitry.
dvdd-supply — required here #
A 2.5V supply that powers the digital circuitry.
vio-supply — required here #
A 1.8V to 2.7V supply for the digital inputs and outputs.
bvdd-supply — required here #
A voltage supply for the buffered power. When using an external reference without an internal buffer (PDREF high, REFIN low), this should be connected to the same supply as ref-supply. Otherwise, when using an internal reference or an external reference with an internal buffer, this is connected to a 5V supply.
ref-supply — not listed as required here #
Voltage regulator for the external reference voltage (REF). This property is omitted when using an internal reference.
refin-supply — not listed as required here #
Voltage regulator for the reference buffer input (REFIN). When using an external buffer with internal reference, this should be connected to a 1.2V external reference voltage supply. Otherwise, this property is omitted.
cnv-gpios — not listed as required here #
The Convert Input (CNV). This input has multiple functions. It initiates the conversions and selects the SPI mode of the device (chain or CS). In 'single' mode, this property is omitted if the CNV pin is connected to the CS line of the SPI controller.
Maximum number of items (maxItems): 1
turbo-gpios — not listed as required here #
GPIO connected to the TURBO line. If omitted, it is assumed that the TURBO line is hard-wired and the state is determined by the adi,always-turbo property.
Maximum number of items (maxItems): 1
adi,always-turbo — not listed as required here #
Value type (type): "boolean"
When present, this property indicates that the TURBO line is hard-wired and the state is always high. If neither this property nor turbo-gpios is present, the TURBO line is assumed to be hard-wired and the state is always low.
interrupts — not listed as required here #
The SDO pin can also function as a busy indicator. This node should be connected to an interrupt that is triggered when the SDO line goes low while the SDI line is high and the CNV line is low ('single' mode) or the SDI line is low and the CNV line is high ('multi' mode); or when the SDO line goes high while the SDI and CNV lines are high (chain mode),
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "avdd-supply", "dvdd-supply", "vio-supply", "bvdd-supply"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
refin-supply— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
ref-supply— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #This rule must not match (
not)When the condition matches (
then) #
Rule 4 #
Condition (
if) #Required in this object (
required):"adi,spi-mode"Properties and child nodes (
properties)
adi,spi-mode— required hereExact value (
const):"chain"When the condition matches (
then) #Properties and child nodes (
properties)
spi-max-frequency— not listed as required hereMaximum value (
maximum):90909090
adi,always-turbo— not listed as required here
false— Not permitted by this property rule.Required in this object (
required):"#daisy-chained-devices"When the condition does not match (
else) #Properties and child nodes (
properties)
#daisy-chained-devices— not listed as required here
false— Not permitted by this property rule.
Rule 5 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
adi,always-turbo— not listed as required here
false— Not permitted by this property rule.
Rule 6 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
turbo-gpios— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7944";
reg = <0>;
spi-cpha;
spi-max-frequency = <111111111>;
avdd-supply = <&supply_2_5V>;
dvdd-supply = <&supply_2_5V>;
vio-supply = <&supply_1_8V>;
bvdd-supply = <&supply_5V>;
cnv-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
turbo-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 141: ref-supply and refin-supply are mutually exclusive (neither is also valid)
Line 154: in '4-wire' mode, cnv-gpios is required, for other modes it is optional
Line 162: chain mode has lower SCLK max rate and doesn't work when TURBO is enabled
Line 179: turbo-gpios and adi,always-turbo are mutually exclusive
Analog Devices AD7949/AD7682/AD7689 analog to digital converters
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7949.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Charles-Antoine Couret <charles-antoine.couret@essensium.com>"
Specifications on the converters can be found at:
AD7949:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7949.pdf
AD7682/AD7698:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7682_7689.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7682", "adi,ad7689", "adi,ad7949"
reg — required here #
Maximum number of items (maxItems): 1
vrefin-supply — not listed as required here #
Buffered ADC reference voltage supply.
vref-supply — not listed as required here #
Unbuffered ADC reference voltage supply.
adi,internal-ref-microvolt — not listed as required here #
Internal reference voltage selection in microvolts.
If no internal reference is specified, the channel will default to the external reference defined by vrefin-supply (or vref-supply). vrefin-supply will take precedence over vref-supply if both are defined.
If no supplies are defined, the reference selection will default to 4096mV internal reference.
Allowed values (enum): 2500000, 4096000
Default value (default): 4096000
#io-channel-cells — not listed as required here #
Exact value (const): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "adi,ad7949";
reg = <0>;
vref-supply = <&vdd_supply>;
};
adc@1 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "adi,ad7949";
reg = <1>;
vrefin-supply = <&vdd_supply>;
};
adc@2 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "adi,ad7949";
reg = <2>;
adi,internal-ref-microvolt = <4096000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Analog Devices AD799x analog to digital converters
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad799x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <Michael.Hennerich@analog.com>"
Support for Analog Devices AD7991, AD7992, AD7993, AD7994, AD7995, AD7997, AD7998,
AD7999 and similar analog to digital converters.
Specifications on the converters can be found at:
AD7991, AD7995, AD7999:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7991_7995_7999.pdf
AD7992:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7992.pdf
AD7993, AD7994:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7993_7994.pdf
AD7997, AD7998:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7997_7998.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7991", "adi,ad7992", "adi,ad7993", "adi,ad7994", "adi,ad7995", "adi,ad7997", "adi,ad7998", "adi,ad7999"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
ADC power supply
vref-supply — not listed as required here #
ADC reference voltage supply, optional for AD7991, AD7995 and AD7999
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc1: adc@28 {
reg = <0x28>;
compatible = "adi,ad7991";
interrupts = <13 2>;
interrupt-parent = <&gpio6>;
vcc-supply = <&vcc_3v3>;
vref-supply = <&adc_vref>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Analog Devices AD9467 and similar High-Speed ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad9467.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
The AD9467 and the parts similar with it, are high-speed analog-to-digital converters (ADCs), operating in the range of 100 to 500 mega samples per second (MSPS). Some parts support higher MSPS and some lower MSPS, suitable for the intended application of each part.
All the parts support the register map described by Application Note AN-877 https://www.analog.com/media/en/technical-documentation/application-notes/AN-877.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/AD9211.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/AD9265.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/AD9434.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/AD9467.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad9211", "adi,ad9265", "adi,ad9434", "adi,ad9467", "adi,ad9643", "adi,ad9649", "adi,ad9652"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"adc-clk"
powerdown-gpios — not listed as required here #
Pin that controls the powerdown mode of the device.
Maximum number of items (maxItems): 1
io-backends — not listed as required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Reset pin for the device.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad9467";
reg = <0>;
clocks = <&adc_clk>;
clock-names = "adc-clk";
io-backends = <&iio_backend>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices ADE9000 High Performance, Polyphase Energy Metering
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ade9000.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Antoniu Miclaus <antoniu.miclaus@analog.com>"
The ADE9000 is a highly accurate, fully integrated, multiphase energy and power quality monitoring device. Superior analog performance and a digital signal processing (DSP) core enable accurate energy monitoring over a wide dynamic range. An integrated high end reference ensures low drift over temperature with a combined drift of less than ±25 ppm/°C maximum for the entire channel including a programmable gain amplifier (PGA) and an analog-to-digital converter (ADC).
https://www.analog.com/media/en/technical-documentation/data-sheets/ADE9000.pdf
Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ade9000"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 20000000
interrupts — not listed as required here #
Maximum number of items (maxItems): 3
interrupt-names — not listed as required here #
Array item rules (items) #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
reset-gpios — not listed as required here #
Must be the device tree identifier of the RESET pin. As the line is active low, it should be marked GPIO_ACTIVE_LOW.
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
vref-supply — not listed as required here #
true — No constraints added by this property rule.
clocks — not listed as required here #
External clock source when not using crystal
Maximum number of items (maxItems): 1
#clock-cells — not listed as required here #
ADE9000 can provide clock output via CLKOUT pin with external buffer.
Exact value (const): 0
Required in this object (required): "compatible", "reg", "vdd-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ade9000";
reg = <0>;
spi-max-frequency = <7000000>;
#clock-cells = <0>;
reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
interrupts = <2 IRQ_TYPE_EDGE_FALLING>, <3 IRQ_TYPE_EDGE_FALLING>, <4 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "irq0", "irq1", "dready";
interrupt-parent = <&gpio>;
clocks = <&ext_clock_24576khz>;
vdd-supply = <&vdd_reg>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2025 Analog Devices Inc.
Analog Devices AXI ADC IP core
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,axi-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
Analog Devices Generic AXI ADC IP core for interfacing an ADC device
with a high speed serial (JESD204B/C) or source synchronous parallel
interface (LVDS/CMOS).
Usually, some other interface type (i.e SPI) is used as a control
interface for the actual ADC, while this IP core will interface
to the data-lines of the ADC and handle the streaming of data into
memory via DMA.
In some cases, the AXI ADC interface is used to perform specialized
operation to a particular ADC, e.g access the physical bus through
specific registers to write ADC registers.
In this case, we use a different compatible which indicates the target
IP core's name.
The following IP is currently supported:
- AXI AD7606x: specialized version of the IP core for all the chips from
the ad7606 family.
https://wiki.analog.com/resources/fpga/docs/axi_adc_ip https://analogdevicesinc.github.io/hdl/library/axi_ad408x/index.html https://analogdevicesinc.github.io/hdl/library/axi_ad485x/index.html http://analogdevicesinc.github.io/hdl/library/axi_ad7606x/index.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,axi-adc-10.0.a", "adi,axi-ad408x", "adi,axi-ad7606x", "adi,axi-ad485x"
reg — 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 — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
adi,adc-dev — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
A reference to a the actual ADC to which this FPGA ADC interfaces to.
Deprecated (deprecated): true
#io-backend-cells — not listed as required here #
Exact value (const): 0
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^adc@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Required in this object (required): "compatible", "reg"
Required in this object (required): "compatible", "dmas", "reg", "clocks"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereThis rule must not match (
not)Rule for matching array elements (
contains)Exact value (
const):"adi,axi-ad7606x"When the condition matches (
then) #Properties and child nodes (
properties)
#address-cells— not listed as required here
false— Not permitted by this property rule.
#size-cells— not listed as required here
false— Not permitted by this property rule.Properties matching a name pattern (
patternProperties)
^adc@[0-9a-f]+$— name matches this regular expression
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
adc@44a00000 {
compatible = "adi,axi-adc-10.0.a";
reg = <0x44a00000 0x10000>;
dmas = <&rx_dma 0>;
dma-names = "rx";
clocks = <&axi_clk>;
#io-backend-cells = <0>;
};
#include <dt-bindings/gpio/gpio.h>
parallel_bus_controller@44a00000 {
compatible = "adi,axi-ad7606x";
reg = <0x44a00000 0x10000>;
dmas = <&rx_dma 0>;
dma-names = "rx";
clocks = <&ext_clk>;
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad7606b";
reg = <0>;
pwms = <&axi_pwm_gen 0 0>;
pwm-names = "convst1";
avcc-supply = <&adc_vref>;
vdrive-supply = <&vdd_supply>;
reset-gpios = <&gpio0 91 GPIO_ACTIVE_HIGH>;
standby-gpios = <&gpio0 90 GPIO_ACTIVE_LOW>;
adi,range-gpios = <&gpio0 89 GPIO_ACTIVE_HIGH>;
adi,oversampling-ratio-gpios = <&gpio0 88 GPIO_ACTIVE_HIGH
&gpio0 87 GPIO_ACTIVE_HIGH
&gpio0 86 GPIO_ACTIVE_HIGH>;
io-backends = <¶llel_bus_controller>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices MAX11410 ADC device driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,max11410.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ibrahim Tilki <Ibrahim.Tilki@analog.com>"
Bindings for the Analog Devices MAX11410 ADC device. Datasheet can be
found here:
https://datasheets.maximintegrated.com/en/ds/MAX11410.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,max11410"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Name of the gpio pin of max11410 used for IRQ
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"gpio1"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
avdd-supply — not listed as required here #
Optional avdd supply. Used as reference when no explicit reference supplied.
vref0p-supply — not listed as required here #
vref0p supply can be used as reference for conversion.
vref1p-supply — not listed as required here #
vref1p supply can be used as reference for conversion.
vref2p-supply — not listed as required here #
vref2p supply can be used as reference for conversion.
vref0n-supply — not listed as required here #
vref0n supply can be used as reference for conversion.
vref1n-supply — not listed as required here #
vref1n supply can be used as reference for conversion.
vref2n-supply — not listed as required here #
vref2n supply can be used as reference for conversion.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 8000000
Properties matching a name pattern (patternProperties) #
^channel(@[0-9])?$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Represents the external channels which are connected to the ADC.
Properties and child nodes (properties) #
reg — required here
The channel number in single-ended mode.
Minimum value (minimum): 0
Maximum value (maximum): 9
adi,reference — not listed as required here
Select the reference source to use when converting on the specific channel. Valid values are: 0: VREF0P/VREF0N 1: VREF1P/VREF1N 2: VREF2P/VREF2N 3: AVDD/AGND 4: VREF0P/AGND 5: VREF1P/AGND 6: VREF2P/AGND If this field is left empty, AVDD/AGND is selected.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3, 4, 5, 6
Default value (default): 3
adi,input-mode — not listed as required here
Select signal path of input channels. Valid values are: 0: Buffered, low-power, unity-gain path (default) 1: Bypass path 2: PGA path
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
Default value (default): 0
diff-channels — not listed as required here
true — No constraints added by this property rule.
bipolar — not listed as required here
true — No constraints added by this property rule.
settling-time-us — not listed as required here
true — No constraints added by this property rule.
adi,buffered-vrefp — not listed as required here
Enable buffered mode for positive reference.
Value type (type): "boolean"
adi,buffered-vrefn — not listed as required here
Enable buffered mode for negative reference.
Value type (type): "boolean"
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
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>;
adc@0 {
reg = <0>;
compatible = "adi,max11410";
spi-max-frequency = <8000000>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "gpio1";
avdd-supply = <&adc_avdd>;
vref1p-supply = <&adc_vref1p>;
vref1n-supply = <&adc_vref1n>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
};
channel@1 {
reg = <1>;
diff-channels = <2 3>;
adi,reference = <1>;
bipolar;
settling-time-us = <100000>;
};
channel@2 {
reg = <2>;
diff-channels = <7 9>;
adi,reference = <5>;
adi,input-mode = <2>;
settling-time-us = <50000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2022 Analog Devices Inc.
Analog Devices MAX14001-MAX14002 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,max14001.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kim Seer Paller <kimseer.paller@analog.com>", "Marilene Andrade Garcia <marilene.agarcia@gmail.com>"
Single channel 10 bit ADC with SPI interface.
Datasheet can be found here
https://www.analog.com/media/en/technical-documentation/data-sheets/MAX14001-MAX14002.pdf
Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"adi,max14002"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"adi,max14001"Item 2
Exact value (
const):"adi,max14002"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 5000000
vdd-supply — required here #
Isolated DC-DC power supply input voltage.
vddl-supply — required here #
Logic power supply.
refin-supply — not listed as required here #
ADC voltage reference supply.
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
cout: comparator output signal that asserts high on the COUT pin when ADC readings exceed the upper threshold and low when readings fall below the lower threshold.
Item 2
fault: when fault reporting is enabled, the FAULT pin is asserted low whenever one of the monitored fault conditions occurs.
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"cout"
Item 2
Exact value (
const):"fault"
Required in this object (required): "compatible", "reg", "vdd-supply", "vddl-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,max14001", "adi,max14002";
reg = <0>;
spi-max-frequency = <5000000>;
spi-lsb-first;
vdd-supply = <&vdd>;
vddl-supply = <&vddl>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2023-2025 Analog Devices Inc.
Line 3: Copyright 2023 Kim Seer Paller
Line 4: Copyright 2025 Marilene Andrade Garcia
Allwinner D1 General Purpose ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/allwinner,sun20i-d1-gpadc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Maksim Kiselev <bigunclemax@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"allwinner,sun20i-d1-gpadc"
#io-channel-cells — required here #
Exact value (const): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^channel@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Represents the internal channels of the ADC.
Properties and child nodes (properties) #
reg — required here
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):15
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "#io-channel-cells", "clocks", "compatible", "interrupts", "reg", "resets"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/sun20i-d1-ccu.h>
#include <dt-bindings/reset/sun20i-d1-ccu.h>
#include <dt-bindings/interrupt-controller/irq.h>
gpadc: adc@2009000 {
compatible = "allwinner,sun20i-d1-gpadc";
reg = <0x2009000 0x400>;
clocks = <&ccu CLK_BUS_GPADC>;
resets = <&ccu RST_BUS_GPADC>;
interrupts = <73 IRQ_TYPE_LEVEL_HIGH>;
#io-channel-cells = <1>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
};
channel@1 {
reg = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Allwinner A33 Thermal Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/allwinner,sun8i-a33-ths.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
Properties and child nodes (properties) #
#io-channel-cells — required here #
Exact value (const): 0
#thermal-sensor-cells — required here #
Exact value (const): 0
compatible — required here #
Exact value (const): "allwinner,sun8i-a33-ths"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "#io-channel-cells", "#thermal-sensor-cells", "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
ths: ths@1c25000 {
compatible = "allwinner,sun8i-a33-ths";
reg = <0x01c25000 0x100>;
#thermal-sensor-cells = <0>;
#io-channel-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Amlogic Meson SAR (Successive Approximation Register) A/D converter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/amlogic,meson-saradc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Martin Blumenstingl <martin.blumenstingl@googlemail.com>"
Binding covers a range of ADCs found on Amlogic Meson SoCs.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"amlogic,meson-saradc"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"amlogic,meson8-saradc","amlogic,meson8b-saradc","amlogic,meson8m2-saradc","amlogic,meson-gxbb-saradc","amlogic,meson-gxl-saradc","amlogic,meson-gxlx-saradc","amlogic,meson-gxm-saradc","amlogic,meson-axg-saradc","amlogic,meson-g12a-saradc"Item 2
Exact value (
const):"amlogic,meson-saradc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Interrupt indicates end of sampling.
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 4
clock-names — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"clkin"
Item 2
Exact value (
const):"core"
Item 3
Exact value (
const):"adc_clk"
Item 4
Exact value (
const):"adc_sel"
vref-supply — not listed as required here #
true — No constraints added by this property rule.
#io-channel-cells — required here #
Exact value (const): 1
amlogic,hhi-sysctrl — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Syscon which contains the 5th bit of the TSC (temperature sensor coefficient) on Meson8b and Meson8m2 (which used to calibrate the temperature sensor)
nvmem-cells — not listed as required here #
phandle to the temperature_calib eFuse cells
Maximum number of items (maxItems): 1
nvmem-cell-names — not listed as required here #
Exact value (const): "temperature_calib"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"amlogic,meson8-saradc","amlogic,meson8b-saradc","amlogic,meson8m2-saradc"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):2
clock-names— not listed as required hereMaximum number of items (
maxItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
nvmem-cells— not listed as required here
false— Not permitted by this property rule.
mvmem-cel-names— not listed as required here
false— Not permitted by this property rule.
clocks— not listed as required hereMinimum number of items (
minItems):4
clock-names— not listed as required hereMinimum number of items (
minItems):4
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"amlogic,meson8-saradc","amlogic,meson8b-saradc","amlogic,meson8m2-saradc"When the condition matches (
then) #Properties and child nodes (
properties)
amlogic,hhi-sysctrl— not listed as required here
true— No constraints added by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
amlogic,hhi-sysctrl— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "#io-channel-cells"
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/clock/gxbb-clkc.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
adc@8680 {
compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
#io-channel-cells = <1>;
reg = <0x0 0x8680 0x0 0x34>;
interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
clocks = <&xtal>,
<&clkc CLKID_SAR_ADC>,
<&clkc CLKID_SAR_ADC_CLK>,
<&clkc CLKID_SAR_ADC_SEL>;
clock-names = "clkin", "core", "adc_clk", "adc_sel";
};
adc@9680 {
compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc";
#io-channel-cells = <1>;
reg = <0x0 0x9680 0x0 0x34>;
interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
clocks = <&xtal>, <&clkc CLKID_SAR_ADC>;
clock-names = "clkin", "core";
nvmem-cells = <&tsens_caldata>;
nvmem-cell-names = "temperature_calib";
amlogic,hhi-sysctrl = <&hhi>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ADC that forms part of an ASPEED server management processor.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/aspeed,ast2400-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Joel Stanley <joel@jms.id.au>"
This device is a 10-bit converter for 16 voltage channels. All inputs are single ended.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "aspeed,ast2400-adc", "aspeed,ast2500-adc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Input clock used to derive the sample clock. Expected to be the SoC's APB clock.
resets — required here #
Maximum number of items (maxItems): 1
#io-channel-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "clocks", "resets", "#io-channel-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/aspeed-clock.h>
adc@1e6e9000 {
compatible = "aspeed,ast2400-adc";
reg = <0x1e6e9000 0xb0>;
clocks = <&syscon ASPEED_CLK_APB>;
resets = <&syscon ASPEED_RESET_ADC>;
#io-channel-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ADC that forms part of an ASPEED server management processor.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/aspeed,ast2600-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Billy Tsai <billy_tsai@aspeedtech.com>"
• 10-bits resolution for 16 voltage channels. • The device split into two individual engine and each contains 8 voltage channels. • Channel scanning can be non-continuous. • Programmable ADC clock frequency. • Programmable upper and lower threshold for each channels. • Interrupt when larger or less than threshold for each channels. • Support hysteresis for each channels. • Built-in a compensating method. • Built-in a register to trim internal reference voltage. • Internal or External reference voltage. • Support 2 Internal reference voltage 1.2v or 2.5v. • Integrate dividing circuit for battery sensing.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "aspeed,ast2600-adc0", "aspeed,ast2600-adc1", "aspeed,ast2700-adc0", "aspeed,ast2700-adc1"
Their trimming data, which is used to calibrate internal reference volage, locates in different address of OTP.
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Input clock used to derive the sample clock. Expected to be the SoC's APB clock.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
#io-channel-cells — required here #
Exact value (const): 1
vref-supply — not listed as required here #
The external regulator supply ADC reference voltage.
aspeed,int-vref-microvolt — not listed as required here #
Allowed values (enum): 1200000, 2500000
ADC internal reference voltage in microvolts.
aspeed,battery-sensing — not listed as required here #
Value type (type): "boolean"
Inform the driver that last channel will be used to sensor battery.
Required in this object (required): "compatible", "reg", "clocks", "resets", "#io-channel-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/ast2600-clock.h>
adc0: adc@1e6e9000 {
compatible = "aspeed,ast2600-adc0";
reg = <0x1e6e9000 0x100>;
clocks = <&syscon ASPEED_CLK_APB2>;
resets = <&syscon ASPEED_RESET_ADC>;
#io-channel-cells = <1>;
aspeed,int-vref-microvolt = <2500000>;
};
adc1: adc@1e6e9100 {
compatible = "aspeed,ast2600-adc1";
reg = <0x1e6e9100 0x100>;
clocks = <&syscon ASPEED_CLK_APB2>;
resets = <&syscon ASPEED_RESET_ADC>;
#io-channel-cells = <1>;
aspeed,int-vref-microvolt = <2500000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
AT91 SAMA5D2 Analog to Digital Converter (ADC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/atmel,sama5d2-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Eugen Hristev <eugen.hristev@microchip.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "atmel,sama5d2-adc", "microchip,sam9x60-adc", "microchip,sama7g5-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
clock-names — required here #
Exact value (const): "adc_clk"
vref-supply — required here #
true — No constraints added by this property rule.
vddana-supply — required here #
true — No constraints added by this property rule.
atmel,min-sample-rate-hz — required here #
Minimum sampling rate, it depends on SoC.
atmel,max-sample-rate-hz — required here #
Maximum sampling rate, it depends on SoC.
atmel,startup-time-ms — required here #
Startup time expressed in ms, it depends on SoC.
atmel,trigger-edge-type — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
One of possible edge types for the ADTRG hardware trigger pin. When the specific edge type is detected, the conversion will start. Should be one of IRQ_TYPE_EDGE_RISING, IRQ_TYPE_EDGE_FALLING or IRQ_TYPE_EDGE_BOTH.
Allowed values (enum): 1, 2, 3
dmas — not listed as required here #
Maximum number of items (maxItems): 1
dma-names — not listed as required here #
Exact value (const): "rx"
#io-channel-cells — not listed as required here #
Exact value (const): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "vref-supply", "vddana-supply", "atmel,min-sample-rate-hz", "atmel,max-sample-rate-hz", "atmel,startup-time-ms"
Examples (examples) #
#include <dt-bindings/dma/at91.h>
#include <dt-bindings/interrupt-controller/irq.h>
soc {
#address-cells = <1>;
#size-cells = <1>;
adc@fc030000 {
compatible = "atmel,sama5d2-adc";
reg = <0xfc030000 0x100>;
interrupts = <40 IRQ_TYPE_LEVEL_HIGH 7>;
clocks = <&adc_clk>;
clock-names = "adc_clk";
atmel,min-sample-rate-hz = <200000>;
atmel,max-sample-rate-hz = <20000000>;
atmel,startup-time-ms = <4>;
vddana-supply = <&vdd_3v3_lp_reg>;
vref-supply = <&vdd_3v3_lp_reg>;
atmel,trigger-edge-type = <IRQ_TYPE_EDGE_BOTH>;
dmas = <&dma0 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | AT91_XDMAC_DT_PERID(25))>;
dma-names = "rx";
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
AT91 sama9260 and similar Analog to Digital Converter (ADC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/atmel,sama9260-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexandre Belloni <alexandre.belloni@bootlin.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "atmel,at91sam9260-adc", "atmel,at91sam9rl-adc", "atmel,at91sam9g45-adc", "atmel,at91sam9x5-adc", "atmel,at91sama5d3-adc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"adc_clk"
Item 2
Exact value (
const):"adc_op_clk"
atmel,adc-channels-used — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Bitmask of the channels muxed and enabled for this device
atmel,adc-startup-time — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Startup Time of the ADC in microseconds as defined in the datasheet
atmel,adc-vref — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Reference voltage in millivolts for the conversions
atmel,adc-use-external-triggers — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable the external triggers
atmel,adc-use-res — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
String corresponding to an identifier from atmel,adc-res-names property. If not specified, the highest resolution will be used.
Allowed values (enum): "lowres", "highres"
atmel,adc-sleep-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable sleep mode when no conversion
atmel,adc-sample-hold-time — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Sample and Hold Time in microseconds
atmel,adc-ts-wires — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of touchscreen wires. Must be set to enable touchscreen. NOTE: when adc touchscreen is enabled, the adc hardware trigger will be disabled. Since touchscreen will occupy the trigger register.
atmel,adc-ts-pressure-threshold — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Pressure threshold for touchscreen.
#io-channel-cells — not listed as required here #
Exact value (const): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "atmel,adc-channels-used", "atmel,adc-startup-time", "atmel,adc-vref"
Examples (examples) #
#include <dt-bindings/dma/at91.h>
#include <dt-bindings/interrupt-controller/irq.h>
soc {
#address-cells = <1>;
#size-cells = <1>;
adc@fffb0000 {
compatible = "atmel,at91sam9260-adc";
reg = <0xfffb0000 0x100>;
interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>;
clocks = <&adc_clk>, <&adc_op_clk>;
clock-names = "adc_clk", "adc_op_clk";
atmel,adc-channels-used = <0xff>;
atmel,adc-startup-time = <40>;
atmel,adc-use-external-triggers;
atmel,adc-vref = <3300>;
atmel,adc-use-res = "lowres";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
AVIA HX711 ADC chip for weight cells
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/avia-hx711.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andreas Klinger <ak@it-klinger.de>"
Bit-banging driver using two GPIOs:
- sck-gpio gives a clock to the sensor with 24 cycles for data retrieval
and up to 3 cycles for selection of the input channel and gain for the
next measurement
- dout-gpio is the sensor data the sensor responds to the clock
Specifications about the driver can be found at: http://www.aviaic.com/ENProducts.aspx
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "avia,hx711"
sck-gpios — required here #
Definition of the GPIO for the clock (output). In the datasheet it is named PD_SCK
Maximum number of items (maxItems): 1
dout-gpios — required here #
Definition of the GPIO for the data-out sent by the sensor in response to the clock (input). See Documentation/devicetree/bindings/gpio/gpio.txt for information on how to specify a consumer gpio.
Maximum number of items (maxItems): 1
avdd-supply — required here #
Definition of the regulator used as analog supply
clock-frequency — not listed as required here #
Minimum value (minimum): 20000
Maximum value (maximum): 2500000
Default value (default): 400000
Required in this object (required): "compatible", "sck-gpios", "dout-gpios", "avdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
weight {
compatible = "avia,hx711";
sck-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>;
dout-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
avdd-supply = <&avdd>;
clock-frequency = <100000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Broadcom's IPROC Static ADC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/brcm,iproc-static-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Raveendra Padasalagi <raveendra.padasalagi@broadcom.com>"
Broadcom iProc ADC controller has 8 10bit channels
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "brcm,iproc-static-adc"
adc-syscon — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
syscon node defining physical base address of the controller and length of memory mapped region.
#io-channel-cells — required here #
Exact value (const): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "tsc_clk"
interrupts — required here #
Maximum number of items (maxItems): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "adc-syscon", "#io-channel-cells", "clocks", "clock-names", "interrupts"
Examples (examples) #
#include <dt-bindings/clock/bcm-cygnus.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
soc {
#address-cells = <1>;
#size-cells = <1>;
adc {
compatible = "brcm,iproc-static-adc";
adc-syscon = <&ts_adc_syscon>;
#io-channel-cells = <1>;
clocks = <&asiu_clks BCM_CYGNUS_ASIU_ADC_CLK>;
clock-names = "tsc_clk";
interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Cirrus Logic EP930x internal ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/cirrus,ep9301-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Cirrus Logic EP9301/EP9302 SoCs' internal ADC block.
User's manual: https://cdn.embeddedts.com/resource-attachments/ts-7000_ep9301-ug.pdf
Maintainers (maintainers): "Alexander Sverdlin <alexander.sverdlin@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "cirrus,ep9301-adc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
adc: adc@80900000 {
compatible = "cirrus,ep9301-adc";
reg = <0x80900000 0x28>;
clocks = <&syscon 24>;
interrupt-parent = <&vic1>;
interrupts = <30>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Cosmic Circuits CC-10001 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/cosmic,10001-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Cosmic Circuits 10001 10-bit ADC device.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "cosmic,10001-adc"
reg — required here #
Maximum number of items (maxItems): 1
adc-reserved-channels — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Bitmask of reserved channels, i.e. channels that cannot be used by the OS.
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "adc"
vref-supply — required here #
true — No constraints added by this property rule.
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "vref-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
adc@18101600 {
compatible = "cosmic,10001-adc";
reg = <0x18101600 0x24>;
adc-reserved-channels = <0x2>;
clocks = <&adc_clk>;
clock-names = "adc";
vref-supply = <®_1v8>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Dialog Semiconductor DA9150 IIO GPADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/dlg,da9150-gpadc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Adam Thomson <Adam.Thomson.Opensource@diasemi.com>"
This patch adds support for general purpose ADC within the DA9150 Charger & Fuel-Gauge IC.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "dlg,da9150-gpadc"
#io-channel-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "#io-channel-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
adc {
compatible = "dlg,da9150-gpadc";
#io-channel-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ADC envelope detector using a DAC and a comparator
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/envelope-detector.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Rosin <peda@axentia.se>"
The DAC is used to find the peak level of an alternating voltage input
signal by a binary search using the output of a comparator wired to
an interrupt pin. Like so:
_
| \
input +------>-------|+ \
| \
.-------. | }---.
| | | / |
| dac|-->--|- / |
| | |_/ |
| | |
| | |
| irq|------<-------'
| |
'-------'
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "axentia,tse850-envelope-detector"
io-channels — required here #
Maximum number of items (maxItems): 1
Channel node of the dac to be used for comparator input.
io-channel-names — required here #
Exact value (const): "dac"
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Exact value (const): "comp"
Required in this object (required): "compatible", "io-channels", "io-channel-names", "interrupts", "interrupt-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/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
dpot: dpot@28 {
compatible = "microchip,mcp4651-104";
reg = <0x28>;
#io-channel-cells = <1>;
};
};
dac: dac {
compatible = "dpot-dac";
vref-supply = <®_3v3>;
io-channels = <&dpot 0>;
io-channel-names = "dpot";
#io-channel-cells = <1>;
};
envelope-detector {
compatible = "axentia,tse850-envelope-detector";
io-channels = <&dac 0>;
io-channel-names = "dac";
interrupt-parent = <&gpio>;
interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "comp";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Freescale ADC GCQ device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/fsl,imx25-gcq.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This is a generic conversion queue device that can convert any of the analog inputs using the ADC unit of the i.MX25.
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "fsl,imx25-gcq"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
vref-ext-supply — not listed as required here #
The regulator supplying the ADC reference voltage. Required when at least one subnode uses the this reference.
vref-xp-supply — not listed as required here #
The regulator supplying the ADC reference voltage on pin XP. Required when at least one subnode uses this reference.
vref-yp-supply — not listed as required here #
The regulator supplying the ADC reference voltage on pin YP. Required when at least one subnode uses this reference.
#io-channel-cells — not listed as required here #
Exact value (const): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg", "interrupts", "#address-cells", "#size-cells"
Properties matching a name pattern (patternProperties) #
[a-z][a-z0-9]+@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Child nodes used to define the reference voltages used for each channel
Properties and child nodes (properties) #
reg — required here
Number of the analog input. 0: xp 1: yp 2: xn 3: yn 4: wiper 5: inaux0 6: inaux1 7: inaux2
Array item rules (items)
Item 1
Minimum value (
minimum):0Maximum value (
maximum):7
fsl,adc-refp — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Specifies the positive reference input as defined in <dt-bindings/iio/adc/fsl-imx25-gcq.h> 0: YP voltage reference 1: XP voltage reference 2: External voltage reference 3: Internal voltage reference (default)
Minimum value (minimum): 0
Maximum value (maximum): 3
fsl,adc-refn — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Specifies the negative reference input as defined in <dt-bindings/iio/adc/fsl-imx25-gcq.h> 0: XN ground reference 1: YN ground reference 2: Internal ground reference 3: External ground reference (default)
Minimum value (minimum): 0
Maximum value (maximum): 3
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/iio/adc/fsl-imx25-gcq.h>
soc {
#address-cells = <1>;
#size-cells = <1>;
adc@50030800 {
compatible = "fsl,imx25-gcq";
reg = <0x50030800 0x60>;
interrupt-parent = <&tscadc>;
interrupts = <1>;
#address-cells = <1>;
#size-cells = <0>;
inaux@5 {
reg = <5>;
fsl,adc-refp = <MX25_ADC_REFP_INT>;
fsl,adc-refn = <MX25_ADC_REFN_NGND>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Freescale ADC found on the imx7d SoC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/fsl,imx7d-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Haibo Chen <haibo.chen@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "fsl,imx7d-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
clock-names — required here #
Exact value (const): "adc"
vref-supply — required here #
true — No constraints added by this property rule.
#io-channel-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "vref-supply", "#io-channel-cells"
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/clock/imx7d-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc {
#address-cells = <1>;
#size-cells = <1>;
adc@30610000 {
compatible = "fsl,imx7d-adc";
reg = <0x30610000 0x10000>;
interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX7D_ADC_ROOT_CLK>;
clock-names = "adc";
vref-supply = <®_vcc_3v3_mcu>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ADC found on Freescale vf610 and similar SoCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/fsl,vf610-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Haibo Chen <haibo.chen@nxp.com>"
ADCs found on vf610/i.MX6slx and upward SoCs from Freescale.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,vf610-adc"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"fsl,vf610-adc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
ADC source clock (ipg clock)
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "adc"
vref-supply — required here #
ADC reference voltage supply.
fsl,adck-max-frequency — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 3
Maximum frequencies from datasheet operating requirements. Three values necessary to cover the 3 conversion modes. * Frequency in normal mode (ADLPC=0, ADHSC=0) * Frequency in high-speed mode (ADLPC=0, ADHSC=1) * Frequency in low-power mode (ADLPC=1, ADHSC=0)
min-sample-time — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum sampling time in nanoseconds. This value has to be chosen according to the conversion mode and the connected analog source resistance (R_as) and capacitance (C_as). Refer the datasheet's operating requirements. A safe default across a wide range of R_as and C_as as well as conversion modes is 1000ns.
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "vref-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/vf610-clock.h>
adc@4003b000 {
compatible = "fsl,vf610-adc";
reg = <0x4003b000 0x1000>;
interrupts = <0 53 0x04>;
clocks = <&clks VF610_CLK_ADC0>;
clock-names = "adc";
fsl,adck-max-frequency = <30000000>, <40000000>, <20000000>;
vref-supply = <®_vcc_3v3_mcu>;
min-sample-time = <10000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
GE HealthCare PMC Analog to Digital Converter (ADC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/gehc,pmc-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Herve Codina <herve.codina@bootlin.com>"
The GE HealthCare PMC ADC is a 16-Channel (voltage and current), 16-Bit ADC with an I2C Interface.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "gehc,pmc-adc"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
Regulator for the VDD power supply.
vdda-supply — required here #
Regulator for the VDD analog (VDDA) power supply.
vddio-supply — required here #
Regulator for the VDD IO (VDDIO) power supply.
vref-supply — required here #
Regulator for the voltage reference power supply.
clocks — not listed as required here #
Maximum number of items (maxItems): 1
The component uses an external oscillator (osc) if an external oscillator is connected to its clock pins. Otherwise, it uses an internal reference clock.
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"osc"
#io-channel-cells — required here #
Exact value (const): 2
The first cell is the channel type (dt-bindings/iio/adc/gehc,pmc-adc.h defines these values): - 0: voltage - 1: current The second cell is the channel number from 0 to 15.
Required in this object (required): "compatible", "reg", "vdd-supply", "vdda-supply", "vddio-supply", "vref-supply", "#io-channel-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@14 {
compatible = "gehc,pmc-adc";
reg = <0x14>;
vdd-supply = <®_vdd>;
vdda-supply = <®_vdda>;
vddio-supply = <®_vddio>;
vref-supply = <®_vref>;
#io-channel-cells = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Holt Integrated Circuits HI-8435 SPI threshold detector
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/holt,hi8435.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vladimir Barinov <vladimir.barinov@cogentembedded.com>"
Datasheet: http://www.holtic.com/documents/427-hi-8435_v-rev-lpdf.do
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "holt,hi8435"
reg — required here #
Maximum number of items (maxItems): 1
gpios — not listed as required here #
GPIO used for controlling the reset pin
Maximum number of items (maxItems): 1
#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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
threshold-detector@0 {
compatible = "holt,hi8435";
reg = <0>;
gpios = <&gpio6 1 0>;
spi-max-frequency = <1000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Ingenic JZ47xx ADC controller IIO
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ingenic,adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Artur Rojek <contact@artur-rojek.eu>"
Industrial I/O subsystem bindings for ADC controller found in Ingenic JZ47xx SoCs. ADC clients must use the format described in https://github.com/devicetree-org/dt-schema/blob/master/schemas/iio/iio-consumer.yaml, giving a phandle and IIO specifier pair ("io-channels") to the ADC controller.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ingenic,jz4725b-adc", "ingenic,jz4740-adc", "ingenic,jz4760-adc", "ingenic,jz4760b-adc", "ingenic,jz4770-adc"
#io-channel-cells — required here #
Exact value (const): 1
Must be set to <1> to indicate channels are selected by index.
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"adc"
interrupts — required here #
Maximum number of items (maxItems): 1
ingenic,use-internal-divider — not listed as required here #
If present, battery voltage is read from the VBAT_IR pin, which has an internal 1/4 divider. If absent, it is read through the VBAT_ER pin, which does not have such a divider.
Value type (type): "boolean"
Condition (if) #
This rule must not match (
not) #Properties and child nodes (
properties) #
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ingenic,jz4760b-adc"
When the condition matches (then) #
Properties and child nodes (
properties) #
ingenic,use-internal-divider— not listed as required here #
false— Not permitted by this property rule.
Required in this object (required): "compatible", "#io-channel-cells", "reg", "clocks", "clock-names", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/ingenic,jz4740-cgu.h>
#include <dt-bindings/iio/adc/ingenic,adc.h>
adc@10070000 {
compatible = "ingenic,jz4740-adc";
#io-channel-cells = <1>;
reg = <0x10070000 0x30>;
clocks = <&cgu JZ4740_CLK_ADC>;
clock-names = "adc";
interrupt-parent = <&intc>;
interrupts = <18>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2019-2020 Artur Rojek
Linear Technology / Analog Devices LTC2496 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/lltc,ltc2496.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lars-Peter Clausen <lars@metafoo.de>", "Michael Hennerich <Michael.Hennerich@analog.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "lltc,ltc2496"
vref-supply — required here #
Power supply for the reference voltage
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "vref-supply", "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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "lltc,ltc2496";
reg = <0>;
vref-supply = <<c2496_reg>;
spi-max-frequency = <2000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Linear Technology / Analog Devices LTC2497 and LTC2309 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/lltc,ltc2497.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>", "Liam Beguin <liambeguin@gmail.com>"
LTC2309:
low noise, low power, 8-channel, 12-bit successive approximation ADC with an
I2C compatible serial interface.
https://www.analog.com/media/en/technical-documentation/data-sheets/2309fd.pdf
LTC2497:
LTC2499:
16bit ADC supporting up to 16 single ended or 8 differential inputs.
I2C interface.
https://www.analog.com/media/en/technical-documentation/data-sheets/2497fb.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/2499fe.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "lltc,ltc2309", "lltc,ltc2497", "lltc,ltc2499"
reg — required here #
true — No constraints added by this property rule.
vref-supply — required here #
true — No constraints added by this property rule.
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "vref-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@76 {
compatible = "lltc,ltc2497";
reg = <0x76>;
vref-supply = <<c2497_reg>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Berlin 2 Analog to Digital Converter (ADC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / 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)
Maxim MAX1027 and similar ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
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
Maxim MAX11100 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/maxim,max11100.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jacopo Mondi <jacopo@jmondi.org>"
Single channel 16 bit ADC with SPI interface.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "maxim,max11100"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — required here #
External reference, needed to establish input scaling.
spi-max-frequency — not listed as required here #
Minimum value (minimum): 100000
Maximum value (maximum): 4800000
Required in this object (required): "compatible", "reg", "vref-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "maxim,max11100";
reg = <0>;
vref-supply = <&adc_vref>;
spi-max-frequency = <240000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Maxim MAX1118 and similar ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/maxim,max1118.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Akinobu Mita <akinobu.mita@gmail.com>"
Dual channel 8bit ADCs.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxim,max1117", "maxim,max1118", "maxim,max1119"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 5000000
vref-supply — not listed as required here #
External reference, needed to establish input scaling
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"maxim,max1118"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
vref-supply— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "maxim,max1118";
reg = <0>;
vref-supply = <&adc_vref>;
spi-max-frequency = <1000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Maxim MAX11205 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/maxim,max11205.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ramona Bolboaca <ramona.bolboaca@analog.com>"
The MAX11205 is an ultra-low-power (< 300FA max active current), high-resolution, serial-output ADC.
https://datasheets.maximintegrated.com/en/ds/MAX11205.pdf
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxim,max11205a", "maxim,max11205b"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — required here #
Maximum value (maximum): 5000000
spi-cpha — required here #
true — No constraints added by this property rule.
vref-supply — required here #
The regulator supply for the ADC reference voltage. This is a differential reference. It is equal to the V_REFP - V_REFN. The maximum value is 3.6V.
Required in this object (required): "compatible", "reg", "interrupts", "spi-max-frequency", "spi-cpha", "vref-supply"
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>;
adc@0 {
compatible = "maxim,max11205a";
reg = <0>;
spi-max-frequency = <5000000>;
spi-cpha;
interrupt-parent = <&gpio>;
interrupts = <19 IRQ_TYPE_EDGE_FALLING>;
vref-supply = <&max11205_vref>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Maxim MAX1238 and similar ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/maxim,max1238.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Family of simple ADCs with i2c interface and internal references.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxim,max1036", "maxim,max1037", "maxim,max1038", "maxim,max1039", "maxim,max1136", "maxim,max1137", "maxim,max1138", "maxim,max1139", "maxim,max1236", "maxim,max1237", "maxim,max1238", "maxim,max1239", "maxim,max11600", "maxim,max11601", "maxim,max11602", "maxim,max11603", "maxim,max11604", "maxim,max11605", "maxim,max11606", "maxim,max11607", "maxim,max11608", "maxim,max11609", "maxim,max11610", "maxim,max11611", "maxim,max11612", "maxim,max11613", "maxim,max11614", "maxim,max11615", "maxim,max11616", "maxim,max11617", "maxim,max11644", "maxim,max11645", "maxim,max11646", "maxim,max11647"
reg — required here #
Maximum number of items (maxItems): 1
#io-channel-cells — not listed as required here #
Exact value (const): 1
vcc-supply — not listed as required here #
true — No constraints added by this property rule.
vref-supply — not listed as required here #
Optional external reference. If not supplied, internal reference will be used.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@36 {
compatible = "maxim,max1238";
reg = <0x36>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Maxim MAX1241 12-bit, single-channel analog to digital converter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/maxim,max1241.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexandru Lazar <alazar@startmail.com>"
Bindings for the max1241 12-bit, single-channel ADC device. Datasheet
can be found at:
https://datasheets.maximintegrated.com/en/ds/MAX1240-MAX1241.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxim,max1241"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
Device tree identifier of the regulator that powers the ADC.
vref-supply — required here #
Device tree identifier of the regulator that provides the external reference voltage.
shutdown-gpios — not listed as required here #
GPIO spec for the GPIO pin connected to the ADC's /SHDN pin. If specified, the /SHDN pin will be asserted between conversions, thus enabling power-down mode.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "vdd-supply", "vref-supply"
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/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "maxim,max1241";
reg = <0>;
vdd-supply = <&adc_vdd>;
vref-supply = <&adc_vref>;
spi-max-frequency = <1000000>;
shutdown-gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2020 Alexandru Lazar
Maxim MAX1363 and similar ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/maxim,max1363.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Family of ADCs with i2c interface, internal references and threshold monitoring.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxim,max1361", "maxim,max1362", "maxim,max1363", "maxim,max1364"
reg — required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
true — No constraints added by this property rule.
vref-supply — not listed as required here #
Optional external reference. If not supplied, internal reference will be used.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@36 {
compatible = "maxim,max1363";
reg = <0x36>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Maxim MAX34408/MAX34409 current monitors with overcurrent control
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/maxim,max34408.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ivan Mikhaylov <fr0st61te@gmail.com>"
The MAX34408/MAX34409 are two- and four-channel current monitors that are configured and monitored with a standard I2C/SMBus serial interface. Each unidirectional current sensor offers precision high-side operation with a low full-scale sense voltage. The devices automatically sequence through two or four channels and collect the current-sense samples and average them to reduce the effect of impulse noise. The raw ADC samples are compared to user-programmable digital thresholds to indicate overcurrent conditions. Overcurrent conditions trigger a hardware output to provide an immediate indication to shut down any necessary external circuitry.
Specifications about the devices can be found at: https://www.analog.com/media/en/technical-documentation/data-sheets/MAX34408-MAX34409.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxim,max34408", "maxim,max34409"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
powerdown-gpios — not listed as required here #
Shutdown Output. Open-drain output. This output transitions to high impedance when any of the digital comparator thresholds are exceeded as long as the ENA pin is high.
Maximum number of items (maxItems): 1
powerdown-status-gpios — not listed as required here #
SHTDN Enable Input. CMOS digital input. Connect to GND to clear the latch and unconditionally deassert (force low) the SHTDN output and reset the shutdown delay. Connect to VDD to enable normal latch operation of the SHTDN output.
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
Properties matching a name pattern (patternProperties) #
^channel@[0-3]$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Represents the internal channels of the ADC.
Properties and child nodes (properties) #
reg — required here
Array item rules (items)
Item 1
Minimum value (
minimum):0Maximum value (
maximum):3
maxim,rsense-val-micro-ohms — required here
Adjust the Rsense value to monitor higher or lower current levels for input.
Allowed values (enum): 250, 500, 1000, 5000, 10000, 50000, 100000, 200000, 500000
Default value (default): 1000
Required in this object (required): "reg", "maxim,rsense-val-micro-ohms"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"maxim,max34408"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[2-3]$— name matches this regular expression
false— Not permitted by this property rule.
^channel@[0-1]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):1When the condition does not match (
else) #Properties matching a name pattern (
patternProperties)
^channel@[0-3]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):3
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@1e {
compatible = "maxim,max34409";
reg = <0x1e>;
powerdown-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
powerdown-status-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0x0>;
maxim,rsense-val-micro-ohms = <5000>;
};
channel@1 {
reg = <0x1>;
maxim,rsense-val-micro-ohms = <10000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Maxim MAX9611 and similar current sense amplifiers with integrated ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/maxim,max9611.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jacopo Mondi <jacopo@jmondi.org>"
These devices combine a high-side current sense amplifier with a 12 bit ADC. They have an i2c interface.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxim,max9611", "maxim,max9612"
reg — required here #
Maximum number of items (maxItems): 1
shunt-resistor-micro-ohms — required here #
Value in micro Ohms of the shunt resistor connected between the RS+ and RS- inputs, across which the current is measured. Value needed to compute the scaling of the measured current.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "shunt-resistor-micro-ohms"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@7c {
compatible = "maxim,max9611";
reg = <0x7c>;
shunt-resistor-micro-ohms = <5000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Mediatek AUXADC - ADC on Mediatek mobile SoC (mt65xx/mt81xx/mt27xx)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/mediatek,mt2701-auxadc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Zhiyong Tao <zhiyong.tao@mediatek.com>", "Matthias Brugger <matthias.bgg@gmail.com>"
The Auxiliary Analog/Digital Converter (AUXADC) is an ADC found in some Mediatek SoCs which among other things measures the temperatures in the SoC. It can be used directly with register accesses, but it is also used by thermal controller which reads the temperatures from the AUXADC directly via its own bus interface. See mediatek-thermal bindings for the Thermal Controller which holds a phandle to the AUXADC.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"mediatek,mt2701-auxadc","mediatek,mt2712-auxadc","mediatek,mt6765-auxadc","mediatek,mt7622-auxadc","mediatek,mt7986-auxadc","mediatek,mt8173-auxadc"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"mediatek,mt2701-auxadc"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"mediatek,mt7986-auxadc"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt6893-auxadc","mediatek,mt8183-auxadc","mediatek,mt8186-auxadc","mediatek,mt8188-auxadc","mediatek,mt8189-auxadc","mediatek,mt8195-auxadc","mediatek,mt8516-auxadc"Item 2
Exact value (
const):"mediatek,mt8173-auxadc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "main"
#io-channel-cells — required here #
Exact value (const): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "#io-channel-cells"
Examples (examples) #
#include <dt-bindings/clock/mt8183-clk.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
adc@11001000 {
compatible = "mediatek,mt8183-auxadc",
"mediatek,mt8173-auxadc";
reg = <0 0x11001000 0 0x1000>;
clocks = <&infracfg CLK_INFRA_AUXADC>;
clock-names = "main";
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
MediaTek MT6350 series PMIC AUXADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/mediatek,mt6359-auxadc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>"
The Auxiliary Analog/Digital Converter (AUXADC) is an ADC found in some MediaTek PMICs, performing various PMIC related measurements such as battery and PMIC internal voltage regulators temperatures, accessory detection resistance (usually, for a 3.5mm audio jack) other than voltages for various PMIC internal components.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mediatek,mt6357-auxadc", "mediatek,mt6358-auxadc", "mediatek,mt6359-auxadc", "mediatek,mt6363-auxadc", "mediatek,mt6373-auxadc"
#io-channel-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "#io-channel-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Mediatek MT6360 and similar ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/mediatek,mt6360-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Gene Chen <gene_chen@richtek.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mediatek,mt6360-adc"
#io-channel-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "#io-channel-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
adc {
compatible = "mediatek,mt6360-adc";
#io-channel-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Microchip mcp3201 and similar ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/microchip,mcp3201.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Oskar Andero <oskar.andero@gmail.com>"
Family of simple ADCs with a SPI interface.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,mcp3001", "microchip,mcp3002", "microchip,mcp3004", "microchip,mcp3008", "microchip,mcp3201", "microchip,mcp3202", "microchip,mcp3204", "microchip,mcp3208", "microchip,mcp3301", "microchip,mcp3550-50", "microchip,mcp3550-60", "microchip,mcp3551", "microchip,mcp3553"
reg — required here #
Maximum number of items (maxItems): 1
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
vref-supply — required here #
External reference.
#io-channel-cells — not listed as required here #
Exact value (const): 1
Property dependencies (dependencies) #
spi-cpol — applies when this property is present #
Also requires: "spi-cpha"
spi-cpha — applies when this property is present #
Also requires: "spi-cpol"
Required in this object (required): "compatible", "reg", "vref-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "microchip,mcp3002";
reg = <0>;
vref-supply = <&vref_reg>;
spi-cpha;
spi-cpol;
#io-channel-cells = <1>;
};
adc@1 {
compatible = "microchip,mcp3002";
reg = <1>;
vref-supply = <&vref_reg>;
spi-max-frequency = <1500000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Microchip MCP346X and MCP356X ADC Family
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/microchip,mcp3564.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marius Cristea <marius.cristea@microchip.com>"
Bindings for the Microchip family of 153.6 ksps, Low-Noise 16/24-Bit
Delta-Sigma ADCs with an SPI interface. Datasheet can be found here:
Datasheet for MCP3561, MCP3562, MCP3564 can be found here:
https://ww1.microchip.com/downloads/aemDocuments/documents/MSLD/ProductDocuments/DataSheets/MCP3561-2-4-Family-Data-Sheet-DS20006181C.pdf
Datasheet for MCP3561R, MCP3562R, MCP3564R can be found here:
https://ww1.microchip.com/downloads/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP3561_2_4R-Data-Sheet-DS200006391C.pdf
Datasheet for MCP3461, MCP3462, MCP3464 can be found here:
https://ww1.microchip.com/downloads/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP3461-2-4-Two-Four-Eight-Channel-153.6-ksps-Low-Noise-16-Bit-Delta-Sigma-ADC-Data-Sheet-20006180D.pdf
Datasheet for MCP3461R, MCP3462R, MCP3464R can be found here:
https://ww1.microchip.com/downloads/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP3461-2-4R-Family-Data-Sheet-DS20006404C.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,mcp3461", "microchip,mcp3462", "microchip,mcp3464", "microchip,mcp3461r", "microchip,mcp3462r", "microchip,mcp3464r", "microchip,mcp3561", "microchip,mcp3562", "microchip,mcp3564", "microchip,mcp3561r", "microchip,mcp3562r", "microchip,mcp3564r"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — required here #
Maximum value (maximum): 20000000
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
avdd-supply — not listed as required here #
true — No constraints added by this property rule.
clocks — not listed as required here #
Phandle and clock identifier for external sampling clock. If not specified, the internal crystal oscillator will be used.
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
IRQ line of the ADC
Maximum number of items (maxItems): 1
drive-open-drain — not listed as required here #
Whether to drive the IRQ signal as push-pull (default) or open-drain. Note that the device requires this pin to become "high", otherwise it will stop converting.
Value type (type): "boolean"
vref-supply — not listed as required here #
Some devices have a specific reference voltage supplied on a different pin to the other supplies. Needed to be able to establish channel scaling unless there is also an internal reference available (e.g. mcp3564r). In case of "r" devices (e. g. mcp3564r), if it does not exists the internal reference will be used.
microchip,hw-device-address — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 3
The address is set on a per-device basis by fuses in the factory, configured on request. If not requested, the fuses are set for 0x1. The device address is part of the device markings to avoid potential confusion. This address is coded on two bits, so four possible addresses are available when multiple devices are present on the same SPI bus with only one Chip Select line for all devices. Each device communication starts by a CS falling edge, followed by the clocking of the device address (BITS[7:6] - top two bits of COMMAND BYTE which is first one on the wire).
#io-channel-cells — not listed as required here #
Exact value (const): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^channel@([0-9]|([1-7][0-9]))$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Represents the external channels which are connected to the ADC.
Properties and child nodes (properties) #
reg — required here
The channel number in single-ended and differential mode.
Minimum value (minimum): 0
Maximum value (maximum): 79
Required in this object (required): "reg"
Property dependencies (dependencies) #
spi-cpol — applies when this property is present #
Also requires: "spi-cpha"
spi-cpha — applies when this property is present #
Also requires: "spi-cpol"
Required in this object (required): "compatible", "reg", "microchip,hw-device-address", "spi-max-frequency"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"microchip,mcp3461","microchip,mcp3462","microchip,mcp3464","microchip,mcp3561","microchip,mcp3562","microchip,mcp3564"When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "microchip,mcp3564r";
reg = <0>;
vref-supply = <&vref_reg>;
spi-cpha;
spi-cpol;
spi-max-frequency = <10000000>;
microchip,hw-device-address = <1>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
/* CH0 to AGND */
reg = <0>;
label = "CH0";
};
channel@1 {
/* CH1 to AGND */
reg = <1>;
label = "CH1";
};
/* diff-channels */
channel@11 {
reg = <11>;
/* CN0, CN1 */
diff-channels = <0 1>;
label = "CH0_CH1";
};
channel@22 {
reg = <0x22>;
/* CN1, CN2 */
diff-channels = <1 2>;
label = "CH1_CH3";
};
channel@23 {
reg = <0x23>;
/* CN1, CN3 */
diff-channels = <1 3>;
label = "CH1_CH3";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 131: External vref, no internal reference
Microchip MCP3911 Dual channel analog front end (ADC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/microchip,mcp3911.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcus Folkesson <marcus.folkesson@gmail.com>", "Kent Gustavsson <nedo80@gmail.com>"
Bindings for the Microchip MCP3911 Dual channel ADC device. Datasheet can be found here: https://ww1.microchip.com/downloads/en/DeviceDoc/20002286C.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,mcp3910", "microchip,mcp3911", "microchip,mcp3912", "microchip,mcp3913", "microchip,mcp3914", "microchip,mcp3918", "microchip,mcp3919"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 20000000
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Phandle and clock identifier for external sampling clock. If not specified, the internal crystal oscillator will be used.
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
IRQ line of the ADC
Maximum number of items (maxItems): 1
microchip,data-ready-hiz — not listed as required here #
Data Ready Pin Inactive State Control true = The DR pin state is high-impedance false = The DR pin state is logic high
Value type (type): "boolean"
microchip,device-addr — not listed as required here #
Device address when multiple MCP3911 chips are present on the same SPI bus.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
vref-supply — not listed as required here #
Phandle to the external reference voltage supply. If not specified, the internal voltage reference (1.2V) will be used.
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/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "microchip,mcp3911";
reg = <0>;
interrupt-parent = <&gpio5>;
interrupts = <15 2>;
reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
spi-max-frequency = <20000000>;
microchip,device-addr = <0>;
vref-supply = <&vref_reg>;
clocks = <&xtal>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
Line 2: Copyright 2019 Marcus Folkesson <marcus.folkesson@gmail.com>
Microchip PAC1921 High-Side Power/Current Monitor with Anaog Output
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/microchip,pac1921.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matteo Martelli <matteomartelli3@gmail.com>"
The PAC1921 is a power/current monitoring device with an analog output and I2C/SMBus interface.
Datasheet can be found here: https://ww1.microchip.com/downloads/en/DeviceDoc/PAC1921-Data-Sheet-DS20005293E.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "microchip,pac1921"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
#io-channel-cells — not listed as required here #
Exact value (const): 1
shunt-resistor-micro-ohms — required here #
Value in micro Ohms of the shunt resistor connected between the SENSE+ and SENSE- inputs, across which the current is measured. Value is needed to compute the scaling of the measured current.
label — not listed as required here #
Unique name to identify which device this is.
read-integrate-gpios — not listed as required here #
READ/INT input pin to control the current state of the device, either in the INTEGRATE state when driven high, or in the READ state when driven low. When not connected the pin is floating and it can be overridden by the INT_EN register bit after asserting the READ/INT_OVR register bit.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "vdd-supply", "shunt-resistor-micro-ohms"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@4c {
compatible = "microchip,pac1921";
reg = <0x4c>;
vdd-supply = <&vdd>;
#io-channel-cells = <1>;
label = "vbat";
shunt-resistor-micro-ohms = <10000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Microchip PAC1934 Power Monitors with Accumulator
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/microchip,pac1934.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marius Cristea <marius.cristea@microchip.com>"
This device is part of the Microchip family of Power Monitors with
Accumulator.
The datasheet for PAC1931, PAC1932, PAC1933 and PAC1934 can be found here:
https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/PAC1931-Family-Data-Sheet-DS20005850E.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,pac1931", "microchip,pac1932", "microchip,pac1933", "microchip,pac1934"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
slow-io-gpios — not listed as required here #
A GPIO used to trigger a change is sampling rate (lowering the chip power consumption). If configured in SLOW mode, if this pin is forced high, sampling rate is forced to eight samples/second. When it is forced low, the sampling rate is 1024 samples/second unless a different sample rate has been programmed.
Properties matching a name pattern (patternProperties) #
^channel@[1-4]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): adc.yaml
Represents the external channels which are connected to the ADC.
Properties and child nodes (properties) #
reg — required here
Array item rules (items)
Minimum value (
minimum):1Maximum value (
maximum):4
shunt-resistor-micro-ohms — required here
Value in micro Ohms of the shunt resistor connected between the SENSE+ and SENSE- inputs, across which the current is measured. Value is needed to compute the scaling of the measured current.
Required in this object (required): "reg", "shunt-resistor-micro-ohms"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
power-monitor@10 {
compatible = "microchip,pac1934";
reg = <0x10>;
#address-cells = <1>;
#size-cells = <0>;
channel@1 {
reg = <0x1>;
shunt-resistor-micro-ohms = <24900000>;
label = "CPU";
};
channel@2 {
reg = <0x2>;
shunt-resistor-micro-ohms = <49900000>;
label = "GPU";
};
channel@3 {
reg = <0x3>;
shunt-resistor-micro-ohms = <75000000>;
label = "MEM";
bipolar;
};
channel@4 {
reg = <0x4>;
shunt-resistor-micro-ohms = <100000000>;
label = "NET";
bipolar;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Motorola CPCAP PMIC ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/motorola,cpcap-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tony Lindgren <tony@atomide.com>"
On Motorola phones like droid 4 there is a custom CPCAP PMIC. This PMIC has ADCs that are used for battery charging and USB PHY VBUS and ID pin detection.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "motorola,cpcap-adc", "motorola,mapphone-cpcap-adc"
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
Exact value (const): "adcdone"
#io-channel-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "interrupts", "#io-channel-cells"
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>
pmic {
#address-cells = <1>;
#size-cells = <0>;
adc {
compatible = "motorola,mapphone-cpcap-adc";
interrupt-parent = <&cpcap>;
interrupts = <8 IRQ_TYPE_NONE>;
interrupt-names = "adcdone";
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Nuvoton NAU7802 I2c Analog to Digital Converter (ADC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/nuvoton,nau7802.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexandre Belloni <alexandre.belloni@bootlin.com>", "Maxime Ripard <mripard@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nuvoton,nau7802"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
nuvoton,vldo — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Internal reference voltage in millivolts to be configured.
Minimum value (minimum): 2400
Maximum value (maximum): 4500
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
nau7802@2a {
compatible = "nuvoton,nau7802";
reg = <0x2a>;
nuvoton,vldo = <3000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Nuvoton nct7201 and similar ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/nuvoton,nct7201.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Eason Yang <j2anfernee@gmail.com>"
The NCT7201/NCT7202 is a Nuvoton Hardware Monitor IC, contains up to 12 voltage monitoring channels, with SMBus interface, and up to 4 sets SMBus address selection by ADDR connection. It also provides ALERT# signal for event notification and reset input RSTIN# to recover it from a fault condition.
NCT7201 contains 8 voltage monitor inputs (VIN1~VIN8). NCT7202 contains 12 voltage monitor inputs (VIN1~VIN12).
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nuvoton,nct7201", "nuvoton,nct7202"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
A 3.3V to supply that powers the chip.
vref-supply — not listed as required here #
The regulator supply for the ADC reference voltage.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@1d {
compatible = "nuvoton,nct7202";
reg = <0x1d>;
vdd-supply = <&vdd>;
vref-supply = <&vref>;
interrupt-parent = <&gpio3>;
interrupts = <30 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio3 28 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Nuvoton NPCM BMC Analog to Digital Converter (ADC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / 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)
NXP IMX8QXP ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/nxp,imx8qxp-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Cai Huoqing <caihuoqing@baidu.com>"
Supports the ADC found on the IMX8QXP SoC.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nxp,imx8qxp-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): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"per"
Item 2
Exact value (
const):"ipg"
assigned-clocks — required here #
Maximum number of items (maxItems): 1
assigned-clock-rates — required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Maximum number of items (maxItems): 1
vref-supply — not listed as required here #
External ADC reference voltage supply on VREFH pad. If VERID[MVI] is set, there are additional, internal reference voltages selectable. VREFH1 is always from VREFH pad.
#io-channel-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "assigned-clocks", "assigned-clock-rates", "power-domains", "#io-channel-cells"
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>
#include <dt-bindings/firmware/imx/rsrc.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
adc@5a880000 {
compatible = "nxp,imx8qxp-adc";
reg = <0x0 0x5a880000 0x0 0x10000>;
interrupts = <GIC_SPI 240 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX_SC_R_ADC_0>,
<&clk IMX_SC_R_ADC_0>;
clock-names = "per", "ipg";
assigned-clocks = <&clk IMX_SC_R_ADC_0>;
assigned-clock-rates = <24000000>;
power-domains = <&pd IMX_SC_R_ADC_0>;
vref-supply = <®_1v8>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NXP iMX93 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/nxp,imx93-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Haibo Chen <haibo.chen@nxp.com>"
The ADC on iMX93 is a 8-channel 12-bit 1MS/s ADC with 4 channels connected to pins. it support normal and inject mode, include One-Shot and Scan (continuous) conversions. Programmable DMA enables for each channel Also this ADC contain alternate analog watchdog thresholds, select threshold through input ports. And also has Self-test logic and Software-initiated calibration.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"nxp,imx93-adc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
WDGnL, watchdog threshold interrupt requests.
Item 2
WDGnH, watchdog threshold interrupt requests.
Item 3
normal conversion, include EOC (End of Conversion), ECH (End of Chain), JEOC (End of Injected Conversion) and JECH (End of injected Chain).
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "ipg"
vref-supply — required here #
The reference voltage which used to establish channel scaling.
#io-channel-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "vref-supply", "#io-channel-cells"
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/clock/imx93-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc {
#address-cells = <1>;
#size-cells = <1>;
adc@44530000 {
compatible = "nxp,imx93-adc";
reg = <0x44530000 0x10000>;
interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX93_CLK_ADC1_GATE>;
clock-names = "ipg";
vref-supply = <®_vref_1v8>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
NXP LPC1850 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/nxp,lpc1850-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Supports the ADC found on the LPC1850 SoC.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nxp,lpc1850-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
vref-supply — required here #
true — No constraints added by this property rule.
resets — required here #
Maximum number of items (maxItems): 1
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "vref-supply", "resets"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/lpc18xx-ccu.h>
soc {
#address-cells = <1>;
#size-cells = <1>;
adc@400e3000 {
compatible = "nxp,lpc1850-adc";
reg = <0x400e3000 0x1000>;
interrupts = <17>;
clocks = <&ccu1 CLK_APB3_ADC0>;
vref-supply = <®_vdda>;
resets = <&rgu 40>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
NXP LPC3220 SoC ADC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/nxp,lpc3220-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Gregory Clement <gregory.clement@bootlin.com>"
This hardware block has been used on several LPC32XX SoCs.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nxp,lpc3220-adc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
vref-supply — not listed as required here #
true — No constraints added by this property rule.
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
soc {
#address-cells = <1>;
#size-cells = <1>;
adc@40048000 {
compatible = "nxp,lpc3220-adc";
reg = <0x40048000 0x1000>;
interrupt-parent = <&mic>;
interrupts = <39 0>;
vref-supply = <&vcc>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
NXP Successive Approximation ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / 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)
Qualcomm's PM8xxx voltage XOADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/qcom,pm8018-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
The Qualcomm PM8xxx PMICs contain a HK/XO ADC (Housekeeping/Crystal oscillator ADC) encompassing PM8018, PM8038, PM8058 and PM8921.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,pm8018-adc", "qcom,pm8038-adc", "qcom,pm8058-adc", "qcom,pm8921-adc"
reg — required here #
Maximum number of items (maxItems): 1
ADC base address in the PMIC, typically 0x197.
xoadc-ref-supply — not listed as required here #
The reference voltage may vary with PMIC variant but is typically something like 2.2 or 1.8V.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 2
The first cell is the prescaler (on PM8058) or premux (on PM8921) with two valid bits so legal values are 0x00, 0x01 or 0x02. The second cell is the main analog mux setting (0x00..0x0f). The combination of prescaler/premux and analog mux uniquely addresses a hardware channel on all systems.
#size-cells — required here #
Exact value (const): 0
#io-channel-cells — required here #
Exact value (const): 2
The cells are precaler or premux followed by the analog muxing line.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "#io-channel-cells", "#address-cells", "#size-cells", "adc-channel@c", "adc-channel@d", "adc-channel@f"
Properties matching a name pattern (patternProperties) #
^(adc-channel@)[0-9a-f]$ — name matches this regular expression #
Value type (type): "object"
ADC channel specific configuration. Note that channels c, d and f must be present for calibration. These three nodes are used for absolute and ratiometric calibration and only need to have these reg values: they are by hardware definition 1:1 ratio converters that sample 625, 1250 and 0 milliV and create an interpolation calibration for all other ADCs.
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
qcom,decimation — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
This parameter is used to decrease the ADC sampling rate. Quicker measurements can be made by reducing the decimation ratio. Valid values are 512, 1024, 2048, 4096. If the property is not found, a default value of 512 will be used.
qcom,ratiometric — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Channel calibration type. If this property is specified VADC will use a special voltage references for channel calibration. The available references are specified in the as a u32 value setting (see below) and it is compulsory to also specify this reference if ratiometric calibration is selected.
If the property is not found, the channel will be calibrated with the 0.625V and 1.25V reference channels, also known as an absolute calibration.
The reference voltage pairs when using ratiometric calibration: 0 = XO_IN/XOADC_GND 1 = PMIC_IN/XOADC_GND 2 = PMIC_IN/BMS_CSP 3 (invalid) 4 = XOADC_GND/XOADC_GND 5 = XOADC_VREF/XOADC_GND
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "reg"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
pmic {
#address-cells = <1>;
#size-cells = <0>;
adc@197 {
compatible = "qcom,pm8058-adc";
reg = <0x197>;
interrupts-extended = <&pm8058 76 IRQ_TYPE_EDGE_RISING>;
#address-cells = <2>;
#size-cells = <0>;
#io-channel-cells = <2>;
vcoin: adc-channel@0 {
reg = <0x00 0x00>;
};
vbat: adc-channel@1 {
reg = <0x00 0x01>;
};
dcin: adc-channel@2 {
reg = <0x00 0x02>;
};
ichg: adc-channel@3 {
reg = <0x00 0x03>;
};
vph_pwr: adc-channel@4 {
reg = <0x00 0x04>;
};
usb_vbus: adc-channel@a {
reg = <0x00 0x0a>;
};
die_temp: adc-channel@b {
reg = <0x00 0x0b>;
};
ref_625mv: adc-channel@c {
reg = <0x00 0x0c>;
};
ref_1250mv: adc-channel@d {
reg = <0x00 0x0d>;
};
ref_325mv: adc-channel@e {
reg = <0x00 0x0e>;
};
ref_muxoff: adc-channel@f {
reg = <0x00 0x0f>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm's SPMI PMIC current ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/qcom,spmi-iadc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
QPNP PMIC current ADC (IADC) provides interface to clients to read current. A 16 bit ADC is used for current measurements. IADC can measure the current through an external resistor (channel 1) or internal (built-in) resistor (channel 0). When using an external resistor it is to be described by qcom,external-resistor-micro-ohms property.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"qcom,pm8226-iadc","qcom,pm8941-iadc"
Item 2
Exact value (
const):"qcom,spmi-iadc"
reg — required here #
IADC base address in the SPMI PMIC register map
Maximum number of items (maxItems): 1
qcom,external-resistor-micro-ohms — not listed as required here #
Sensor resistor value. If not defined value of 10000 micro Ohms will be used.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
End of conversion interrupt.
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg"
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>
pmic {
#address-cells = <1>;
#size-cells = <0>;
adc@3600 {
compatible = "qcom,pm8941-iadc", "qcom,spmi-iadc";
reg = <0x3600>;
interrupts = <0x0 0x36 0x0 IRQ_TYPE_EDGE_RISING>;
qcom,external-resistor-micro-ohms = <10000>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm's SPMI PMIC Round Robin ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/qcom,spmi-rradc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Casey Connolly <casey.connolly@linaro.org>"
The Qualcomm SPMI Round Robin ADC (RRADC) provides interface to clients to read the voltage, current and temperature for supported peripherals such as the battery thermistor die temperature, charger temperature, USB and DC input voltage / current and battery ID resistor.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,pmi8998-rradc", "qcom,pm660-rradc"
reg — required here #
Maximum number of items (maxItems): 1
qcom,batt-id-delay-ms — not listed as required here #
Sets the hardware settling time for the battery ID resistor.
Allowed values (enum): 0, 1, 4, 12, 20, 40, 60, 80
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
pmic {
#address-cells = <1>;
#size-cells = <0>;
adc@4500 {
compatible = "qcom,pmi8998-rradc";
reg = <0x4500>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm's SPMI PMIC ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/qcom,spmi-vadc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andy Gross <agross@kernel.org>", "Bjorn Andersson <bjorn.andersson@linaro.org>"
SPMI PMIC voltage ADC (VADC) provides interface to clients to read voltage. The VADC is a 15-bit sigma-delta ADC. SPMI PMIC5/PMIC7 voltage ADC (ADC) provides interface to clients to read voltage. The VADC is a 16-bit sigma-delta ADC.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"qcom,pms405-adc"Item 2
Exact value (
const):"qcom,spmi-adc-rev2"
Rule 2
Allowed values (
enum):"qcom,spmi-vadc","qcom,spmi-adc5","qcom,spmi-adc-rev2","qcom,spmi-adc7"
reg — required here #
VADC base address in the SPMI PMIC register map
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
#io-channel-cells — required here #
Exact value (const): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
End of conversion interrupt.
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "#io-channel-cells"
Properties matching a name pattern (patternProperties) #
^channel@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Represents the external channels which are connected to the ADC. For compatible property "qcom,spmi-vadc" following channels, also known as reference point channels, are used for result calibration and their channel configuration nodes should be defined: VADC_REF_625MV and/or VADC_SPARE1(based on PMIC version) VADC_REF_1250MV, VADC_GND_REF and VADC_VDD_VADC.
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
ADC channel number. See include/dt-bindings/iio/qcom,spmi-vadc.h For PMIC7 ADC, the channel numbers are specified separately per PMIC in the PMIC-specific files in include/dt-bindings/iio/.
label — not listed as required here
ADC input of the platform as seen in the schematics. For thermistor inputs connected to generic AMUX or GPIO inputs these can vary across platform for the same pins. Hence select the platform schematics name for this channel.
qcom,decimation — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
This parameter is used to decrease ADC sampling rate. Quicker measurements can be made by reducing decimation ratio.
qcom,pre-scaling — not listed as required here
Used for scaling the channel input signal before the signal is fed to VADC. The configuration for this node is to know the pre-determined ratio and use it for post scaling. It is a pair of integers, denoting the numerator and denominator of the fraction by which input signal is multiplied. For example, <1 3> indicates the signal is scaled down to 1/3 of its value before ADC measurement. If property is not found default value depending on chip will be used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Item 1
Exact value (
const):1Item 2
Rule 2
Array item rules (
items)Item 1
Exact value (
const):10Item 2
Exact value (
const):81
qcom,ratiometric — not listed as required here
Channel calibration type.
- For compatible property "qcom,spmi-vadc", if this property is
specified VADC will use the VDD reference (1.8V) and GND for
channel calibration. If property is not found, channel will be
calibrated with 0.625V and 1.25V reference channels, also
known as absolute calibration.
- For compatible property "qcom,spmi-adc5", "qcom,spmi-adc7" and
"qcom,spmi-adc-rev2", if this property is specified VADC will use
the VDD reference (1.875V) and GND for channel calibration. If
property is not found, channel will be calibrated with 0V and 1.25V
reference channels, also known as absolute calibration.
Value type (type): "boolean"
qcom,hw-settle-time — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Time between AMUX getting configured and the ADC starting conversion. The 'hw_settle_time' is an index used from valid values and programmed in hardware to achieve the hardware settling delay.
qcom,avg-samples — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of samples to be used for measurement. Averaging provides the option to obtain a single measurement from the ADC that is an average of multiple samples. The value selected is 2^(value).
Required in this object (required): "reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"qcom,spmi-vadc"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-9a-f]+$— name matches this regular expressionProperties and child nodes (
properties)
qcom,decimation— not listed as required hereAllowed values (
enum):512,1024,2048,4096Default value (
default):512
qcom,hw-settle-time— not listed as required hereAllowed values (
enum):0,100,200,300,400,500,600,700,800,900,1,2,4,6,8,10Default value (
default):0
qcom,avg-samples— not listed as required hereAllowed values (
enum):1,2,4,8,16,32,64,128,256,512Default value (
default):1
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"qcom,spmi-adc-rev2"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-9a-f]+$— name matches this regular expressionProperties and child nodes (
properties)
qcom,decimation— not listed as required hereAllowed values (
enum):256,512,1024Default value (
default):1024
qcom,hw-settle-time— not listed as required hereAllowed values (
enum):0,100,200,300,400,500,600,700,800,900,1,2,4,6,8,10Default value (
default):0
qcom,avg-samples— not listed as required hereAllowed values (
enum):1,2,4,8,16Default value (
default):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"qcom,spmi-adc5"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-9a-f]+$— name matches this regular expressionProperties and child nodes (
properties)
qcom,decimation— not listed as required hereAllowed values (
enum):250,420,840Default value (
default):840
qcom,hw-settle-time— not listed as required hereAllowed values (
enum):15,100,200,300,400,500,600,700,800,900,1,2,4,6,8,10,16,32,64,128Default value (
default):15
qcom,avg-samples— not listed as required hereAllowed values (
enum):1,2,4,8,16Default value (
default):1
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"qcom,spmi-adc7"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-9a-f]+$— name matches this regular expressionProperties and child nodes (
properties)
qcom,decimation— not listed as required hereAllowed values (
enum):85,340,1360Default value (
default):1360
qcom,hw-settle-time— not listed as required hereAllowed values (
enum):15,100,200,300,400,500,600,700,1000,2000,4000,8000,16000,32000,64000,128000Default value (
default):15
qcom,avg-samples— not listed as required hereAllowed values (
enum):1,2,4,8,16Default value (
default):1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
pmic {
#address-cells = <1>;
#size-cells = <0>;
adc@3100 {
compatible = "qcom,spmi-vadc";
reg = <0x3100>;
interrupts = <0x0 0x31 0x0 0x1>;
#address-cells = <1>;
#size-cells = <0>;
#io-channel-cells = <1>;
/* Channel node */
channel@39 {
reg = <0x39>;
qcom,decimation = <512>;
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,avg-samples = <1>;
qcom,pre-scaling = <1 3>;
};
channel@9 {
reg = <0x9>;
};
channel@a {
reg = <0xa>;
};
channel@e {
reg = <0xe>;
};
channel@f {
reg = <0xf>;
};
};
};
#include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h>
#include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h>
pmic {
#address-cells = <1>;
#size-cells = <0>;
adc@3100 {
reg = <0x3100>;
compatible = "qcom,spmi-adc7";
#address-cells = <1>;
#size-cells = <0>;
#io-channel-cells = <1>;
/* Other properties are omitted */
channel@44 {
reg = <PMK8350_ADC7_AMUX_THM1_100K_PU>;
qcom,ratiometric;
qcom,hw-settle-time = <200>;
label = "xo_therm";
};
channel@47 {
reg = <PM8350_ADC7_AMUX_THM4_100K_PU(1)>;
qcom,ratiometric;
qcom,hw-settle-time = <200>;
label = "conn_therm";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Renesas RZ/T2H / RZ/N2H ADC12
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/renesas,r9a09g077-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>"
A/D Converter block is a successive approximation analog-to-digital converter with a 12-bit accuracy. Up to 16 analog input channels can be selected. Conversions can be performed in single or continuous mode. Result of the ADC is stored in a 16-bit data register corresponding to each channel.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a09g087-adc"Item 2
Exact value (
const):"renesas,r9a09g077-adc"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a09g077-adc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
A/D scan end interrupt
Item 2
A/D scan end interrupt for Group B
Item 3
A/D scan end interrupt for Group C
Item 4
Window A compare match
Item 5
Window B compare match
Item 6
Compare match
Item 7
Compare mismatch
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"adi"
Item 2
Exact value (
const):"gbadi"
Item 3
Exact value (
const):"gcadi"
Item 4
Exact value (
const):"cmpai"
Item 5
Exact value (
const):"cmpbi"
Item 6
Exact value (
const):"wcmpm"
Item 7
Exact value (
const):"wcmpum"
clocks — required here #
Array item rules (items) #
Item 1
Converter clock
Item 2
Peripheral clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"adclk"
Item 2
Exact value (
const):"pclk"
power-domains — required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
#io-channel-cells — not listed as required here #
Exact value (const): 1
Properties matching a name pattern (patternProperties) #
^channel@[0-9a-f]$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
The external channels which are connected to the ADC.
Properties and child nodes (properties) #
reg — required here
The channel number.
Maximum value (maximum): 15
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "power-domains"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/renesas,r9a09g077-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
adc@80008000 {
compatible = "renesas,r9a09g077-adc";
reg = <0x80008000 0x400>;
interrupts = <GIC_SPI 708 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 709 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 710 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 711 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 712 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 855 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 856 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "adi", "gbadi", "gcadi",
"cmpai", "cmpbi", "wcmpm", "wcmpum";
clocks = <&cpg CPG_CORE R9A09G077_CLK_PCLKL>,
<&cpg CPG_MOD 225>;
clock-names = "adclk", "pclk";
power-domains = <&cpg>;
#address-cells = <1>;
#size-cells = <0>;
#io-channel-cells = <1>;
channel@0 {
reg = <0x0>;
};
channel@1 {
reg = <0x1>;
};
channel@2 {
reg = <0x2>;
};
channel@3 {
reg = <0x3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 22: RZ/N2H
Line 23: RZ/T2H
Line 25: RZ/T2H
Renesas R-Car GyroADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/renesas,rcar-gyroadc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marek Vasut <marek.vasut+renesas@gmail.com>"
The GyroADC block is a reduced SPI block with up to 8 chipselect lines, which supports the SPI protocol of a selected few SPI ADCs. The SPI ADCs are sampled by the GyroADC block in a round-robin fashion and the result presented in the GyroADC registers. The ADC bindings should match with that of the devices connected to a full featured SPI bus.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"renesas,r8a7791-gyroadc","renesas,r8a7792-gyroadc"
Item 2
Exact value (
const):"renesas,rcar-gyroadc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "fck"
power-domains — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "power-domains", "resets", "#address-cells", "#size-cells"
Properties matching a name pattern (patternProperties) #
@[0-7]$ — name matches this regular expression #
Value type (type): "object"
Properties and child nodes (properties) #
compatible — required here
fujitsu,mb88101a
- Fujitsu MB88101A compatible mode,
12bit sampling, up to 4 channels can be sampled in round-robin
fashion. One Fujitsu chip supplies four GyroADC channels with
data as it contains four ADCs on the chip and thus for 4-channel
operation, single MB88101A is required. The Cx chipselect lines
of the MB88101A connect directly to two CHS lines of the GyroADC,
no demuxer is required. The data out line of each MB88101A
connects to a shared input pin of the GyroADC.
ti,adcs7476 or ti,adc121 or adi,ad7476
- TI ADCS7476 / TI ADC121 / ADI AD7476 compatible mode, 15bit
sampling, up to 8 channels can be sampled in round-robin
fashion. One TI/ADI chip supplies single ADC channel with data,
thus for 8-channel operation, 8 chips are required.
A 3:8 chipselect demuxer is required to connect the nCS line
of the TI/ADI chips to the GyroADC, while MISO line of each
TI/ADI ADC connects to a shared input pin of the GyroADC.
maxim,max1162 or maxim,max11100
- Maxim MAX1162 / Maxim MAX11100 compatible mode, 16bit sampling,
up to 8 channels can be sampled in round-robin fashion. One
Maxim chip supplies single ADC channel with data, thus for
8-channel operation, 8 chips are required.
A 3:8 chipselect demuxer is required to connect the nCS line
of the MAX chips to the GyroADC, while MISO line of each Maxim
ADC connects to a shared input pin of the GyroADC.
Allowed values (enum): "adi,ad7476", "fujitsu,mb88101a", "maxim,max1162", "maxim,max11100", "ti,adcs7476", "ti,adc121"
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 7
vref-supply — required here
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "vref-supply"
Examples (examples) #
#include <dt-bindings/clock/r8a7791-cpg-mssr.h>
#include <dt-bindings/power/r8a7791-sysc.h>
adc@e6e54000 {
compatible = "renesas,r8a7791-gyroadc", "renesas,rcar-gyroadc";
reg = <0xe6e54000 64>;
clocks = <&cpg CPG_MOD 901>;
clock-names = "fck";
power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
resets = <&cpg 901>;
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
reg = <0>;
compatible = "maxim,max1162";
vref-supply = <&vref_max1162>;
};
adc@1 {
reg = <1>;
compatible = "maxim,max1162";
vref-supply = <&vref_max1162>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Renesas RZ/G2L ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/renesas,rzg2l-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>"
A/D Converter block is a successive approximation analog-to-digital converter with a 12-bit accuracy. Up to eight analog input channels can be selected. Conversions can be performed in single or repeat mode. Result of the ADC is stored in a 32-bit data register corresponding to each channel.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r9a07g043-adc","renesas,r9a07g044-adc","renesas,r9a07g054-adc"Item 2
Exact value (
const):"renesas,rzg2l-adc"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a08g045-adc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
converter clock
Item 2
peripheral clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"adclk"
Item 2
Exact value (
const):"pclk"
power-domains — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 2
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"presetn"
Item 2
Exact value (
const):"adrst-n"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "power-domains", "resets", "reset-names"
Properties matching a name pattern (patternProperties) #
^channel@[0-8]$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Represents the external channels which are connected to the ADC.
Properties and child nodes (properties) #
reg — required here
The channel number.
Minimum value (minimum): 0
Maximum value (maximum): 8
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r9a07g043-adc"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[2-8]$— name matches this regular expression
false— Not permitted by this property rule.
^channel@[0-1]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):1
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,r9a07g044-adc","renesas,r9a07g054-adc"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[8]$— name matches this regular expression
false— Not permitted by this property rule.
^channel@[0-7]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):7
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r9a07g044-cpg.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
adc: adc@10059000 {
compatible = "renesas,r9a07g044-adc", "renesas,rzg2l-adc";
reg = <0x10059000 0x400>;
interrupts = <GIC_SPI 347 IRQ_TYPE_EDGE_RISING>;
clocks = <&cpg CPG_MOD R9A07G044_ADC_ADCLK>,
<&cpg CPG_MOD R9A07G044_ADC_PCLK>;
clock-names = "adclk", "pclk";
power-domains = <&cpg>;
resets = <&cpg R9A07G044_ADC_PRESETN>,
<&cpg R9A07G044_ADC_ADRST_N>;
reset-names = "presetn", "adrst-n";
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
};
channel@1 {
reg = <1>;
};
channel@2 {
reg = <2>;
};
channel@3 {
reg = <3>;
};
channel@4 {
reg = <4>;
};
channel@5 {
reg = <5>;
};
channel@6 {
reg = <6>;
};
channel@7 {
reg = <7>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 23: RZ/G2UL and RZ/Five
Line 24: RZ/G2L
Line 25: RZ/V2L
Line 28: RZ/G3S
Renesas RZ/N1 Analog to Digital Converter (ADC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/renesas,rzn1-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Herve Codina <herve.codina@bootlin.com>"
The Renesas RZ/N1 ADC controller available in the Renesas RZ/N1 SoCs family can use up to two internal ADC cores (ADC1 and ADC2) those internal cores are handled through ADC controller virtual channels.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"renesas,r9a06g032-adc"
Item 2
Exact value (
const):"renesas,rzn1-adc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
APB internal bus clock
Item 2
ADC clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"pclk"
Item 2
Exact value (
const):"adc"
power-domains — required here #
Maximum number of items (maxItems): 1
adc1-avdd-supply — not listed as required here #
ADC1 analog power supply.
adc1-vref-supply — not listed as required here #
ADC1 reference voltage supply.
adc2-avdd-supply — not listed as required here #
ADC2 analog power supply.
adc2-vref-supply — not listed as required here #
ADC2 reference voltage supply.
#io-channel-cells — required here #
Exact value (const): 1
Channels numbers available:
if ADC1 is used (i.e. adc1-{avdd,vref}-supply present):
- 0: ADC1 IN0
- 1: ADC1 IN1
- 2: ADC1 IN2
- 3: ADC1 IN3
- 4: ADC1 IN4
- 5: ADC1 IN6
- 6: ADC1 IN7
- 7: ADC1 IN8
if ADC2 is used (i.e. adc2-{avdd,vref}-supply present):
- 8: ADC2 IN0
- 9: ADC2 IN1
- 10: ADC2 IN2
- 11: ADC2 IN3
- 12: ADC2 IN4
- 13: ADC2 IN6
- 14: ADC2 IN7
- 15: ADC2 IN8
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "power-domains", "#io-channel-cells"
At least one of these rules must match (anyOf) #
Rule 1 #
Required in this object (
required):"adc1-vref-supply","adc1-avdd-supply"
Rule 2 #
Required in this object (
required):"adc2-vref-supply","adc2-avdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r9a06g032-sysctrl.h>
adc: adc@40065000 {
compatible = "renesas,r9a06g032-adc", "renesas,rzn1-adc";
reg = <0x40065000 0x200>;
clocks = <&sysctrl R9A06G032_HCLK_ADC>, <&sysctrl R9A06G032_CLK_ADC>;
clock-names = "pclk", "adc";
power-domains = <&sysctrl>;
adc1-avdd-supply = <&adc1_avdd>;
adc1-vref-supply = <&adc1_vref>;
#io-channel-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 20: RZ/N1D
Line 86: At least one of avvd/vref supplies
RTQ6056 Bi-Directional Current and Power Monitor with 16-bit ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/richtek,rtq6056.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "ChiYuan Huang <cy_huang@richtek.com>"
The RTQ6056 is a high accuracy current-sense monitor with I2C and SMBus interface, and the device provides full information for system by reading out the loading current and power.
The device monitors both of the drops across sense resistor and the BUS voltage, converts into the current in amperes, and power in watts through internal analog-to-digital converter ADC. The programmable calibration, adjustable conversion time, and averaging function are also built in for more design flexibility.
Datasheet is available at https://www.richtek.com/assets/product_file/RTQ6056/DSQ6056-00.pdf
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"richtek,rtq6056"
reg — required here #
Maximum number of items (maxItems): 1
#io-channel-cells — required here #
Exact value (const): 1
shunt-resistor-micro-ohms — not listed as required here #
Shunt IN+/IN- sensing node resistor
Required in this object (required): "compatible", "reg", "#io-channel-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@40 {
compatible = "richtek,rtq6056";
reg = <0x40>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Rockchip Successive Approximation Register (SAR) A/D Converter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/rockchip-saradc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"rockchip,saradc"
Rule 2
Exact value (
const):"rockchip,rk3066-tsadc"
Rule 3
Exact value (
const):"rockchip,rk3399-saradc"
Rule 4
Exact value (
const):"rockchip,rk3528-saradc"
Rule 5
Array item rules (
items)Item 1
Exact value (
const):"rockchip,rk3506-saradc"Item 2
Exact value (
const):"rockchip,rk3528-saradc"
Rule 6
Exact value (
const):"rockchip,rk3562-saradc"
Rule 7
Exact value (
const):"rockchip,rk3588-saradc"
Rule 8
Array item rules (
items)Item 1
Exact value (
const):"rockchip,rk3576-saradc"Item 2
Exact value (
const):"rockchip,rk3588-saradc"
Rule 9
Array item rules (
items)Item 1
Allowed values (
enum):"rockchip,px30-saradc","rockchip,rk3308-saradc","rockchip,rk3328-saradc","rockchip,rk3568-saradc","rockchip,rv1108-saradc","rockchip,rv1126-saradc"Item 2
Exact value (
const):"rockchip,rk3399-saradc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
converter clock
Item 2
peripheral clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"saradc"
Item 2
Exact value (
const):"apb_pclk"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
reset-names — not listed as required here #
Exact value (const): "saradc-apb"
vref-supply — required here #
The regulator supply for the ADC reference voltage.
#io-channel-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "vref-supply", "#io-channel-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/rk3288-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
saradc: saradc@2006c000 {
compatible = "rockchip,saradc";
reg = <0x2006c000 0x100>;
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
clock-names = "saradc", "apb_pclk";
resets = <&cru SRST_SARADC>;
reset-names = "saradc-apb";
vref-supply = <&vcc18>;
#io-channel-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
ROHM Semiconductor BD79104 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/rohm,bd79104.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matti Vaittinen <mazziesaccount@gmail.com>"
12 bit SPI ADC with 8 channels.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"rohm,bd79100","rohm,bd79101","rohm,bd79102","rohm,bd79104"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"rohm,bd79103"Item 2
Exact value (
const):"rohm,bd79104"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
iovdd-supply — required here #
true — No constraints added by this property rule.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 20000000
#io-channel-cells — not listed as required here #
Exact value (const): 1
spi-cpha — required here #
true — No constraints added by this property rule.
spi-cpol — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vdd-supply", "iovdd-supply", "spi-cpha", "spi-cpol"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "rohm,bd79104";
reg = <0>;
vdd-supply = <&vdd_supply>;
iovdd-supply = <&iovdd_supply>;
spi-max-frequency = <4000000>;
spi-cpha;
spi-cpol;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 33: The component data-sheet says the frequency is 20M. I, however, found
Line 34: that the ROHM evaluation board BD79104FV-EVK-001 had problems with 20M.
Line 35: I have successfully used it with 4M. My _assumption_ is that this is not
Line 36: the limitation of the component itself, but a limitation of the EVK.
ROHM BD79112 ADC/GPO
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/rohm,bd79112.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matti Vaittinen <mazziesaccount@gmail.com>"
The ROHM BD79112 is a 12-bit, 32-channel, SAR ADC. ADC input pins can be also configured as general purpose inputs/outputs. SPI should use MODE 3.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "rohm,bd79112"
reg — required here #
Maximum number of items (maxItems): 1
spi-cpha — required here #
true — No constraints added by this property rule.
spi-cpol — required here #
true — No constraints added by this property rule.
gpio-controller — not listed as required here #
true — No constraints added by this property rule.
#gpio-cells — not listed as required here #
Exact value (const): 2
vdd-supply — required here #
true — No constraints added by this property rule.
iovdd-supply — required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^channel@([0-9]|[12][0-9]|3[01])$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): /schemas/iio/adc/adc.yaml#
Represents ADC channel. Omitted channels' inputs are GPIOs.
Properties and child nodes (properties) #
reg — required here
AIN pin number
Minimum value (minimum): 0
Maximum value (maximum): 31
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "iovdd-supply", "vdd-supply", "spi-cpha", "spi-cpol"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc: adc@0 {
compatible = "rohm,bd79112";
reg = <0x0>;
spi-cpha;
spi-cpol;
vdd-supply = <&dummyreg>;
iovdd-supply = <&dummyreg>;
#address-cells = <1>;
#size-cells = <0>;
gpio-controller;
#gpio-cells = <2>;
channel@0 {
reg = <0>;
};
channel@1 {
reg = <1>;
};
channel@2 {
reg = <2>;
};
channel@16 {
reg = <16>;
};
channel@20 {
reg = <20>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
ROHM BD79124 ADC/GPO
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/rohm,bd79124.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matti Vaittinen <mazziesaccount@gmail.com>"
The ROHM BD79124 is a 12-bit, 8-channel, SAR ADC. The ADC supports an automatic measurement mode, with an alarm interrupt for out-of-window measurements. ADC input pins can be also configured as general purpose outputs.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "rohm,bd79124"
reg — required here #
I2C slave address.
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
gpio-controller — not listed as required here #
true — No constraints added by this property rule.
#gpio-cells — not listed as required here #
Exact value (const): 1
The pin number.
vdd-supply — required here #
true — No constraints added by this property rule.
iovdd-supply — required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^channel@[0-7]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): /schemas/iio/adc/adc.yaml#
Represents ADC channel.
Properties and child nodes (properties) #
reg — required here
AIN pin number
Minimum value (minimum): 0
Maximum value (maximum): 7
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "iovdd-supply", "vdd-supply"
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/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc: adc@10 {
compatible = "rohm,bd79124";
reg = <0x10>;
interrupt-parent = <&gpio1>;
interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
vdd-supply = <&dummyreg>;
iovdd-supply = <&dummyreg>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
};
channel@1 {
reg = <1>;
};
channel@2 {
reg = <2>;
};
channel@3 {
reg = <3>;
};
channel@4 {
reg = <4>;
};
channel@5 {
reg = <5>;
};
channel@6 {
reg = <6>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Samsung Exynos Analog to Digital Converter (ADC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/samsung,exynos-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"samsung,exynos-adc-v1","samsung,exynos-adc-v2","samsung,exynos3250-adc","samsung,exynos4212-adc","samsung,exynos7-adc","samsung,s3c6410-adc","samsung,s5pv210-adc"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"samsung,exynos7-adc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Phandle to ADC bus clock. For Exynos3250 additional clock is needed.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — required here #
Must contain clock names (adc, sclk) matching phandles in clocks property.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
#io-channel-cells — required here #
Exact value (const): 1
vdd-supply — required here #
true — No constraints added by this property rule.
samsung,syscon-phandle — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the PMU system controller node (to access the ADC_PHY register on Exynos3250/4x12/5250/5420/5800).
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "#io-channel-cells", "vdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
Value type (
type):"object"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"samsung,exynos-adc-v1","samsung,exynos-adc-v2","samsung,exynos3250-adc","samsung,exynos4212-adc"When the condition matches (
then) #Required in this object (
required):"samsung,syscon-phandle"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"adc"Item 2
Exact value (
const):"sclk"When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):1
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"adc"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,s5pv210-adc"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereArray item rules (
items)Item 1
main (ADC)
Item 2
pending (PENDN)
When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):1
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
adc: adc@12d10000 {
compatible = "samsung,exynos-adc-v1";
reg = <0x12d10000 0x100>;
interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
#io-channel-cells = <1>;
clocks = <&clock 303>;
clock-names = "adc";
vdd-supply = <&buck5_reg>;
samsung,syscon-phandle = <&pmu_system_controller>;
/* NTC thermistor is a hwmon device */
thermistor {
compatible = "murata,ncp15wb473";
pullup-uv = <1800000>;
pullup-ohm = <47000>;
pulldown-ohm = <0>;
io-channels = <&adc 4>;
};
};
#include <dt-bindings/clock/exynos3250.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
adc@126c0000 {
compatible = "samsung,exynos3250-adc";
reg = <0x126c0000 0x100>;
interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
#io-channel-cells = <1>;
clocks = <&cmu CLK_TSADC>,
<&cmu CLK_SCLK_TSADC>;
clock-names = "adc", "sclk";
vdd-supply = <&buck5_reg>;
samsung,syscon-phandle = <&pmu_system_controller>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 16: Exynos5250
Line 19: Exynos4212 and Exynos4412
Sigma delta modulator
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/sigma-delta-modulator.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>"
Properties and child nodes (properties) #
compatible — required here #
"sd-modulator" can be used as a generic SD modulator, if the modulator is not specified in the compatible list.
Allowed values (enum): "sd-modulator", "ads1201"
#io-backend-cells — not listed as required here #
Exact value (const): 0
#io-channel-cells — not listed as required here #
Exact value (const): 0
vref-supply — not listed as required here #
Phandle to the vref input analog reference voltage.
Property dependencies (dependencies) #
vref-supply — applies when this property is present #
Also requires: "#io-backend-cells"
Required in this object (required): "compatible"
At least one of these rules must match (anyOf) #
Rule 1 #
Rule 2 #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
// Backend binding example. SD modulator configured as an IIO backend device
ads1201_0: adc {
compatible = "sd-modulator";
vref-supply = <&vdd_adc>;
#io-backend-cells = <0>;
};
// Legacy binding example. SD modulator configured as an IIO channel provider
ads1201_1: adc {
compatible = "sd-modulator";
#io-channel-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Sophgo CV1800B SoC 3 channels Successive Approximation Analog to Digital Converters
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/sophgo,cv1800b-saradc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thomas Bonnefille <thomas.bonnefille@bootlin.com>"
Datasheet at https://github.com/sophgo/sophgo-doc/releases
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "sophgo,cv1800b-saradc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^channel@[0-2]$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Properties and child nodes (properties) #
reg — required here
Array item rules (items)
Item 1
Minimum value (
minimum):0Maximum value (
maximum):2
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "clocks", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/sophgo,cv1800.h>
#include <dt-bindings/interrupt-controller/irq.h>
adc@30f0000 {
compatible = "sophgo,cv1800b-saradc";
reg = <0x030f0000 0x1000>;
clocks = <&clk CLK_SARADC>;
interrupts = <100 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
};
channel@1 {
reg = <1>;
};
channel@2 {
reg = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Spreadtrum SC27XX series PMICs ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/sprd,sc2720-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Baolin Wang <baolin.wang7@gmail.com>"
Supports the ADC found on these PMICs.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "sprd,sc2720-adc", "sprd,sc2721-adc", "sprd,sc2723-adc", "sprd,sc2730-adc", "sprd,sc2731-adc", "sprd,ump9620-adc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
#io-channel-cells — required here #
Exact value (const): 1
hwlocks — required here #
Maximum number of items (maxItems): 1
nvmem-cells — required here #
true — No constraints added by this property rule.
nvmem-cell-names — required here #
true — No constraints added by this property rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
nvmem-cells— not listed as required hereMaximum number of items (
maxItems):2
nvmem-cell-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"big_scale_calib"Item 2
Exact value (
const):"small_scale_calib"When the condition does not match (
else) #Properties and child nodes (
properties)
nvmem-cells— not listed as required hereMaximum number of items (
maxItems):6
nvmem-cell-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"big_scale_calib1"Item 2
Exact value (
const):"big_scale_calib2"Item 3
Exact value (
const):"small_scale_calib1"Item 4
Exact value (
const):"small_scale_calib2"Item 5
Exact value (
const):"vbat_det_cal1"Item 6
Exact value (
const):"vbat_det_cal2"
Required in this object (required): "compatible", "reg", "interrupts", "#io-channel-cells", "hwlocks", "nvmem-cells", "nvmem-cell-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/irq.h>
pmic {
#address-cells = <1>;
#size-cells = <0>;
adc@504 {
compatible = "sprd,ump9620-adc";
reg = <0x504>;
interrupt-parent = <&ump9620_pmic>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
#io-channel-cells = <1>;
hwlocks = <&hwlock 4>;
nvmem-cells = <&adc_bcal1>, <&adc_bcal2>,
<&adc_scal1>, <&adc_scal2>,
<&vbat_det_cal1>, <&vbat_det_cal2>;
nvmem-cell-names = "big_scale_calib1", "big_scale_calib2",
"small_scale_calib1", "small_scale_calib2",
"vbat_det_cal1", "vbat_det_cal2";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ST SPEAr ADC device driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/st,spear600-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Integrated ADC inside the ST SPEAr SoC, SPEAr600, supporting 10-bit resolution. Datasheet can be found here: https://www.st.com/resource/en/datasheet/spear600.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "st,spear600-adc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
sampling-frequency — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 2500000
Maximum value (maximum): 20000000
Default sampling frequency of the ADC in Hz.
vref-external — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1000
Maximum value (maximum): 2800
External voltage reference in milli-volts. If omitted the internal voltage reference will be used.
average-samples — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
Default value (default): 0
Number of samples to generate an average value. If omitted, single data conversion will be used.
Required in this object (required): "compatible", "reg", "interrupts", "sampling-frequency"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
adc@d8200000 {
compatible = "st,spear600-adc";
reg = <0xd8200000 0x1000>;
interrupt-parent = <&vic1>;
interrupts = <6>;
sampling-frequency = <5000000>;
vref-external = <2500>; /* 2.5V VRef */
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
STMicroelectronics STM32 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/st,stm32-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
STM32 ADC is a successive approximation analog-to-digital converter. It has several multiplexed input channels. Conversions can be performed in single, continuous, scan or discontinuous mode. Result of the ADC is stored in a left-aligned or right-aligned 32-bit data register. Conversions can be launched in software or using hardware triggers.
The analog watchdog feature allows the application to detect if the input voltage goes beyond the user-defined, higher or lower thresholds.
Each STM32 ADC block can have up to 3 ADC instances.
Maintainers (maintainers): "Fabrice Gasnier <fabrice.gasnier@foss.st.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "st,stm32f4-adc-core", "st,stm32h7-adc-core", "st,stm32mp1-adc-core", "st,stm32mp13-adc-core"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
One or more interrupts for ADC block, depending on part used:
- stm32f4 and stm32h7 share a common ADC interrupt line.
- stm32mp1 has two separate interrupt lines, one for each ADC within
ADC block.
- stm32mp13 has an interrupt line per ADC block.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Core can use up to two clocks, depending on part used:
- "adc" clock: for the analog circuitry, common to all ADCs.
It's required on stm32f4.
It's optional on stm32h7 and stm32mp1.
- "bus" clock: for registers access, common to all ADCs.
It's not present on stm32f4.
It's required on stm32h7 and stm32mp1.
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
st,max-clk-rate-hz — not listed as required here #
Allow to specify desired max clock rate used by analog circuitry.
vdda-supply — required here #
Phandle to the vdda input analog voltage.
vref-supply — required here #
Phandle to the vref input analog reference voltage.
booster-supply — not listed as required here #
Phandle to the embedded booster regulator that can be used to supply ADC analog input switches on stm32h7 and stm32mp1.
vdd-supply — not listed as required here #
Phandle to the vdd input voltage. It can be used to supply ADC analog input switches on stm32mp1.
st,syscfg — not listed as required here #
Phandle to system configuration controller. It can be used to control the analog circuitry on stm32mp1.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
interrupt-controller — required here #
true — No constraints added by this property rule.
#interrupt-cells — required here #
Exact value (const): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
access-controllers — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"st,stm32f4-adc-core"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required hereExact value (
const):"adc"
interrupts— not listed as required hereArray item rules (
items)Item 1
interrupt line common for all ADCs
st,max-clk-rate-hz— not listed as required hereMinimum value (
minimum):600000Maximum value (
maximum):36000000Default value (
default):36000000
booster-supply— not listed as required here
false— Not permitted by this property rule.
vdd-supply— not listed as required here
false— Not permitted by this property rule.
st,syscfg— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"st,stm32h7-adc-core"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"bus"Item 2
Exact value (
const):"adc"Minimum number of items (
minItems):1
interrupts— not listed as required hereArray item rules (
items)Item 1
interrupt line common for all ADCs
st,max-clk-rate-hz— not listed as required hereMinimum value (
minimum):120000Maximum value (
maximum):36000000Default value (
default):36000000
vdd-supply— not listed as required here
false— Not permitted by this property rule.
st,syscfg— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"st,stm32mp1-adc-core"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"bus"Item 2
Exact value (
const):"adc"Minimum number of items (
minItems):1
interrupts— not listed as required hereArray item rules (
items)Item 1
interrupt line for ADC1
Item 2
interrupt line for ADC2
st,max-clk-rate-hz— not listed as required hereMinimum value (
minimum):120000Maximum value (
maximum):36000000Default value (
default):36000000
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"st,stm32mp13-adc-core"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"bus"Item 2
Exact value (
const):"adc"Minimum number of items (
minItems):1
interrupts— not listed as required hereArray item rules (
items)Item 1
ADC interrupt line
st,max-clk-rate-hz— not listed as required hereMinimum value (
minimum):150000Maximum value (
maximum):75000000Default value (
default):75000000
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "vdda-supply", "vref-supply", "interrupt-controller", "#interrupt-cells", "#address-cells", "#size-cells"
Properties matching a name pattern (patternProperties) #
^adc@[0-9]+$ — name matches this regular expression #
Value type (type): "object"
An ADC block node should contain at least one subnode, representing an ADC instance available on the machine.
Properties and child nodes (properties) #
compatible — required here
Allowed values (enum): "st,stm32f4-adc", "st,stm32h7-adc", "st,stm32mp1-adc", "st,stm32mp13-adc"
reg — required here
Offset of ADC instance in ADC block. Valid values are:
- 0x0: ADC1
- 0x100: ADC2
- 0x200: ADC3 (stm32f4 only)
Maximum number of items (maxItems): 1
#io-channel-cells — required here
Exact value (const): 1
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
interrupts — required here
IRQ Line for the ADC instance. Valid values are:
- 0 for adc@0 (single adc for stm32mp13)
- 1 for adc@100
- 2 for adc@200 (stm32f4 only)
Maximum number of items (maxItems): 1
clocks — not listed as required here
Input clock private to this ADC instance. It's required only on stm32f4, that has per instance clock input for registers access.
Maximum number of items (maxItems): 1
dmas — not listed as required here
RX DMA Channel
Maximum number of items (maxItems): 1
dma-names — not listed as required here
Exact value (const): "rx"
assigned-resolution-bits — not listed as required here
Resolution (bits) to use for conversions:
- can be 6, 8, 10 or 12 on stm32f4 and stm32mp13
- can be 8, 10, 12, 14 or 16 on stm32h7 and stm32mp1
st,adc-channels — not listed as required here
List of single-ended channels muxed for this ADC. It can have up to:
- 16 channels, numbered from 0 to 15 (for in0..in15) on stm32f4
- 19 channels, numbered from 0 to 18 (for in0..in18) on stm32mp13.
- 20 channels, numbered from 0 to 19 (for in0..in19) on stm32h7 and
stm32mp1.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Deprecated (deprecated): true
st,adc-diff-channels — not listed as required here
List of differential channels muxed for this ADC. Some channels can be configured as differential instead of single-ended on stm32h7 and on stm32mp1. Positive and negative inputs pairs are listed: <vinp vinn>, <vinp vinn>,... vinp and vinn are numbered from 0 to 19.
Note: At least one of "st,adc-channels" or "st,adc-diff-channels" is required if no adc generic channel is defined. These legacy channel properties are exclusive with adc generic channel bindings. Both properties can be used together. Some channels can be used as single-ended and some other ones as differential (mixed). But channels can't be configured both as single-ended and differential.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
Array item rules (items)
Array item rules (
items)Item 1
"vinp" indicates positive input number
Minimum value (
minimum):0Maximum value (
maximum):19Item 2
"vinn" indicates negative input number
Minimum value (
minimum):0Maximum value (
maximum):19
Deprecated (deprecated): true
st,min-sample-time-nsecs — not listed as required here
Minimum sampling time in nanoseconds. Depending on hardware (board) e.g. high/low analog input source impedance, fine tune of ADC sampling time may be recommended. This can be either one value or an array that matches "st,adc-channels" and/or "st,adc-diff-channels" list, to set sample time resp. for all channels, or independently for each channel.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Deprecated (deprecated): true
nvmem-cells — not listed as required here
Array item rules (items)
Item 1
Phandle to the calibration vrefint data provided by otp
nvmem-cell-names — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):"vrefint"
Properties matching a name pattern (patternProperties) #
^channel@([0-9]|1[0-9])$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): adc.yaml
Represents the external channels which are connected to the ADC.
Properties and child nodes (properties)
reg — required here
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):19
label — not listed as required here
Unique name to identify which channel this is. Reserved label names "vddcore", "vddcpu", "vddq_ddr", "vrefint" and "vbat" are used to identify internal channels with matching names.
diff-channels — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):19
st,min-sample-time-ns — not listed as required here
Minimum sampling time in nanoseconds. Depending on hardware (board) e.g. high/low analog input source impedance, fine tune of ADC sampling time may be recommended.
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1
Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"st,stm32f4-adc"When the condition matches (
then)Properties and child nodes (
properties)
reg— not listed as required hereAllowed values (
enum):0,256,512
interrupts— not listed as required hereMinimum value (
minimum):0Maximum value (
maximum):2
assigned-resolution-bits— not listed as required hereAllowed values (
enum):6,8,10,12Default value (
default):12
st,adc-channels— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):16Array item rules (
items)Minimum value (
minimum):0Maximum value (
maximum):15
st,adc-diff-channels— not listed as required here
false— Not permitted by this property rule.
st,min-sample-time-nsecs— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):16Array item rules (
items)Minimum value (
minimum):80
Rule 2
Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then)Properties and child nodes (
properties)
reg— not listed as required here
interrupts— not listed as required hereMinimum value (
minimum):0Maximum value (
maximum):1
assigned-resolution-bits— not listed as required hereAllowed values (
enum):8,10,12,14,16Default value (
default):16
st,adc-channels— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):20Array item rules (
items)Minimum value (
minimum):0Maximum value (
maximum):19
st,min-sample-time-nsecs— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):20Array item rules (
items)Minimum value (
minimum):40
Rule 3
Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"st,stm32mp13-adc"When the condition matches (
then)Properties and child nodes (
properties)
reg— not listed as required hereExact value (
const):0
interrupts— not listed as required hereExact value (
const):0
assigned-resolution-bits— not listed as required hereAllowed values (
enum):6,8,10,12Default value (
default):12
st,adc-channels— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):19Array item rules (
items)Minimum value (
minimum):0Maximum value (
maximum):18
st,min-sample-time-nsecs— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):19Array item rules (
items)Minimum value (
minimum):40
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "#io-channel-cells"
Examples (examples) #
// Example 1: with stm32f429, ADC1, single-ended channel 8
adc123: adc@40012000 {
compatible = "st,stm32f4-adc-core";
reg = <0x40012000 0x400>;
interrupts = <18>;
clocks = <&rcc 0 168>;
clock-names = "adc";
st,max-clk-rate-hz = <36000000>;
vdda-supply = <&vdda>;
vref-supply = <&vref>;
interrupt-controller;
#interrupt-cells = <1>;
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "st,stm32f4-adc";
#io-channel-cells = <1>;
reg = <0x0>;
clocks = <&rcc 0 168>;
interrupt-parent = <&adc123>;
interrupts = <0>;
st,adc-channels = <8>;
dmas = <&dma2 0 0 0x400 0x0>;
dma-names = "rx";
assigned-resolution-bits = <8>;
};
// ...
// other adc child nodes follow...
};
// Example 2: with stm32mp157c to setup ADC1 with:
// - channels 0 & 1 as single-ended
// - channels 2 & 3 as differential (with resp. 6 & 7 negative inputs)
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
adc12: adc@48003000 {
compatible = "st,stm32mp1-adc-core";
reg = <0x48003000 0x400>;
interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&rcc ADC12>, <&rcc ADC12_K>;
clock-names = "bus", "adc";
booster-supply = <&booster>;
vdd-supply = <&vdd>;
vdda-supply = <&vdda>;
vref-supply = <&vref>;
st,syscfg = <&syscfg>;
interrupt-controller;
#interrupt-cells = <1>;
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "st,stm32mp1-adc";
#io-channel-cells = <1>;
reg = <0x0>;
interrupt-parent = <&adc12>;
interrupts = <0>;
st,adc-channels = <0 1>;
st,adc-diff-channels = <2 6>, <3 7>;
st,min-sample-time-nsecs = <5000>;
dmas = <&dmamux1 9 0x400 0x05>;
dma-names = "rx";
};
// ...
// other adc child node follow...
};
// Example 3: with stm32mp157c to setup ADC2 with:
// - internal channels 13, 14, 15.
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
adc122: adc@48003000 {
compatible = "st,stm32mp1-adc-core";
reg = <0x48003000 0x400>;
interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&rcc ADC12>, <&rcc ADC12_K>;
clock-names = "bus", "adc";
booster-supply = <&booster>;
vdd-supply = <&vdd>;
vdda-supply = <&vdda>;
vref-supply = <&vref>;
st,syscfg = <&syscfg>;
interrupt-controller;
#interrupt-cells = <1>;
#address-cells = <1>;
#size-cells = <0>;
adc@100 {
compatible = "st,stm32mp1-adc";
#io-channel-cells = <1>;
reg = <0x100>;
interrupts = <1>;
#address-cells = <1>;
#size-cells = <0>;
channel@13 {
reg = <13>;
label = "vrefint";
st,min-sample-time-ns = <9000>;
};
channel@14 {
reg = <14>;
label = "vddcore";
st,min-sample-time-ns = <9000>;
};
channel@15 {
reg = <15>;
label = "vbat";
st,min-sample-time-ns = <9000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
STMicroelectronics STM32 DFSDM ADC device driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/st,stm32-dfsdm-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Fabrice Gasnier <fabrice.gasnier@foss.st.com>", "Olivier Moysan <olivier.moysan@foss.st.com>"
STM32 DFSDM ADC is a sigma delta analog-to-digital converter dedicated to interface external sigma delta modulators to STM32 micro controllers. It is mainly targeted for: - Sigma delta modulators (motor control, metering...) - PDM microphones (audio digital microphone)
It features up to 8 serial digital interfaces (SPI or Manchester) and up to 4 filters on stm32h7 or 6 filters on stm32mp1.
Each child node matches with a filter instance.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "st,stm32h7-dfsdm", "st,stm32mp1-dfsdm"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
Internal clock used for DFSDM digital processing and control blocks. dfsdm clock can also feed CLKOUT, when CLKOUT is used.
Item 2
audio clock can be used as an alternate to feed CLKOUT.
Minimum number of items (minItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"dfsdm"
Item 2
Exact value (
const):"audio"
Minimum number of items (minItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
spi-max-frequency — not listed as required here #
SPI clock OUT frequency (Hz). Requested only for SPI master mode. This clock must be set according to the "clock" property. Frequency must be a multiple of the rcc clock frequency. If not, SPI CLKOUT frequency will not be accurate.
Maximum value (maximum): 20000000
access-controllers — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^filter@[0-9]+$ — name matches this regular expression #
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
child node
Properties and child nodes (properties) #
compatible — required here
Allowed values (enum): "st,stm32-dfsdm-adc", "st,stm32-dfsdm-dmic"
reg — required here
Specifies the DFSDM filter instance used.
Maximum number of items (maxItems): 1
interrupts — required here
Maximum number of items (maxItems): 1
st,adc-channels — not listed as required here
List of single-ended channels muxed for this ADC. On stm32h7 and stm32mp1: - For st,stm32-dfsdm-adc: up to 8 channels numbered from 0 to 7. - For st,stm32-dfsdm-dmic: 1 channel numbered from 0 to 7.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):7
Deprecated (deprecated): true
st,adc-channel-names — not listed as required here
List of single-ended channel names.
Deprecated (deprecated): true
st,filter-order — required here
SinC filter order from 0 to 5. - 0: FastSinC - [1-5]: order 1 to 5. For audio purpose it is recommended to use order 3 to 5.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 5
#io-channel-cells — required here
Exact value (const): 1
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
st,adc-channel-types — not listed as required here
Single-ended channel input type. - "SPI_R": SPI with data on rising edge (default) - "SPI_F": SPI with data on falling edge - "MANCH_R": manchester codec, rising edge = logic 0, falling edge = logic 1 - "MANCH_F": manchester codec, rising edge = logic 1, falling edge = logic 0
Array item rules (items)
Allowed values (
enum):"SPI_R","SPI_F","MANCH_R","MANCH_F"
Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array
Deprecated (deprecated): true
st,adc-channel-clk-src — not listed as required here
Conversion clock source. - "CLKIN": external SPI clock (CLKIN x) - "CLKOUT": internal SPI clock (CLKOUT) (default) - "CLKOUT_F": internal SPI clock divided by 2 (falling edge). - "CLKOUT_R": internal SPI clock divided by 2 (rising edge).
Array item rules (items)
Allowed values (
enum):"CLKIN","CLKOUT","CLKOUT_F","CLKOUT_R"
Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array
Deprecated (deprecated): true
st,adc-alt-channel — not listed as required here
Must be defined if two sigma delta modulators are connected on same SPI input. If not set, channel n is connected to SPI input n. If set, channel n is connected to SPI input n + 1.
Value type (type): "boolean"
Deprecated (deprecated): true
st,filter0-sync — not listed as required here
Set to 1 to synchronize with DFSDM filter instance 0. Used for multi microphones synchronization.
Value type (type): "boolean"
dmas — not listed as required here
Maximum number of items (maxItems): 1
dma-names — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):"rx"
Required in this object (required): "compatible", "reg", "interrupts", "st,filter-order", "#io-channel-cells"
Properties matching a name pattern (patternProperties) #
^channel@[0-7]$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): adc.yaml
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Represents the external channels which are connected to the DFSDM.
Properties and child nodes (properties)
reg — required here
Maximum value (maximum): 7
label — not listed as required here
Unique name to identify which channel this is.
st,adc-channel-type — not listed as required here
Single-ended channel input type. - "SPI_R": SPI with data on rising edge (default) - "SPI_F": SPI with data on falling edge - "MANCH_R": manchester codec, rising edge = logic 0, falling edge = logic 1 - "MANCH_F": manchester codec, rising edge = logic 1, falling edge = logic 0
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "SPI_R", "SPI_F", "MANCH_R", "MANCH_F"
st,adc-channel-clk-src — not listed as required here
Conversion clock source. - "CLKIN": external SPI clock (CLKIN x) - "CLKOUT": internal SPI clock (CLKOUT) (default) - "CLKOUT_F": internal SPI clock divided by 2 (falling edge). - "CLKOUT_R": internal SPI clock divided by 2 (rising edge).
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "CLKIN", "CLKOUT", "CLKOUT_F", "CLKOUT_R"
st,adc-alt-channel — not listed as required here
Must be defined if two sigma delta modulators are connected on same SPI input. If not set, channel n is connected to SPI input n. If set, channel n is connected to SPI input n + 1.
Value type (type): "boolean"
io-backends — not listed as required here
Used to pipe external sigma delta modulator or internal ADC backend to DFSDM channel.
Maximum number of items (maxItems): 1
Required in this object (required): "reg"
All of these rules must match (allOf) #
Rule 1
Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"st,stm32-dfsdm-adc"When the condition matches (
then)Properties and child nodes (
properties)
st,adc-channels— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):8
st,adc-channel-names— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):8
st,adc-channel-types— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):8
st,adc-channel-clk-src— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):8
io-channels— not listed as required hereFrom common IIO binding. Used to pipe external sigma delta modulator or internal ADC output to DFSDM channel.
Deprecated (
deprecated):trueCondition (
if)When the condition matches (
then)Properties matching a name pattern (
patternProperties)
^channel@[0-7]$— name matches this regular expression
Rule 2
Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"st,stm32-dfsdm-dmic"When the condition matches (
then)Properties and child nodes (
properties)
st,adc-channels— not listed as required hereMaximum number of items (
maxItems):1
st,adc-channel-names— not listed as required hereMaximum number of items (
maxItems):1
st,adc-channel-types— not listed as required hereMaximum number of items (
maxItems):1
st,adc-channel-clk-src— not listed as required hereMaximum number of items (
maxItems):1Required in this object (
required):"dmas","dma-names"Properties matching a name pattern (
patternProperties)
^dfsdm-dai+$— name matches this regular expressionValue type (
type):"object"Properties not matched by properties or patternProperties in this schema (
additionalProperties)
falseNot allowed by this rule.
child node
Properties and child nodes (
properties)
compatible— required hereAllowed values (
enum):"st,stm32h7-dfsdm-dai"
#sound-dai-cells— required hereExact value (
const):0
io-channels— required hereFrom common IIO binding. Used to pipe external sigma delta modulator or internal ADC output to DFSDM channel.
port— not listed as required hereShared schema rule (
$ref):/schemas/sound/audio-graph-port.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Required in this object (
required):"compatible","#sound-dai-cells","io-channels"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"st,stm32h7-dfsdm"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^filter@[0-9]+$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Minimum value (
minimum):0Maximum value (
maximum):3
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"st,stm32mp1-dfsdm"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^filter@[0-9]+$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Minimum value (
minimum):0Maximum value (
maximum):5
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
dfsdm: dfsdm@4400d000 {
compatible = "st,stm32mp1-dfsdm";
reg = <0x4400d000 0x800>;
clocks = <&rcc DFSDM_K>, <&rcc ADFSDM_K>;
clock-names = "dfsdm", "audio";
#address-cells = <1>;
#size-cells = <0>;
// Example 1: Audio use case with generic binding
dfsdm0: filter@0 {
compatible = "st,stm32-dfsdm-dmic";
reg = <0>;
interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
dmas = <&dmamux1 101 0x400 0x01>;
dma-names = "rx";
#io-channel-cells = <1>;
#address-cells = <1>;
#size-cells = <0>;
st,filter-order = <5>;
channel@1 {
reg = <1>;
label = "dmic0";
st,adc-channel-type = "SPI_R";
st,adc-channel-clk-src = "CLKOUT";
st,adc-alt-channel;
};
asoc_pdm0: dfsdm-dai {
compatible = "st,stm32h7-dfsdm-dai";
#sound-dai-cells = <0>;
io-channels = <&dfsdm0 0>;
};
};
// Example 2: Analog use case with generic binding
dfsdm1: filter@1 {
compatible = "st,stm32-dfsdm-adc";
reg = <1>;
interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
dmas = <&dmamux1 102 0x400 0x01>;
dma-names = "rx";
st,filter-order = <1>;
#io-channel-cells = <1>;
#address-cells = <1>;
#size-cells = <0>;
channel@2 {
reg = <2>;
label = "in2";
st,adc-channel-type = "SPI_F";
st,adc-channel-clk-src = "CLKOUT";
st,adc-alt-channel;
io-backends = <&sd_adc2>;
};
channel@3 {
reg = <3>;
label = "in3";
st,adc-channel-type = "SPI_R";
st,adc-channel-clk-src = "CLKOUT";
io-backends = <&sd_adc3>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
ADC on an STMPE multifunction device.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/st,stmpe-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stefan Agner <stefan@agner.ch>"
This ADC forms part of an ST microelectronics STMPE multifunction device . The ADC is shared with the STMPE touchscreen. As a result some ADC related settings are specified in the parent node. The node should be a child node of the stmpe node to which it belongs.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,stmpe-adc"
st,norequest-mask — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Bitmask specifying which ADC channels should _not_ be requestable due to different usage (e.g. touch).
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
adc {
compatible = "st,stmpe-adc";
st,norequest-mask = <0x0f>; /* dont use ADC CH3-0 */
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
TI Single-channel I2C ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,adc081c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>", "Lars-Peter Clausen <lars@metafoo.de>"
Single-channel ADC supporting 8, 10, or 12-bit samples and high/low alerts.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,adc081c", "ti,adc101c", "ti,adc121c"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vref-supply — required here #
Regulator for the combined power supply and voltage reference
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "vref-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@52 {
compatible = "ti,adc081c";
reg = <0x52>;
vref-supply = <®_2p5v>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments ADC0832 and similar ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,adc0832.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Akinobu Mita <akinobu.mita@gmail.com>"
8 bit ADCs with 1, 2, 4 or 8 inputs for single ended or differential conversion.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,adc0831", "ti,adc0832", "ti,adc0834", "ti,adc0838"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — required here #
External reference, needed to establish input scaling
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "vref-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "ti,adc0832";
reg = <0>;
vref-supply = <&vdd_supply>;
spi-max-frequency = <200000>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments ADC084S021 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,adc084s021.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Mårten Lindahl <martenli@axis.com>"
8 bit ADC with 4 channels
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,adc084s021"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — required here #
External reference, needed to establish input scaling
spi-cpol — required here #
true — No constraints added by this property rule.
spi-cpha — required here #
true — No constraints added by this property rule.
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "vref-supply", "spi-cpol", "spi-cpha"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "ti,adc084s021";
reg = <0>;
vref-supply = <&adc_vref>;
spi-cpol;
spi-cpha;
spi-max-frequency = <16000000>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments ADC108S102 and ADC128S102
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,adc108s102.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Family of 8 channel, 10/12 bit, SPI, single ended ADCs.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,adc108s102"
reg — required here #
true — No constraints added by this property rule.
vref-supply — required here #
true — No constraints added by this property rule.
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "vref-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "ti,adc108s102";
reg = <0>;
vref-supply = <&vdd_supply>;
spi-max-frequency = <1000000>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments ADC12138 and similar self-calibrating ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,adc12138.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Akinobu Mita <akinobu.mita@gmail.com>"
13 bit ADCs with 1, 2 or 8 inputs and self calibrating circuitry to correct for linearity, zero and full scale errors.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,adc12130", "ti,adc12132", "ti,adc12138"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
End of Conversion (EOC) interrupt
clocks — required here #
Maximum number of items (maxItems): 1
Conversion clock input.
vref-p-supply — required here #
The regulator supply for positive analog voltage reference
vref-n-supply — not listed as required here #
The regulator supply for negative analog voltage reference (Note that this must not go below GND or exceed vref-p) If not specified, this is assumed to be analog ground.
ti,acquisition-time — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 6, 10, 18, 34
The number of conversion clock periods for the S/H's acquisition time. For high source impedances, this value can be increased to 18 or 34. For less ADC accuracy and/or slower CCLK frequencies this value may be decreased to 6. See section 6.0 INPUT SOURCE RESISTANCE in the datasheet for details.
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "vref-p-supply"
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>;
adc@0 {
compatible = "ti,adc12138";
reg = <0>;
interrupts = <28 IRQ_TYPE_EDGE_RISING>;
interrupt-parent = <&gpio1>;
clocks = <&cclk>;
vref-p-supply = <&ldo4_reg>;
spi-max-frequency = <5000000>;
ti,acquisition-time = <6>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments ADC128S052 and similar ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,adc128s052.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Angelo Compagnucci <angelo.compagnucci@gmail.com>"
Family of 12 bit SPI ADCs with 2 to 8 channels with a range of different target sample rates.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,adc122s021", "ti,adc122s051", "ti,adc122s101", "ti,adc124s021", "ti,adc124s051", "ti,adc124s101", "ti,adc128s052"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — required here #
true — No constraints added by this property rule.
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "vref-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "ti,adc128s052";
reg = <0>;
vref-supply = <&vdd_supply>;
spi-max-frequency = <1000000>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments ADC141S626 and ADC161S626 ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,adc161s626.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matt Ranostay <matt.ranostay@konsulko.com>"
Single channel 14/16bit differential ADCs
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,adc141s626", "ti,adc161s626"
reg — required here #
Maximum number of items (maxItems): 1
vdda-supply — not listed as required here #
true — No constraints added by this property rule.
#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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "ti,adc161s626";
vdda-supply = <&vdda_fixed>;
reg = <0>;
spi-max-frequency = <4300000>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
TI ADS1015/ADS1115 4 channel I2C analog to digital converter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads1015.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Daniel Baluta <daniel.baluta@nxp.com>"
Datasheet at: https://www.ti.com/lit/gpn/ads1015 Supports both single ended and differential channels.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,ads1015", "ti,ads1115", "ti,tla2021", "ti,tla2024"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^channel@[0-7]+$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Child nodes needed for each channel that the platform uses.
Properties and child nodes (properties) #
reg — required here
0: Voltage over AIN0 and AIN1. 1: Voltage over AIN0 and AIN3. 2: Voltage over AIN1 and AIN3. 3: Voltage over AIN2 and AIN3. 4: Voltage over AIN0 and GND. 5: Voltage over AIN1 and GND. 6: Voltage over AIN2 and GND. 7: Voltage over AIN3 and GND.
Array item rules (items)
Item 1
Minimum value (
minimum):0Maximum value (
maximum):7
ti,gain — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 5
pga is the programmable gain amplifier (values are full scale) 0: +/- 6.144 V 1: +/- 4.096 V 2: +/- 2.048 V (default) 3: +/- 1.024 V 4: +/- 0.512 V 5: +/- 0.256 V
ti,datarate — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 7
Data acquisition rate in samples per second for ADS1015, TLA2024 0: 128 1: 250 2: 490 3: 920 4: 1600 (default) 5: 2400 6: 3300 7: 3300
Data acquisition rate in samples per second for ADS1115 0: 8 1: 16 2: 32 3: 64 4: 128 (default) 5: 250 6: 475 7: 860
Required in this object (required): "reg"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@49 {
compatible = "ti,ads1015";
reg = <0x49>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
};
channel@4 {
reg = <4>;
ti,gain = <3>;
ti,datarate = <5>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
TI ADS1018/ADS1118 SPI analog to digital converter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads1018.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kurt Borja <kuurtb@gmail.com>"
The ADS1018/ADS1118 is a precision, low-power, 12-bit/16-bit, analog to digital converter (ADC). It integrates a programmable gain amplifier (PGA), internal voltage reference, oscillator and high-accuracy temperature sensor.
Datasheets:
- ADS1018: https://www.ti.com/lit/ds/symlink/ads1018.pdf
- ADS1118: https://www.ti.com/lit/ds/symlink/ads1118.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,ads1018", "ti,ads1118"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 4000000
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
DOUT/DRDY (Data Out/Data Ready) line.
Maximum number of items (maxItems): 1
drdy-gpios — not listed as required here #
Extra GPIO line connected to DOUT/DRDY (Data Out/Data Ready). This allows distinguishing between interrupts triggered by the data-ready signal and interrupts triggered by an SPI transfer.
Maximum number of items (maxItems): 1
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "vdd-supply"
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>
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "ti,ads1118";
reg = <0>;
spi-max-frequency = <4000000>;
spi-cpha;
vdd-supply = <&vdd_3v3_reg>;
interrupts-extended = <&gpio 14 IRQ_TYPE_EDGE_FALLING>;
drdy-gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
TI ADS1100/ADS1000 single channel I2C analog to digital converter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads1100.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Mike Looijmans <mike.looijmans@topic.nl>"
Datasheet at: https://www.ti.com/lit/gpn/ads1100
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,ads1100", "ti,ads1000"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
#io-channel-cells — not listed as required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@49 {
compatible = "ti,ads1100";
reg = <0x49>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments ADS1119 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads1119.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "João Paulo Gonçalves <jpaulo.silvagoncalves@gmail.com>"
The TI ADS1119 is a precision 16-bit ADC over I2C that offers single-ended and differential measurements using a multiplexed input. It features a programmable gain, a programmable sample rate, an internal oscillator and voltage reference, and a 50/60Hz rejection filter.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,ads1119"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
avdd-supply — required here #
true — No constraints added by this property rule.
dvdd-supply — required here #
true — No constraints added by this property rule.
vref-supply — not listed as required here #
ADC external reference voltage (VREF).
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "avdd-supply", "dvdd-supply"
Properties matching a name pattern (patternProperties) #
^channel@([0-6])$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 6
diff-channels — not listed as required here
Differential input channels AIN0-AIN1, AIN2-AIN3 and AIN1-AIN2.
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Exact value (
const):1
Rule 2
Array item rules (
items)Item 1
Exact value (
const):2Item 2
Exact value (
const):3
Rule 3
Array item rules (
items)Item 1
Exact value (
const):1Item 2
Exact value (
const):2
single-channel — not listed as required here
Single-ended input channels AIN0, AIN1, AIN2 and AIN3.
Minimum value (minimum): 0
Maximum value (maximum): 3
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@40 {
compatible = "ti,ads1119";
reg = <0x40>;
interrupt-parent = <&gpio1>;
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
avdd-supply = <®_avdd_ads1119>;
dvdd-supply = <®_dvdd_ads1119>;
vref-supply = <®_vref_ads1119>;
#address-cells = <1>;
#size-cells = <0>;
#io-channel-cells = <1>;
channel@0 {
reg = <0>;
single-channel = <0>;
};
channel@1 {
reg = <1>;
diff-channels = <0 1>;
};
channel@2 {
reg = <2>;
single-channel = <3>;
};
channel@3 {
reg = <3>;
single-channel = <1>;
};
channel@4 {
reg = <4>;
single-channel = <2>;
};
channel@5 {
reg = <5>;
diff-channels = <1 2>;
};
channel@6 {
reg = <6>;
diff-channels = <2 3>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments' ads124s08 and ads124s06 ADC chip
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads124s08.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Davis <afd@ti.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,ads124s06", "ti,ads124s08"
reg — required here #
Maximum number of items (maxItems): 1
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
#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/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "ti,ads124s08";
reg = <0>;
spi-max-frequency = <1000000>;
spi-cpha;
reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments' ads1298 medical ADC chips
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads1298.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Datasheet at: https://www.ti.com/product/ADS1298 Bindings for this chip aren't complete.
Maintainers (maintainers): "Mike Looijmans <mike.looijmans@topic.nl>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,ads1298"
reg — required here #
Maximum number of items (maxItems): 1
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
avdd-supply — required here #
Analog power supply, voltage between AVDD and AVSS. When providing a symmetric +/- 2.5V, the regulator should report 5V.
vref-supply — not listed as required here #
Optional reference voltage. If omitted, internal reference is used, which is 2.4V when analog supply is below 4.4V, 4V otherwise.
clocks — not listed as required here #
Optional 2.048 MHz external source clock on CLK pin
Maximum number of items (maxItems): 1
interrupts — required here #
Interrupt on DRDY pin, triggers on falling edge
Maximum number of items (maxItems): 1
label — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "avdd-supply", "interrupts"
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>;
adc@1 {
reg = <1>;
compatible = "ti,ads1298";
label = "ads1298-1-ecg";
avdd-supply = <®_iso_5v_a>;
clocks = <&clk_ads1298>;
interrupt-parent = <&gpio0>;
interrupts = <78 IRQ_TYPE_EDGE_FALLING>;
spi-max-frequency = <20000000>;
spi-cpha;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments ADS131E0x 4-, 6- and 8-Channel ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads131e08.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
The ADS131E0x are a family of multichannel, simultaneous sampling, 24-bit, delta-sigma, analog-to-digital converters (ADCs) with a built-in programmable gain amplifier (PGA), internal reference and an onboard oscillator. The communication with ADC chip is via the SPI bus (mode 1).
https://www.ti.com/lit/ds/symlink/ads131e08.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,ads131e04", "ti,ads131e06", "ti,ads131e08"
reg — required here #
Maximum number of items (maxItems): 1
spi-cpha — required here #
true — No constraints added by this property rule.
clocks — required here #
Device tree identifier to the clock source (2.048 MHz). Note: clock source is selected using CLKSEL pin.
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"adc-clk"
interrupts — required here #
IRQ line for the ADC data ready.
Maximum number of items (maxItems): 1
vref-supply — not listed as required here #
Optional external voltage reference. If not supplied, internal voltage reference is used.
ti,vref-internal — not listed as required here #
Select the internal voltage reference value. 0: 2.4V 1: 4.0V If this field is left empty, 2.4V is selected. Note: internal voltage reference is used only if vref-supply is not supplied.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg", "spi-cpha", "clocks", "clock-names", "interrupts"
Properties matching a name pattern (patternProperties) #
^channel@([0-7])$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Represents the external channels which are connected to the ADC.
Properties and child nodes (properties) #
reg — required here
The channel number. Up to 4 channels, numbered from 0 to 3 for ti,ads131e04. Up to 6 channels, numbered from 0 to 5 for ti,ads131e06. Up to 8 channels, numbered from 0 to 7 for ti,ads131e08.
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):7
ti,gain — not listed as required here
The PGA gain value for the channel. If this field is left empty, PGA gain 1 is used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 4, 8, 12
Default value (default): 1
ti,mux — not listed as required here
Channel input selection(muliplexer). 0: Normal input. 1: Input shorted to (VREFP + VREFN) / 2 (for offset or noise measurements). 3: MVDD (for supply measurement) 4: Temperature sensor If this field is left empty, normal input is selected.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 3, 4
Default value (default): 0
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
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>;
adc@0 {
compatible = "ti,ads131e08";
reg = <0>;
spi-max-frequency = <1000000>;
spi-cpha;
clocks = <&clk2048k>;
clock-names = "adc-clk";
interrupt-parent = <&gpio5>;
interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
vref-supply = <&adc_vref>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
};
channel@1 {
reg = <1>;
};
channel@2 {
reg = <2>;
ti,gain = <2>;
};
channel@3 {
reg = <3>;
};
channel@4 {
reg = <4>;
};
channel@5 {
reg = <5>;
};
channel@6 {
reg = <6>;
};
channel@7 {
reg = <7>;
ti,mux = <4>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments ADS131M0x 2-, 3-, 4-, 6- and 8-Channel ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads131m02.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Oleksij Rempel <o.rempel@pengutronix.de>"
The ADS131M0x are a family of multichannel, simultaneous sampling, 24-bit, delta-sigma, analog-to-digital converters (ADCs) with a built-in programmable gain amplifier (PGA) and internal reference. Communication with the ADC chip is via SPI.
Datasheets: - ADS131M02: https://www.ti.com/lit/ds/symlink/ads131m02.pdf - ADS131M03: https://www.ti.com/lit/ds/symlink/ads131m03.pdf - ADS131M04: https://www.ti.com/lit/ds/symlink/ads131m04.pdf - ADS131M06: https://www.ti.com/lit/ds/symlink/ads131m06.pdf - ADS131M08: https://www.ti.com/lit/ds/symlink/ads131m08.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,ads131m02", "ti,ads131m03", "ti,ads131m04", "ti,ads131m06", "ti,ads131m08"
reg — required here #
SPI chip select number.
clocks — required here #
Phandle to the external clock source required by the ADC's CLKIN pin. The datasheet recommends specific frequencies based on the desired power mode (e.g., 8.192 MHz for High-Resolution mode).
Maximum number of items (maxItems): 1
avdd-supply — required here #
Analog power supply (AVDD).
dvdd-supply — required here #
Digital power supply (DVDD).
interrupts — not listed as required here #
DRDY (Data Ready) output signal.
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Optional RESET signal.
Maximum number of items (maxItems): 1
clock-names — required here #
Indicates if a crystal oscillator (XTAL) or CMOS signal is connected (CLKIN). Note that XTAL mode is only supported on ADS131M06 and ADS131M08.
Allowed values (enum): "xtal", "clkin"
refin-supply — not listed as required here #
Optional external reference supply (REFIN).
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "avdd-supply", "dvdd-supply"
Properties matching a name pattern (patternProperties) #
^channel@[0-7]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): /schemas/iio/adc/adc.yaml#
Properties for a single ADC channel.
Properties and child nodes (properties) #
reg — required here
The channel index (0-7).
Minimum value (minimum): 0
Maximum value (maximum): 7
label — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereAllowed values (
enum):"ti,ads131m02","ti,ads131m03","ti,ads131m04"When the condition matches (
then) #Properties and child nodes (
properties)
clock-names— not listed as required hereExact value (
const):"clkin"
refin-supply— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,ads131m02"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-1]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):1
^channel@[2-7]$— name matches this regular expression
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,ads131m03"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-2]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):2
^channel@[3-7]$— name matches this regular expression
false— Not permitted by this property rule.
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,ads131m04"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-3]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):3
^channel@[4-7]$— name matches this regular expression
false— Not permitted by this property rule.
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,ads131m06"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-5]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):5
^channel@[6-7]$— name matches this regular expression
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/stm32mp1-clks.h>
spi1 {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "ti,ads131m02";
reg = <0>;
spi-max-frequency = <8000000>;
clocks = <&rcc CK_MCO2>;
clock-names = "clkin";
avdd-supply = <&vdd_ana>;
dvdd-supply = <&vdd_dig>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
label = "input_voltage";
};
channel@1 {
reg = <1>;
label = "input_current";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 91: Max channels on ADS131M08
Line 104: 20-pin devices: M02, M03, M04
Line 105: These do not support XTAL or REFIN.
Line 119: ADS131M02: 2 channels max (0-1)
Line 133: ADS131M03: 3 channels max (0-2)
Line 147: ADS131M04: 4 channels max (0-3)
Line 161: ADS131M06: 6 channels max (0-5)
Texas Instruments ADS7128/ADS7138 analog-to-digital converter (ADC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads7138.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tobias Sperling <tobias.sperling@softing.com>"
The ADS7128 and ADS7138 chips are 12-bit, 8 channel analog-to-digital converters (ADC) with build-in digital window comparator (DWC), using the I2C interface. ADS7128 differs in the addition of further hardware features, like a root-mean-square (RMS) and a zero-crossing-detect (ZCD) module.
Datasheets:
https://www.ti.com/product/ADS7128
https://www.ti.com/product/ADS7138
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,ads7128", "ti,ads7138"
reg — required here #
Maximum number of items (maxItems): 1
avdd-supply — required here #
The regulator used as analog supply voltage as well as reference voltage.
interrupts — not listed as required here #
Interrupt on ALERT pin, triggers on low level.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "avdd-supply"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@10 {
compatible = "ti,ads7138";
reg = <0x10>;
avdd-supply = <®_stb_3v3>;
interrupt-parent = <&gpio2>;
interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
TI ADS7924 4 channels 12 bits I2C analog to digital converter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads7924.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Hugo Villeneuve <hvilleneuve@dimonoff.com>"
Texas Instruments ADS7924 4 channels 12 bits I2C analog to digital converter
Specifications:
https://www.ti.com/lit/gpn/ads7924
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,ads7924"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — required here #
The regulator supply for the ADC reference voltage (AVDD)
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
#io-channel-cells — not listed as required here #
Exact value (const): 1
Properties matching a name pattern (patternProperties) #
^channel@[0-3]+$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Represents the external channels which are connected to the ADC.
Properties and child nodes (properties) #
reg — required here
The channel number. It can have up to 4 channels numbered from 0 to 3.
Array item rules (items)
Item 1
Minimum value (
minimum):0Maximum value (
maximum):3
label — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "vref-supply", "#address-cells", "#size-cells"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@48 {
compatible = "ti,ads7924";
reg = <0x48>;
vref-supply = <&ads7924_reg>;
reset-gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpio>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
label = "CH0";
};
channel@1 {
reg = <1>;
label = "CH1";
};
channel@2 {
reg = <2>;
label = "CH2";
};
channel@3 {
reg = <3>;
label = "CH3";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments ADS7950 and similar ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads7950.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "David Lechner <david@lechnology.com>"
Family of 4-16 channel, 8-12 bit ADCs with SPI interface.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,ads7950", "ti,ads7951", "ti,ads7952", "ti,ads7953", "ti,ads7954", "ti,ads7955", "ti,ads7956", "ti,ads7957", "ti,ads7958", "ti,ads7959", "ti,ads7960", "ti,ads7961"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 20000000
vref-supply — required here #
Supplies the 2.5V or 5V reference voltage
#io-channel-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "vref-supply", "#io-channel-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "ti,ads7957";
reg = <0>;
vref-supply = <&refin_supply>;
spi-max-frequency = <10000000>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments ADS8344 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads8344.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Gregory Clement <gregory.clement@bootlin.com>"
16bit 8-channel ADC with single ended inputs.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,ads8344"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — required here #
Supply the 2.5V or 5V reference voltage
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "vref-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "ti,ads8344";
reg = <0>;
vref-supply = <&refin_supply>;
spi-max-frequency = <10000000>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments' ADS8684 and ADS8688 ADC chip
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads8688.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sean Nyekjaer <sean@geanix.com>"
SPI 16bit ADCs with 4/8 channels.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,ads8684", "ti,ads8688"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — not listed as required here #
Optional external reference. If not supplied, assume REFSEL input tied low to enable the internal reference.
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "ti,ads8688";
reg = <0>;
vref-supply = <&vdd_supply>;
spi-max-frequency = <1000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
TI AM3359 ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,am3359-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"ti,am3359-adc"
#io-channel-cells — required here #
Exact value (const): 1
ti,adc-channels — required here #
List of analog inputs available for ADC. AIN0 = 0, AIN1 = 1 and so on until AIN7 = 7.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
ti,chan-step-opendelay — not listed as required here #
List of open delays for each channel of ADC in the order of ti,adc-channels. The value corresponds to the number of ADC clock cycles to wait after applying the step configuration registers and before sending the start of ADC conversion. Maximum value is 0x3FFFF.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
ti,chan-step-sampledelay — not listed as required here #
List of sample delays for each channel of ADC in the order of ti,adc-channels. The value corresponds to the number of ADC clock cycles to sample (to hold start of conversion high). Maximum value is 0xFF.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
ti,chan-step-avg — not listed as required here #
Number of averages to be performed for each channel of ADC. If average is 16 (this is also the maximum) then input is sampled 16 times and averaged to get more accurate value. This increases the time taken by ADC to generate a sample. Maximum value is 16.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Required in this object (required): "compatible", "#io-channel-cells", "ti,adc-channels"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
adc {
compatible = "ti,am3359-adc";
#io-channel-cells = <1>;
ti,adc-channels = <4 5 6 7>;
ti,chan-step-opendelay = <0x098 0x3ffff 0x098 0x0>;
ti,chan-step-sampledelay = <0xff 0x0 0xf 0x0>;
ti,chan-step-avg = <16 2 4 8>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments LMP92064 Precision Current and Voltage Sensor.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,lmp92064.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Leonard Göhrs <l.goehrs@pengutronix.de>"
The LMP92064 is a two channel ADC intended for combined voltage and current measurements.
The device contains two ADCs to allow simultaneous sampling of voltage and current and thus of instantaneous power consumption.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,lmp92064"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Regulator that provides power to the main part of the chip
vdig-supply — not listed as required here #
Regulator that provides power to the digital I/O part of the chip
shunt-resistor-micro-ohms — required here #
Value of the shunt resistor (in µΩ) connected between INCP and INCN, across which current is measured. Used to provide correct scaling of the raw ADC measurement.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "shunt-resistor-micro-ohms"
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/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "ti,lmp92064";
reg = <0>;
vdd-supply = <&vdd>;
vdig-supply = <&vdd>;
spi-max-frequency = <20000000>;
shunt-resistor-micro-ohms = <15000>;
reset-gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Palmas general purpose ADC IP block
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,palmas-gpadc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tony Lindgren <tony@atomide.com>"
This ADC is often used to provide channels via the io-channels
consumer framework.
Channels list:
0 battery type
1 battery temp NTC (optional current source)
2 GP
3 temp (with ext. diode, optional current source)
4 GP
5 GP
6 VBAT_SENSE
7 VCC_SENSE
8 Backup Battery voltage
9 external charger (VCHG)
10 VBUS
11 DC-DC current probe (how does this work?)
12 internal die temp
13 internal die temp
14 USB ID pin voltage
15 test network
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,palmas-gpadc"
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
#io-channel-cells — required here #
Exact value (const): 1
ti,channel0-current-microamp — not listed as required here #
Channel 0 current in uA.
Allowed values (enum): 0, 5, 15, 20
ti,channel3-current-microamp — not listed as required here #
Channel 3 current in uA.
Allowed values (enum): 0, 10, 400, 800
ti,enable-extended-delay — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable extended delay.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "#io-channel-cells"
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments TLC4541 and similar ADCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,tlc4541.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Phil Reid <preid@electromag.com.au>"
14/16bit single channel ADC with SPI interface.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,tlc3541", "ti,tlc4541"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — required here #
true — No constraints added by this property rule.
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "vref-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "ti,tlc4541";
reg = <0>;
vref-supply = <&vdd_supply>;
spi-max-frequency = <200000>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments TSC2046 touch screen controller.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,tsc2046.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Oleksij Rempel <o.rempel@pengutronix.de>"
TSC2046 is a touch screen controller with 8 channels ADC.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,tsc2046e-adc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vref-supply — not listed as required here #
Optional supply of the reference voltage
#io-channel-cells — not listed as required here #
Exact value (const): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg"
Properties matching a name pattern (patternProperties) #
^channel@[0-7]$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Properties and child nodes (properties) #
reg — required here
The channel number. It can have up to 8 channels
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):7
settling-time-us — not listed as required here
true — No constraints added by this property rule.
oversampling-ratio — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
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>;
adc@0 {
compatible = "ti,tsc2046e-adc";
reg = <0>;
spi-max-frequency = <1000000>;
interrupts-extended = <&gpio3 20 IRQ_TYPE_LEVEL_LOW>;
#io-channel-cells = <1>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
};
channel@1 {
reg = <1>;
settling-time-us = <700>;
oversampling-ratio = <5>;
};
channel@2 {
reg = <2>;
};
channel@3 {
reg = <3>;
settling-time-us = <700>;
oversampling-ratio = <5>;
};
channel@4 {
reg = <4>;
settling-time-us = <700>;
oversampling-ratio = <5>;
};
channel@5 {
reg = <5>;
settling-time-us = <700>;
oversampling-ratio = <5>;
};
channel@6 {
reg = <6>;
};
channel@7 {
reg = <7>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
MADC subsystem in the TWL4030 power module
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,twl4030-madc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"
The MADC subsystem in the TWL4030 consists of a 10-bit ADC combined with a 16-input analog multiplexer.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,twl4030-madc"
interrupts — required here #
Maximum number of items (maxItems): 1
ti,system-uses-second-madc-irq — not listed as required here #
Value type (type): "boolean"
Set if the second madc irq register should be used, which is intended to be used by Co-Processors (e.g. a modem).
#io-channel-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "interrupts", "#io-channel-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
twl {
madc {
compatible = "ti,twl4030-madc";
interrupts = <3>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
GPADC subsystem in the TWL6030 power module
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,twl6030-gpadc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andreas Kemnade <andreas@kemnade.info>"
The GPADC subsystem in the TWL603X consists of a 10-bit ADC combined with a 15-input analog multiplexer in the TWL6030 resp. a 19-input analog muliplexer in the TWL6032.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,twl6030-gpadc", "ti,twl6032-gpadc"
interrupts — required here #
Maximum number of items (maxItems): 1
#io-channel-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "interrupts", "#io-channel-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
gpadc {
compatible = "ti,twl6030-gpadc";
interrupts = <3>;
#io-channel-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
X-Powers AXP ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/x-powers,axp209-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>"
ADC is frequently used as a provider to consumers of the ADC channels. Device is a child of an axp209 multifunction device ADC channels and their indexes per variant:
AXP209 ------ 0 | acin_v 1 | acin_i 2 | vbus_v 3 | vbus_i 4 | pmic_temp 5 | gpio0_v 6 | gpio1_v 7 | ipsout_v 8 | batt_v 9 | batt_chrg_i 10 | batt_dischrg_i 11 | ts_v
AXP22x ------ 0 | pmic_temp 1 | batt_v 2 | batt_chrg_i 3 | batt_dischrg_i 4 | ts_v
AXP717 ------ 0 | batt_v 1 | ts_v 2 | vbus_v 3 | vsys_v 4 | pmic_temp 5 | batt_chrg_i 6 | vmid_v 7 | bkup_batt_v
AXP813 ------ 0 | pmic_temp 1 | gpio0_v 2 | batt_v 3 | batt_chrg_i 4 | batt_dischrg_i 5 | ts_v
Properties and child nodes (properties) #
compatible — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"x-powers,axp209-adc"
Rule 2
Exact value (
const):"x-powers,axp221-adc"
Rule 3
Exact value (
const):"x-powers,axp717-adc"
Rule 4
Exact value (
const):"x-powers,axp813-adc"
Rule 5
Array item rules (
items)Item 1
Exact value (
const):"x-powers,axp803-adc"Item 2
Exact value (
const):"x-powers,axp813-adc"
#io-channel-cells — not listed as required here #
Exact value (const): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
axp221 {
adc {
compatible = "x-powers,axp221-adc";
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Xilinx Zynq Ultrascale AMS controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/xlnx,zynqmp-ams.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Salih Erim <salih.erim@amd.com>", "Conall O'Griofa <conall.ogriofa@amd.com>"
The AMS (Analog Monitoring System) includes an ADC as well as on-chip sensors that can be used to sample external voltages and monitor on-die operating conditions, such as temperature and supply voltage levels. The AMS has two SYSMON blocks which are PL (Programmable Logic) SYSMON and PS (Processing System) SYSMON. All designs should have AMS registers, but PS and PL are optional. The AMS controller can work with only PS, only PL and both PS and PL configurations. Please specify registers according to your design. Devicetree should always have AMS module property. Providing PS & PL module is optional.
AMS Channel Details
```````````````````
Sysmon Block |Channel| Details |Measurement
|Number | |Type
---------------------------------------------------------------------------------------------------------
AMS CTRL |0 |System PLLs voltage measurement, VCC_PSPLL. |Voltage
|1 |Battery voltage measurement, VCC_PSBATT. |Voltage
|2 |PL Internal voltage measurement, VCCINT. |Voltage
|3 |Block RAM voltage measurement, VCCBRAM. |Voltage
|4 |PL Aux voltage measurement, VCCAUX. |Voltage
|5 |Voltage measurement for six DDR I/O PLLs, VCC_PSDDR_PLL. |Voltage
|6 |VCC_PSINTFP_DDR voltage measurement. |Voltage
---------------------------------------------------------------------------------------------------------
PS Sysmon |7 |LPD temperature measurement. |Temperature
|8 |FPD temperature measurement (REMOTE). |Temperature
|9 |VCC PS LPD voltage measurement (supply1). |Voltage
|10 |VCC PS FPD voltage measurement (supply2). |Voltage
|11 |PS Aux voltage reference (supply3). |Voltage
|12 |DDR I/O VCC voltage measurement. |Voltage
|13 |PS IO Bank 503 voltage measurement (supply5). |Voltage
|14 |PS IO Bank 500 voltage measurement (supply6). |Voltage
|15 |VCCO_PSIO1 voltage measurement. |Voltage
|16 |VCCO_PSIO2 voltage measurement. |Voltage
|17 |VCC_PS_GTR voltage measurement (VPS_MGTRAVCC). |Voltage
|18 |VTT_PS_GTR voltage measurement (VPS_MGTRAVTT). |Voltage
|19 |VCC_PSADC voltage measurement. |Voltage
---------------------------------------------------------------------------------------------------------
PL Sysmon |20 |PL temperature measurement. |Temperature
|21 |PL Internal voltage measurement, VCCINT. |Voltage
|22 |PL Auxiliary voltage measurement, VCCAUX. |Voltage
|23 |ADC Reference P+ voltage measurement. |Voltage
|24 |ADC Reference N- voltage measurement. |Voltage
|25 |PL Block RAM voltage measurement, VCCBRAM. |Voltage
|26 |LPD Internal voltage measurement, VCC_PSINTLP (supply4). |Voltage
|27 |FPD Internal voltage measurement, VCC_PSINTFP (supply5). |Voltage
|28 |PS Auxiliary voltage measurement (supply6). |Voltage
|29 |PL VCCADC voltage measurement (vccams). |Voltage
|30 |Differential analog input signal voltage measurement. |Voltage
|31 |VUser0 voltage measurement (supply7). |Voltage
|32 |VUser1 voltage measurement (supply8). |Voltage
|33 |VUser2 voltage measurement (supply9). |Voltage
|34 |VUser3 voltage measurement (supply10). |Voltage
|35 |Auxiliary ch 0 voltage measurement (VAux0). |Voltage
|36 |Auxiliary ch 1 voltage measurement (VAux1). |Voltage
|37 |Auxiliary ch 2 voltage measurement (VAux2). |Voltage
|38 |Auxiliary ch 3 voltage measurement (VAux3). |Voltage
|39 |Auxiliary ch 4 voltage measurement (VAux4). |Voltage
|40 |Auxiliary ch 5 voltage measurement (VAux5). |Voltage
|41 |Auxiliary ch 6 voltage measurement (VAux6). |Voltage
|42 |Auxiliary ch 7 voltage measurement (VAux7). |Voltage
|43 |Auxiliary ch 8 voltage measurement (VAux8). |Voltage
|44 |Auxiliary ch 9 voltage measurement (VAux9). |Voltage
|45 |Auxiliary ch 10 voltage measurement (VAux10). |Voltage
|46 |Auxiliary ch 11 voltage measurement (VAux11). |Voltage
|47 |Auxiliary ch 12 voltage measurement (VAux12). |Voltage
|48 |Auxiliary ch 13 voltage measurement (VAux13). |Voltage
|49 |Auxiliary ch 14 voltage measurement (VAux14). |Voltage
|50 |Auxiliary ch 15 voltage measurement (VAux15). |Voltage
--------------------------------------------------------------------------------------------------------
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "xlnx,zynqmp-ams"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
reg — required here #
AMS Controller register space
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
AMS reference clock
ranges — required here #
Maps the child address space for PS and/or PL.
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 1
#io-channel-cells — not listed as required here #
Exact value (const): 1
ams-ps@0 — not listed as required here #
Value type (type): "object"
PS (Processing System) SYSMON is memory mapped to PS. This block has built-in alarm generation logic that is used to interrupt the processor based on condition set.
Properties and child nodes (properties) #
compatible — required here
Allowed values (enum): "xlnx,zynqmp-ams-ps"
reg — required here
Register Space for PS-SYSMON
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
ams-pl@400 — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
PL-SYSMON is capable of monitoring off chip voltage and temperature. PL-SYSMON block has DRP, JTAG and I2C interface to enable monitoring from external master. Out of this interface currently only DRP is supported. This block has alarm generation logic that is used to interrupt the processor based on condition set.
Properties and child nodes (properties) #
compatible — not listed as required here
Array item rules (items)
Item 1
reg — not listed as required here
Register Space for PL-SYSMON.
Maximum number of items (maxItems): 1
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^channel@([2-4][0-9]|50)$ — name matches this regular expression
Value type (type): "object"
Describes the external channels connected.
Properties and child nodes (properties)
reg — required here
Pair of pins the channel is connected to. This value is same as Channel Number for a particular channel.
Minimum value (minimum): 20
Maximum value (maximum): 50
xlnx,bipolar — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Value type (type): "boolean"
If the set channel is used in bipolar mode.
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "clocks", "ranges"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
bus {
#address-cells = <2>;
#size-cells = <2>;
xilinx_ams: ams@ffa50000 {
compatible = "xlnx,zynqmp-ams";
interrupt-parent = <&gic>;
interrupts = <0 56 4>;
reg = <0x0 0xffa50000 0x0 0x800>;
clocks = <&zynqmp_clk 70>;
#address-cells = <1>;
#size-cells = <1>;
#io-channel-cells = <1>;
ranges = <0 0 0xffa50800 0x800>;
ams_ps: ams-ps@0 {
compatible = "xlnx,zynqmp-ams-ps";
reg = <0 0x400>;
};
ams_pl: ams-pl@400 {
compatible = "xlnx,zynqmp-ams-pl";
reg = <0x400 0x400>;
#address-cells = <1>;
#size-cells = <0>;
channel@30 {
reg = <30>;
xlnx,bipolar;
};
channel@31 {
reg = <31>;
};
channel@38 {
reg = <38>;
xlnx,bipolar;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices AD74115H device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / addac
Schema identifier ($id): "http://devicetree.org/schemas/iio/addac/adi,ad74115.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Cosmin Tanislav <cosmin.tanislav@analog.com>"
The AD74115H is a single-channel software configurable input/output device for industrial control applications. It contains functionality for analog output, analog input, digital output, digital input, resistance temperature detector, and thermocouple measurements integrated into a single chip solution with an SPI interface. The device features a 16-bit ADC and a 14-bit DAC.
https://www.analog.com/en/products/ad74115h.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad74115h"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 24000000
spi-cpol — required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
avdd-supply — required here #
true — No constraints added by this property rule.
avcc-supply — not listed as required here #
true — No constraints added by this property rule.
dvcc-supply — not listed as required here #
true — No constraints added by this property rule.
dovdd-supply — not listed as required here #
true — No constraints added by this property rule.
refin-supply — not listed as required here #
true — No constraints added by this property rule.
adi,ch-func — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Channel function. 0 - High impedance 1 - Voltage output 2 - Current output 3 - Voltage input 4 - Current input, externally-powered 5 - Current input, loop-powered 6 - Resistance input 7 - RTD measure 8 - Digital input logic 9 - Digital input, loop-powered 10 - Current output with HART 11 - Current input, externally-powered, with HART 12 - Current input, loop-powered, with HART
Minimum value (minimum): 0
Maximum value (maximum): 12
Default value (default): 0
adi,conv2-mux — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Input node for ADC conversion 2. 0 - SENSE_EXT1 to AGND_SENSE 1 - SENSE_EXT2 to AGND_SENSE 2 - SENSE_EXT2 to SENSE_EXT1 3 - AGND to AGND
Minimum value (minimum): 0
Maximum value (maximum): 3
Default value (default): 0
adi,conv2-range-microvolt — not listed as required here #
Conversion range for ADC conversion 2.
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):2500000
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):12000000
Rule 3
Array item rules (
items)Item 1
Exact value (
const):-2500000Item 2
Exact value (
const):0
Rule 4
Array item rules (
items)Item 1
Exact value (
const):-104000Item 2
Exact value (
const):104000
Rule 5
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Exact value (
const):625000
adi,sense-agnd-buffer-low-power — not listed as required here #
Value type (type): "boolean"
Whether to enable low-power buffered mode for the AGND sense pin.
adi,lf-buffer-low-power — not listed as required here #
Value type (type): "boolean"
Whether to enable low-power buffered mode for the low-side filtered sense pin.
adi,hf-buffer-low-power — not listed as required here #
Value type (type): "boolean"
Whether to enable low-power buffered mode for the high-side filtered sense pin.
adi,ext2-buffer-low-power — not listed as required here #
Value type (type): "boolean"
Whether to enable low-power buffered mode for the EXT2 pin.
adi,ext1-buffer-low-power — not listed as required here #
Value type (type): "boolean"
Whether to enable low-power buffered mode for the EXT1 pin.
adi,comparator-invert — not listed as required here #
Value type (type): "boolean"
Whether to invert the comparator output.
adi,digital-input-sink-range-high — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
When not present, the digital input range is from 0 to 3700uA in steps of 120uA, with a ~2k series resistance. When present, the digital input range is from 0 to 7400uA in steps of 240uA, with a ~1k series resistance.
adi,digital-input-sink-microamp — not listed as required here #
Sink current in digital input mode.
Minimum value (minimum): 0
Maximum value (maximum): 3700
Default value (default): 0
adi,digital-input-debounce-mode-counter-reset — not listed as required here #
Value type (type): "boolean"
When not present, a counter increments when the signal is asserted and decrements when the signal is de-asserted. When present, a counter increments while the signal is asserted and resets when the signal de-asserts
adi,digital-input-unbuffered — not listed as required here #
Value type (type): "boolean"
Whether to buffer digital input signals.
adi,digital-input-short-circuit-detection — not listed as required here #
Value type (type): "boolean"
Whether to detect digital input short circuits.
adi,digital-input-open-circuit-detection — not listed as required here #
Value type (type): "boolean"
Whether to detect digital input open circuits.
adi,digital-input-threshold-mode-fixed — not listed as required here #
Value type (type): "boolean"
When not present, the digital input threshold range is -0.96 * AVDD to AVDD. When present, the threshold range is fixed from -19V to 30V.
adi,dac-bipolar — not listed as required here #
Value type (type): "boolean"
When not present, the DAC operates in the 0V to 12V range. When present, the DAC operates in the -12V to 12V range.
adi,charge-pump — not listed as required here #
Value type (type): "boolean"
Whether to enable the internal charge pump.
adi,dac-hart-slew — not listed as required here #
Value type (type): "boolean"
Whether to use a HART-compatible slew rate.
adi,dac-current-limit-low — not listed as required here #
Value type (type): "boolean"
When not present, the DAC short-circuit current limit is 32mA in either source or sink for VOUT and 4mA sink for IOUT. When present, the limit is 16mA in either source or sink for VOUT, 1mA sink for IOUT.
adi,4-wire-rtd — not listed as required here #
Value type (type): "boolean"
When not present, the ADC should be used for measuring 3-wire RTDs. When present, the ADC should be used for measuring 4-wire RTDs.
adi,3-wire-rtd-excitation-swap — not listed as required here #
Value type (type): "boolean"
Whether to swap the excitation for 3-wire RTD.
adi,rtd-excitation-current-microamp — not listed as required here #
Excitation current to apply to RTD.
Allowed values (enum): 250, 500, 750, 1000
Default value (default): 250
adi,ext1-burnout — not listed as required here #
Value type (type): "boolean"
Whether to enable burnout current for EXT1.
adi,ext1-burnout-current-nanoamp — not listed as required here #
Burnout current in nanoamps to be applied to EXT1.
Allowed values (enum): 0, 50, 500, 1000, 10000
Default value (default): 0
adi,ext1-burnout-current-polarity-sourcing — not listed as required here #
Value type (type): "boolean"
When not present, the burnout current polarity for EXT1 is sinking. When present, the burnout current polarity for EXT1 is sourcing.
adi,ext2-burnout — not listed as required here #
Value type (type): "boolean"
Whether to enable burnout current for EXT2.
adi,ext2-burnout-current-nanoamp — not listed as required here #
Burnout current in nanoamps to be applied to EXT2.
Allowed values (enum): 0, 50, 500, 1000, 10000
Default value (default): 0
adi,ext2-burnout-current-polarity-sourcing — not listed as required here #
Value type (type): "boolean"
When not present, the burnout current polarity for EXT2 is sinking. When present, the burnout current polarity for EXT2 is sourcing.
adi,viout-burnout — not listed as required here #
Value type (type): "boolean"
Whether to enable burnout current for VIOUT.
adi,viout-burnout-current-nanoamp — not listed as required here #
Burnout current in nanoamps to be applied to VIOUT.
Allowed values (enum): 0, 1000, 10000
Default value (default): 0
adi,viout-burnout-current-polarity-sourcing — not listed as required here #
Value type (type): "boolean"
When not present, the burnout current polarity for VIOUT is sinking. When present, the burnout current polarity for VIOUT is sourcing.
adi,gpio0-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
GPIO functions. 0 - Disabled 1 - Logic I/O 2 - Comparator output 3 - Control HART CD 4 - Monitor HART CD 5 - Monitor HART EOM status
Minimum value (minimum): 0
Maximum value (maximum): 5
Default value (default): 0
adi,gpio1-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
GPIO functions. 0 - Disabled 1 - Logic I/O 2 - Drive external digital output FET 3 - Control HART RXD 4 - Monitor HART RXD 5 - Monitor HART SOM status
Minimum value (minimum): 0
Maximum value (maximum): 5
Default value (default): 0
adi,gpio2-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
GPIO functions. 0 - Disabled 1 - Logic I/O 2 - Drive internal digital output FET 3 - Control HART TXD 4 - Monitor HART TXD 5 - Monitor HART TX complete status
Minimum value (minimum): 0
Maximum value (maximum): 5
Default value (default): 0
adi,gpio3-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
GPIO functions. 0 - Disabled 1 - Logic I/O 2 - High impedance 3 - Control HART RTS 4 - Monitor HART RTS 5 - Monitor HART CD complete status
Minimum value (minimum): 0
Maximum value (maximum): 5
Default value (default): 0
Required in this object (required): "compatible", "reg", "spi-cpol", "avdd-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Required in this object (
required):"adi,digital-input-sink-range-high"When the condition matches (
then) #Properties and child nodes (
properties)
adi,digital-input-sink-microamp— not listed as required hereMaximum value (
maximum):7400
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
addac@0 {
compatible = "adi,ad74115h";
reg = <0>;
spi-max-frequency = <12000000>;
spi-cpol;
reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
interrupt-parent = <&gpio>;
interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "adc_rdy";
avdd-supply = <&ad74115_avdd>;
adi,ch-func = <1>;
adi,conv2-mux = <2>;
adi,conv2-range-microvolt = <(-12000000) 12000000>;
adi,gpio0-mode = <1>;
adi,gpio1-mode = <1>;
adi,gpio2-mode = <1>;
adi,gpio3-mode = <1>;
adi,dac-bipolar;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices AD74412R/AD74413R device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / addac
Schema identifier ($id): "http://devicetree.org/schemas/iio/addac/adi,ad74413r.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Cosmin Tanislav <cosmin.tanislav@analog.com>"
The AD74412R and AD74413R are quad-channel software configurable input/output
solutions for building and process control applications. They contain
functionality for analog output, analog input, digital input, resistance
temperature detector, and thermocouple measurements integrated
into a single chip solution with an SPI interface.
The devices feature a 16-bit ADC and four configurable 13-bit DACs to provide
four configurable input/output channels and a suite of diagnostic functions.
The AD74413R differentiates itself from the AD74412R by being HART-compatible.
https://www.analog.com/en/products/ad74412r.html
https://www.analog.com/en/products/ad74413r.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad74412r", "adi,ad74413r"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
spi-max-frequency — required here #
Maximum value (maximum): 1000000
spi-cpol — required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
refin-supply — required here #
true — No constraints added by this property rule.
shunt-resistor-micro-ohms — not listed as required here #
Shunt (sense) resistor value in micro-Ohms.
Default value (default): 100000000
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "spi-max-frequency", "spi-cpol", "refin-supply"
Properties matching a name pattern (patternProperties) #
^channel@[0-3]$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Represents the external channels which are connected to the device.
Properties and child nodes (properties) #
reg — required here
The channel number. It can have up to 4 channels numbered from 0 to 3.
Minimum value (minimum): 0
Maximum value (maximum): 3
adi,ch-func — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Channel function. HART functions are not supported on AD74412R. 0 - CH_FUNC_HIGH_IMPEDANCE 1 - CH_FUNC_VOLTAGE_OUTPUT 2 - CH_FUNC_CURRENT_OUTPUT 3 - CH_FUNC_VOLTAGE_INPUT 4 - CH_FUNC_CURRENT_INPUT_EXT_POWER 5 - CH_FUNC_CURRENT_INPUT_LOOP_POWER 6 - CH_FUNC_RESISTANCE_INPUT 7 - CH_FUNC_DIGITAL_INPUT_LOGIC 8 - CH_FUNC_DIGITAL_INPUT_LOOP_POWER 9 - CH_FUNC_CURRENT_INPUT_EXT_POWER_HART 10 - CH_FUNC_CURRENT_INPUT_LOOP_POWER_HART
Minimum value (minimum): 0
Maximum value (maximum): 10
Default value (default): 0
adi,gpo-comparator — not listed as required here
Value type (type): "boolean"
Whether to configure GPO as a comparator or not. When not configured as a comparator, the GPO will be treated as an output-only GPIO.
drive-strength-microamp — not listed as required here
For channels configured as digital input, this configures the sink current.
Minimum value (minimum): 0
Maximum value (maximum): 1800
Default value (default): 0
Multiple of (multipleOf): 120
Required in this object (required): "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/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/iio/addac/adi,ad74413r.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
addac@0 {
compatible = "adi,ad74413r";
reg = <0>;
spi-max-frequency = <1000000>;
spi-cpol;
#address-cells = <1>;
#size-cells = <0>;
interrupt-parent = <&gpio>;
interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
refin-supply = <&ad74413r_refin>;
reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
channel@0 {
reg = <0>;
adi,ch-func = <CH_FUNC_VOLTAGE_OUTPUT>;
};
channel@1 {
reg = <1>;
adi,ch-func = <CH_FUNC_CURRENT_OUTPUT>;
};
channel@2 {
reg = <2>;
adi,ch-func = <CH_FUNC_DIGITAL_INPUT_LOGIC>;
adi,gpo-comparator;
};
channel@3 {
reg = <3>;
adi,ch-func = <CH_FUNC_CURRENT_INPUT_EXT_POWER>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Current Sense Amplifier
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / afe
Schema identifier ($id): "http://devicetree.org/schemas/iio/afe/current-sense-amplifier.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Rosin <peda@axentia.se>"
When an io-channel measures the output voltage from a current sense amplifier, the interesting measurement is almost always the current through the sense resistor, not the voltage output. This binding describes such a current sense circuit.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "current-sense-amplifier"
io-channels — required here #
Maximum number of items (maxItems): 1
Channel node of a voltage io-channel.
#io-channel-cells — not listed as required here #
Exact value (const): 0
sense-resistor-micro-ohms — required here #
The sense resistance.
sense-gain-mult — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Amplifier gain multiplier. The default is <1>.
sense-gain-div — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Amplifier gain divider. The default is <1>.
Required in this object (required): "compatible", "io-channels", "sense-resistor-micro-ohms"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
sysi {
compatible = "current-sense-amplifier";
#io-channel-cells = <0>;
io-channels = <&tiadc 0>;
sense-resistor-micro-ohms = <20000>;
sense-gain-mult = <50>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Current Sense Shunt
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / afe
Schema identifier ($id): "http://devicetree.org/schemas/iio/afe/current-sense-shunt.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Rosin <peda@axentia.se>"
When an io-channel measures the voltage over a current sense shunt, the interesting measurement is almost always the current through the shunt, not the voltage over it. This binding describes such a current sense circuit.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "current-sense-shunt"
io-channels — required here #
Maximum number of items (maxItems): 1
Channel node of a voltage io-channel.
#io-channel-cells — not listed as required here #
Exact value (const): 0
shunt-resistor-micro-ohms — required here #
The shunt resistance.
Required in this object (required): "compatible", "io-channels", "shunt-resistor-micro-ohms"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
tiadc: adc@48 {
compatible = "ti,ads1015";
reg = <0x48>;
#io-channel-cells = <1>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 { /* IN0,IN1 differential */
reg = <0>;
ti,gain = <1>;
ti,datarate = <4>;
};
};
};
sysi {
compatible = "current-sense-shunt";
io-channels = <&tiadc 0>;
#io-channel-cells = <0>;
/* Divide the voltage by 3300000/1000000 (or 3.3) for the current. */
shunt-resistor-micro-ohms = <3300000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Temperature Sense RTD
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / afe
Schema identifier ($id): "http://devicetree.org/schemas/iio/afe/temperature-sense-rtd.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Liam Beguin <liambeguin@gmail.com>"
RTDs (Resistance Temperature Detectors) are a kind of temperature sensors used to get a linear voltage to temperature reading within a give range (usually 0 to 100 degrees Celsius).
When an io-channel measures the output voltage across an RTD such as a PT1000, the interesting measurement is almost always the corresponding temperature, not the voltage output. This binding describes such a circuit.
The general transfer function here is (using SI units)
V = R(T) * iexc
R(T) = r0 * (1 + alpha * T)
T = 1 / (alpha * r0 * iexc) * (V - r0 * iexc)
The following circuit matches what's in the examples section.
5V0
-----
|
+---+----+
| R 5k |
+---+----+
|
V 1mA
|
+---- Vout
|
+---+----+
| PT1000 |
+---+----+
|
-----
GND
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "temperature-sense-rtd"
io-channels — required here #
Maximum number of items (maxItems): 1
Channel node of a voltage io-channel.
#io-channel-cells — not listed as required here #
Exact value (const): 0
excitation-current-microamp — required here #
The current fed through the RTD sensor.
alpha-ppm-per-celsius — required here #
alpha can also be expressed in micro-ohms per ohm Celsius. It's a linear approximation of the resistance versus temperature relationship between 0 and 100 degrees Celsius.
alpha = (R_100 - R_0) / (100 * R_0)
Where, R_100 is the resistance of the sensor at 100 degrees Celsius, and R_0 (or r-naught-ohms) is the resistance of the sensor at 0 degrees Celsius.
Pure platinum has an alpha of 3925. Industry standards such as IEC60751 and ASTM E-1137 specify an alpha of 3850.
r-naught-ohms — required here #
Resistance of the sensor at 0 degrees Celsius. Common values are 100 for PT100, 500 for PT500, and 1000 for PT1000
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "io-channels", "excitation-current-microamp", "alpha-ppm-per-celsius", "r-naught-ohms"
Examples (examples) #
pt1000_1: temperature-sensor0 {
compatible = "temperature-sense-rtd";
#io-channel-cells = <0>;
io-channels = <&temp_adc1 0>;
excitation-current-microamp = <1000>; /* i = U/R = 5 / 5000 */
alpha-ppm-per-celsius = <3908>;
r-naught-ohms = <1000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Temperature Transducer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / afe
Schema identifier ($id): "http://devicetree.org/schemas/iio/afe/temperature-transducer.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Liam Beguin <liambeguin@gmail.com>"
A temperature transducer is a device that converts a thermal quantity into any other physical quantity. This binding applies to temperature to voltage (like the LTC2997), and temperature to current (like the AD590) linear transducers. In both cases these are assumed to be connected to a voltage ADC.
When an io-channel measures the output voltage of a temperature analog front end such as a temperature transducer, the interesting measurement is almost always the corresponding temperature, not the voltage output. This binding describes such a circuit.
The general transfer function here is (using SI units)
V(T) = Rsense * Isense(T)
T = (Isense(T) / alpha) + offset
T = 1 / (Rsense * alpha) * (V + offset * Rsense * alpha)
When using a temperature to voltage transducer, Rsense is set to 1.
The following circuits show a temperature to current and a temperature to voltage transducer that can be used with this binding.
VCC
-----
|
+---+---+
| AD590 | VCC
+---+---+ -----
| |
V proportional to T +----+----+
| D+ --+ |
+---- Vout | LTC2997 +--- Vout
| D- --+ |
+---+----+ +---------+
| Rsense | |
+---+----+ -----
| GND
-----
GND
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "temperature-transducer"
io-channels — required here #
Maximum number of items (maxItems): 1
Channel node of a voltage io-channel.
#io-channel-cells — not listed as required here #
Exact value (const): 0
sense-offset-millicelsius — not listed as required here #
Temperature offset. This offset is commonly used to convert from Kelvins to degrees Celsius. In that case, sense-offset-millicelsius would be set to <(-273150)>.
Default value (default): 0
sense-resistor-ohms — not listed as required here #
The sense resistor. By default sense-resistor-ohms cancels out the resistor making the circuit behave like a temperature transducer.
Default value (default): 1
alpha-ppm-per-celsius — required here #
Sometimes referred to as output gain, slope, or temperature coefficient.
alpha is expressed in parts per million which can be micro-amps per degrees Celsius or micro-volts per degrees Celsius. The is the main characteristic of a temperature transducer and should be stated in the datasheet.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "io-channels", "alpha-ppm-per-celsius"
Examples (examples) #
ad950: temperature-sensor-0 {
compatible = "temperature-transducer";
#io-channel-cells = <0>;
io-channels = <&temp_adc 3>;
sense-offset-millicelsius = <(-273150)>; /* Kelvin to degrees Celsius */
sense-resistor-ohms = <8060>;
alpha-ppm-per-celsius = <1>; /* 1 uA/K */
};
znq_tmp: temperature-sensor-1 {
compatible = "temperature-transducer";
#io-channel-cells = <0>;
io-channels = <&temp_adc 2>;
sense-offset-millicelsius = <(-273150)>; /* Kelvin to degrees Celsius */
alpha-ppm-per-celsius = <4000>; /* 4 mV/K */
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Voltage divider
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / afe
Schema identifier ($id): "http://devicetree.org/schemas/iio/afe/voltage-divider.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Rosin <peda@axentia.se>"
When an io-channel measures the midpoint of a voltage divider, the interesting voltage is often the voltage over the full resistance of the divider. This binding describes the voltage divider in such a circuit.
Vin ----.
|
.-----.
| R |
'-----'
|
+---- Vout
|
.-----.
| Rout|
'-----'
|
GND
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "voltage-divider"
io-channels — required here #
Maximum number of items (maxItems): 1
Channel node of a voltage io-channel.
#io-channel-cells — not listed as required here #
In addition to consuming the measurement services of a voltage output channel, the voltage divider can act as a provider of measurement services to other devices. This is particularly useful in scenarios wherein an ADC has an analog frontend, such as a voltage divider, and then consuming its raw value isn't interesting. In this case, the voltage before the divider is desired.
Exact value (const): 1
output-ohms — required here #
Resistance Rout over which the output voltage is measured. See full-ohms.
full-ohms — required here #
Resistance R + Rout for the full divider. The io-channel is scaled by the Rout / (R + Rout) quotient.
Required in this object (required): "compatible", "io-channels", "output-ohms", "full-ohms"
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>
/*
* The system voltage is circa 12V, but divided down with a 22/222
* voltage divider (R = 200 Ohms, Rout = 22 Ohms) and fed to an ADC.
*/
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>;
};
};
sysv {
compatible = "voltage-divider";
io-channels = <&maxadc 1>;
/* Scale the system voltage by 22/222 to fit the ADC range. */
output-ohms = <22>;
full-ohms = <222>; /* 200 + 22 */
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ADA4250 Programmable Gain Instrumentation Amplifier
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / amplifiers
Schema identifier ($id): "http://devicetree.org/schemas/iio/amplifiers/adi,ada4250.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Antoniu Miclaus <antoniu.miclaus@analog.com>"
Precision Low Power, 110kHz, 26uA, Programmable Gain Instrumentation Amplifier.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ada4250"
reg — required here #
Maximum number of items (maxItems): 1
avdd-supply — required here #
true — No constraints added by this property rule.
adi,refbuf-enable — not listed as required here #
Enable internal buffer to drive the reference pin.
Value type (type): "boolean"
Required in this object (required): "compatible", "reg", "avdd-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
amplifier@0 {
compatible = "adi,ada4250";
reg = <0>;
avdd-supply = <&avdd>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices ADL8113 Low Noise Amplifier with integrated bypass switches
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / amplifiers
Schema identifier ($id): "http://devicetree.org/schemas/iio/amplifiers/adi,adl8113.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Antoniu Miclaus <antoniu.miclaus@analog.com>"
The ADL8113 is a 10MHz to 12GHz Low Noise Amplifier with integrated bypass
switches controlled by two GPIO pins (VA and VB). The device supports four
operation modes:
- Internal Amplifier: VA=0, VB=0 - Signal passes through the internal LNA
- Internal Bypass: VA=1, VB=1 - Signal bypasses through internal path
- External Bypass A: VA=0, VB=1 - Signal routes from RFIN to OUT_A and from IN_A to RFOUT
- External Bypass B: VA=1, VB=0 - Signal routes from RFIN to OUT_B and from IN_B to RFOUT
https://www.analog.com/en/products/adl8113.html
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "adi,adl8113"
vdd1-supply — required here #
true — No constraints added by this property rule.
vdd2-supply — required here #
true — No constraints added by this property rule.
vss2-supply — required here #
true — No constraints added by this property rule.
ctrl-gpios — required here #
Array item rules (items) #
Item 1
VA control pin
Item 2
VB control pin
adi,external-bypass-a-gain-db — not listed as required here #
Gain in dB of external amplifier connected to bypass path A (OUT_A/IN_A). When specified, this gain value becomes selectable via the hardwaregain attribute and automatically routes through the external A path.
adi,external-bypass-b-gain-db — not listed as required here #
Gain in dB of external amplifier connected to bypass path B (OUT_B/IN_B). When specified, this gain value becomes selectable via the hardwaregain attribute and automatically routes through the external B path.
Required in this object (required): "compatible", "ctrl-gpios", "vdd1-supply", "vdd2-supply", "vss2-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
/* Basic configuration with only internal paths */
amplifier {
compatible = "adi,adl8113";
ctrl-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>,
<&gpio 23 GPIO_ACTIVE_HIGH>;
vdd1-supply = <&vdd1_5v>;
vdd2-supply = <&vdd2_3v3>;
vss2-supply = <&vss2_neg>;
};
#include <dt-bindings/gpio/gpio.h>
/* Configuration with external bypass amplifiers */
amplifier {
compatible = "adi,adl8113";
ctrl-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>,
<&gpio 25 GPIO_ACTIVE_HIGH>;
vdd1-supply = <&vdd1_5v>;
vdd2-supply = <&vdd2_3v3>;
vss2-supply = <&vss2_neg>;
adi,external-bypass-a-gain-db = <20>; /* 20dB external amp on path A */
adi,external-bypass-b-gain-db = <6>; /* 6dB external amp on path B */
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices HMC425A and similar Digital Step Attenuators
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / amplifiers
Schema identifier ($id): "http://devicetree.org/schemas/iio/amplifiers/adi,hmc425a.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
Digital Step Attenuator IIO devices with gpio interface.
Offer various frequency and attenuation ranges.
ADRF5750 2 dB LSB, 4-Bit, Silicon Digital Attenuator, 10 MHz to 60 GHz
https://www.analog.com/media/en/technical-documentation/data-sheets/adrf5740.pdf
HMC425A 0.5 dB LSB GaAs MMIC 6-BIT DIGITAL POSITIVE CONTROL ATTENUATOR, 2.2 - 8.0 GHz
https://www.analog.com/media/en/technical-documentation/data-sheets/hmc425A.pdf
HMC540S 1 dB LSB Silicon MMIC 4-Bit Digital Positive Control Attenuator, 0.1 - 8 GHz
https://www.analog.com/media/en/technical-documentation/data-sheets/hmc540s.pdf
LTC6373 is a 3-Bit precision instrumentation amplifier with fully differential outputs
https://www.analog.com/media/en/technical-documentation/data-sheets/ltc6373.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adrf5740", "adi,hmc425a", "adi,hmc540s", "adi,ltc6373"
vcc-supply — not listed as required here #
true — No constraints added by this property rule.
ctrl-gpios — required here #
Must contain an array of GPIO specifiers, referring to the GPIO pins connected to the control pins. ADRF5740 - 4 GPIO connected to D2-D5 HMC540S - 4 GPIO connected to V1-V4 HMC425A - 6 GPIO connected to V1-V6 LTC6373 - 3 GPIO connected to A0-A2
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 6
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"adi,hmc425a"When the condition matches (
then) #Properties and child nodes (
properties)
ctrl-gpios— not listed as required hereMinimum number of items (
minItems):6Maximum number of items (
maxItems):6
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)At least one of these rules must match (
anyOf)Rule 1
Exact value (
const):"adi,adrf5740"Rule 2
Exact value (
const):"adi,hmc540s"When the condition matches (
then) #Properties and child nodes (
properties)
ctrl-gpios— not listed as required hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):4
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"adi,ltc6373"When the condition matches (
then) #Properties and child nodes (
properties)
ctrl-gpios— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
Required in this object (required): "compatible", "ctrl-gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
gpio_hmc425a: hmc425a {
compatible = "adi,hmc425a";
ctrl-gpios = <&gpio 40 GPIO_ACTIVE_HIGH>,
<&gpio 39 GPIO_ACTIVE_HIGH>,
<&gpio 38 GPIO_ACTIVE_HIGH>,
<&gpio 37 GPIO_ACTIVE_HIGH>,
<&gpio 36 GPIO_ACTIVE_HIGH>,
<&gpio 35 GPIO_ACTIVE_HIGH>;
vcc-supply = <&foo>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog device AD7150 and similar capacitance to digital converters.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / cdc
Schema identifier ($id): "http://devicetree.org/schemas/iio/cdc/adi,ad7150.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7150", "adi,ad7151", "adi,ad7156"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
true — No constraints added by this property rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"adi,ad7151"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
cdc@48 {
compatible = "adi,ad7150";
reg = <0x48>;
interrupts = <25 2>, <26 2>;
interrupt-parent = <&gpio>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
AD7746 24-Bit Capacitance-to-Digital Converter with Temperature Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / cdc
Schema identifier ($id): "http://devicetree.org/schemas/iio/cdc/adi,ad7746.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
AD7746 24-Bit Capacitance-to-Digital Converter with Temperature Sensor
Specifications about the part can be found at: https://www.analog.com/media/en/technical-documentation/data-sheets/ad7291.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7745", "adi,ad7746", "adi,ad7747"
reg — required here #
Maximum number of items (maxItems): 1
adi,excitation-vdd-permille — not listed as required here #
Set VDD per mille to be used as the excitation voltage.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 125, 250, 375, 500
adi,exca-output-en — not listed as required here #
Enables the EXCA pin as the excitation output.
Value type (type): "boolean"
adi,exca-output-invert — not listed as required here #
Inverts the excitation output in the EXCA pin. Normally only one of the EXCX pins would be inverted, check the following application notes for more details https://www.analog.com/media/en/technical-documentation/application-notes/AN-1585.pdf
Value type (type): "boolean"
adi,excb-output-en — not listed as required here #
Enables the EXCB pin as the excitation output.
Value type (type): "boolean"
adi,excb-output-invert — not listed as required here #
Inverts the excitation output in the EXCB pin.
Value type (type): "boolean"
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
ad7746: cdc@48 {
compatible = "adi,ad7746";
reg = <0x48>;
adi,excitation-vdd-permille = <125>;
adi,exca-output-en;
adi,exca-output-invert;
adi,excb-output-en;
adi,excb-output-invert;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
AMS CCS811 VOC Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / chemical
Schema identifier ($id): "http://devicetree.org/schemas/iio/chemical/ams,ccs811.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Narcisa Vasile <narcisaanamaria12@gmail.com>"
Ultra-Low Power Digital Gas Sensor for Monitoring Indoor Air Quality.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ams,ccs811"
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
GPIO connected to the nRESET line. This is an active low input to CCS811.
Maximum number of items (maxItems): 1
wakeup-gpios — not listed as required here #
GPIO connected to the nWAKE line. This is an active low input to CCS811.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
voc@5b {
compatible = "ams,ccs811";
reg = <0x5b>;
reset-gpios = <&gpioa 11 GPIO_ACTIVE_LOW>;
wakeup-gpios = <&gpioa 12 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Aosong AGS02MA VOC Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / chemical
Schema identifier ($id): "http://devicetree.org/schemas/iio/chemical/aosong,ags02ma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
AGS02MA is an TVOC (Total Volatile Organic Compounds) i2c sensor with default address of 0x1a.
Datasheet:
https://asairsensors.com/wp-content/uploads/2021/09/AGS02MA.pdf
Maintainers (maintainers): "Anshul Dalal <anshulusr@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "aosong,ags02ma"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
voc-sensor@1a {
compatible = "aosong,ags02ma";
reg = <0x1a>;
vdd-supply = <&vdd_regulator>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Atlas Scientific OEM + EZO sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / chemical
Schema identifier ($id): "http://devicetree.org/schemas/iio/chemical/atlas,sensor.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matt Ranostay <matt.ranostay@konsulko.com>"
Atlas Scientific OEM + EZO sensors connected via I2C
Datasheets:
http://www.atlas-scientific.com/_files/_datasheets/_oem/DO_oem_datasheet.pdf
http://www.atlas-scientific.com/_files/_datasheets/_oem/EC_oem_datasheet.pdf
http://www.atlas-scientific.com/_files/_datasheets/_oem/ORP_oem_datasheet.pdf
http://www.atlas-scientific.com/_files/_datasheets/_oem/pH_oem_datasheet.pdf
http://www.atlas-scientific.com/_files/_datasheets/_oem/RTD_oem_datasheet.pdf
http://www.atlas-scientific.com/_files/_datasheets/_probe/EZO_CO2_Datasheet.pdf
https://www.atlas-scientific.com/files/EZO_O2_datasheet.pdf
https://www.atlas-scientific.com/files/EZO_HUM_Datasheet.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "atlas,do-sm", "atlas,ec-sm", "atlas,orp-sm", "atlas,ph-sm", "atlas,rtd-sm", "atlas,co2-ezo", "atlas,o2-ezo", "atlas,hum-ezo"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
atlas@66 {
compatible = "atlas,orp-sm";
reg = <0x66>;
interrupt-parent = <&gpio1>;
interrupts = <16 2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Bosch BME680 Gas sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / chemical
Schema identifier ($id): "http://devicetree.org/schemas/iio/chemical/bosch,bme680.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vasileios Amoiridis <vassilisamir@gmail.com>"
BME680 is a gas sensor which combines relative humidity, barometric pressure, ambient temperature and gas (VOC - Volatile Organic Compounds) measurements. https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme680-ds001.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "bosch,bme680"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vddio-supply — not listed as required here #
true — No constraints added by this property rule.
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) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
co2-sensor@77 {
compatible = "bosch,bme680";
reg = <0x77>;
vddio-supply = <&vddio>;
vdd-supply = <&vdd>;
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
co2-sensor@0 {
compatible = "bosch,bme680";
reg = <0>;
spi-max-frequency = <500000>;
vddio-supply = <&vddio>;
vdd-supply = <&vdd>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Plantower PMS7003 air pollution sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / chemical
Schema identifier ($id): "http://devicetree.org/schemas/iio/chemical/plantower,pms7003.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tomasz Duszynski <tduszyns@gmail.com>"
Air pollution sensor capable of measuring mass concentration of dust particles.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "plantower,pms1003", "plantower,pms3003", "plantower,pms5003", "plantower,pms6003", "plantower,pms7003", "plantower,pmsa003"
vcc-supply — required here #
regulator that provides power to the sensor
plantower,set-gpios — not listed as required here #
GPIO connected to the SET line
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
GPIO connected to the RESET line
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "vcc-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
serial {
air-pollution-sensor {
compatible = "plantower,pms7003";
vcc-supply = <®_vcc5v0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
ScioSense ENS160 multi-gas sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / chemical
Schema identifier ($id): "http://devicetree.org/schemas/iio/chemical/sciosense,ens160.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Gustavo Silva <gustavograzs@gmail.com>"
Digital Multi-Gas Sensor for Monitoring Indoor Air Quality.
Datasheet:
https://www.sciosense.com/wp-content/uploads/2023/12/ENS160-Datasheet.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "sciosense,ens160"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vddio-supply — not listed as required here #
true — No constraints added by this property rule.
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
gas-sensor@52 {
compatible = "sciosense,ens160";
reg = <0x52>;
interrupt-parent = <&gpio0>;
interrupts = <19 IRQ_TYPE_EDGE_FALLING>;
};
};
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
gas-sensor@0 {
compatible = "sciosense,ens160";
reg = <0>;
spi-max-frequency = <10000000>;
interrupt-parent = <&gpio>;
interrupts = <19 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Senseair Sunrise 006-0-0007 CO2 Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / chemical
Schema identifier ($id): "http://devicetree.org/schemas/iio/chemical/senseair,sunrise.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jacopo Mondi <jacopo@jmondi.org>"
Senseair Sunrise 006-0-0007 is a NDIR CO2 sensor. It supports I2C or UART buses for communications and control.
Datasheets:
https://rmtplusstoragesenseair.blob.core.windows.net/docs/Dev/publicerat/PSP11704.pdf
https://rmtplusstoragesenseair.blob.core.windows.net/docs/Dev/publicerat/PSH11649.pdf
https://rmtplusstoragesenseair.blob.core.windows.net/docs/Dev/publicerat/TDE5531.pdf
https://rmtplusstoragesenseair.blob.core.windows.net/docs/Market/publicerat/TDE7318.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "senseair,sunrise-006-0-0007"
reg — required here #
Maximum number of items (maxItems): 1
ndry-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Phandle to the GPIO line connected to the nDRY pin. Typically active low.
en-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Phandle to the GPIO line connected to the EN pin. Typically active high.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
co2-sensor@68 {
compatible = "senseair,sunrise-006-0-0007";
reg = <0x68>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Sensirion SCD30 carbon dioxide sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / chemical
Schema identifier ($id): "http://devicetree.org/schemas/iio/chemical/sensirion,scd30.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tomasz Duszynski <tomasz.duszynski@octakon.com>"
Air quality sensor capable of measuring co2 concentration, temperature and relative humidity.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "sensirion,scd30"
reg — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
sensirion,sel-gpios — not listed as required here #
GPIO connected to the SEL line
Maximum number of items (maxItems): 1
sensirion,pwm-gpios — not listed as required here #
GPIO connected to the PWM line
Maximum number of items (maxItems): 1
Required in this object (required): "compatible"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
co2-sensor@61 {
compatible = "sensirion,scd30";
reg = <0x61>;
vdd-supply = <&vdd>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
};
};
# include <dt-bindings/interrupt-controller/irq.h>
serial {
co2-sensor {
compatible = "sensirion,scd30";
vdd-supply = <&vdd>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Sensirion SCD4X carbon dioxide sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / chemical
Schema identifier ($id): "http://devicetree.org/schemas/iio/chemical/sensirion,scd4x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Roan van Dijk <roan@protonic.nl>"
Air quality sensor capable of measuring co2 concentration, temperature and relative humidity.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "sensirion,scd40", "sensirion,scd41"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
co2-sensor@62 {
compatible = "sensirion,scd41";
reg = <0x62>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Sensirion SPS30 particulate matter sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / chemical
Schema identifier ($id): "http://devicetree.org/schemas/iio/chemical/sensirion,sps30.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tomasz Duszynski <tduszyns@gmail.com>"
Air pollution sensor capable of measuring mass concentration of dust particles.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "sensirion,sps30"
reg — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
air-pollution-sensor@69 {
compatible = "sensirion,sps30";
reg = <0x69>;
};
};
serial {
air-pollution-sensor {
compatible = "sensirion,sps30";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
MHZ19B CO2 sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / chemical
Schema identifier ($id): "http://devicetree.org/schemas/iio/chemical/winsen,mhz19b.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Gyeyoung Baek <gye976@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "winsen,mhz19b"
vin-supply — required here #
Regulator that provides power to the sensor
Required in this object (required): "compatible", "vin-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
serial {
co2-sensor {
compatible = "winsen,mhz19b";
vin-supply = <&vdd>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD3530R and Similar DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad3530r.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kim Seer Paller <kimseer.paller@analog.com>"
The AD3530/AD3530R (8-channel) and AD3531/AD3531R (4-channel) are low-power, 16-bit, buffered voltage output digital-to-analog converters (DACs) with software-programmable gain controls, providing full-scale output spans of 2.5V or 5V for reference voltages of 2.5V. These devices operate from a single 2.7V to 5.5V supply and are guaranteed monotonic by design. The "R" variants include a 2.5V, 5ppm/°C internal reference, which is disabled by default. Datasheet can be found here: https://www.analog.com/media/en/technical-documentation/data-sheets/ad3530_ad530r.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ad3531-ad3531r.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad3530", "adi,ad3530r", "adi,ad3531", "adi,ad3531r"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 50000000
vdd-supply — required here #
Power Supply Input.
iovdd-supply — required here #
Digital Power Supply Input.
io-channels — not listed as required here #
ADC channel used to monitor internal die temperature, output voltages, and current of a selected channel via the MUXOUT pin.
Maximum number of items (maxItems): 1
ref-supply — not listed as required here #
Reference Input/Output. The voltage at the REF pin sets the full-scale range of all channels. If not provided the internal reference is used and also provided on the VREF pin.
reset-gpios — not listed as required here #
Active low signal that is falling edge sensitive. When it is deasserted, the digital core initialization is performed and all DAC registers except the Interface Configuration A register are reset to their default values.
Maximum number of items (maxItems): 1
ldac-gpios — not listed as required here #
LDAC pin to be used as a hardware trigger to update the DAC channels. If not present, the DAC channels are updated by Software LDAC.
Maximum number of items (maxItems): 1
adi,range-double — not listed as required here #
Configure the output range for all channels. If the property is present, the output will range from 0V to 2Vref. If the property is not present, the output will range from 0V to Vref.
Value type (type): "boolean"
Required in this object (required): "compatible", "reg", "vdd-supply", "iovdd-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "adi,ad3530r";
reg = <0>;
spi-max-frequency = <1000000>;
vdd-supply = <&vdd>;
iovdd-supply = <&iovdd>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices AD2552R DAC device driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad3552r.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nuno Sá <nuno.sa@analog.com>"
Bindings for the Analog Devices AD3552R DAC device and similar.
Datasheet can be found here:
https://www.analog.com/media/en/technical-documentation/data-sheets/ad3541r.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad3542r.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad3551r.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad3552r.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad3541r", "adi,ad3542r", "adi,ad3551r", "adi,ad3552r"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — required here #
Maximum value (maximum): 66000000
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
ldac-gpios — not listed as required here #
LDAC pin to be used as a hardware trigger to update the DAC channels.
Maximum number of items (maxItems): 1
vref-supply — not listed as required here #
The regulator to use as an external reference. If it does not exists the internal reference will be used. External reference must be 2.5V
adi,vref-out-en — not listed as required here #
Vref I/O driven by internal vref to 2.5V. If not set, Vref pin will be floating.
Value type (type): "boolean"
adi,sdo-drive-strength — not listed as required here #
Configure SDIO0 and SDIO1 strength levels:
- 0: low SDO drive strength.
- 1: medium low SDO drive strength.
- 2: medium high SDO drive strength.
- 3: high SDO drive strength
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
io-backends — not listed as required here #
The iio backend reference. Device can be optionally connected to the "axi-ad3552r IP" fpga-based QSPI + DDR (Double Data Rate) controller to reach high speed transfers.
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^channel@([0-1])$ — name matches this regular expression #
Value type (type): "object"
Configurations of the DAC Channels
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Channel number
adi,output-range-microvolt — not listed as required here
true — No constraints added by this property rule.
custom-output-range-config — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Configuration of custom range when adi,output-range-microvolt is not present. The formulas for calculation the output voltages are Vout_fs = 2.5 + [(GainN + Offset/1024) * 2.5 * Rfbx * 1.03] Vout_zs = 2.5 - [(GainP + Offset/1024) * 2.5 * Rfbx * 1.03]
Properties and child nodes (properties)
adi,gain-offset — required here
Gain offset used in the above formula
Shared schema rule ($ref): /schemas/types.yaml#/definitions/int32
Maximum value (maximum): 511
Minimum value (minimum): -511
adi,gain-scaling-p — required here
GainP = 1 / ( 2 ^ adi,gain-scaling-p)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
adi,gain-scaling-n — required here
GainN = 1 / ( 2 ^ adi,gain-scaling-n)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
adi,rfb-ohms — required here
Feedback Resistor
Required in this object (required): "adi,gain-offset", "adi,gain-scaling-p", "adi,gain-scaling-n", "adi,rfb-ohms"
Required in this object (required): "reg"
Exactly one of these rules must match (oneOf) #
Rule 1
Required in this object (
required):"adi,output-range-microvolt"
Rule 2
Required in this object (
required):"custom-output-range-config"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@([0-1])$— name matches this regular expressionValue type (
type):"object"Properties and child nodes (
properties)
adi,output-range-microvolt— required hereVoltage output range of the channel as <minimum, maximum> Required connections: Rfb1x for: 0 to 2.5 V; 0 to 3V; 0 to 5 V; Rfb2x for: 0 to 10 V; -2.5 to 7.5V; -5 to 5 V;Exactly one of these rules must match (
oneOf)Rule 1
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Rule 2
Array item rules (
items)Item 1
Exact value (
const):-2500000Item 2
Exact value (
const):7500000Rule 3
Array item rules (
items)Item 1
Exact value (
const):-5000000Item 2
Exact value (
const):5000000Required in this object (
required):"adi,output-range-microvolt"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@([0-1])$— name matches this regular expressionValue type (
type):"object"Properties and child nodes (
properties)
adi,output-range-microvolt— not listed as required hereVoltage output range of the channel as <minimum, maximum> Required connections: Rfb1x for: 0 to 2.5 V; 0 to 5 V; Rfb2x for: 0 to 10 V; -5 to 5 V; Rfb4x for: -10 to 10VExactly one of these rules must match (
oneOf)Rule 1
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Rule 2
Array item rules (
items)Item 1
Exact value (
const):-5000000Item 2
Exact value (
const):5000000Rule 3
Array item rules (
items)Item 1
Exact value (
const):-10000000Item 2
Exact value (
const):10000000
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
channel@1— not listed as required here
false— Not permitted by this property rule.
channel@0— not listed as required hereProperties and child nodes (
properties)
reg— not listed as required hereExact value (
const):0
Required in this object (required): "compatible", "reg", "spi-max-frequency"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
ad3552r@0 {
compatible = "adi,ad3552r";
reg = <0>;
spi-max-frequency = <20000000>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
adi,output-range-microvolt = <0 10000000>;
};
channel@1 {
reg = <1>;
custom-output-range-config {
adi,gain-offset = <5>;
adi,gain-scaling-p = <1>;
adi,gain-scaling-n = <2>;
adi,rfb-ohms = <1>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2020 Analog Devices Inc.
Line 128: If adi,output-range-microvolt is missing,
Line 129: custom-output-range-config must be used
Analog Devices AD5064 and similar DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5064.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lars-Peter Clausen <lars@metafoo.de>", "Jonathan Cameron <jic23@kernel.org>"
A range of similar DAC devices with between 1 and 12 channels. Some parts have internal references, others require a single shared external reference and the remainder have a separate reference pin for each DAC.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
I2C devics
Allowed values (
enum):"adi,ad5024","adi,ad5025","adi,ad5044","adi,ad5045","adi,ad5064","adi,ad5064-1","adi,ad5065","adi,ad5628-1","adi,ad5628-2","adi,ad5648-1","adi,ad5648-2","adi,ad5666-1","adi,ad5666-2","adi,ad5668-1","adi,ad5668-2","adi,ad5668-3"
Rule 2
SPI devices
Allowed values (
enum):"adi,ad5625","adi,ad5625r-1v25","adi,ad5625r-2v5","adi,ad5627","adi,ad5627r-1v25","adi,ad5627r-2v5","adi,ad5629-1","adi,ad5629-2","adi,ad5629-3","adi,ad5645r-1v25","adi,ad5645r-2v5","adi,ad5665","adi,ad5665r-1v25","adi,ad5665r-2v5","adi,ad5667","adi,ad5667r-1v25","adi,ad5667r-2v5","adi,ad5669-1","adi,ad5669-2","adi,ad5669-3","lltc,ltc2606","lltc,ltc2607","lltc,ltc2609","lltc,ltc2616","lltc,ltc2617","lltc,ltc2619","lltc,ltc2626","lltc,ltc2627","lltc,ltc2629","lltc,ltc2631-l12","lltc,ltc2631-h12","lltc,ltc2631-l10","lltc,ltc2631-h10","lltc,ltc2631-l8","lltc,ltc2631-h8","lltc,ltc2633-l12","lltc,ltc2633-h12","lltc,ltc2633-l10","lltc,ltc2633-h10","lltc,ltc2633-l8","lltc,ltc2633-h8","lltc,ltc2635-l12","lltc,ltc2635-h12","lltc,ltc2635-l10","lltc,ltc2635-h10","lltc,ltc2635-l8","lltc,ltc2635-h8"
reg — required here #
Maximum number of items (maxItems): 1
vrefA-supply — not listed as required here #
true — No constraints added by this property rule.
vrefB-supply — not listed as required here #
true — No constraints added by this property rule.
vrefC-supply — not listed as required here #
true — No constraints added by this property rule.
vrefD-supply — not listed as required here #
true — No constraints added by this property rule.
vref-supply — not listed as required here #
true — No constraints added by this property rule.
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#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad5064-1","adi,ad5625","adi,ad5627","adi,ad5665","adi,ad5667","lltc,ltc2606","lltc,ltc2607","lltc,ltc2616","lltc,ltc2617","lltc,ltc2626","lltc,ltc2627"When the condition matches (
then) #Properties and child nodes (
properties)
vref-supply— required here
true— No constraints added by this property rule.
vrefA-supply— not listed as required here
false— Not permitted by this property rule.
vrefB-supply— not listed as required here
false— Not permitted by this property rule.
vrefC-supply— not listed as required here
false— Not permitted by this property rule.
vrefD-supply— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad5625r-1v25","adi,ad5625r-2v5","adi,ad5627r-1v25","adi,ad5627r-2v5","adi,ad5628-1","adi,ad5628-2","adi,ad5629-1","adi,ad5629-2","adi,ad5629-3","adi,ad5645r-1v25","adi,ad5645r-2v5","adi,ad5647r-1v25","adi,ad5647r-2v5","adi,ad5648-1","adi,ad5648-2","adi,ad5665r-1v25","adi,ad5665r-2v5","adi,ad5666-1","adi,ad5666-2","adi,ad5667r-1v25","adi,ad5667r-2v5","adi,ad5668-1","adi,ad5668-2","adi,ad5668-3","adi,ad5669-1","adi,ad5669-2","adi,ad5669-3","lltc,ltc2631-l12","lltc,ltc2631-h12","lltc,ltc2631-l10","lltc,ltc2631-h10","lltc,ltc2631-l8","lltc,ltc2631-h8","lltc,ltc2633-l12","lltc,ltc2633-h12","lltc,ltc2633-l10","lltc,ltc2633-h10","lltc,ltc2633-l8","lltc,ltc2633-h8","lltc,ltc2635-l12","lltc,ltc2635-h12","lltc,ltc2635-l10","lltc,ltc2635-h10","lltc,ltc2635-l8","lltc,ltc2635-h8"When the condition matches (
then) #Properties and child nodes (
properties)
vref-supply— not listed as required here
true— No constraints added by this property rule.
vrefA-supply— not listed as required here
false— Not permitted by this property rule.
vrefB-supply— not listed as required here
false— Not permitted by this property rule.
vrefC-supply— not listed as required here
false— Not permitted by this property rule.
vrefD-supply— not listed as required here
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad5024","adi,ad5044","adi,ad5064","lltc,ltc2609","lltc,ltc2619","lltc,ltc2629"When the condition matches (
then) #Properties and child nodes (
properties)
vrefA-supply— required here
true— No constraints added by this property rule.
vrefB-supply— required here
true— No constraints added by this property rule.
vrefC-supply— required here
true— No constraints added by this property rule.
vrefD-supply— required here
true— No constraints added by this property rule.
vref-supply— not listed as required here
false— Not permitted by this property rule.Required in this object (
required):"vrefA-supply","vrefB-supply","vrefC-supply","vrefD-supply"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad5025","adi,ad5045","adi,ad5065"When the condition matches (
then) #Properties and child nodes (
properties)
vrefA-supply— required here
true— No constraints added by this property rule.
vrefB-supply— required here
true— No constraints added by this property rule.
vrefC-supply— not listed as required here
false— Not permitted by this property rule.
vrefD-supply— not listed as required here
false— Not permitted by this property rule.
vref-supply— not listed as required here
false— Not permitted by this property rule.Required in this object (
required):"vrefA-supply","vrefB-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
reg = <0>;
compatible = "adi,ad5625";
vref-supply = <&dac_vref>;
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
reg = <0>;
compatible = "adi,ad5625r-1v25";
};
};
i2c {
#address-cells = <1>;
#size-cells = <0>;
dac@42 {
reg = <0x42>;
compatible = "adi,ad5024";
vrefA-supply = <&dac_vref>;
vrefB-supply = <&dac_vref>;
vrefC-supply = <&dac_vref2>;
vrefD-supply = <&dac_vref2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 104: Shared external vref, no internal reference
Line 130: Shared external vref, internal reference available
Line 188: 4 input devices, separate vrefs, no internal reference
Line 212: 2 input devices, separate vrefs, no internal reference
Analog Devices AD5360 and similar DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5360.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lars-Peter Clausen <lars@metafoo.de>", "Jonathan Cameron <jic23@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad5360", "adi,ad5361", "adi,ad5363", "adi,ad5370", "adi,ad5371", "adi,ad5372", "adi,ad5373"
reg — required here #
Maximum number of items (maxItems): 1
vref0-supply — required here #
true — No constraints added by this property rule.
vref1-supply — required here #
true — No constraints added by this property rule.
vref2-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vref0-supply", "vref1-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad5360","adi,ad5361","adi,ad5363","adi,ad5370","adi,ad5372","adi,ad5373"When the condition matches (
then) #Properties and child nodes (
properties)
vref2-supply— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
reg = <0>;
compatible = "adi,ad5371";
vref0-supply = <&dac_vref0>;
vref1-supply = <&dac_vref1>;
vref2-supply = <&dac_vref2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD5380 and similar DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5380.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lars-Peter Clausen <lars@metafoo.de>", "Jonathan Cameron <jic23@kernel.org>"
DAC devices supporting both SPI and I2C interfaces.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad5380-3", "adi,ad5380-5", "adi,ad5381-3", "adi,ad5381-5", "adi,ad5382-3", "adi,ad5382-5", "adi,ad5383-3", "adi,ad5383-5", "adi,ad5384-3", "adi,ad5384-5", "adi,ad5390-3", "adi,ad5390-5", "adi,ad5391-3", "adi,ad5391-5", "adi,ad5392-3", "adi,ad5392-5"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — not listed as required here #
If not supplied devices will use internal regulators.
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
reg = <0>;
compatible = "adi,ad5390-5";
vref-supply = <&dacvref>;
};
};
i2c {
#address-cells = <1>;
#size-cells = <0>;
dac@42 {
reg = <0x42>;
compatible = "adi,ad5380-3";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD5421 DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5421.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lars-Peter Clausen <lars@metafoo.de>", "Jonathan Cameron <jic23@kernel.org>"
AD5421 is designed for us in loop-powered, 4 mA to 20 mA smart transmitter applications. It provides a 16-bit DAC, current amplifier, voltage regulator to drive the loop and a voltage reference.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "adi,ad5421"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Fault signal.
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>;
dac@0 {
compatible = "adi,ad5421";
reg = <0>;
spi-max-frequency = <30000000>;
interrupts = <55 IRQ_TYPE_LEVEL_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD5446 and similar DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5446.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>", "Nuno Sá <nuno.sa@analog.com>"
Digital to Analog Converter devices supporting both SPI and I2C interfaces. These devices feature a range of resolutions from 8-bit to 16-bit.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
SPI DACs
Allowed values (
enum):"adi,ad5300","adi,ad5310","adi,ad5320","adi,ad5444","adi,ad5446","adi,ad5450","adi,ad5451","adi,ad5452","adi,ad5453","adi,ad5512a","adi,ad5541a","adi,ad5542","adi,ad5542a","adi,ad5543","adi,ad5553","adi,ad5600","adi,ad5601","adi,ad5611","adi,ad5621","adi,ad5641","adi,ad5620-2500","adi,ad5620-1250","adi,ad5640-2500","adi,ad5640-1250","adi,ad5660-2500","adi,ad5660-1250","adi,ad5662","ti,dac081s101","ti,dac101s101","ti,dac121s101"
Rule 2
I2C DACs
Allowed values (
enum):"adi,ad5301","adi,ad5311","adi,ad5321","adi,ad5602","adi,ad5612","adi,ad5622"
reg — required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
Reference voltage supply. If not supplied, devices with internal voltage reference will use that.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad5300","adi,ad5310","adi,ad5320","adi,ad5444","adi,ad5446","adi,ad5450","adi,ad5451","adi,ad5452","adi,ad5453","adi,ad5512a","adi,ad5541a","adi,ad5542","adi,ad5542a","adi,ad5543","adi,ad5553","adi,ad5600","adi,ad5601","adi,ad5611","adi,ad5621","adi,ad5641","adi,ad5620-2500","adi,ad5620-1250","adi,ad5640-2500","adi,ad5640-1250","adi,ad5660-2500","adi,ad5660-1250","adi,ad5662","ti,dac081s101","ti,dac101s101","ti,dac121s101"When the condition matches (
then) #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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "adi,ad5446";
reg = <0>;
vcc-supply = <&dac_vref>;
};
};
i2c {
#address-cells = <1>;
#size-cells = <0>;
dac@42 {
compatible = "adi,ad5622";
reg = <0x42>;
vcc-supply = <&dac_vref>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD5449 and similar DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5449.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lars-Peter Clausen <lars@metafoo.de>", "Jonathan Cameron <jic23@kernel.org>"
Family of multiplying DACs from Analog Devices
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad5415", "adi,ad5426", "adi,ad5429", "adi,ad5432", "adi,ad5439", "adi,ad5443", "adi,ad5449"
reg — required here #
Maximum number of items (maxItems): 1
VREF-supply — not listed as required here #
true — No constraints added by this property rule.
VREFA-supply — not listed as required here #
true — No constraints added by this property rule.
VREFB-supply — not listed as required here #
true — No constraints added by this property rule.
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#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad5415","adi,ad5426","adi,ad5432"When the condition matches (
then) #Properties and child nodes (
properties)
VREF-supply— required here
true— No constraints added by this property rule.
VREFA-supply— not listed as required here
false— Not permitted by this property rule.
VREFB-supply— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad5429","adi,ad5439","adi,ad5449"When the condition matches (
then) #Properties and child nodes (
properties)
VREF-supply— not listed as required here
false— Not permitted by this property rule.
VREFA-supply— required here
true— No constraints added by this property rule.
VREFB-supply— required here
true— No constraints added by this property rule.Required in this object (
required):"VREFA-supply","VREFB-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
reg = <0>;
compatible = "adi,ad5415";
VREF-supply = <&dac_ref>;
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
reg = <0>;
compatible = "adi,ad5429";
VREFA-supply = <&dac_refA>;
VREFB-supply = <&dac_refB>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD5501 and AD5504 DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5504.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lars-Peter Clausen <lars@metafoo.de>", "Jonathan Cameron <jic23@kernel.org>"
High voltage (up to 60V) DACs with temperature sensor alarm function
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad5501", "adi,ad5504"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Used for temperature alarm.
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
reg = <0>;
compatible = "adi,ad5504";
vcc-supply = <&dac_vcc>;
interrupts = <55 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD5592R/AD5593R DAC/ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5592r.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad5592r", "adi,ad5593r"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 30000000
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
#io-channel-cells — not listed as required here #
Exact value (const): 1
vref-supply — not listed as required here #
If not set internal 2.5V reference used.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
gpio-controller — not listed as required here #
Marks the device node as a GPIO controller.
#gpio-cells — not listed as required here #
Exact value (const): 2
The first cell is the GPIO number and the second cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>.
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"adi,ad5592r"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
spi-cpol— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^(channel@)[0-7]$ — name matches this regular expression #
Value type (type): "object"
Child node to describe a channel
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 7
adi,mode — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3, 8
Mode or function of this channel. Macros specifying the valid values can be found in <dt-bindings/iio/adi,ad5592r.h>.
The following values are currently supported:
* CH_MODE_UNUSED (the pin is unused)
* CH_MODE_ADC (the pin is ADC input)
* CH_MODE_DAC (the pin is DAC output)
* CH_MODE_DAC_AND_ADC (the pin is DAC output but can be monitored
by an ADC, since there is no disadvantage this should be
considered as the preferred DAC mode)
* CH_MODE_GPIO (the pin is registered with GPIOLIB)
adi,off-state — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
State of this channel when unused or the device gets removed. Macros specifying the valid values can be found in <dt-bindings/iio/adi,ad5592r.h>. * CH_OFFSTATE_PULLDOWN (the pin is pulled down) * CH_OFFSTATE_OUT_LOW (the pin is output low) * CH_OFFSTATE_OUT_HIGH (the pin is output high) * CH_OFFSTATE_OUT_TRISTATE (the pin is tristated output)
Required in this object (required): "reg", "adi,mode"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/iio/adi,ad5592r.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
addac@0 {
compatible = "adi,ad5592r";
#size-cells = <0>;
#address-cells = <1>;
#gpio-cells = <2>;
reg = <0>;
spi-max-frequency = <1000000>;
spi-cpol;
vref-supply = <&vref>;
reset-gpios = <&gpio0 86 0>;
gpio-controller;
channel@0 {
reg = <0>;
adi,mode = <CH_MODE_DAC>;
};
channel@1 {
reg = <1>;
adi,mode = <CH_MODE_ADC>;
};
channel@2 {
reg = <2>;
adi,mode = <CH_MODE_DAC_AND_ADC>;
};
channel@3 {
reg = <3>;
adi,mode = <CH_MODE_DAC_AND_ADC>;
adi,off-state = <CH_OFFSTATE_PULLDOWN>;
};
channel@4 {
reg = <4>;
adi,mode = <CH_MODE_UNUSED>;
adi,off-state = <CH_OFFSTATE_PULLDOWN>;
};
channel@5 {
reg = <5>;
adi,mode = <CH_MODE_GPIO>;
adi,off-state = <CH_OFFSTATE_PULLDOWN>;
};
channel@6 {
reg = <6>;
adi,mode = <CH_MODE_GPIO>;
adi,off-state = <CH_OFFSTATE_PULLDOWN>;
};
channel@7 {
reg = <7>;
adi,mode = <CH_MODE_GPIO>;
adi,off-state = <CH_OFFSTATE_PULLDOWN>;
};
};
ad5593r@10 {
compatible = "adi,ad5593r";
#size-cells = <0>;
#address-cells = <1>;
#gpio-cells = <2>;
reg = <0x10>;
gpio-controller;
channel@0 {
reg = <0>;
adi,mode = <CH_MODE_DAC>;
adi,off-state = <CH_OFFSTATE_PULLDOWN>;
};
channel@1 {
reg = <1>;
adi,mode = <CH_MODE_ADC>;
adi,off-state = <CH_OFFSTATE_PULLDOWN>;
};
channel@2 {
reg = <2>;
adi,mode = <CH_MODE_DAC_AND_ADC>;
adi,off-state = <CH_OFFSTATE_PULLDOWN>;
};
channel@6 {
reg = <6>;
adi,mode = <CH_MODE_GPIO>;
adi,off-state = <CH_OFFSTATE_PULLDOWN>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD5624r and similar DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5624r.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad5624r3", "adi,ad5644r3", "adi,ad5664r3", "adi,ad5624r5", "adi,ad5644r5", "adi,ad5664r5"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — not listed as required here #
If not present, internal reference will be used.
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
reg = <0>;
compatible = "adi,ad5624r3";
vref-supply = <&vref>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD5360 and similar SPI DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5686.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>", "Jonathan Cameron <jic23@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad5310r", "adi,ad5672r", "adi,ad5674r", "adi,ad5676", "adi,ad5676r", "adi,ad5679r", "adi,ad5681r", "adi,ad5682r", "adi,ad5683", "adi,ad5683r", "adi,ad5684", "adi,ad5684r", "adi,ad5685r", "adi,ad5686", "adi,ad5686r"
reg — required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
If not supplied the internal reference is used.
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
reg = <0>;
compatible = "adi,ad5310r";
vcc-supply = <&dac_vref0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD5696 and similar I2C multi-channel DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5696.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Auchter <michael.auchter@ni.com>"
Binding for Analog Devices AD5696 and similar multi-channel DACs
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad5311r", "adi,ad5337r", "adi,ad5338r", "adi,ad5671r", "adi,ad5675r", "adi,ad5691r", "adi,ad5692r", "adi,ad5693", "adi,ad5693r", "adi,ad5694", "adi,ad5694r", "adi,ad5695r", "adi,ad5696", "adi,ad5696r"
reg — required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
The regulator supply for DAC reference voltage.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
ad5696: dac@0 {
compatible = "adi,ad5696";
reg = <0>;
vcc-supply = <&dac_vref>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices AD5755 Multi-Channel DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5755.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sean Nyekjaer <sean.nyekjaer@prevas.dk>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad5755", "adi,ad5755-1", "adi,ad5757", "adi,ad5735", "adi,ad5737"
reg — required here #
Maximum number of items (maxItems): 1
spi-cpha — not listed as required here #
Either this or spi-cpol but not both.
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
adi,ext-dc-dc-compenstation-resistor — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set if the hardware have an external resistor and thereby bypasses the internal compensation resistor.
adi,dc-dc-phase — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Valid values for DC DC Phase control is:
0: All dc-to-dc converters clock on the same edge.
1: Channel A and Channel B clock on the same edge,
Channel C and Channel D clock on opposite edges.
2: Channel A and Channel C clock on the same edge,
Channel B and Channel D clock on opposite edges.
3: Channel A, Channel B, Channel C, and Channel D
clock 90 degrees out of phase from each other.
adi,dc-dc-freq-hz — not listed as required here #
Allowed values (enum): 250000, 410000, 650000
adi,dc-dc-max-microvolt — not listed as required here #
Maximum allowed Vboost voltage supplied by the dc-to-dc converter.
Allowed values (enum): 23000000, 24500000, 27000000, 29500000
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg"
Properties matching a name pattern (patternProperties) #
^channel@[0-7]$ — name matches this regular expression #
Value type (type): "object"
Child node to describe a channel
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
adi,mode — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 6
Valid values for DAC modes is: 0: 0 V to 5 V voltage range. 1: 0 V to 10 V voltage range. 2: Plus minus 5 V voltage range. 3: Plus minus 10 V voltage range. 4: 4 mA to 20 mA current range. 5: 0 mA to 20 mA current range. 6: 0 mA to 24 mA current range.
adi,ext-current-sense-resistor — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set if the hardware has an external current sense resistor
adi,enable-voltage-overrange — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable voltage overrange
adi,slew — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array of slewrate settings should contain 3 fields: 1: Should be either 0 or 1 in order to enable or disable slewrate. 2: Slew rate update frequency 3: Slew step size
Array item rules (items)
Item 1
Item 2
Allowed values (
enum):64000,32000,16000,8000,4000,2000,1000,500,250,125,64,32,16,8,4,0
Item 3
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Exactly one of these rules must match (oneOf) #
Rule 1 #
Rule 2 #
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "adi,ad5755";
reg = <0>;
spi-max-frequency = <1000000>;
spi-cpha;
adi,dc-dc-phase = <0>;
adi,dc-dc-freq-hz = <410000>;
adi,dc-dc-max-microvolt = <23000000>;
channel@0 {
reg = <0>;
adi,mode = <4>;
adi,ext-current-sense-resistor;
adi,slew = <0 64000 1>;
};
channel@1 {
reg = <1>;
adi,mode = <4>;
adi,ext-current-sense-resistor;
adi,slew = <0 64000 1>;
};
channel@2 {
reg = <2>;
adi,mode = <4>;
adi,ext-current-sense-resistor;
adi,slew = <0 64000 1>;
};
channel@3 {
reg = <3>;
adi,mode = <4>;
adi,ext-current-sense-resistor;
adi,slew = <0 64000 1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD5758 DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5758.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <Michael.Hennerich@analog.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "adi,ad5758"
reg — required here #
Maximum number of items (maxItems): 1
spi-cpha — required here #
true — No constraints added by this property rule.
adi,dc-dc-mode — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 3
Mode of operation of the dc-to-dc converter Dynamic Power Control (DPC) In this mode, the AD5758 circuitry senses the output voltage and dynamically regulates the supply voltage, VDPC+, to meet compliance requirements plus an optimized headroom voltage for the output buffer.
Programmable Power Control (PPC) In this mode, the VDPC+ voltage is user-programmable to a fixed level that needs to accommodate the maximum output load required.
The output of the DAC core is either converted to a current or voltage output at the VIOUT pin. Only one mode can be enabled at any one time.
The following values are currently supported: * 1: DPC current mode * 2: DPC voltage mode * 3: PPC current mode
Depending on the selected output mode (voltage or current) one of the two properties must be present:
adi,range-microvolt — not listed as required here #
Voltage output range specified as <minimum, maximum>
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Rule 2
Array item rules (
items)Item 1
Exact value (
const):-5000000Item 2
Exact value (
const):5000000
Rule 3
Array item rules (
items)Item 1
Exact value (
const):-10000000Item 2
Exact value (
const):10000000
adi,range-microamp — not listed as required here #
Current output range specified as <minimum, maximum>
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Rule 2
Array item rules (
items)Item 1
Exact value (
const):4Item 2
Exact value (
const):24000
Rule 3
Array item rules (
items)Item 1
Exact value (
const):-20000Item 2
Exact value (
const):20000
Rule 4
Array item rules (
items)Item 1
Exact value (
const):-24000Item 2
Exact value (
const):24000
Rule 5
Array item rules (
items)Item 1
Exact value (
const):-1000Item 2
Exact value (
const):22000
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
adi,dc-dc-ilim-microamp — not listed as required here #
Allowed values (enum): 150000, 200000, 250000, 300000, 350000, 400000
The dc-to-dc converter current limit.
adi,slew-time-us — not listed as required here #
The time it takes for the output to reach the full scale [uS]
Minimum value (minimum): 133
Maximum value (maximum): 1023984375
Required in this object (required): "compatible", "reg", "spi-cpha", "adi,dc-dc-mode"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
adi,dc-dc-mode— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
adi,range-microvolt— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
adi,range-microamp— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "adi,ad5758";
reg = <0>;
spi-max-frequency = <1000000>;
spi-cpha;
reset-gpios = <&gpio 22 0>;
adi,dc-dc-mode = <2>;
adi,range-microvolt = <0 10000000>;
adi,dc-dc-ilim-microamp = <200000>;
adi,slew-time-us = <125000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD5761 and similar DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5761.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ricardo Ribalda <ribalda@kernel.org>", "Jonathan Cameron <jic23@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad5721", "adi,ad5721r", "adi,ad5761", "adi,ad5761r"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — not listed as required here #
If not supplied, internal reference will be used.
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#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "adi,ad5721";
reg = <0>;
vref-supply = <&dac_vref>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD5744 and AD5764 DAC families
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5764.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lars-Peter Clausen <lars@metafoo.de>", "Jonathan Cameron <jic23@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad5744", "adi,ad5744r", "adi,ad5764", "adi,ad5764r"
reg — required here #
Maximum number of items (maxItems): 1
vrefAB-supply — not listed as required here #
true — No constraints added by this property rule.
vrefCD-supply — not listed as required here #
true — No constraints added by this property rule.
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#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Required in this object (
required):"vrefAB-supply","vrefCD-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "adi,ad5744";
reg = <0>;
vrefAB-supply = <&dac_vref>;
vrefCD-supply = <&dac_vref>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD5766 DAC device driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5766.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nuno Sá <nuno.sa@analog.com>"
Bindings for the Analog Devices AD5766 current DAC device. Datasheet can be
found here:
https://www.analog.com/media/en/technical-documentation/data-sheets/ad5766-5767.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad5766", "adi,ad5767"
output-range-microvolts — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/int32-array
Maximum number of items (maxItems): 2
Select converter output range.
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — required here #
Maximum value (maximum): 1000000
spi-cpol — required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
GPIO spec for the RESET pin. As the line is active low, it should be marked GPIO_ACTIVE_LOW.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "output-range-microvolts", "reg", "spi-max-frequency", "spi-cpol"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
ad5766@0 {
compatible = "adi,ad5766";
output-range-microvolts = <(-5000000) 5000000>;
reg = <0>;
spi-cpol;
spi-max-frequency = <1000000>;
reset-gpios = <&gpio 22 0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2020 Analog Devices Inc.
Analog Devices AD5770R DAC device driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5770r.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcelo Schmitt <marcelo.schmitt@analog.com>", "Nuno Sá <nuno.sa@analog.com>"
Bindings for the Analog Devices AD5770R current DAC device. Datasheet can be
found here:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD5770R.pdf
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "adi,ad5770r"
reg — required here #
Maximum number of items (maxItems): 1
avdd-supply — not listed as required here #
AVdd voltage supply. Represents two different supplies in the datasheet that are in fact the same.
iovdd-supply — not listed as required here #
Voltage supply for the chip interface.
vref-supply — not listed as required here #
Specify the voltage of the external reference used. Available reference options are 1.25 V or 2.5 V. If no external reference declared then the device will use the internal reference of 1.25 V.
adi,external-resistor — not listed as required here #
Specify if an external 2.5k ohm resistor is used. If not specified the device will use an internal 2.5k ohm resistor. The precision resistor is used for reference current generation.
Value type (type): "boolean"
reset-gpios — not listed as required here #
GPIO spec for the RESET pin. If specified, it will be asserted during driver probe.
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
channel@0 — required here #
Represents an external channel which are connected to the DAC. Channel 0 can act both as a current source and sink.
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
This represents the channel number.
Exact value (const): 0
adi,range-microamp — not listed as required here
Output range of the channel.
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Exact value (
const):300000
Rule 2
Array item rules (
items)Item 1
Exact value (
const):-60000Item 2
Exact value (
const):0
Rule 3
Array item rules (
items)Item 1
Exact value (
const):-60000Item 2
Exact value (
const):300000
channel@1 — required here #
Represents an external channel which are connected to the DAC.
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
This represents the channel number.
Exact value (const): 1
adi,range-microamp — not listed as required here
Output range of the channel.
Array item rules (items)
Item 1
Exact value (
const):0
Item 2
channel@2 — required here #
Represents an external channel which are connected to the DAC.
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
This represents the channel number.
Exact value (const): 2
adi,range-microamp — not listed as required here
Output range of the channel.
Array item rules (items)
Item 1
Exact value (
const):0
Item 2
Properties matching a name pattern (patternProperties) #
^channel@([3-5])$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Represents the external channels which are connected to the DAC.
Properties and child nodes (properties) #
reg — not listed as required here
This represents the channel number.
Minimum value (minimum): 3
Maximum value (maximum): 5
adi,range-microamp — not listed as required here
Output range of the channel.
Array item rules (items)
Item 1
Exact value (
const):0
Item 2
Required in this object (required): "reg", "channel@0", "channel@1", "channel@2", "channel@3", "channel@4", "channel@5"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
ad5770r@0 {
compatible = "adi,ad5770r";
reg = <0>;
spi-max-frequency = <1000000>;
vref-supply = <&vref>;
adi,external-resistor;
reset-gpios = <&gpio 22 0>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
adi,range-microamp = <0 300000>;
};
channel@1 {
reg = <1>;
adi,range-microamp = <0 140000>;
};
channel@2 {
reg = <2>;
adi,range-microamp = <0 55000>;
};
channel@3 {
reg = <3>;
adi,range-microamp = <0 45000>;
};
channel@4 {
reg = <4>;
adi,range-microamp = <0 45000>;
};
channel@5 {
reg = <5>;
adi,range-microamp = <0 45000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2020 Analog Devices Inc.
Analog Devices AD5791 and similar DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5791.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>", "Jonathan Cameron <jic23@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad5760", "adi,ad5780", "adi,ad5781", "adi,ad5790", "adi,ad5791"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
vss-supply — required here #
true — No constraints added by this property rule.
vcc-supply — required here #
Supply that powers the chip.
iovcc-supply — required here #
Supply for the digital interface.
vrefp-supply — required here #
Positive referance input voltage range. From 5v to (vdd - 2.5)
vrefn-supply — required here #
Negative referance input voltage range. From (vss + 2.5) to 0.
adi,rbuf-gain2-en — not listed as required here #
Specify to allow an external amplifier to be connected in a gain of two configuration.
Value type (type): "boolean"
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
clear-gpios — not listed as required here #
Maximum number of items (maxItems): 1
ldac-gpios — not listed as required here #
LDAC pin to be used as a hardware trigger to update the DAC channels.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "vdd-supply", "vss-supply", "vcc-supply", "iovcc-supply", "vrefp-supply", "vrefn-supply"
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/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "adi,ad5791";
reg = <0>;
vss-supply = <&dac_vss>;
vdd-supply = <&dac_vdd>;
vcc-supply = <&dac_vcc>;
iovcc-supply = <&dac_iovcc>;
vrefp-supply = <&dac_vrefp>;
vrefn-supply = <&dac_vrefn>;
reset-gpios = <&gpio_bd 16 GPIO_ACTIVE_LOW>;
clear-gpios = <&gpio_bd 17 GPIO_ACTIVE_LOW>;
ldac-gpios = <&gpio_bd 18 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
AD7293 12-Bit Power Amplifier Current Controller with ADC, DACs, Temperature and Current Sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad7293.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Antoniu Miclaus <antoniu.miclaus@analog.com>"
Power Amplifier drain current controller containing functionality for general-purpose monitoring and control of current, voltage, and temperature, integrated into a single chip solution with an SPI-compatible interface.
https://www.analog.com/en/products/ad7293.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad7293"
avdd-supply — required here #
true — No constraints added by this property rule.
vdrive-supply — required here #
true — No constraints added by this property rule.
vrefin-supply — not listed as required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 1000000
Required in this object (required): "compatible", "reg", "avdd-supply", "vdrive-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
ad7293@0 {
compatible = "adi,ad7293";
reg = <0>;
spi-max-frequency = <1000000>;
avdd-supply = <&avdd>;
vdrive-supply = <&vdrive>;
reset-gpios = <&gpio 10 0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices AD7303 DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad7303.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lars-Peter Clausen <lars@metafoo.de>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "adi,ad7303"
reg — required here #
Maximum number of items (maxItems): 1
Vdd-supply — required here #
Used to calculate output channel scalling if REF-supply not specified.
REF-supply — not listed as required here #
If not provided, Vdd/2 is used as the reference voltage.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 30000000
Required in this object (required): "compatible", "reg", "Vdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@4 {
compatible = "adi,ad7303";
reg = <4>;
spi-max-frequency = <10000000>;
Vdd-supply = <&vdd_supply>;
REF-supply = <&vref_supply>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD8460 DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad8460.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Mariel Tinaco <mariel.tinaco@analog.com>"
Analog Devices AD8460 110 V High Voltage, 1 A High Current, Arbitrary Waveform Generator with Integrated 14-Bit High Speed DAC https://www.analog.com/media/en/technical-documentation/data-sheets/ad8460.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad8460"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
dmas — not listed as required here #
Maximum number of items (maxItems): 1
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
spi-max-frequency — not listed as required here #
Maximum value (maximum): 20000000
hvcc-supply — required here #
Positive high voltage power supply line
hvee-supply — required here #
Negative high voltage power supply line
vcc-5v-supply — required here #
Low voltage power supply
vref-5v-supply — required here #
Reference voltage for analog low voltage
dvdd-3p3v-supply — required here #
Digital supply bypass
avdd-3p3v-supply — required here #
Analog supply bypass
refio-1p2v-supply — required here #
Drive voltage in the range of 1.2V maximum to as low as low as 0.12V through the REF_IO pin to adjust full scale output span
adi,external-resistor-ohms — not listed as required here #
Specify value of external resistor connected to FS_ADJ pin to establish internal HVDAC's reference current I_REF
Minimum value (minimum): 2000
Maximum value (maximum): 20000
Default value (default): 2000
adi,range-microvolt — not listed as required here #
Voltage output range specified as <minimum, maximum>
Array item rules (items) #
Item 1
Minimum value (
minimum):-55000000Maximum value (
maximum):0Default value (
default):0
Item 2
Minimum value (
minimum):0Maximum value (
maximum):55000000Default value (
default):0
adi,range-microamp — not listed as required here #
Current output range specified as <minimum, maximum>
Array item rules (items) #
Item 1
Minimum value (
minimum):-1000000Maximum value (
maximum):0Default value (
default):0
Item 2
Minimum value (
minimum):0Maximum value (
maximum):1000000Default value (
default):0
adi,max-millicelsius — not listed as required here #
Overtemperature threshold
Minimum value (minimum): 0
Maximum value (maximum): 150000
Default value (default): 0
shutdown-reset-gpios — not listed as required here #
Corresponds to SDN_RESET pin. To exit shutdown or sleep mode, pulse SDN_RESET HIGH, then leave LOW.
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Manual Power On Reset (POR). Pull this GPIO pin LOW and then HIGH to reset all digital registers to default
Maximum number of items (maxItems): 1
shutdown-gpios — not listed as required here #
Corresponds to SDN_IO pin. Shutdown may be initiated by the user, by pulsing SDN_IO high. To exit shutdown, pulse SDN_IO low, then float.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "hvcc-supply", "hvee-supply", "vcc-5v-supply", "vref-5v-supply", "dvdd-3p3v-supply", "avdd-3p3v-supply", "refio-1p2v-supply"
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/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "adi,ad8460";
reg = <0>;
spi-max-frequency = <8000000>;
dmas = <&tx_dma 0>;
dma-names = "tx";
shutdown-reset-gpios = <&gpio 86 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio 91 GPIO_ACTIVE_LOW>;
shutdown-gpios = <&gpio 88 GPIO_ACTIVE_HIGH>;
clocks = <&sync_ext_clk>;
hvcc-supply = <&hvcc>;
hvee-supply = <&hvee>;
vcc-5v-supply = <&vcc_5>;
vref-5v-supply = <&vref_5>;
dvdd-3p3v-supply = <&dvdd_3_3>;
avdd-3p3v-supply = <&avdd_3_3>;
refio-1p2v-supply = <&refio_1_2>;
adi,external-resistor-ohms = <2000>;
adi,range-microvolt = <(-40000000) 40000000>;
adi,range-microamp = <0 50000>;
adi,max-millicelsius = <50000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2024 Analog Devices Inc.
Analog Devices AD8801 and AD8803 DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad8801.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad8801", "adi,ad8803"
reg — required here #
Maximum number of items (maxItems): 1
vrefh-supply — required here #
true — No constraints added by this property rule.
vrefl-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vrefh-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"adi,ad8803"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
vrefl-supply— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "adi,ad8803";
reg = <0>;
vrefl-supply = <&dac_vrefl>;
vrefh-supply = <&dac_vrefh>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD9739A RF DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad9739a.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dragos Bogdan <dragos.bogdan@analog.com>", "Nuno Sa <nuno.sa@analog.com>"
The AD9739A is a 14-bit, 2.5 GSPS high performance RF DACs that are capable of synthesizing wideband signals from dc up to 3 GHz.
https://www.analog.com/media/en/technical-documentation/data-sheets/ad9737a_9739a.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad9739a"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-3p3-supply — required here #
3.3V Digital input supply.
vdd-supply — required here #
1.8V Digital input supply.
vdda-supply — required here #
3.3V Analog input supply.
vddc-supply — required here #
1.8V Clock input supply.
vref-supply — not listed as required here #
Input/Output reference supply.
io-backends — required here #
Maximum number of items (maxItems): 1
adi,full-scale-microamp — not listed as required here #
This property represents the DAC full scale current.
Minimum value (minimum): 8580
Maximum value (maximum): 31700
Default value (default): 20000
Required in this object (required): "compatible", "reg", "clocks", "io-backends", "vdd-3p3-supply", "vdd-supply", "vdda-supply", "vddc-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "adi,ad9739a";
reg = <0>;
clocks = <&dac_clk>;
io-backends = <&iio_backend>;
vdd-3p3-supply = <&vdd_3_3>;
vdd-supply = <&vdd>;
vdda-supply = <&vdd_3_3>;
vddc-supply = <&vdd>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices AXI DAC IP core
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,axi-dac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nuno Sa <nuno.sa@analog.com>"
Analog Devices Generic AXI DAC IP core for interfacing a DAC device with a high speed serial (JESD204B/C) or source synchronous parallel interface (LVDS/CMOS). Usually, some other interface type (i.e SPI) is used as a control interface for the actual DAC, while this IP core will interface to the data-lines of the DAC and handle the streaming of data from memory via DMA into the DAC.
https://wiki.analog.com/resources/fpga/docs/axi_dac_ip https://analogdevicesinc.github.io/hdl/library/axi_ad3552r/index.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,axi-dac-9.1.b", "adi,axi-ad3552r"
reg — required here #
Maximum number of items (maxItems): 1
dmas — required here #
Maximum number of items (maxItems): 1
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"s_axi_aclk"
Item 2
Exact value (
const):"dac_clk"
Minimum number of items (minItems): 1
#io-backend-cells — not listed as required here #
Exact value (const): 0
Required in this object (required): "compatible", "dmas", "reg", "clocks"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"adi,axi-ad3552r"When the condition matches (
then) #Shared schema rule (
$ref):/schemas/spi/spi-controller.yaml#Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2
clock-names— required hereMinimum number of items (
minItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required hereMaximum number of items (
maxItems):1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
dac@44a00000 {
compatible = "adi,axi-dac-9.1.b";
reg = <0x44a00000 0x10000>;
dmas = <&tx_dma 0>;
dma-names = "tx";
#io-backend-cells = <0>;
clocks = <&clkc 15>;
clock-names = "s_axi_aclk";
};
#include <dt-bindings/gpio/gpio.h>
axi_dac: spi@44a70000 {
compatible = "adi,axi-ad3552r";
reg = <0x44a70000 0x1000>;
dmas = <&dac_tx_dma 0>;
dma-names = "tx";
#io-backend-cells = <0>;
clocks = <&clkc 15>, <&ref_clk>;
clock-names = "s_axi_aclk", "dac_clk";
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "adi,ad3552r";
reg = <0>;
reset-gpios = <&gpio0 92 GPIO_ACTIVE_HIGH>;
io-backends = <&axi_dac>;
spi-max-frequency = <20000000>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
adi,output-range-microvolt = <(-10000000) (10000000)>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices LTC2664 DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ltc2664.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>", "Kim Seer Paller <kimseer.paller@analog.com>"
Analog Devices LTC2664 4 channel, 12-/16-Bit, +-10V DAC https://www.analog.com/media/en/technical-documentation/data-sheets/2664fa.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ltc2664"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — required here #
Maximum value (maximum): 50000000
vcc-supply — required here #
Analog Supply Voltage Input.
v-pos-supply — required here #
Positive Supply Voltage Input.
v-neg-supply — required here #
Negative Supply Voltage Input.
iovcc-supply — required here #
Digital Input/Output Supply Voltage.
ref-supply — not listed as required here #
Reference Input/Output. The voltage at the REF pin sets the full-scale range of all channels. If not provided the internal reference is used and also provided on the VREF pin.
reset-gpios — not listed as required here #
Active-low Asynchronous Clear Input. A logic low at this level-triggered input clears the part to the reset code and range determined by the hardwired option chosen using the MSPAN pins. The control registers are cleared to zero.
Maximum number of items (maxItems): 1
adi,manual-span-operation-config — not listed as required here #
This property must mimic the MSPAN pin configurations. By tying the MSPAN pins (MSP2, MSP1 and MSP0) to GND and/or VCC, any output range can be hardware-configured with different mid-scale or zero-scale reset options. The hardware configuration is latched during power on reset for proper operation. 0 - MPS2=GND, MPS1=GND, MSP0=GND (+-10V, reset to 0V) 1 - MPS2=GND, MPS1=GND, MSP0=VCC (+-5V, reset to 0V) 2 - MPS2=GND, MPS1=VCC, MSP0=GND (+-2.5V, reset to 0V) 3 - MPS2=GND, MPS1=VCC, MSP0=VCC (0V to 10, reset to 0V) 4 - MPS2=VCC, MPS1=GND, MSP0=GND (0V to 10V, reset to 5V) 5 - MPS2=VCC, MPS1=GND, MSP0=VCC (0V to 5V, reset to 0V) 6 - MPS2=VCC, MPS1=VCC, MSP0=GND (0V to 5V, reset to 2.5V) 7 - MPS2=VCC, MPS1=VCC, MSP0=VCC (0V to 5V, reset to 0V, enables SoftSpan)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7
Default value (default): 7
io-channels — not listed as required here #
ADC channel to monitor voltages and temperature at the MUXOUT pin.
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^channel@[0-3]$ — name matches this regular expression #
Shared schema rule ($ref): dac.yaml
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
The channel number representing the DAC output channel.
Maximum value (maximum): 3
adi,toggle-mode — not listed as required here
Set the channel as a toggle enabled channel. Toggle operation enables fast switching of a DAC output between two different DAC codes without any SPI transaction.
Value type (type): "boolean"
output-range-microvolt — not listed as required here
This property is only allowed when SoftSpan is enabled. If not present, [0, 5000000] is the default output range.
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Rule 2
Array item rules (
items)Item 1
Exact value (
const):-5000000Item 2
Exact value (
const):5000000
Rule 3
Array item rules (
items)Item 1
Exact value (
const):-10000000Item 2
Exact value (
const):10000000
Rule 4
Array item rules (
items)Item 1
Exact value (
const):-2500000Item 2
Exact value (
const):2500000
Required in this object (required): "reg"
All of these rules must match (allOf) #
Rule 1
Condition (
if)This rule must not match (
not)Properties and child nodes (
properties)
adi,manual-span-operation-config— not listed as required hereExact value (
const):7When the condition matches (
then)Properties matching a name pattern (
patternProperties)
^channel@[0-3]$— name matches this regular expressionProperties and child nodes (
properties)
output-range-microvolt— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg", "spi-max-frequency", "vcc-supply", "iovcc-supply", "v-pos-supply", "v-neg-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "adi,ltc2664";
reg = <0>;
spi-max-frequency = <10000000>;
vcc-supply = <&vcc>;
iovcc-supply = <&vcc>;
ref-supply = <&vref>;
v-pos-supply = <&vpos>;
v-neg-supply = <&vneg>;
io-channels = <&adc 0>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
adi,toggle-mode;
output-range-microvolt = <(-10000000) 10000000>;
};
channel@1 {
reg = <1>;
output-range-microvolt = <0 10000000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices LTC2672 DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ltc2672.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>", "Kim Seer Paller <kimseer.paller@analog.com>"
Analog Devices LTC2672 5 channel, 12-/16-Bit, 300mA DAC https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2672.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ltc2672"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — required here #
Maximum value (maximum): 50000000
vcc-supply — required here #
Analog Supply Voltage Input.
v-neg-supply — required here #
Negative Supply Voltage Input.
vdd0-supply — not listed as required here #
Positive Supply Voltage Input for DAC OUT0.
vdd1-supply — not listed as required here #
Positive Supply Voltage Input for DAC OUT1.
vdd2-supply — not listed as required here #
Positive Supply Voltage Input for DAC OUT2.
vdd3-supply — not listed as required here #
Positive Supply Voltage Input for DAC OUT3.
vdd4-supply — not listed as required here #
Positive Supply Voltage Input for DAC OUT4.
iovcc-supply — required here #
Digital Input/Output Supply Voltage.
ref-supply — not listed as required here #
Reference Input/Output. The voltage at the REF pin sets the full-scale range of all channels. If not provided the internal reference is used and also provided on the VREF pin.
reset-gpios — not listed as required here #
Active Low Asynchronous Clear Input. A logic low at this level triggered input clears the device to the default reset code and output range, which is zero-scale with the outputs off. The control registers are cleared to zero.
Maximum number of items (maxItems): 1
adi,rfsadj-ohms — not listed as required here #
If FSADJ is tied to VCC, an internal RFSADJ (20 kΩ) is selected, which results in nominal output ranges. When an external resistor of 19 kΩ to 41 kΩ can be used instead by connecting the resistor between FSADJ and GND it controls the scaling of the ranges, and the internal resistor is automatically disconnected.
Minimum value (minimum): 19000
Maximum value (maximum): 41000
Default value (default): 20000
io-channels — not listed as required here #
ADC channel to monitor voltages and currents at the MUX pin.
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^channel@[0-4]$ — name matches this regular expression #
Shared schema rule ($ref): dac.yaml
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
The channel number representing the DAC output channel.
Maximum value (maximum): 4
adi,toggle-mode — not listed as required here
Set the channel as a toggle enabled channel. Toggle operation enables fast switching of a DAC output between two different DAC codes without any SPI transaction.
Value type (type): "boolean"
output-range-microamp — required here
Array item rules (items)
Item 1
Exact value (
const):0
Item 2
Allowed values (
enum):3125000,6250000,12500000,25000000,50000000,100000000,200000000,300000000
Required in this object (required): "reg", "output-range-microamp"
Required in this object (required): "compatible", "reg", "spi-max-frequency", "vcc-supply", "iovcc-supply", "v-neg-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "adi,ltc2672";
reg = <0>;
spi-max-frequency = <10000000>;
vcc-supply = <&vcc>;
iovcc-supply = <&vcc>;
ref-supply = <&vref>;
v-neg-supply = <&vneg>;
io-channels = <&adc 0>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
adi,toggle-mode;
output-range-microamp = <0 3125000>;
};
channel@1 {
reg = <1>;
output-range-microamp = <0 6250000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices LTC2688 DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ltc2688.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nuno Sá <nuno.sa@analog.com>"
Analog Devices LTC2688 16 channel, 16 bit, +-15V DAC https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2688.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ltc2688"
reg — required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
Analog Supply Voltage Input.
iovcc-supply — not listed as required here #
Digital Input/Output Supply Voltage.
vref-supply — not listed as required here #
Reference Input/Output. The voltage at the REF pin sets the full-scale range of all channels. If not provided the internal reference is used and also provided on the VREF pin".
clr-gpios — not listed as required here #
If specified, it will be asserted during driver probe. As the line is active low, it should be marked GPIO_ACTIVE_LOW.
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^channel@([0-9]|1[0-5])$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
The channel number representing the DAC output channel.
Maximum value (maximum): 15
adi,toggle-mode — not listed as required here
Set the channel as a toggle enabled channel. Toggle operation enables fast switching of a DAC output between two different DAC codes without any SPI transaction.
Value type (type): "boolean"
adi,output-range-microvolt — not listed as required here
Specify the channel output full scale range.
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Rule 2
Array item rules (
items)Item 1
Exact value (
const):-5000000Item 2
Exact value (
const):5000000
Rule 3
Array item rules (
items)Item 1
Exact value (
const):-10000000Item 2
Exact value (
const):10000000
Rule 4
Array item rules (
items)Item 1
Exact value (
const):-15000000Item 2
Exact value (
const):15000000
adi,overrange — not listed as required here
Enable 5% overrange over the selected full scale range.
Value type (type): "boolean"
clocks — not listed as required here
Maximum number of items (maxItems): 1
adi,toggle-dither-input — not listed as required here
Selects the TGPx pin to be associated with this channel. This setting only makes sense for toggle or dither enabled channels. If @adi,toggle-mode is not set and this property is given, the channel is assumed to be a dither capable channel. Note that multiple channels can be mapped to the same pin. If this setting is given, the respective @clock must also be provided. Mappings between this and input pins 0 - TGP1 1 - TGP2 2 - TGP3
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
Property dependencies (dependencies) #
adi,toggle-dither-input — applies when this property is present
Also requires: "clocks"
Required in this object (required): "reg"
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
ltc2688: ltc2688@0 {
compatible = "adi,ltc2688";
reg = <0>;
vcc-supply = <&vcc>;
iovcc-supply = <&vcc>;
vref-supply = <&vref>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
adi,toggle-mode;
adi,overrange;
};
channel@1 {
reg = <1>;
adi,output-range-microvolt = <0 10000000>;
clocks = <&clock_tgp3>;
adi,toggle-dither-input = <2>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices MAX22007 DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,max22007.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Janani Sunil <janani.sunil@analog.com>"
The MAX22007 is a quad-channel, 12-bit digital-to-analog converter (DAC) with integrated precision output amplifiers and current output capability. Each channel can be independently configured for voltage or current output. Datasheet available at https://www.analog.com/en/products/max22007.html
Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "adi,max22007"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 500000
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
vdd-supply — required here #
Low-Voltage Power Supply from +2.7V to +5.5V.
hvdd-supply — required here #
Positive High-Voltage Power Supply from +8V to (HVSS +24V) for the Output Channels.
hvss-supply — not listed as required here #
Optional Negative High-Voltage Power Supply from -2V to 0V for the Output Channels. For most applications HVSS can be connected to GND (0V), but for applications requiring output down to true 0V or 0mA, connect to a -2V supply.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Active low GPIO.
Properties matching a name pattern (patternProperties) #
^channel@[0-3]$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/iio/dac/dac.yaml#
Value type (type): "object"
Represents the external channels which are connected to the DAC.
Properties and child nodes (properties) #
reg — required here
Channel number
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):3
adi,ch-func — required here
Channel output type. Use CH_FUNC_VOLTAGE_OUTPUT for voltage output or CH_FUNC_CURRENT_OUTPUT for current output.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Required in this object (required): "reg", "adi,ch-func"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "vdd-supply", "hvdd-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/iio/addac/adi,ad74413r.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "adi,max22007";
reg = <0>;
spi-max-frequency = <500000>;
reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
vdd-supply = <&vdd_reg>;
hvdd-supply = <&hvdd_reg>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
adi,ch-func = <CH_FUNC_VOLTAGE_OUTPUT>;
};
channel@1 {
reg = <1>;
adi,ch-func = <CH_FUNC_CURRENT_OUTPUT>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
IIO Common Properties for DAC Channels
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/dac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
A few properties are defined in a common way for DAC channels.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^channel(@[0-9a-f]+)?$"
A channel index should match reg.
reg — not listed as required here #
Maximum number of items (maxItems): 1
label — not listed as required here #
Unique name to identify which channel this is.
output-range-microamp — not listed as required here #
Maximum number of items (maxItems): 2
Minimum number of items (minItems): 2
Specify the channel output full scale range in microamperes.
output-range-microvolt — not listed as required here #
Maximum number of items (maxItems): 2
Minimum number of items (minItems): 2
Specify the channel output full scale range in microvolts.
At least one of these rules must match (anyOf) #
Rule 1 #
Exactly one of these rules must match (
oneOf) #Rule 1
Required in this object (
required):"reg","output-range-microamp"Rule 2
Required in this object (
required):"reg","output-range-microvolt"
Rule 2 #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
DAC emulation using a digital potentiometer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/dpot-dac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Rosin <peda@axentia.se>"
It is assumed that the dpot is used as a voltage divider between the current dpot wiper setting and the maximum resistance of the dpot. The divided voltage is provided by a vref regulator.
.------.
.-----------. | |
| vref |--' .---.
| regulator |--. | |
'-----------' | | d |
| | p |
| | o | wiper
| | t |<---------+
| | |
| '---' dac output voltage
| |
'------+------------+
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "dpot-dac"
vref-supply — required here #
Regulator supplying the voltage divider.
io-channels — required here #
Maximum number of items (maxItems): 1
Channel node of the dpot to be used for the voltage division.
io-channel-names — required here #
Exact value (const): "dpot"
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "vref-supply", "io-channels", "io-channel-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
dac {
compatible = "dpot-dac";
vref-supply = <®_3v3>;
io-channels = <&dpot 0>;
io-channel-names = "dpot";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Freescale vf610 Digital to Analog Converter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/fsl,vf610-dac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sanchayan Maity <maitysanchayan@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "fsl,vf610-dac"
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
clock-names — required here #
Exact value (const): "dac"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-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/irq.h>
#include <dt-bindings/clock/vf610-clock.h>
bus@40000000 {
compatible = "fsl,aips-bus", "simple-bus";
reg = <0x40000000 0x00070000>;
ranges;
#address-cells = <1>;
#size-cells = <1>;
dac@400cc000 {
compatible = "fsl,vf610-dac";
reg = <0x400cc000 0x1000>;
interrupts = <55 IRQ_TYPE_LEVEL_HIGH>;
clock-names = "dac";
clocks = <&clks VF610_CLK_DAC0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Linear Technology Micropower octal 8-Bit and 10-Bit DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/lltc,ltc1660.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcus Folkesson <marcus.folkesson@gmail.com>"
Bindings for the Linear Technology Micropower octal 8-Bit and 10-Bit DAC. Datasheet can be found here: https://www.analog.com/media/en/technical-documentation/data-sheets/166560fa.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "lltc,ltc1660", "lltc,ltc1665"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 5000000
vref-supply — required here #
Phandle to the external reference voltage supply.
Required in this object (required): "compatible", "reg", "vref-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "lltc,ltc1660";
reg = <0>;
spi-max-frequency = <5000000>;
vref-supply = <&vref_reg>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
Line 2: Copyright 2019 Marcus Folkesson <marcus.folkesson@gmail.com>
Linear Technology LTC263x 12-/10-/8-Bit Rail-to-Rail DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/lltc,ltc2632.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
Bindings for the Linear Technology LTC2632/2634/2636 DAC Datasheet can be found here: https://www.analog.com/media/en/technical-documentation/data-sheets/LTC263[246].pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "lltc,ltc2632-l12", "lltc,ltc2632-l10", "lltc,ltc2632-l8", "lltc,ltc2632-h12", "lltc,ltc2632-h10", "lltc,ltc2632-h8", "lltc,ltc2634-l12", "lltc,ltc2634-l10", "lltc,ltc2634-l8", "lltc,ltc2634-h12", "lltc,ltc2634-h10", "lltc,ltc2634-h8", "lltc,ltc2636-l12", "lltc,ltc2636-l10", "lltc,ltc2636-l8", "lltc,ltc2636-h12", "lltc,ltc2636-h10", "lltc,ltc2636-h8"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 2000000
vref-supply — not listed as required here #
Phandle to the external reference voltage supply. This should only be set if there is an external reference voltage connected to the VREF pin. If the property is not set the internal reference is used.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
vref: regulator-vref {
compatible = "regulator-fixed";
regulator-name = "vref-ltc2632";
regulator-min-microvolt = <1250000>;
regulator-max-microvolt = <1250000>;
regulator-always-on;
};
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "lltc,ltc2632-l12";
reg = <0>; /* CS0 */
spi-max-frequency = <1000000>;
vref-supply = <&vref>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
Maxim Integrated DS4422/DS4424 7-bit Sink/Source Current DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/maxim,ds4424.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ismail Kose <ihkose@gmail.com>"
Datasheet publicly available at: https://datasheets.maximintegrated.com/en/ds/DS4422-DS4424.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxim,ds4422", "maxim,ds4424"
reg — required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
dac@10 {
compatible = "maxim,ds4424";
reg = <0x10>; /* When A0, A1 pins are ground */
vcc-supply = <&vcc_3v3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Maxim Integrated MAX5522 Dual 10-bit Voltage-Output SPI DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/maxim,max5522.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Angelo Dureghello <angelo.dureghello@timesys.com>", "Jonathan Cameron <jic23@kernel.org>"
Datasheet available at: https://www.analog.com/en/products/max5522.html
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "maxim,max5522"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vrefin-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vrefin-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "maxim,max5522";
reg = <0>;
vrefin-supply = <&vref>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Maxim max5821 dual 10-bit DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/maxim,max5821.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Philippe Reynes <tremyfr@yahoo.fr>"
Datasheet publicly available at: https://datasheets.maximintegrated.com/en/ds/MAX5821.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "maxim,max5821"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vref-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
dac@38 {
compatible = "maxim,max5821";
reg = <0x38>;
vref-supply = <®_max5821>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Microchip mcp4725 and mcp4726 DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/microchip,mcp4725.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tomas Novotny <tomas@novotny.cz>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,mcp4725", "microchip,mcp4726"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Provides both power and acts as the reference supply on the mcp4725. For the mcp4726 it will be used as the reference voltage if vref-supply is not provided.
vref-supply — not listed as required here #
Vref pin is used as a voltage reference when this supply is specified.
microchip,vref-buffered — not listed as required here #
Value type (type): "boolean"
Enable buffering of the external Vref pin. This boolean is not valid without the vref-supply. Quoting the datasheet: This is offered in cases where the reference voltage does not have the current capability not to drop its voltage when connected to the internal resistor ladder circuit.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"microchip,mcp4725"When the condition matches (
then) #Properties and child nodes (
properties)
vref-supply— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"microchip,mcp4726"When the condition matches (
then) #At least one of these rules must match (
anyOf)Rule 1
Rule 2
Rule 3 #
Condition (
if) #This rule must not match (
not)When the condition matches (
then) #Properties and child nodes (
properties)
microchip,vref-buffered— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
mcp4725@60 {
compatible = "microchip,mcp4725";
reg = <0x60>;
vdd-supply = <&vdac_vdd>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Microchip MCP4728 DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/microchip,mcp4728.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrea Collamati <andrea.collamati@gmail.com>"
MCP4728 is a quad channel, 12-bit voltage output Digital-to-Analog Converter with non-volatile memory and I2C compatible Serial Interface. https://www.microchip.com/en-us/product/mcp4728
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "microchip,mcp4728"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
Provides both power and acts as the reference supply on the MCP4728 when Internal Vref is not selected.
Required in this object (required): "compatible", "reg", "vdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
dac@60 {
compatible = "microchip,mcp4728";
reg = <0x60>;
vdd-supply = <&vdac_vdd>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Microchip MCP47F(E/V)B(0/1/2)(1/2/4/8) DAC with I2C Interface Families
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/microchip,mcp47feb02.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ariana Lazar <ariana.lazar@microchip.com>"
Datasheet for MCP47FEB01, MCP47FEB11, MCP47FEB21, MCP47FEB02, MCP47FEB12,
MCP47FEB22 can be found here:
https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/20005375A.pdf
Datasheet for MCP47FVB01, MCP47FVB11, MCP47FVB21, MCP47FVB02, MCP47FVB12,
MCP47FVB22 can be found here:
https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/20005405A.pdf
Datasheet for MCP47FEB04, MCP47FEB14, MCP47FEB24, MCP47FEB08, MCP47FEB18,
MCP47FEB28, MCP47FVB04, MCP47FVB14, MCP47FVB24, MCP47FVB08, MCP47FVB18,
MCP47FVB28 can be found here:
https://ww1.microchip.com/downloads/aemDocuments/documents/MSLD/ProductDocuments/DataSheets/MCP47FXBX48-Data-Sheet-DS200006368A.pdf
+------------+--------------+-------------+-------------+------------+ | Device | Resolution | Channels | Vref number | Memory | |------------|--------------|-------------|-------------|------------| | MCP47FEB01 | 8-bit | 1 | 1 | EEPROM | | MCP47FEB11 | 10-bit | 1 | 1 | EEPROM | | MCP47FEB21 | 12-bit | 1 | 1 | EEPROM | |------------|--------------|-------------|-------------|------------| | MCP47FEB02 | 8-bit | 2 | 1 | EEPROM | | MCP47FEB12 | 10-bit | 2 | 1 | EEPROM | | MCP47FEB22 | 12-bit | 2 | 1 | EEPROM | |------------|--------------|-------------|-------------|------------| | MCP47FVB01 | 8-bit | 1 | 1 | RAM | | MCP47FVB11 | 10-bit | 1 | 1 | RAM | | MCP47FVB21 | 12-bit | 1 | 1 | RAM | |------------|--------------|-------------|-------------|------------| | MCP47FVB02 | 8-bit | 2 | 1 | RAM | | MCP47FVB12 | 10-bit | 2 | 1 | RAM | | MCP47FVB22 | 12-bit | 2 | 1 | RAM | |------------|--------------|-------------|-------------|------------| | MCP47FVB04 | 8-bit | 4 | 2 | RAM | | MCP47FVB14 | 10-bit | 4 | 2 | RAM | | MCP47FVB24 | 12-bit | 4 | 2 | RAM | |------------|--------------|-------------|-------------|------------| | MCP47FVB08 | 8-bit | 8 | 2 | RAM | | MCP47FVB18 | 10-bit | 8 | 2 | RAM | | MCP47FVB28 | 12-bit | 8 | 2 | RAM | |------------|--------------|-------------|-------------|------------| | MCP47FEB04 | 8-bit | 4 | 2 | EEPROM | | MCP47FEB14 | 10-bit | 4 | 2 | EEPROM | | MCP47FEB24 | 12-bit | 4 | 2 | EEPROM | |------------|--------------|-------------|-------------|------------| | MCP47FEB08 | 8-bit | 8 | 2 | EEPROM | | MCP47FEB18 | 10-bit | 8 | 2 | EEPROM | | MCP47FEB28 | 12-bit | 8 | 2 | EEPROM | +------------+--------------+-------------+-------------+------------+
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,mcp47feb01", "microchip,mcp47feb11", "microchip,mcp47feb21", "microchip,mcp47feb02", "microchip,mcp47feb12", "microchip,mcp47feb22", "microchip,mcp47fvb01", "microchip,mcp47fvb11", "microchip,mcp47fvb21", "microchip,mcp47fvb02", "microchip,mcp47fvb12", "microchip,mcp47fvb22", "microchip,mcp47fvb04", "microchip,mcp47fvb14", "microchip,mcp47fvb24", "microchip,mcp47fvb08", "microchip,mcp47fvb18", "microchip,mcp47fvb28", "microchip,mcp47feb04", "microchip,mcp47feb14", "microchip,mcp47feb24", "microchip,mcp47feb08", "microchip,mcp47feb18", "microchip,mcp47feb28"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
vdd-supply — required here #
Provides power to the chip and it could be used as reference voltage. The voltage is used to calculate scale. For parts without EEPROM at powerup this will be the selected as voltage reference.
vref-supply — not listed as required here #
Vref pin (it could be found as Vref0 into the datasheet) may be used as a voltage reference when this supply is specified. The internal reference will be taken into account for voltage reference besides VDD if this supply does not exist.
This supply will be voltage reference for the following outputs:
- for single-channel device: Vout0;
- for dual-channel device: Vout0, Vout1;
- for quad-channel device: Vout0, Vout2;
- for octal-channel device: Vout0, Vout2, Vout6, Vout8;
vref1-supply — not listed as required here #
Vref1 pin may be used as a voltage reference when this supply is specified. The internal reference will be taken into account for voltage reference beside VDD if this supply does not exist.
This supply will be voltage reference for the following outputs:
- for quad-channel device: Vout1, Vout3;
- for octal-channel device: Vout1, Vout3, Vout5, Vout7;
lat-gpios — not listed as required here #
LAT pin to be used as a hardware trigger to synchronously update the DAC channels. The pin is active Low. It could be also found as LAT0 in datasheet.
Maximum number of items (maxItems): 1
lat1-gpios — not listed as required here #
LAT1 pin to be used as a hardware trigger to synchronously update the odd DAC channels on devices with 4 and 8 channels. The pin is active Low.
Maximum number of items (maxItems): 1
microchip,vref-buffered — not listed as required here #
Value type (type): "boolean"
Enable buffering of the external Vref/Vref0 pin in cases where the external reference voltage does not have sufficient current capability in order not to drop it’s voltage when connected to the internal resistor ladder circuit.
microchip,vref1-buffered — not listed as required here #
Value type (type): "boolean"
Enable buffering of the external Vref1 pin in cases where the external reference voltage does not have sufficient current capability in order not to drop it’s voltage when connected to the internal resistor ladder circuit.
Properties matching a name pattern (patternProperties) #
^channel@[0-7]$ — name matches this regular expression #
Shared schema rule ($ref): dac.yaml
Value type (type): "object"
Voltage output channel.
Properties and child nodes (properties) #
reg — required here
The channel number.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
label — not listed as required here
Unique name to identify which channel this is.
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "vdd-supply"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"microchip,mcp47feb01","microchip,mcp47feb11","microchip,mcp47feb21","microchip,mcp47fvb01","microchip,mcp47fvb11","microchip,mcp47fvb21"When the condition matches (
then) #Properties and child nodes (
properties)
lat1-gpios— not listed as required here
false— Not permitted by this property rule.
vref1-supply— not listed as required here
false— Not permitted by this property rule.
microchip,vref1-buffered— not listed as required here
false— Not permitted by this property rule.
channel@0— not listed as required hereProperties and child nodes (
properties)
reg— not listed as required hereExact value (
const):0Properties matching a name pattern (
patternProperties)
^channel@[1-7]$— name matches this regular expression
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"microchip,mcp47feb02","microchip,mcp47feb12","microchip,mcp47feb22","microchip,mcp47fvb02","microchip,mcp47fvb12","microchip,mcp47fvb22"When the condition matches (
then) #Properties and child nodes (
properties)
lat1-gpios— not listed as required here
false— Not permitted by this property rule.
vref1-supply— not listed as required here
false— Not permitted by this property rule.
microchip,vref1-buffered— not listed as required here
false— Not permitted by this property rule.Properties matching a name pattern (
patternProperties)
^channel@[0-1]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required here
^channel@[2-7]$— name matches this regular expression
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"microchip,mcp47fvb04","microchip,mcp47fvb14","microchip,mcp47fvb24","microchip,mcp47feb04","microchip,mcp47feb14","microchip,mcp47feb24"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-3]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereAllowed values (
enum):0,1,2,3
^channel@[4-7]$— name matches this regular expression
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"microchip,mcp47fvb08","microchip,mcp47fvb18","microchip,mcp47fvb28","microchip,mcp47feb08","microchip,mcp47feb18","microchip,mcp47feb28"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-7]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required here
Rule 5 #
Condition (
if) #This rule must not match (
not)When the condition matches (
then) #Properties and child nodes (
properties)
microchip,vref-buffered— not listed as required here
false— Not permitted by this property rule.
Rule 6 #
Condition (
if) #This rule must not match (
not)When the condition matches (
then) #Properties and child nodes (
properties)
microchip,vref1-buffered— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "microchip,mcp47feb02";
reg = <0>;
vdd-supply = <&vdac_vdd>;
vref-supply = <&vref_reg>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
label = "Adjustable_voltage_ch0";
};
channel@1 {
reg = <0x1>;
label = "Adjustable_voltage_ch1";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Microchip MCP4821 and similar DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/microchip,mcp4821.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Supports MCP48x1 (single channel) and MCP48x2 (dual channel) series of DACs. Device supports simplex communication over SPI in Mode 0 and Mode 3.
+---------+--------------+-------------+ | Device | Resolution | Channels | |---------|--------------|-------------| | MCP4801 | 8-bit | 1 | | MCP4802 | 8-bit | 2 | | MCP4811 | 10-bit | 1 | | MCP4812 | 10-bit | 2 | | MCP4821 | 12-bit | 1 | | MCP4822 | 12-bit | 2 | +---------+--------------+-------------+
Datasheet:
MCP48x1: https://ww1.microchip.com/downloads/en/DeviceDoc/22244B.pdf
MCP48x2: https://ww1.microchip.com/downloads/en/DeviceDoc/20002249B.pdf
Maintainers (maintainers): "Anshul Dalal <anshulusr@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,mcp4801", "microchip,mcp4802", "microchip,mcp4811", "microchip,mcp4812", "microchip,mcp4821", "microchip,mcp4822"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
ldac-gpios — not listed as required here #
Active Low LDAC (Latch DAC Input) pin used to update the DAC output.
Maximum number of items (maxItems): 1
powerdown-gpios — not listed as required here #
Active Low SHDN pin used to enter the shutdown mode.
Maximum number of items (maxItems): 1
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vdd-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "microchip,mcp4821";
reg = <0>;
vdd-supply = <&vdd_regulator>;
ldac-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
powerdown-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
spi-cpha;
spi-cpol;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Microchip MCP4902, MCP4912 and MPC4922 dual output SPI DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/microchip,mcp4922.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>", "Michael Welling <mwelling@ieee.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,mcp4902", "microchip,mcp4912", "microchip,mcp4921", "microchip,mcp4922"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vref-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "microchip,mcp4912";
reg = <0>;
vref-supply = <&dac_vref>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
NXP LPC1850 DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/nxp,lpc1850-dac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Supports the DAC found on the LPC1850 SoC.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nxp,lpc1850-dac"
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
vref-supply — required here #
true — No constraints added by this property rule.
resets — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "vref-supply", "resets"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/lpc18xx-ccu.h>
soc {
#address-cells = <1>;
#size-cells = <1>;
dac: dac@400e1000 {
compatible = "nxp,lpc1850-dac";
reg = <0x400e1000 0x1000>;
interrupts = <0>;
clocks = <&ccu1 CLK_APB3_DAC>;
vref-supply = <®_vdda>;
resets = <&rgu 42>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ROHM BD79700, BD79701, BD79702 and BD79703 DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/rohm,bd79703.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matti Vaittinen <mazziesaccount@gmail.com>"
The ROHM BD7970[0,1,2,3] are 8-bit DACs. The BD79700 has 2 channels, BD79701 3 channels, BD79702 4 channels and BD79703 has 6 channels. Datasheets for BD79702 and BD79703 can be found from https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd79702fv-lb_bd79703fv-lb-e.pdf and for the BD79700 and the BD79701 from https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd79700fvm-lb_bd79701fvm-lb-e.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "rohm,bd79700", "rohm,bd79701", "rohm,bd79702", "rohm,bd79703"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — required here #
Maximum value (maximum): 30000000
vfs-supply — not listed as required here #
The regulator to use as a full scale voltage. The voltage should be between 2.7V .. VCC. Not present on BD79700 and BD79701.
vcc-supply — required here #
The regulator supplying the operating voltage. Should be between 2.7V ... 5.5V. Is used also as a Vfs on BD79700 and BD79701.
Required in this object (required): "compatible", "reg", "spi-max-frequency", "vcc-supply"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)
When the condition matches (then) #
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "rohm,bd79703";
reg = <0>;
spi-max-frequency = <30000000>;
vcc-supply = <&vcc>;
vfs-supply = <&vref>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2024 ROHM Semiconductor.
STMicroelectronics STM32 DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/st,stm32-dac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The STM32 DAC is a 12-bit voltage output digital-to-analog converter. The DAC may be configured in 8 or 12-bit mode. It has two output channels, each with its own converter. It has built-in noise and triangle waveform generator and supports external triggers for conversions. The DAC's output buffer allows a high drive output current.
Maintainers (maintainers): "Fabrice Gasnier <fabrice.gasnier@foss.st.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "st,stm32f4-dac-core", "st,stm32h7-dac-core"
reg — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"pclk"
vref-supply — required here #
Phandle to the vref input analog reference voltage.
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
access-controllers — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "vref-supply", "#address-cells", "#size-cells"
Properties matching a name pattern (patternProperties) #
^dac@[1-2]+$ — name matches this regular expression #
Value type (type): "object"
A DAC block node should contain at least one subnode, representing an DAC instance/channel available on the machine.
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "st,stm32-dac"
reg — required here
Must be either 1 or 2, to define (single) channel in use
#io-channel-cells — required here
Exact value (const): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "#io-channel-cells"
Examples (examples) #
// Example on stm32mp157c
#include <dt-bindings/clock/stm32mp1-clks.h>
dac: dac@40017000 {
compatible = "st,stm32h7-dac-core";
reg = <0x40017000 0x400>;
clocks = <&rcc DAC12>;
clock-names = "pclk";
vref-supply = <&vref>;
#address-cells = <1>;
#size-cells = <0>;
dac@1 {
compatible = "st,stm32-dac";
#io-channel-cells = <1>;
reg = <1>;
};
dac@2 {
compatible = "st,stm32-dac";
#io-channel-cells = <1>;
reg = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments DAC082s085 and similar DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/ti,dac082s085.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
A family of Texas Instruments 8/10/12-bit 2/4-channel DACs
Maintainers (maintainers): "Lukas Wunner <lukas@wunner.de>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,dac082s085", "ti,dac102s085", "ti,dac122s085", "ti,dac084s085", "ti,dac104s085", "ti,dac124s085"
reg — required here #
Maximum number of items (maxItems): 1
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
spi-cpol — not listed as required here #
Must be either spi-cpha, or spi-cpol but not both.
vref-supply — required here #
Needed to provide output scaling.
Required in this object (required): "compatible", "reg", "vref-supply"
Exactly one of these rules must match (oneOf) #
Rule 1 #
Rule 2 #
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) #
vref_2v5_reg: regulator-vref {
compatible = "regulator-fixed";
regulator-name = "2v5";
regulator-min-microvolt = <2500000>;
regulator-max-microvolt = <2500000>;
regulator-always-on;
};
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "ti,dac082s085";
reg = <0>;
spi-max-frequency = <40000000>;
spi-cpol;
vref-supply = <&vref_2v5_reg>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments DAC5571 Family
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/ti,dac5571.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sean Nyekjaer <sean@geanix.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,dac5571", "ti,dac6571", "ti,dac7571", "ti,dac5574", "ti,dac6574", "ti,dac7574", "ti,dac5573", "ti,dac6573", "ti,dac7573", "ti,dac081c081", "ti,dac121c081"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — required here #
Reference voltage must be supplied to establish the scaling of the output voltage.
Required in this object (required): "compatible", "reg", "vref-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
dac@4c {
compatible = "ti,dac5571";
reg = <0x4c>;
vref-supply = <&vdd_supply>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments DAC5311 and similar SPI DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/ti,dac7311.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Charles-Antoine Couret <charles-antoine.couret@essensium.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,dac7311", "ti,dac6311", "ti,dac5311"
reg — required here #
Maximum number of items (maxItems): 1
vref-supply — required here #
Reference voltage must be supplied to establish the scaling of the output voltage.
Required in this object (required): "compatible", "reg", "vref-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "ti,dac7311";
reg = <0>; /* CS0 */
spi-max-frequency = <1000000>;
vref-supply = <&vdd_supply>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments DAC7512 DAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/ti,dac7512.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,dac7512"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum frequency is reduced for supply voltage of less than 3.6V
Maximum value (maximum): 30000000
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "ti,dac7512";
reg = <0>; /* CS0 */
spi-max-frequency = <1000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments DAC7612 family of DACs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/ti,dac7612.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The DAC7612 is a dual, 12-bit digital-to-analog converter (DAC) with guaranteed 12-bit monotonicity performance over the industrial temperature range. Is is programmable through an SPI interface.
Maintainers (maintainers): "Ricardo Ribalda Delgado <ricardo@ribalda.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,dac7612", "ti,dac7612u", "ti,dac7612ub"
reg — required here #
Maximum number of items (maxItems): 1
ti,loaddacs-gpios — not listed as required here #
DACs are loaded when the pin connected to this GPIO is pulled low.
Maximum number of items (maxItems): 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/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@1 {
compatible = "ti,dac7612";
reg = <0x1>;
ti,loaddacs-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ADMV8818 Digitally Tunable, High-Pass and Low-Pass Filter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / filter
Schema identifier ($id): "http://devicetree.org/schemas/iio/filter/adi,admv8818.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Antoniu Miclaus <antoniu.miclaus@analog.com>"
Fully monolithic microwave integrated circuit (MMIC) that features a digitally selectable frequency of operation. The device features four independently controlled high-pass filters (HPFs) and four independently controlled low-pass filters (LPFs) that span the 2 GHz to 18 GHz frequency range.
https://www.analog.com/en/products/admv8818.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,admv8818"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 10000000
clocks — not listed as required here #
Definition of the external clock.
Minimum number of items (minItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rf_in"
clock-output-names — not listed as required here #
Maximum number of items (maxItems): 1
#clock-cells — not listed as required here #
Exact value (const): 0
adi,lpf-margin-mhz — not listed as required here #
Sets the minimum distance between the fundamental frequency of `rf_in` and the corner frequency of the low-pass, output filter when operated in 'auto' mode. The selected low-pass corner frequency will be greater than, or equal to, `rf_in` + `lpf-margin-hz`. If not setting is found that satisfies this relationship the filter will be put into 'bypass'.
Default value (default): 0
adi,hpf-margin-mhz — not listed as required here #
Sets the minimum distance between the fundamental frequency of `rf_in` and the corner frequency of the high-pass, input filter when operated in 'auto' mode. The selected high-pass corner frequency will be less than, or equal to, `rf_in` - `hpf-margin-hz`. If not setting is found that satisfies this relationship the filter will be put into 'bypass'.
Default value (default): 0
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
admv8818@0 {
compatible = "adi,admv8818";
reg = <0>;
spi-max-frequency = <10000000>;
clocks = <&admv8818_rfin>;
clock-names = "rf_in";
adi,lpf-margin-mhz = <300>;
adi,hpf-margin-mhz = <300>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices ADF4371/ADF4372 Wideband Synthesizers
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / frequency
Schema identifier ($id): "http://devicetree.org/schemas/iio/frequency/adf4371.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcelo Schmitt <marcelo.schmitt@analog.com>", "Nuno Sá <nuno.sa@analog.com>"
Analog Devices ADF4371/ADF4372 SPI Wideband Synthesizers https://www.analog.com/media/en/technical-documentation/data-sheets/adf4371.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/adf4372.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adf4371", "adi,adf4372"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Definition of the external clock (see clock/clock-bindings.txt)
Maximum number of items (maxItems): 1
clock-names — required here #
Must be "clkin" if the input reference is single ended or "clkin-diff" if the input reference is differential.
Allowed values (enum): "clkin", "clkin-diff"
adi,mute-till-lock-en — not listed as required here #
Value type (type): "boolean"
If this property is present, then the supply current to RF8P and RF8N output stage will shut down until the ADF4371/ADF4372 achieves lock as measured by the digital lock detect circuitry.
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
frequency@0 {
compatible = "adi,adf4371";
reg = <0>;
spi-max-frequency = <1000000>;
clocks = <&adf4371_clkin>;
clock-names = "clkin";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Analog Devices ADF4350/ADF4351 wideband synthesizer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / frequency
Schema identifier ($id): "http://devicetree.org/schemas/iio/frequency/adi,adf4350.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adf4350", "adi,adf4351"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 20000000
clocks — required here #
Maximum number of items (maxItems): 1
Clock to provide CLKIN reference clock signal.
clock-names — not listed as required here #
Exact value (const): "clkin"
#clock-cells — not listed as required here #
Exact value (const): 0
clock-output-names — not listed as required here #
Maximum number of items (maxItems): 1
gpios — not listed as required here #
Maximum number of items (maxItems): 1
Lock detect GPIO.
adi,channel-spacing — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Channel spacing in Hz (influences MODULUS).
adi,power-up-frequency — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
If set the PLL tunes to this frequency (in Hz) on driver probe.
adi,reference-div-factor — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
If set the driver skips dynamic calculation and uses this default value instead.
adi,reference-doubler-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enables reference doubler.
adi,reference-div2-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enables reference divider.
adi,phase-detector-polarity-positive-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enables positive phase detector polarity. Default negative.
adi,lock-detect-precision-6ns-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enables 6ns lock detect precision. Default = 10ns.
adi,lock-detect-function-integer-n-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enables lock detect for integer-N mode. Default = factional-N mode.
adi,charge-pump-current — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Charge pump current in mA. Default = 2500mA.
adi,muxout-select — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 6
On chip multiplexer output selection. Valid values for the multiplexer output are: 0: Three-State Output (default) 1: DVDD 2: DGND 3: R-Counter output 4: N-Divider output 5: Analog lock detect 6: Digital lock detect
adi,low-spur-mode-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enables low spur mode. Default = Low noise mode.
adi,cycle-slip-reduction-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enables cycle slip reduction.
adi,charge-cancellation-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enabled charge pump charge cancellation for integer-N modes.
adi,anti-backlash-3ns-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enables 3ns antibacklash pulse width for integer-N modes.
adi,band-select-clock-mode-high-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enables faster band selection logic.
adi,12bit-clk-divider — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Clock divider value used when adi,12bit-clkdiv-mode != 0
adi,clk-divider-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
Valid values for the clkdiv mode are: 0: Clock divider off (default) 1: Fast lock enable 2: Phase resync enable
adi,aux-output-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enables auxiliary RF output.
adi,aux-output-fundamental-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Selects fundamental VCO output on the auxiliary RF output. Default = Output of RF dividers.
adi,mute-till-lock-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enables Mute-Till-Lock-Detect function.
adi,output-power — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Output power selection. Valid values for the power mode are: 0: -4dBm (default) 1: -1dBm 2: +2dBm 3: +5dBm
adi,aux-output-power — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Auxiliary output power selection. Valid values for the power mode are: 0: -4dBm (default) 1: -1dBm 2: +2dBm 3: +5dBm
Required in this object (required): "compatible", "reg", "clocks"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
pll@4 {
compatible = "adi,adf4351";
reg = <4>;
spi-max-frequency = <10000000>;
clocks = <&clk0_ad9523 9>;
clock-names = "clkin";
adi,channel-spacing = <10000>;
adi,power-up-frequency = <2400000000>;
adi,phase-detector-polarity-positive-enable;
adi,charge-pump-current = <2500>;
adi,output-power = <3>;
adi,mute-till-lock-enable;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ADF4377 Microwave Wideband Synthesizer with Integrated VCO
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / frequency
Schema identifier ($id): "http://devicetree.org/schemas/iio/frequency/adi,adf4377.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Antoniu Miclaus <antoniu.miclaus@analog.com>", "Dragos Bogdan <dragos.bogdan@analog.com>"
The ADF4377 is a high performance, ultralow jitter, dual output integer-N phased locked loop (PLL) with integrated voltage controlled oscillator (VCO) ideally suited for data converter and mixed signal front end (MxFE) clock applications.
https://www.analog.com/en/products/adf4377.html https://www.analog.com/en/products/adf4378.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adf4377", "adi,adf4378"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 10000000
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
External clock that provides reference input frequency.
Array item rules (items) #
Item 1
Exact value (
const):"ref_in"
#clock-cells — not listed as required here #
Exact value (const): 0
clock-output-names — not listed as required here #
Maximum number of items (maxItems): 1
chip-enable-gpios — not listed as required here #
GPIO that controls the Chip Enable Pin.
Maximum number of items (maxItems): 1
clk1-enable-gpios — not listed as required here #
GPIO that controls the Enable Clock 1 Output Buffer Pin.
Maximum number of items (maxItems): 1
clk2-enable-gpios — not listed as required here #
GPIO that controls the Enable Clock 2 Output Buffer Pin.
Maximum number of items (maxItems): 1
adi,muxout-select — not listed as required here #
On chip multiplexer output selection. high_z - MUXOUT Pin set to high-Z. lock_detect - MUXOUT Pin set to lock detector output. muxout_low - MUXOUT Pin set to low. f_div_rclk_2 - MUXOUT Pin set to fDIV_RCLK/2. f_div_nclk_2 - MUXOUT Pin set to fDIV_NCLK/2. muxout_high - MUXOUT Pin set to high.
Allowed values (enum): "high_z", "lock_detect", "muxout_low", "f_div_rclk_2", "f_div_nclk_2", "muxout_high"
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clk2-enable-gpios— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
frequency@0 {
compatible = "adi,adf4377";
reg = <0>;
spi-max-frequency = <10000000>;
clocks = <&adf4377_ref_in>;
clock-names = "ref_in";
#clock-cells = <0>;
clock-output-names = "adf4377";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
ADMFM2000 Dual Microwave Down Converter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / frequency
Schema identifier ($id): "http://devicetree.org/schemas/iio/frequency/adi,admfm2000.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kim Seer Paller <kimseer.paller@analog.com>"
Dual microwave down converter module with input RF and LO frequency ranges from 0.5 to 32 GHz and an output IF frequency range from 0.1 to 8 GHz. It consists of a LNA, mixer, IF filter, DSA, and IF amplifier for each down conversion path.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,admfm2000"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^channel@[0-1]$ — name matches this regular expression #
Value type (type): "object"
Represents a channel of the device.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
The channel number.
Minimum value (minimum): 0
Maximum value (maximum): 1
adi,mixer-mode — not listed as required here
Enable mixer mode for the channel. It downconverts RF between 5 GHz and 32 GHz to IF between 0.5 GHz and 8 GHz. If not present, the channel is in direct IF mode which bypasses the mixer and downconverts RF between 2 GHz and 8 GHz to IF between 0.5 GHz and 8 GHz.
Value type (type): "boolean"
switch-gpios — required here
GPIOs to select the RF path for the channel. The same state of CTRL-A and CTRL-B GPIOs is not permitted. CTRL-A CTRL-B CH1 Status CH2 Status 1 0 Direct IF mode Mixer mode 0 1 Mixer mode Direct IF mode
Array item rules (items)
Item 1
CTRL-A GPIO
Item 2
CTRL-B GPIO
attenuation-gpios — required here
Choice of attenuation: DSA-V4 DSA-V3 DSA-V2 DSA-V1 DSA-V0 1 1 1 1 1 0 dB 1 1 1 1 0 -1 dB 1 1 1 0 1 -2 dB 1 1 0 1 1 -4 dB 1 0 1 1 1 -8 dB 0 1 1 1 1 -16 dB 0 0 0 0 0 -31 dB
Array item rules (items)
Item 1
DSA-V0 GPIO
Item 2
DSA-V1 GPIO
Item 3
DSA-V2 GPIO
Item 4
DSA-V3 GPIO
Item 5
DSA-V4 GPIO
Required in this object (required): "reg", "switch-gpios", "attenuation-gpios"
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
converter {
compatible = "adi,admfm2000";
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
switch-gpios = <&gpio 1 GPIO_ACTIVE_LOW>,
<&gpio 2 GPIO_ACTIVE_HIGH>;
attenuation-gpios = <&gpio 17 GPIO_ACTIVE_LOW>,
<&gpio 22 GPIO_ACTIVE_LOW>,
<&gpio 23 GPIO_ACTIVE_LOW>,
<&gpio 24 GPIO_ACTIVE_LOW>,
<&gpio 25 GPIO_ACTIVE_LOW>;
};
channel@1 {
reg = <1>;
adi,mixer-mode;
switch-gpios = <&gpio 3 GPIO_ACTIVE_LOW>,
<&gpio 4 GPIO_ACTIVE_HIGH>;
attenuation-gpios = <&gpio 0 GPIO_ACTIVE_LOW>,
<&gpio 5 GPIO_ACTIVE_LOW>,
<&gpio 6 GPIO_ACTIVE_LOW>,
<&gpio 16 GPIO_ACTIVE_LOW>,
<&gpio 26 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright 2024 Analog Devices Inc.
ADMV1013 Microwave Upconverter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / frequency
Schema identifier ($id): "http://devicetree.org/schemas/iio/frequency/adi,admv1013.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Antoniu Miclaus <antoniu.miclaus@analog.com>"
Wideband, microwave upconverter optimized for point to point microwave radio designs operating in the 24 GHz to 44 GHz frequency range.
https://www.analog.com/en/products/admv1013.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,admv1013"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 1000000
clocks — required here #
Definition of the external clock.
Minimum number of items (minItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"lo_in"
vcm-supply — required here #
Analog voltage regulator.
vcc-drv-supply — required here #
RF Driver voltage regulator.
vcc2-drv-supply — required here #
RF predriver voltage regulator.
vcc-vva-supply — required here #
VVA Control Circuit voltage regulator.
vcc-amp1-supply — required here #
RF Amplifier 1 voltage regulator.
vcc-amp2-supply — required here #
RF Amplifier 2 voltage regulator.
vcc-env-supply — required here #
Envelope Detector voltage regulator.
vcc-bg-supply — required here #
Mixer Chip Band Gap Circuit voltage regulator.
vcc-bg2-supply — required here #
VGA Chip Band Gap Circuit voltage regulator.
vcc-mixer-supply — required here #
Mixer voltage regulator.
vcc-quad-supply — required here #
Quadruppler voltage regulator.
adi,detector-enable — not listed as required here #
Enable the Envelope Detector available at output pins VENV_P and VENV_N. Disable to reduce power consumption.
Value type (type): "boolean"
adi,input-mode — not listed as required here #
Select the input mode. iq - in-phase quadrature (I/Q) input if - complex intermediate frequency (IF) input
Allowed values (enum): "iq", "if"
adi,quad-se-mode — not listed as required here #
Switch the LO path from differential to single-ended operation. se-neg - Single-Ended Mode, Negative Side Disabled. se-pos - Single-Ended Mode, Positive Side Disabled. diff - Differential Mode.
Allowed values (enum): "se-neg", "se-pos", "diff"
#clock-cells — not listed as required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "vcm-supply", "vcc-drv-supply", "vcc2-drv-supply", "vcc-vva-supply", "vcc-amp1-supply", "vcc-amp2-supply", "vcc-env-supply", "vcc-bg-supply", "vcc-bg2-supply", "vcc-mixer-supply", "vcc-quad-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
admv1013@0{
compatible = "adi,admv1013";
reg = <0>;
spi-max-frequency = <1000000>;
clocks = <&admv1013_lo>;
clock-names = "lo_in";
vcm-supply = <&vcm>;
vcc-drv-supply = <&vcc_drv>;
vcc2-drv-supply = <&vcc2_drv>;
vcc-vva-supply = <&vcc_vva>;
vcc-amp1-supply = <&vcc_amp1>;
vcc-amp2-supply = <&vcc_amp2>;
vcc-env-supply = <&vcc_env>;
vcc-bg-supply = <&vcc_bg>;
vcc-bg2-supply = <&vcc_bg2>;
vcc-mixer-supply = <&vcc_mixer>;
vcc-quad-supply = <&vcc_quad>;
adi,quad-se-mode = "diff";
adi,detector-enable;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
ADMV1014 Microwave Downconverter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / frequency
Schema identifier ($id): "http://devicetree.org/schemas/iio/frequency/adi,admv1014.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Antoniu Miclaus <antoniu.miclaus@analog.com>"
Wideband, microwave downconverter optimized for point to point microwave radio designs operating in the 24 GHz to 44 GHz frequency range.
https://www.analog.com/en/products/admv1014.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,admv1014"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 1000000
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"lo_in"
External clock that provides the Local Oscillator input.
vcm-supply — required here #
Common-mode voltage regulator.
vcc-if-bb-supply — required here #
BB and IF supply voltage regulator.
vcc-vga-supply — required here #
RF Amplifier supply voltage regulator.
vcc-vva-supply — required here #
VVA Control Circuit supply voltage regulator.
vcc-lna-3p3-supply — required here #
Low Noise Amplifier 3.3V supply voltage regulator.
vcc-lna-1p5-supply — required here #
Low Noise Amplifier 1.5V supply voltage regulator.
vcc-bg-supply — required here #
Band Gap Circuit supply voltage regulator.
vcc-quad-supply — required here #
Quadruple supply voltage regulator.
vcc-mixer-supply — required here #
Mixer supply voltage regulator.
adi,input-mode — not listed as required here #
Select the input mode. iq - in-phase quadrature (I/Q) input if - complex intermediate frequency (IF) input
Allowed values (enum): "iq", "if"
adi,detector-enable — not listed as required here #
Digital Rx Detector Enable. The Square Law Detector output is available at output pin VDET.
Value type (type): "boolean"
adi,p1db-compensation-enable — not listed as required here #
Turn on bits to optimize P1dB.
Value type (type): "boolean"
adi,quad-se-mode — not listed as required here #
Switch the LO path from differential to single-ended operation. se-neg - Single-Ended Mode, Negative Side Disabled. se-pos - Single-Ended Mode, Positive Side Disabled. diff - Differential Mode.
Allowed values (enum): "se-neg", "se-pos", "diff"
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "vcm-supply", "vcc-if-bb-supply", "vcc-vga-supply", "vcc-vva-supply", "vcc-lna-3p3-supply", "vcc-lna-1p5-supply", "vcc-bg-supply", "vcc-quad-supply", "vcc-mixer-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
converter@0 {
compatible = "adi,admv1014";
reg = <0>;
spi-max-frequency = <1000000>;
clocks = <&admv1014_lo>;
clock-names = "lo_in";
vcm-supply = <&vcm>;
vcc-if-bb-supply = <&vcc_if_bb>;
vcc-vga-supply = <&vcc_vga>;
vcc-vva-supply = <&vcc_vva>;
vcc-lna-3p3-supply = <&vcc_lna_3p3>;
vcc-lna-1p5-supply = <&vcc_lna_1p5>;
vcc-bg-supply = <&vcc_bg>;
vcc-quad-supply = <&vcc_quad>;
vcc-mixer-supply = <&vcc_mixer>;
adi,quad-se-mode = "diff";
adi,detector-enable;
adi,p1db-compensation-enable;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
ADMV4420 K Band Downconverter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / frequency
Schema identifier ($id): "http://devicetree.org/schemas/iio/frequency/adi,admv4420.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nuno Sá <nuno.sa@analog.com>"
The ADMV4420 is a highly integrated, double balanced, active mixer with an integrated fractional-N synthesizer, ideally suited for next generation K band satellite communications
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,admv4420"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 1000000
adi,lo-freq-khz — not listed as required here #
LO Frequency
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
adi,ref-ext-single-ended-en — not listed as required here #
External reference selected.
Value type (type): "boolean"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
mixer@0 {
compatible = "adi,admv4420";
reg = <0>;
spi-max-frequency = <1000000>;
adi,lo-freq-khz = <16750000>;
adi,ref-ext-single-ended-en;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ADRF6780 Microwave Upconverter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / frequency
Schema identifier ($id): "http://devicetree.org/schemas/iio/frequency/adi,adrf6780.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Antoniu Miclaus <antoniu.miclaus@analog.com>"
Wideband, microwave upconverter optimized for point to point microwave radio designs operating in the 5.9 GHz to 23.6 GHz frequency range.
https://www.analog.com/en/products/adrf6780.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adrf6780"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 1000000
clocks — required here #
Definition of the external clock.
Minimum number of items (minItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"lo_in"
clock-output-names — not listed as required here #
Maximum number of items (maxItems): 1
adi,vga-buff-en — not listed as required here #
RF Variable Gain Amplifier Buffer Enable. Gain is controlled by the voltage on the VATT pin.
Value type (type): "boolean"
adi,lo-buff-en — not listed as required here #
Local Oscillator Amplifier Enable. Disable to put the part in a power down state.
Value type (type): "boolean"
adi,if-mode-en — not listed as required here #
Intermediate Frequency Mode Enable. Either IF Mode or I/Q Mode can be enabled at a time.
Value type (type): "boolean"
adi,iq-mode-en — not listed as required here #
I/Q Mode Enable. Either IF Mode or I/Q Mode can be enabled at a time.
Value type (type): "boolean"
adi,lo-x2-en — not listed as required here #
Double the Local Oscillator output frequency from the Local Oscillator Input Frequency. Either LOx1 or LOx2 can be enabled at a time.
Value type (type): "boolean"
adi,lo-ppf-en — not listed as required here #
Local Oscillator input frequency equal to the Local Oscillator output frequency (LO x1). Either LOx1 or LOx2 can be enabled at a time.
Value type (type): "boolean"
adi,lo-en — not listed as required here #
Enable additional cirtuitry in the LO chain. Disable to put the part in a power down state.
Value type (type): "boolean"
adi,uc-bias-en — not listed as required here #
Enable all bias circuitry thourghout the entire part. Disable to put the part in a power down state.
Value type (type): "boolean"
adi,lo-sideband — not listed as required here #
Switch to the Lower LO Sideband. By default the Upper LO sideband is enabled.
Value type (type): "boolean"
adi,vdet-out-en — not listed as required here #
VDET Output Select Enable. Expose the RF detector output to the VDET external pin.
Value type (type): "boolean"
#clock-cells — not listed as required here #
Exact value (const): 0
Property dependencies (dependencies) #
adi,lo-x2-en — applies when this property is present #
Also requires: "adi,lo-en"
adi,lo-ppf-en — applies when this property is present #
Also requires: "adi,lo-en"
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adrf6780@0 {
compatible = "adi,adrf6780";
reg = <0>;
spi-max-frequency = <1000000>;
clocks = <&adrf6780_lo>;
clock-names = "lo_in";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices ADXRS290 Dual-Axis MEMS Gyroscope
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / gyroscope
Schema identifier ($id): "http://devicetree.org/schemas/iio/gyroscope/adi,adxrs290.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nishant Malpani <nish.malpani25@gmail.com>"
Bindings for the Analog Devices ADXRS290 dual-axis MEMS gyroscope device. https://www.analog.com/media/en/technical-documentation/data-sheets/ADXRS290.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "adi,adxrs290"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — required here #
Maximum value (maximum): 5000000
spi-cpol — required here #
true — No constraints added by this property rule.
spi-cpha — required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "spi-max-frequency", "spi-cpol", "spi-cpha"
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>;
gyro@0 {
compatible = "adi,adxrs290";
reg = <0>;
spi-max-frequency = <5000000>;
spi-cpol;
spi-cpha;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2020 Analog Devices Inc.
Bosch BMG160 triaxial rotation sensor (gyroscope)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / gyroscope
Schema identifier ($id): "http://devicetree.org/schemas/iio/gyroscope/bosch,bmg160.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "H. Nikolaus Schaller <hns@goldelico.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "bosch,bmg160", "bosch,bmi055_gyro", "bosch,bmi088_gyro"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vddio-supply — not listed as required here #
true — No constraints added by this property rule.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 10000000
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Should be configured with type IRQ_TYPE_EDGE_RISING. If two interrupts are provided, expected order is INT1 and INT2.
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
gyroscope@69 {
compatible = "bosch,bmg160";
reg = <0x69>;
interrupt-parent = <&gpio6>;
interrupts = <18 IRQ_TYPE_EDGE_RISING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Invensense ITG-3200 Gyroscope
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / gyroscope
Schema identifier ($id): "http://devicetree.org/schemas/iio/gyroscope/invensense,itg3200.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Triple-axis, digital output gyroscope with a three 16-bit analog-to-digital converters (ADCs) for digitizing the gyro outputs, a user-selectable internal low-pass filter bandwidth, and a Fast-Mode I2C.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "invensense,itg3200"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vlogic-supply — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
mount-matrix — not listed as required here #
an optional 3x3 mounting rotation matrix.
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ext_clock"
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
gyroscope@68 {
compatible = "invensense,itg3200";
reg = <0x68>;
interrupt-parent = <&gpio2>;
interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Invensense MPU-3050 Gyroscope
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / gyroscope
Schema identifier ($id): "http://devicetree.org/schemas/iio/gyroscope/invensense,mpu3050.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "invensense,mpu3050"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vlogic-supply — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Interrupt mapping for the trigger interrupt from the internal oscillator.
mount-matrix — not listed as required here #
true — No constraints added by this property rule.
i2c-gate — not listed as required here #
Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
The MPU-3050 will pass through and forward the I2C signals from the incoming I2C bus, alternatively drive traffic to a slave device (usually an accelerometer) on its own initiative. Therefore is supports an i2c-gate subnode.
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
gyroscope@68 {
compatible = "invensense,mpu3050";
reg = <0x68>;
interrupt-parent = <&foo>;
interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
vdd-supply = <&bar>;
vlogic-supply = <&baz>;
i2c-gate {
#address-cells = <1>;
#size-cells = <0>;
magnetometer@c {
compatible = "asahi-kasei,ak8975";
reg = <0x0c>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NXP FXAS21002C Gyroscope
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / gyroscope
Schema identifier ($id): "http://devicetree.org/schemas/iio/gyroscope/nxp,fxas21002c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rui Miguel Silva <rmfrfs@gmail.com>"
3 axis digital gyroscope device with an I2C and SPI interface. http://www.nxp.com/products/sensors/gyroscopes/3-axis-digital-gyroscope:FXAS21002C
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nxp,fxas21002c"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Regulator that provides power to the sensor
vddio-supply — not listed as required here #
Regulator that provides power to the bus
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO connected to reset
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Either interrupt may be triggered on rising or falling edges.
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
drive-open-drain — not listed as required here #
Value type (type): "boolean"
the interrupt/data ready line will be configured as open drain, which is useful if several sensors share the same interrupt line.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 2000000
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
gyroscope@20 {
compatible = "nxp,fxas21002c";
reg = <0x20>;
vdd-supply = <®_peri_3p15v>;
vddio-supply = <®_peri_3p15v>;
interrupt-parent = <&gpio1>;
interrupts = <7 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "INT1";
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
gyroscope@0 {
compatible = "nxp,fxas21002c";
reg = <0x0>;
spi-max-frequency = <2000000>;
interrupt-parent = <&gpio2>;
interrupts = <7 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "INT2";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Maxim MAX30100 heart rate and pulse oximeter sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / health
Schema identifier ($id): "http://devicetree.org/schemas/iio/health/maxim,max30100.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matt Ranostay <matt.ranostay@konsulko.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "maxim,max30100"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Connected to ADC_RDY pin.
maxim,led-current-microamp — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
LED current whilst the engine is running. First indexed value is the configuration for the RED LED, and second value is for the IR LED.
maxim,pulse-width-us — not listed as required here #
LED pulse width in microseconds. Appropriate pulse width depends on factors such as optical window absorption, LED-to-sensor distance, and expected reflectivity of the skin or contact surface.
Allowed values (enum): 200, 400, 800, 1600
Default value (default): 1600
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
heart-rate@57 {
compatible = "maxim,max30100";
reg = <0x57>;
maxim,led-current-microamp = <24000 50000>;
interrupt-parent = <&gpio1>;
interrupts = <16 2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Maxim MAX30101/2 heart rate and pulse oximeter and MAX30105 particle-sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / health
Schema identifier ($id): "http://devicetree.org/schemas/iio/health/maxim,max30102.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matt Ranostay <matt.ranostay@konsulko.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"maxim,max30101"Item 2
Exact value (
const):"maxim,max30105"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Connected to ADC_RDY pin.
maxim,red-led-current-microamp — not listed as required here #
RED LED current. Each step is approximately 200 microamps.
Minimum value (minimum): 0
Maximum value (maximum): 50800
maxim,ir-led-current-microamp — not listed as required here #
IR LED current. Each step is approximately 200 microamps.
Minimum value (minimum): 0
Maximum value (maximum): 50800
maxim,green-led-current-microamp — not listed as required here #
Green LED current. Each step is approximately 200 microamps.
Minimum value (minimum): 0
Maximum value (maximum): 50800
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"maxim,max30102"When the condition matches (
then) #Properties and child nodes (
properties)
maxim,green-led-current-microamp— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
heart-rate@57 {
compatible = "maxim,max30102";
reg = <0x57>;
maxim,red-led-current-microamp = <7000>;
maxim,ir-led-current-microamp = <7000>;
interrupt-parent = <&gpio1>;
interrupts = <16 2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments AFE4403 Heart rate and Pulse Oximeter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / health
Schema identifier ($id): "http://devicetree.org/schemas/iio/health/ti,afe4403.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,afe4403"
reg — required here #
Maximum number of items (maxItems): 1
tx-supply — not listed as required here #
Supply to transmitting LEDs.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Connected to ADC_RDY pin.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 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/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
heart-mon@0 {
compatible = "ti,afe4403";
reg = <0>;
spi-max-frequency = <10000000>;
tx-supply = <&vbat>;
interrupt-parent = <&gpio1>;
interrupts = <28 IRQ_TYPE_EDGE_RISING>;
reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments AFE4404 Heart rate and Pulse Oximeter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / health
Schema identifier ($id): "http://devicetree.org/schemas/iio/health/ti,afe4404.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,afe4404"
reg — required here #
Maximum number of items (maxItems): 1
tx-supply — not listed as required here #
Supply to transmitting LEDs.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Connected to ADC_RDY pin.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
heart-mon@58 {
compatible = "ti,afe4404";
reg = <0x58>;
tx-supply = <&vbat>;
interrupt-parent = <&gpio1>;
interrupts = <28 IRQ_TYPE_EDGE_RISING>;
reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
DHT11 humidity + temperature sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / humidity
Schema identifier ($id): "http://devicetree.org/schemas/iio/humidity/dht11.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Harald Geyer <harald@ccbib.org>"
A simple and low cost module providing a non standard single GPIO based interface. It is believed the part is made by aosong but don't have absolute confirmation of this, or what the aosong part number is.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "dht11"
reg — not listed as required here #
Maximum number of items (maxItems): 1
gpios — required here #
Maximum number of items (maxItems): 1
Single, interrupt capable, GPIO used to communicate with the device.
Required in this object (required): "compatible", "gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
humidity-sensor {
compatible = "dht11";
gpios = <&gpio0 6 0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ScioSense ENS210 temperature and humidity sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / humidity
Schema identifier ($id): "http://devicetree.org/schemas/iio/humidity/sciosense,ens210.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Joshua Felmeden <jfelmeden@thegoodpenguin.co.uk>"
Temperature and Humidity sensor.
Datasheet:
https://www.sciosense.com/wp-content/uploads/2024/04/ENS21x-Datasheet.pdf
https://www.sciosense.com/wp-content/uploads/2023/12/ENS210-Datasheet.pdf
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"sciosense,ens210a","sciosense,ens211","sciosense,ens212","sciosense,ens213a","sciosense,ens215"Item 2
Exact value (
const):"sciosense,ens210"
Rule 2
Exact value (
const):"sciosense,ens210"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
temperature-sensor@43 {
compatible = "sciosense,ens210";
reg = <0x43>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
HTS221 STM humidity + temperature sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / humidity
Schema identifier ($id): "http://devicetree.org/schemas/iio/humidity/st,hts221.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lorenzo Bianconi <lorenzo@kernel.org>"
Humidity and temperature sensor with I2C interface and data ready interrupt.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,hts221"
reg — required here #
Maximum number of items (maxItems): 1
drive-open-drain — not listed as required here #
Value type (type): "boolean"
The interrupt/data ready line will be configured as open drain, which is useful if several sensors share the same interrupt line.
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
hts221@5f {
compatible = "st,hts221";
reg = <0x5f>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_EDGE_RISING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
HDC2010/HDC2080 humidity and temperature iio sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / humidity
Schema identifier ($id): "http://devicetree.org/schemas/iio/humidity/ti,hdc2010.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Eugene Zaikonnikov <ez@norophonic.com>"
Relative humidity and temperature sensors on I2C bus
Datasheets are available at:
http://www.ti.com/product/HDC2010/datasheet
http://www.ti.com/product/HDC2080/datasheet
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,hdc2010", "ti,hdc2080"
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
humidity@40 {
compatible = "ti,hdc2010";
reg = <0x40>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
HDC3020/HDC3021/HDC3022 humidity and temperature iio sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / humidity
Schema identifier ($id): "http://devicetree.org/schemas/iio/humidity/ti,hdc3020.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Li peiyu <579lpy@gmail.com>", "Javier Carrasco <javier.carrasco.cruz@gmail.com>"
https://www.ti.com/lit/ds/symlink/hdc3020.pdf The HDC302x is an integrated capacitive based relative humidity (RH) and temperature sensor.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"ti,hdc3020"
Rule 2
Exact value (
const):"ti,hdc3020"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "vdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
humidity-sensor@47 {
compatible = "ti,hdc3021", "ti,hdc3020";
reg = <0x47>;
vdd-supply = <&vcc_3v3>;
interrupt-parent = <&gpio3>;
interrupts = <23 IRQ_TYPE_EDGE_RISING>;
reset-gpios = <&gpio3 27 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices AD5933/AD5934 Impedance Converter, Network Analyzer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / impedance-analyzer
Schema identifier ($id): "http://devicetree.org/schemas/iio/impedance-analyzer/adi,ad5933.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcelo Schmitt <marcelo.schmitt1@gmail.com>", "Gabriel Capella <gabriel@capella.pro>"
https://www.analog.com/media/en/technical-documentation/data-sheets/AD5933.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/AD5934.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad5933", "adi,ad5934"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
The regulator supply for DVDD, AVDD1 and AVDD2 when they are connected together. Used to calculate voltage scaling of measurement channels.
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Exact value (const): "mclk"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "vdd-supply"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
impedance-analyzer@d {
compatible = "adi,ad5933";
reg = <0x0d>;
vdd-supply = <&vdd_supply>;
clocks = <&ref_clk>;
clock-names = "mclk";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices ADIS16460 and similar IMUs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / imu
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/adi,adis16460.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dragos Bogdan <dragos.bogdan@analog.com>"
Analog Devices ADIS16460 and similar IMUs https://www.analog.com/media/en/technical-documentation/data-sheets/ADIS16460.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adis16460"
reg — required here #
Maximum number of items (maxItems): 1
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
spi-cs-inactive-delay-ns — not listed as required here #
Minimum value (minimum): 16000
Default value (default): 16000
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
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>;
imu@0 {
compatible = "adi,adis16460";
reg = <0>;
spi-max-frequency = <5000000>;
spi-cpol;
spi-cpha;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Analog Devices ADIS16475 and similar IMUs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / imu
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/adi,adis16475.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nuno Sá <nuno.sa@analog.com>"
Analog Devices ADIS16475 and similar IMUs https://www.analog.com/media/en/technical-documentation/data-sheets/ADIS16475.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adis16475-1", "adi,adis16475-2", "adi,adis16475-3", "adi,adis16477-1", "adi,adis16477-2", "adi,adis16477-3", "adi,adis16470", "adi,adis16465-1", "adi,adis16465-2", "adi,adis16465-3", "adi,adis16467-1", "adi,adis16467-2", "adi,adis16467-3", "adi,adis16500", "adi,adis16501", "adi,adis16505-1", "adi,adis16505-2", "adi,adis16505-3", "adi,adis16507-1", "adi,adis16507-2", "adi,adis16507-3", "adi,adis16575-2", "adi,adis16575-3", "adi,adis16576-2", "adi,adis16576-3", "adi,adis16577-2", "adi,adis16577-3"
reg — required here #
Maximum number of items (maxItems): 1
spi-cpha — required here #
true — No constraints added by this property rule.
spi-cpol — required here #
true — No constraints added by this property rule.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 2000000
spi-cs-inactive-delay-ns — not listed as required here #
Minimum value (minimum): 16000
Default value (default): 16000
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Must be the device tree identifier of the RESET pin. If specified, it will be asserted during driver probe. As the line is active low, it should be marked GPIO_ACTIVE_LOW.
Maximum number of items (maxItems): 1
adi,sync-mode — not listed as required here #
Configures the device SYNC pin. The following modes are supported 0 - output_sync 1 - direct_sync 2 - scaled_sync 3 - pulse_sync
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 3
Required in this object (required): "compatible", "reg", "interrupts", "spi-cpha", "spi-cpol"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,adis16500","adi,adis16501","adi,adis16505-1","adi,adis16505-2","adi,adis16505-3","adi,adis16507-1","adi,adis16507-2","adi,adis16507-3","adi,adis16575-2","adi,adis16575-3","adi,adis16576-2","adi,adis16576-3","adi,adis16577-2","adi,adis16577-3"When the condition matches (
then) #Properties and child nodes (
properties)
adi,sync-mode— not listed as required hereMinimum value (
minimum):0Maximum value (
maximum):2
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
adi,sync-mode— not listed as required hereWhen the condition matches (
then) #Property dependencies (
dependencies)
adi,sync-mode— applies when this property is presentAlso requires:
"clocks"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,adis16575-2","adi,adis16575-3","adi,adis16576-2","adi,adis16576-3","adi,adis16577-2","adi,adis16577-3"When the condition matches (
then) #Properties and child nodes (
properties)
spi-max-frequency— not listed as required hereMaximum value (
maximum):15000000
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>;
adis16475: adis16475-3@0 {
compatible = "adi,adis16475-3";
reg = <0>;
spi-cpha;
spi-cpol;
spi-max-frequency = <2000000>;
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
interrupt-parent = <&gpio>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices ADIS16480 and similar IMUs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / imu
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/adi,adis16480.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcelo Schmitt <marcelo.schmitt@analog.com>", "Nuno Sá <nuno.sa@analog.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"adi,adis16375","adi,adis16480","adi,adis16485","adi,adis16486","adi,adis16488","adi,adis16489","adi,adis16490","adi,adis16495-1","adi,adis16495-2","adi,adis16495-3","adi,adis16497-1","adi,adis16497-2","adi,adis16497-3","adi,adis16545-1","adi,adis16545-2","adi,adis16545-3","adi,adis16547-1","adi,adis16547-2","adi,adis16547-3"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"adi,adis16487"Item 2
Exact value (
const):"adi,adis16485"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Accepted interrupt types are: * IRQ_TYPE_EDGE_RISING * IRQ_TYPE_EDGE_FALLING
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Default if not supplied is DIO1.
Array item rules (items) #
spi-cpha — required here #
true — No constraints added by this property rule.
spi-cpol — required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Connected to RESET pin which is active low.
clocks — not listed as required here #
Maximum number of items (maxItems): 1
If not provided, then the internal clock is used.
clock-names — not listed as required here #
sync: In sync mode, the internal clock is disabled and the frequency
of the external clock signal establishes therate of data
collection and processing. See Fig 14 and 15 in the datasheet.
The clock-frequency must be:
* 3000 to 4500 Hz for adis1649x devices.
* 700 to 2400 Hz for adis1648x devices.
pps: In Pulse Per Second (PPS) Mode, the rate of data collection and
production is equal to the product of the external clock
frequency and the scale factor in the SYNC_SCALE register, see
Table 154 in the datasheet.
The clock-frequency must be:
* 1 to 128 Hz for adis1649x devices.
* This mode is not supported by adis1648x devices.
Allowed values (enum): "sync", "pps"
adi,ext-clk-pin — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
The DIOx line to be used as an external clock input. Each DIOx pin supports only one function at a time (data ready line selection or external clock input). When a single pin has two two assignments, the enable bit for the lower priority function automatically resets to zero (disabling the lower priority function). Data ready has highest priority. If not provided then DIO2 is assigned as default external clock input pin.
Allowed values (enum): "DIO1", "DIO2", "DIO3", "DIO4"
Required in this object (required): "compatible", "reg", "interrupts", "spi-cpha", "spi-cpol", "spi-max-frequency"
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>;
imu@0 {
compatible = "adi,adis16495-1";
reg = <0>;
spi-max-frequency = <3200000>;
spi-cpol;
spi-cpha;
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpio>;
interrupt-names = "DIO2";
clocks = <&adis16495_sync>;
clock-names = "sync";
adi,ext-clk-pin = "DIO1";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices ADIS16550 and similar IMUs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / imu
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/adi,adis16550.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nuno Sa <nuno.sa@analog.com>", "Ramona Gradinariu <ramona.gradinariu@analog.com>", "Antoniu Miclaus <antoniu.miclaus@analog.com>", "Robert Budai <robert.budai@analog.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adis16550"
reg — required here #
Maximum number of items (maxItems): 1
spi-cpha — required here #
true — No constraints added by this property rule.
spi-cpol — required here #
true — No constraints added by this property rule.
spi-max-frequency — required here #
Maximum value (maximum): 15000000
vdd-supply — required here #
true — No constraints added by this property rule.
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Active low RESET pin.
Maximum number of items (maxItems): 1
clocks — not listed as required here #
If not provided, then the internal clock is used.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "spi-cpha", "spi-cpol", "spi-max-frequency", "vdd-supply"
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>;
imu@0 {
compatible = "adi,adis16550";
reg = <0>;
spi-max-frequency = <15000000>;
spi-cpol;
spi-cpha;
vdd-supply = <&vdd>;
interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpio>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Bosch BMI160
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / imu
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/bosch,bmi160.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Inertial Measurement Unit with Accelerometer, Gyroscope and externally connectable Magnetometer https://www.bosch-sensortec.com/bst/products/all_products/bmi160
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"bosch,bmi160"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"bosch,bmi120"Item 2
Exact value (
const):"bosch,bmi160"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
Allowed values (enum): "INT1", "INT2"
set to "INT1" if INT1 pin should be used as interrupt input, set to "INT2" if INT2 pin should be used instead
drive-open-drain — not listed as required here #
Value type (type): "boolean"
set if the specified interrupt pin should be configured as open drain. If not set, defaults to push-pull.
vdd-supply — not listed as required here #
provide VDD power to the sensor.
vddio-supply — not listed as required here #
provide VDD IO power to the sensor.
mount-matrix — not listed as required here #
an optional 3x3 mounting rotation matrix
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) #
// Example for I2C
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
bmi160@68 {
compatible = "bosch,bmi160";
reg = <0x68>;
vdd-supply = <&pm8916_l17>;
vddio-supply = <&pm8916_l6>;
interrupt-parent = <&gpio4>;
interrupts = <12 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "INT1";
mount-matrix = "0", "1", "0",
"-1", "0", "0",
"0", "0", "1";
};
};
// Example for SPI
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
bmi160@0 {
compatible = "bosch,bmi160";
reg = <0>;
spi-max-frequency = <10000000>;
interrupt-parent = <&gpio2>;
interrupts = <12 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "INT2";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Bosch BMI270 6-Axis IMU
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / imu
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/bosch,bmi270.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alex Lanzano <lanzano.alex@gmail.com>"
BMI270 is a 6-axis inertial measurement unit that can measure acceleration and angular velocity. The sensor also supports configurable interrupt events such as motion, step counter, and wrist motion gestures. The sensor can communicate I2C or SPI. https://www.bosch-sensortec.com/products/motion-sensors/imus/bmi270/
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "bosch,bmi260", "bosch,bmi270"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
vddio-supply — required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
drive-open-drain — not listed as required here #
Value type (type): "boolean"
set if the specified interrupt pins should be configured as open drain. If not set, defaults to push-pull.
mount-matrix — not listed as required here #
an optional 3x3 mounting rotation matrix.
Required in this object (required): "compatible", "reg", "vdd-supply", "vddio-supply"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
imu@68 {
compatible = "bosch,bmi270";
reg = <0x68>;
vdd-supply = <&vdd>;
vddio-supply = <&vddio>;
interrupt-parent = <&gpio1>;
interrupts = <16 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "INT1";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Bosch BMI323 6-Axis IMU
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / imu
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/bosch,bmi323.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jagath Jog J <jagathjog1996@gmail.com>"
BMI323 is a 6-axis inertial measurement unit that supports acceleration and gyroscopic measurements with hardware fifo buffering. Sensor also provides events information such as motion, steps, orientation, single and double tap detection.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "bosch,bmi323"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
vddio-supply — required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
drive-open-drain — not listed as required here #
Value type (type): "boolean"
set if the specified interrupt pin should be configured as open drain. If not set, defaults to push-pull.
mount-matrix — not listed as required here #
an optional 3x3 mounting rotation matrix.
Required in this object (required): "compatible", "reg", "vdd-supply", "vddio-supply"
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) #
// Example for I2C
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
imu@68 {
compatible = "bosch,bmi323";
reg = <0x68>;
vddio-supply = <&vddio>;
vdd-supply = <&vdd>;
interrupt-parent = <&gpio1>;
interrupts = <29 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "INT1";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Bosch BNO055
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / imu
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/bosch,bno055.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrea Merello <andrea.merello@iit.it>"
Inertial Measurement Unit with Accelerometer, Gyroscope, Magnetometer and internal MCU for sensor fusion https://www.bosch-sensortec.com/products/smart-sensors/bno055/
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "bosch,bno055"
reg — not listed as required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
serial {
imu {
compatible = "bosch,bno055";
reset-gpios = <&gpio0 54 GPIO_ACTIVE_LOW>;
clocks = <&imu_clk>;
};
};
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
imu@28 {
compatible = "bosch,bno055";
reg = <0x28>;
reset-gpios = <&gpio0 54 GPIO_ACTIVE_LOW>;
clocks = <&imu_clk>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Bosch smi240 imu
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / imu
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/bosch,smi240.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jianping Shen <Jianping.Shen@de.bosch.com>"
Inertial Measurement Unit with Accelerometer and Gyroscope with a measurement range of +/-300°/s and up to 16g. https://www.bosch-semiconductors.com/mems-sensors/highly-automated-driving/smi240/
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "bosch,smi240"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
vddio-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vdd-supply", "vddio-supply"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
imu@0 {
compatible = "bosch,smi240";
reg = <0>;
vdd-supply = <&vdd>;
vddio-supply = <&vddio>;
spi-max-frequency = <10000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Bosch SMI330 6-Axis IMU
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / imu
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/bosch,smi330.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stefan Gutmann <stefam.gutmann@de.bosch.com>"
SMI330 is a 6-axis inertial measurement unit that supports acceleration and gyroscopic measurements with hardware fifo buffering. Sensor also provides events information such as motion, no-motion and tilt detection.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "bosch,smi330"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
provide VDD power to the sensor.
vddio-supply — not listed as required here #
provide VDD IO power to the sensor.
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
drive-open-drain — not listed as required here #
Value type (type): "boolean"
set if the interrupt pin(s) should be configured as open drain. If not set, defaults to push-pull.
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) #
// Example for I2C
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
imu@68 {
compatible = "bosch,smi330";
reg = <0x68>;
vddio-supply = <&vddio>;
vdd-supply = <&vdd>;
interrupt-parent = <&gpio>;
interrupts = <26 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "INT1";
};
};
// Example for SPI
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
imu@0 {
compatible = "bosch,smi330";
reg = <0>;
spi-max-frequency = <10000000>;
interrupt-parent = <&gpio>;
interrupts = <26 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "INT1";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
InvenSense ICM-426xx Inertial Measurement Unit
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / imu
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/invensense,icm42600.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>"
6-axis MotionTracking device that combines a 3-axis gyroscope and a 3-axis accelerometer.
It has a configurable host interface that supports I3C, I2C and SPI serial communication, features a 2kB FIFO and 2 programmable interrupts with ultra-low-power wake-on-motion support to minimize system power consumption.
Other industry-leading features include InvenSense on-chip APEX Motion Processing engine for gesture recognition, activity classification, and pedometer, along with programmable digital filters, and an embedded temperature sensor.
https://invensense.tdk.com/wp-content/uploads/2020/03/DS-000292-ICM-42605-v1.4.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "invensense,icm42600", "invensense,icm42602", "invensense,icm42605", "invensense,icm42622", "invensense,icm42631", "invensense,icm42686", "invensense,icm42688"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
drive-open-drain — not listed as required here #
Value type (type): "boolean"
vdd-supply — not listed as required here #
Regulator that provides power to the sensor
vddio-supply — not listed as required here #
Regulator that provides power to the bus
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
icm42605@68 {
compatible = "invensense,icm42605";
reg = <0x68>;
interrupt-parent = <&gpio2>;
interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "INT1";
vdd-supply = <&vdd>;
vddio-supply = <&vddio>;
};
};
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
icm42602@0 {
compatible = "invensense,icm42602";
reg = <0>;
spi-max-frequency = <24000000>;
spi-cpha;
spi-cpol;
interrupt-parent = <&gpio1>;
interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "INT1";
vdd-supply = <&vdd>;
vddio-supply = <&vddio>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
InvenSense ICM-45600 Inertial Measurement Unit
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / imu
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/invensense,icm45600.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Remi Buisson <remi.buisson@tdk.com>"
6-axis MotionTracking device that combines a 3-axis gyroscope and a 3-axis accelerometer.
It has a configurable host interface that supports I3C, I2C and SPI serial communication, features up to 8kB FIFO and 2 programmable interrupts with ultra-low-power wake-on-motion support to minimize system power consumption.
Other industry-leading features include InvenSense on-chip APEX Motion Processing engine for gesture recognition, activity classification, and pedometer, along with programmable digital filters, and an embedded temperature sensor.
https://invensense.tdk.com/wp-content/uploads/documentation/DS-000576_ICM-45605.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "invensense,icm45605", "invensense,icm45606", "invensense,icm45608", "invensense,icm45634", "invensense,icm45686", "invensense,icm45687", "invensense,icm45688p", "invensense,icm45689"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"int2"
Choose chip interrupt pin to be used as interrupt input.
drive-open-drain — not listed as required here #
Value type (type): "boolean"
vdd-supply — required here #
true — No constraints added by this property rule.
vddio-supply — required here #
true — No constraints added by this property rule.
mount-matrix — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vdd-supply", "vddio-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
imu@68 {
compatible = "invensense,icm45605";
reg = <0x68>;
interrupt-parent = <&gpio2>;
interrupt-names = "int1";
interrupts = <7 IRQ_TYPE_EDGE_RISING>;
vdd-supply = <&vdd>;
vddio-supply = <&vddio>;
mount-matrix = "0", "-1", "0",
"1", "0", "0",
"0", "0", "1";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
InvenSense MPU-6050 Six-Axis (Gyro + Accelerometer) MEMS MotionTracking Device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / imu
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/invensense,mpu6050.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>"
These devices support both I2C and SPI bus interfaces.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"invensense,iam20380","invensense,iam20680","invensense,icm20608","invensense,icm20609","invensense,icm20689","invensense,icm20602","invensense,icm20690","invensense,mpu6000","invensense,mpu6050","invensense,mpu6500","invensense,mpu6515","invensense,mpu6880","invensense,mpu9150","invensense,mpu9250","invensense,mpu9255"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"invensense,icm20600"Item 2
Exact value (
const):"invensense,icm20602"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"invensense,icm20608d"Item 2
Exact value (
const):"invensense,icm20608"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"invensense,iam20680hp","invensense,iam20680ht"Item 2
Exact value (
const):"invensense,iam20680"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vddio-supply — not listed as required here #
true — No constraints added by this property rule.
mount-matrix — not listed as required here #
true — No constraints added by this property rule.
invensense,level-shifter — not listed as required here #
Value type (type): "boolean"
From ancient platform data struct: false: VLogic, true: VDD
i2c-gate — not listed as required here #
Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
These devices also support an auxiliary i2c bus via an i2c-gate.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"invensense,iam20680","invensense,icm20602","invensense,icm20608","invensense,icm20609","invensense,icm20689"When the condition matches (
then) #Properties and child nodes (
properties)
i2c-gate— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
imu@68 {
compatible = "invensense,mpu9250";
reg = <0x68>;
interrupt-parent = <&gpio3>;
interrupts = <21 IRQ_TYPE_LEVEL_HIGH>;
mount-matrix = "-0.984807753012208", /* x0 */
"0", /* y0 */
"-0.173648177666930", /* z0 */
"0", /* x1 */
"-1", /* y1 */
"0", /* z1 */
"-0.173648177666930", /* x2 */
"0", /* y2 */
"0.984807753012208"; /* z2 */
i2c-gate {
#address-cells = <1>;
#size-cells = <0>;
magnetometer@c {
compatible = "asahi-kasei,ak8975";
reg = <0x0c>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Freescale FXOS8700 Inertial Measurement Unit
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / imu
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/nxp,fxos8700.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Accelerometer and magnetometer combo device with an i2c and SPI interface. https://www.nxp.com/products/sensors/motion-sensors/6-axis/digital-motion-sensor-3d-accelerometer-2g-4g-8g-plus-3d-magnetometer:FXOS8700CQ
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nxp,fxos8700"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
drive-open-drain — not listed as required here #
Value type (type): "boolean"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
fxos8700@1e {
compatible = "nxp,fxos8700";
reg = <0x1e>;
interrupt-parent = <&gpio2>;
interrupts = <7 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "INT1";
};
};
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
fxos8700@0 {
compatible = "nxp,fxos8700";
reg = <0>;
spi-max-frequency = <1000000>;
interrupt-parent = <&gpio1>;
interrupts = <7 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "INT2";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
STM 6-axis (acc + gyro) IMU Mems sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / imu
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/st,lsm6dsx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lorenzo Bianconi <lorenzo@kernel.org>"
Devices have both I2C and SPI interfaces.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"st,lsm6ds3","st,lsm6ds3h","st,lsm6dsl","st,lsm6dsm","st,ism330dlc","st,lsm6dso","st,asm330lhh","st,lsm6dsox","st,lsm6dsr","st,lsm6ds3tr-c","st,ism330dhcx","st,lsm9ds1-imu","st,lsm6ds0","st,lsm6dsrx","st,lsm6dst","st,lsm6dsop","st,lsm6dsv","st,lsm6dso16is"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"st,lsm6dsr"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"st,lsm6dstx"Item 2
Exact value (
const):"st,lsm6dst"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"st,lsm6dsv16x"Item 2
Exact value (
const):"st,lsm6dsv"
Rule 5
Array item rules (
items)Item 1
Exact value (
const):"st,ism330is"Item 2
Exact value (
const):"st,lsm6dso16is"
Rule 6
Array item rules (
items)Item 1
Exact value (
const):"st,asm330lhb"Item 2
Exact value (
const):"st,asm330lhh"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Supports up to 2 interrupt lines via the INT1 and INT2 pins.
vdd-supply — not listed as required here #
if defined provides VDD power to the sensor.
vddio-supply — not listed as required here #
if defined provides VDD IO power to the sensor.
st,drdy-int-pin — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The pin on the package that will be used to signal data ready
st,pullups — not listed as required here #
Value type (type): "boolean"
enable/disable internal i2c controller pullup resistors.
st,disable-sensor-hub — not listed as required here #
Value type (type): "boolean"
Enable/disable internal i2c controller slave autoprobing at bootstrap. Disable sensor-hub is useful if i2c controller clock/data lines are connected through a pull-up with other chip lines (e.g. SDO/SA0).
drive-open-drain — not listed as required here #
Value type (type): "boolean"
The interrupt/data ready line will be configured as open drain, which is useful if several sensors share the same interrupt line.
wakeup-source — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
mount-matrix — not listed as required here #
an optional 3x3 mounting rotation matrix
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/iio/iio.yaml#
Rule 2 #
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
imu@6b {
compatible = "st,lsm6dsm";
reg = <0x6b>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_EDGE_RISING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices ADUX1020 Photometric sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/adux1020.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>"
Photometric sensor over an i2c interface. https://www.analog.com/media/en/technical-documentation/data-sheets/ADUX1020.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adux1020"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
adux1020@64 {
compatible = "adi,adux1020";
reg = <0x64>;
interrupt-parent = <&msmgpio>;
interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
AMS AS73211 JENCOLOR(R) Digital XYZ Sensor and AMS AS7331 UV Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/ams,as73211.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Christian Eggers <ceggers@arri.de>"
AMS AS73211 XYZ True Color Sensor with I2C Interface https://ams.com/documents/20143/36005/AS73211_DS000556_3-01.pdf/a65474c0-b302-c2fd-e30a-c98df87616df AMS AS7331 UVA, UVB and UVC Sensor with I2C Interface https://ams.com/documents/20143/9106314/AS7331_DS001047_4-00.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ams,as73211", "ams,as7331"
reg — required here #
I2C address of the device (0x74...0x77).
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Interrupt specifier for the READY interrupt generated by the device.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
as73211@74 {
compatible = "ams,as73211";
reg = <0x74>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_color_sensor>;
interrupt-parent = <&gpio2>;
interrupts = <19 IRQ_TYPE_EDGE_RISING>; /* READY */
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
AMS TAOS TSL2563 ambient light sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/amstaos,tsl2563.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"
Ambient light sensor with an i2c interface.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "amstaos,tsl2560", "amstaos,tsl2561", "amstaos,tsl2562", "amstaos,tsl2563"
reg — required here #
Maximum number of items (maxItems): 1
amstaos,cover-comp-gain — not listed as required here #
Multiplier for gain compensation
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@29 {
compatible = "amstaos,tsl2563";
reg = <0x29>;
amstaos,cover-comp-gain = <16>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
AMS/TAOS TSL2591 Ambient Light Sensor (ALS)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/amstaos,tsl2591.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Joe Sandom <joe.g.sandom@gmail.com>"
AMS/TAOS TSL2591 is a very-high sensitivity light-to-digital converter that transforms light intensity into a digital signal.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "amstaos,tsl2591"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Interrupt (INT:Pin 2) Active low. Should be set to IRQ_TYPE_EDGE_FALLING. interrupt is used to detect if the light intensity has fallen below or reached above the configured threshold values.
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
tsl2591@29 {
compatible = "amstaos,tsl2591";
reg = <0x29>;
interrupts = <20 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Avago Gesture/RGB/ALS/Proximity sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/avago,apds9300.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Subhajit Ghosh <subhajit.ghosh@tweaklogic.com>"
Datasheet: https://www.avagotech.com/docs/AV02-1077EN Datasheet: https://www.avagotech.com/docs/AV02-4191EN Datasheet: https://www.avagotech.com/docs/AV02-4755EN
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "avago,apds9300", "avago,apds9306", "avago,apds9960"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@39 {
compatible = "avago,apds9300";
reg = <0x39>;
interrupt-parent = <&gpio2>;
interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
vdd-supply = <®ulator_3v3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ROHM BH1750 ambient light sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/bh1750.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tomasz Duszynski <tduszyns@gmail.com>"
Ambient light sensor with an i2c interface.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "rohm,bh1710", "rohm,bh1715", "rohm,bh1721", "rohm,bh1750", "rohm,bh1751"
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
GPIO connected to the DVI reset pin (active low)
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@23 {
compatible = "rohm,bh1750";
reg = <0x23>;
reset-gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Broadcom Combined Proximity & Ambient light sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/brcm,apds9160.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Mikael Gonella-Bolduc <m.gonella.bolduc@gmail.com>"
Datasheet: https://docs.broadcom.com/docs/APDS-9160-003-DS
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "brcm,apds9160"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
ps-cancellation-duration — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Proximity sensor cancellation pulse duration in half clock cycles. This parameter determines a cancellation pulse duration. The cancellation is applied in the integration phase to cancel out unwanted reflected light from very near objects such as tempered glass in front of the sensor.
Default value (default): 0
Maximum value (maximum): 63
ps-cancellation-current-picoamp — not listed as required here #
Proximity sensor crosstalk cancellation current in picoampere. This parameter adjusts the current in steps of 2400 pA up to 276000 pA. The provided value must be a multiple of 2400 and in one of these ranges [60000 - 96000] [120000 - 156000] [180000 - 216000] [240000 - 276000] This parameter is used in conjunction with the cancellation duration.
Minimum value (minimum): 60000
Maximum value (maximum): 276000
Multiple of (multipleOf): 2400
Required in this object (required): "compatible", "reg", "vdd-supply"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@53 {
compatible = "brcm,apds9160";
reg = <0x53>;
vdd-supply = <&vdd_reg>;
interrupts = <29 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&pinctrl>;
ps-cancellation-duration = <10>;
ps-cancellation-current-picoamp = <62400>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Capella Microsystems CM3605 Ambient Light and Short Distance Proximity Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/capella,cm3605.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>", "Kevin Tsai <ktsai@capellamicro.com>"
The CM3605 is an entirely analog part. However, it requires quite a bit of software logic to interface a host operating system.
This ALS and proximity sensor was one of the very first deployed in mobile handsets, notably it is used in the very first Nexus One Android phone from 2010.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "capella,cm3605"
aset-gpios — required here #
Maximum number of items (maxItems): 1
ASET line (drive low to activate the ALS, should be flagged GPIO_ACTIVE_LOW)
interrupts — required here #
Maximum number of items (maxItems): 1
Connected to the POUT (proximity sensor out) line. The edge detection must be set to IRQ_TYPE_EDGE_BOTH so as to detect movements toward and away from the proximity sensor.
io-channels — required here #
Maximum number of items (maxItems): 1
ADC channel used for converting the voltage from AOUT to a digital representation.
io-channel-names — required here #
Exact value (const): "aout"
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
capella,aset-resistance-ohms — not listed as required here #
Allowed values (enum): 50000, 100000, 300000, 600000
Sensitivity calibration resistance. Note that calibration curves are only provided for specific allowed values. Default: 100 kOhms.
Required in this object (required): "compatible", "aset-gpios", "interrupts", "io-channels", "io-channel-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
light-sensor {
compatible = "capella,cm3605";
vdd-supply = <&foo_reg>;
aset-gpios = <&foo_gpio 1 GPIO_ACTIVE_LOW>;
capella,aset-resistance-ohms = <100000>;
interrupts = <1 IRQ_TYPE_EDGE_BOTH>;
io-channels = <&adc 0x01>;
io-channel-names = "aout";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Capella CM36651 I2C Proximity and Color Light sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/capella,cm36651.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Beomho Seo <beomho.seo@samsung.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "capella,cm36651"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
vled-supply — required here #
Supply for the IR_LED which is part of the cm36651 for proximity detection.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "vled-supply"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@18 {
compatible = "capella,cm36651";
reg = <0x18>;
interrupt-parent = <&gpx0>;
interrupts = <2 0>;
vled-supply = <&ps_als_reg>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Dyna-Image AL3000a/AL3010 sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/dynaimage,al3010.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "David Heidelberg <david@ixit.cz>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "dynaimage,al3000a", "dynaimage,al3010"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Regulator that provides power to the sensor
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@1c {
compatible = "dynaimage,al3010";
reg = <0x1c>;
vdd-supply = <&vdd_reg>;
interrupts = <99 IRQ_TYPE_LEVEL_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Dyna-Image AL3320A sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/dynaimage,al3320a.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "David Heidelberg <david@ixit.cz>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "dynaimage,al3320a"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Regulator that provides power to the sensor
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@1c {
compatible = "dynaimage,al3320a";
reg = <0x1c>;
vdd-supply = <&vdd_reg>;
interrupts = <99 IRQ_TYPE_LEVEL_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Intersil 29018/29023/29035 Ambient Light, Infrared Light, and Proximity Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/isl29018.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Brian Masney <masneyb@onstation.org>"
Ambient and infrared light sensing with proximity detection over an i2c interface.
https://www.renesas.com/us/en/www/doc/datasheet/isl29018.pdf https://www.renesas.com/us/en/www/doc/datasheet/isl29023.pdf https://www.renesas.com/us/en/www/doc/datasheet/isl29035.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "isil,isl29018", "isil,isl29023", "isil,isl29035"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
Regulator that provides power to the sensor
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
sensor@44 {
compatible = "isil,isl29018";
reg = <0x44>;
interrupts-extended = <&msmgpio 61 IRQ_TYPE_LEVEL_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Lite-On LTR390 ALS and UV Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/liteon,ltr390.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Lite-On LTR390 is an ALS (Ambient Light Sensor) and a UV sensor in a single package with i2c address of 0x53.
Datasheet:
https://optoelectronics.liteon.com/upload/download/DS86-2015-0004/LTR-390UV_Final_%20DS_V1%201.pdf
Maintainers (maintainers): "Anshul Dalal <anshulusr@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "liteon,ltr390"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Level interrupt pin with open drain output. The sensor pulls this pin low when the measured reading is greater than some configured threshold.
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@53 {
compatible = "liteon,ltr390";
reg = <0x53>;
interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
vdd-supply = <&vdd_regulator>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
LiteON LTR501 I2C Proximity and Light sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/liteon,ltr501.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nikita Travkin <nikita@trvn.ru>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):../common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "liteon,ltr501", "liteon,ltr559", "liteon,ltr301"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vddio-supply — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
proximity-near-level — not listed as required here #
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@23 {
compatible = "liteon,ltr559";
reg = <0x23>;
proximity-near-level = <75>;
vdd-supply = <&pm8916_l17>;
vddio-supply = <&pm8916_l6>;
interrupt-parent = <&msmgpio>;
interrupts = <115 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
LTRF216A Ambient Light Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/liteon,ltrf216a.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shreeya Patel <shreeya.patel@collabora.com>"
Ambient light sensing with an i2c interface.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "liteon,ltr308", "liteon,ltrf216a"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Regulator that provides power to the sensor.
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@53 {
compatible = "liteon,ltrf216a";
reg = <0x53>;
vdd-supply = <&vdd_regulator>;
interrupt-parent = <&gpio0>;
interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
MAX44009 Ambient Light Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/maxim,max44009.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Robert Eshleman <bobbyeshleman@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "maxim,max44009"
reg — required here #
Maximum number of items (maxItems): 1
Default address is 0x4a
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Should be configured with type IRQ_TYPE_EDGE_FALLING
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@4a {
compatible = "maxim,max44009";
reg = <0x4a>;
interrupt-parent = <&gpio1>;
interrupts = <17 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ON Semiconductor NOA1305 Ambient Light Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/noa1305.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Martyn Welch <martyn.welch@collabora.com>"
Ambient sensing with an i2c interface.
https://www.onsemi.com/pub/Collateral/NOA1305-D.PDF
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "onnn,noa1305"
reg — required here #
Maximum number of items (maxItems): 1
vin-supply — not listed as required here #
Regulator that provides power to the sensor
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
light@39 {
compatible = "onnn,noa1305";
reg = <0x39>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
ROHM BH1745 colour sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/rohm,bh1745.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Mudit Sharma <muditsharma.info@gmail.com>"
BH1745 is an I2C colour sensor with red, green, blue and clear channels. It has a programmable active low interrupt pin. Interrupt occurs when the signal from the selected interrupt source channel crosses set interrupt threshold high/low level.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "rohm,bh1745"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vdd-supply"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
colour-sensor@38 {
compatible = "rohm,bh1745";
reg = <0x38>;
interrupt-parent = <&gpio>;
interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
vdd-supply = <&vdd>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ROHM BU27034ANUC ambient light sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/rohm,bu27034anuc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matti Vaittinen <mazziesaccount@gmail.com>"
ROHM BU27034ANUC is an ambient light sensor with 2 channels and 2 photo diodes capable of detecting a very wide range of illuminance. Typical application is adjusting LCD and backlight power of TVs and mobile phones.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "rohm,bu27034anuc"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@38 {
compatible = "rohm,bu27034anuc";
reg = <0x38>;
vdd-supply = <&vdd>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Sharp GP2AP002A00F and GP2AP002S00F proximity and ambient light sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/sharp,gp2ap002.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
Proximity and ambient light sensor with IR LED for the proximity sensing and an analog output for light intensity. The ambient light sensor output is not available on the GP2AP002S00F variant.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "sharp,gp2ap002a00f", "sharp,gp2ap002s00f"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
an interrupt for proximity, usually a GPIO line
vdd-supply — not listed as required here #
VDD power supply a phandle to a regulator
vio-supply — not listed as required here #
VIO power supply a phandle to a regulator
io-channels — not listed as required here #
Maximum number of items (maxItems): 1
ALSOUT ADC channel to read the ambient light
io-channel-names — not listed as required here #
Exact value (const): "alsout"
sharp,proximity-far-hysteresis — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Hysteresis setting for "far" object detection, this setting is device-unique and adjust the optical setting for proximity detection of a "far away" object in front of the sensor.
sharp,proximity-close-hysteresis — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Hysteresis setting for "close" object detection, this setting is device-unique and adjust the optical setting for proximity detection of a "close" object in front of the sensor.
Required in this object (required): "compatible", "reg", "interrupts", "sharp,proximity-far-hysteresis", "sharp,proximity-close-hysteresis"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@44 {
compatible = "sharp,gp2ap002a00f";
reg = <0x44>;
interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
vdd-supply = <&vdd_regulator>;
vio-supply = <&vio_regulator>;
io-channels = <&adc_channel>;
io-channel-names = "alsout";
sharp,proximity-far-hysteresis = /bits/ 8 <0x2f>;
sharp,proximity-close-hysteresis = /bits/ 8 <0x0f>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Sharp GP2AP020A00F I2C Proximity/ALS sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/sharp,gp2ap020a00f.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kyungmin Park <kyungmin.park@samsung.com>"
The proximity detector sensor requires power supply for its built-in led.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "sharp,gp2ap020a00f"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
vled-supply — required here #
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "vled-supply"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@39 {
compatible = "sharp,gp2ap020a00f";
reg = <0x39>;
interrupts = <2 0>;
vled-supply = <&als_reg>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ST UVIS25 uv sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/st,uvis25.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,uvis25"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
uv-sensor@47 {
compatible = "st,uvis25";
reg = <0x47>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_EDGE_RISING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
STMicro VL6180 ALS, range and proximity sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/st,vl6180.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Manivannan Sadhasivam <manivannanece23@gmail.com>", "Peter Meerwald-Stadler <pmeerw@pmeerw.net>"
Proximity sensing module incorporating time of flight sensor Datasheet at https://www.st.com/resource/en/datasheet/vl6180x.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,vl6180"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
proximity@29 {
compatible = "st,vl6180";
reg = <0x29>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Sensortek STK33xx I2C Ambient Light and Proximity sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/stk33xx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Ambient light and proximity sensor over an i2c interface.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):../common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"sensortek,stk3310","sensortek,stk3311","sensortek,stk3335"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"sensortek,stk3310"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
proximity-near-level — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
stk3310@48 {
compatible = "sensortek,stk3310";
reg = <0x48>;
proximity-near-level = <25>;
interrupt-parent = <&gpio1>;
interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments OPT3001 Ambient Light Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/ti,opt3001.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andreas Dannenberg <dannenberg@ti.com>"
The device supports interrupt-driven and interrupt-less operation, depending on whether an interrupt property has been populated into the DT.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,opt3001", "ti,opt3002"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Should be configured with type IRQ_TYPE_EDGE_FALLING
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@44 {
compatible = "ti,opt3001";
reg = <0x44>;
interrupt-parent = <&gpio1>;
interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments OPT4001 Ambient Light Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/ti,opt4001.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stefan Windfeldt-Prytz <stefan.windfeldt-prytz@axis.com>"
Ambient light sensor with an i2c interface. Last part of compatible is for the packaging used. Picostar is a 4 pinned SMT and sot-5x3 is a 8 pinned SOT. https://www.ti.com/lit/gpn/opt4001
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,opt4001-picostar", "ti,opt4001-sot-5x3"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Regulator that provides power to the sensor
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,opt4001-sot-5x3"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):1When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required here
false— Not permitted by this property rule.
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@44 {
compatible = "ti,opt4001-sot-5x3";
reg = <0x44>;
vdd-supply = <&vdd_reg>;
interrupt-parent = <&gpio1>;
interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments OPT4060 RGBW Color Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/ti,opt4060.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Per-Daniel Olsson <perdaniel.olsson@axis.com>"
Texas Instrument RGBW high resolution color sensor over I2C. https://www.ti.com/lit/gpn/opt4060
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,opt4060"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vdd-supply"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@44 {
compatible = "ti,opt4060";
reg = <0x44>;
vdd-supply = <&vdd_reg>;
interrupt-parent = <&gpio5>;
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
AMS/TAOS Ambient Light Sensor (ALS)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/tsl2583.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Brian Masney <masneyb@onstation.org>"
Ambient light sensing with an i2c interface.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "amstaos,tsl2580", "amstaos,tsl2581", "amstaos,tsl2583"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
Regulator that provides power to the sensor
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@29 {
compatible = "amstaos,tsl2581";
reg = <0x29>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
AMS/TAOS Ambient Light Sensor (ALS) and Proximity Detector
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/tsl2772.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Brian Masney <masneyb@onstation.org>"
Ambient light sensing and proximity detection with an i2c interface. https://ams.com/documents/20143/36005/TSL2772_DS000181_2-00.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "amstaos,tsl2571", "amstaos,tsl2671", "amstaos,tmd2671", "amstaos,tsl2771", "amstaos,tmd2771", "amstaos,tsl2572", "amstaos,tsl2672", "amstaos,tmd2672", "amstaos,tsl2772", "amstaos,tmd2772", "avago,apds9930"
reg — required here #
Maximum number of items (maxItems): 1
amstaos,proximity-diodes — not listed as required here #
Proximity diodes to enable
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
Minimum value (
minimum):0Maximum value (
maximum):1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
led-max-microamp — not listed as required here #
Current for the proximity LED
Allowed values (enum): 13000, 25000, 50000, 100000
vdd-supply — not listed as required here #
Regulator that provides power to the sensor
vddio-supply — not listed as required here #
Regulator that provides power to the bus
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
sensor@39 {
compatible = "amstaos,tsl2772";
reg = <0x39>;
interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>;
vdd-supply = <&pm8941_l17>;
vddio-supply = <&pm8941_lvs1>;
amstaos,proximity-diodes = <0>;
led-max-microamp = <100000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
UPISEMI us5182d I2C ALS and Proximity sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/upisemi,us5182.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "upisemi,usd5182"
reg — required here #
Maximum number of items (maxItems): 1
upisemi,glass-coef — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
glass attenuation factor - compensation factor of resolution 1000 for material transmittance.
Default value (default): 1000
upisemi,dark-ths — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16-array
Minimum number of items (minItems): 8
Maximum number of items (maxItems): 8
16-bit thresholds (adc counts) corresponding to every scale.
upisemi,upper-dark-gain — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
8-bit dark gain compensation factor(4 int and 4 fractional bits - Q4.4) applied when light > threshold.
Default value (default): 0
upisemi,lower-dark-gain — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
8-bit dark gain compensation factor(4 int and 4 fractional bits - Q4.4) applied when light < threshold.
Default value (default): 22
upisemi,continuous — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
This chip has two power modes: one-shot (chip takes one measurement and then shuts itself down) and continuous (chip takes continuous measurements). The one-shot mode is more power-friendly but the continuous mode may be more reliable. If this property is specified the continuous mode will be used instead of the default one-shot one for raw reads.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@39 {
compatible = "upisemi,usd5182";
reg = <0x39>;
upisemi,glass-coef = < 1000 >;
upisemi,dark-ths = /bits/ 16 <170 200 512 512 800 2000 4000 8000>;
upisemi,upper-dark-gain = /bits/ 8 <0x00>;
upisemi,lower-dark-gain = /bits/ 8 <0x16>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
VISHAY VCNL4000 ambient light and proximity sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/vishay,vcnl4000.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Meerwald <pmeerw@pmeerw.net>"
Ambient light sensing with proximity detection over an i2c interface.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):../common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "vishay,vcnl4000", "vishay,vcnl4010", "vishay,vcnl4020", "vishay,vcnl4040", "vishay,vcnl4200"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
proximity-near-level — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@51 {
compatible = "vishay,vcnl4200";
reg = <0x51>;
proximity-near-level = <220>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
VISHAY VCNL4035 ambient Light and proximity sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/vishay,vcnl4035.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Datasheet at https://www.vishay.com/docs/84251/vcnl4035x01.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "vishay,vcnl4035"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@60 {
compatible = "vishay,vcnl4035";
reg = <0x60>;
interrupt-parent = <&gpio4>;
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
VEML3235, VEML6030, VEML6035 and VEML7700 Ambient Light Sensors (ALS)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/vishay,veml6030.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rishi Gupta <gupt21@gmail.com>"
Bindings for the ambient light sensors veml6030 and veml6035 from Vishay Semiconductors over an i2c interface.
Irrespective of whether interrupt is used or not, application can get the ALS and White channel reading from IIO raw interface.
If the interrupts are used, application will receive an IIO event whenever configured threshold is crossed.
Specifications about the sensors can be found at:
https://www.vishay.com/docs/80131/veml3235.pdf
https://www.vishay.com/docs/84366/veml6030.pdf
https://www.vishay.com/docs/84889/veml6035.pdf
https://www.vishay.com/docs/84286/veml7700.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "vishay,veml3235", "vishay,veml6030", "vishay,veml6035", "vishay,veml7700"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
interrupt mapping for IRQ. Configure with IRQ_TYPE_LEVEL_LOW. Refer to interrupt-controller/interrupts.txt for generic interrupt client node bindings.
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vdd-supply"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required here
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required here
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required here
interrupts— not listed as required here
false— Not permitted by this property rule.
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@10 {
compatible = "vishay,veml6030";
reg = <0x10>;
interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
vdd-supply = <&vdd>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0+
Line 63: ADDR pin pulled down
Line 64: ADDR pin pulled up
Vishay VEML6046X00 High accuracy RGBIR color sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/vishay,veml6046x00.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andreas Klinger <ak@it-klinger.de>"
VEML6046X00 datasheet at https://www.vishay.com/docs/80173/veml6046x00.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "vishay,veml6046x00"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "vdd-supply"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
color-sensor@29 {
compatible = "vishay,veml6046x00";
reg = <0x29>;
vdd-supply = <&vdd_reg>;
interrupt-parent = <&gpio2>;
interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Vishay VEML6070 UVA, VEML6075 UVA/B and VEML6040 RGBW sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/vishay,veml6075.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Javier Carrasco <javier.carrasco.cruz@gmail.com>"
VEML6040 datasheet at https://www.vishay.com/docs/84276/veml6040.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "vishay,veml6040", "vishay,veml6070", "vishay,veml6075"
reg — required here #
Maximum number of items (maxItems): 1
vishay,rset-ohms — not listed as required here #
Resistor used to select the integration time.
Default value (default): 270000
Minimum value (minimum): 75000
Maximum value (maximum): 1200000
vdd-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vdd-supply"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
vishay,rset-ohms— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
uv-sensor@10 {
compatible = "vishay,veml6075";
reg = <0x10>;
vdd-supply = <&vdd_reg>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Allegro MicroSystems ALS31300 3-D Linear Hall Effect sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / magnetometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/magnetometer/allegromicro,als31300.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^magnetometer@[0-9a-f]+$"
compatible — required here #
Allowed values (enum): "allegromicro,als31300-500", "allegromicro,als31300-1000", "allegromicro,als31300-2000"
reg — not listed as required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
5.5V supply
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
magnetometer@61 {
compatible = "allegromicro,als31300-500";
reg = <0x61>;
vcc-supply = <&hall_vcc>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 18: Factory configured at 500 Gauss input range
Line 19: Factory configured at 1000 Gauss input range
Line 20: Factory configured at 2000 Gauss input range
Asahi Kasei AK8974 magnetometer sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / magnetometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/magnetometer/asahi-kasei,ak8974.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "alps,hscdtd008a", "asahi-kasei,ak8974"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Data ready (DRDY) and interrupt (INT1) lines from the chip. The DRDY interrupt must be placed first. The interrupts can be triggered on rising or falling edges.
avdd-supply — not listed as required here #
true — No constraints added by this property rule.
dvdd-supply — not listed as required here #
true — No constraints added by this property rule.
mount-matrix — not listed as required here #
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
magnetometer@f {
compatible = "asahi-kasei,ak8974";
reg = <0x0f>;
avdd-supply = <&foo_reg>;
dvdd-supply = <&bar_reg>;
interrupts = <0 IRQ_TYPE_EDGE_RISING>,
<1 IRQ_TYPE_EDGE_RISING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
AsahiKASEI AK8975 magnetometer sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / magnetometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/magnetometer/asahi-kasei,ak8975.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Albrieux <jonathan.albrieux@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"asahi-kasei,ak8975","asahi-kasei,ak8963","asahi-kasei,ak09911","asahi-kasei,ak09912","asahi-kasei,ak09916"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"asahi-kasei,ak09918"Item 2
Exact value (
const):"asahi-kasei,ak09912"
Rule 3
Allowed values (
enum):"ak8975","ak8963","ak09911","ak09912"Deprecated (
deprecated):true
reg — required here #
Maximum number of items (maxItems): 1
gpios — not listed as required here #
Maximum number of items (maxItems): 1
AK8975 has a "Data ready" pin (DRDY) which informs that data is ready to be read and is possible to listen on it. If used, this should be active high. Prefer interrupt over this.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
interrupt for DRDY pin. Triggered on rising edge.
vdd-supply — not listed as required here #
an optional regulator that needs to be on to provide VDD power to the sensor.
vid-supply — not listed as required here #
an optional regulator that needs to be on to provide VID power to the sensor.
mount-matrix — not listed as required here #
an optional 3x3 mounting rotation matrix.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
an optional pin needed for AK09911 to set the reset state. This should be usually active low
Required in this object (required): "compatible", "reg"
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/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
magnetometer@c {
compatible = "asahi-kasei,ak8975";
reg = <0x0c>;
interrupt-parent = <&gpio6>;
interrupts = <15 IRQ_TYPE_EDGE_RISING>;
vdd-supply = <&ldo_3v3_gnss>;
reset-gpios = <&msmgpio 111 GPIO_ACTIVE_LOW>;
mount-matrix = "-0.984807753012208", /* x0 */
"0", /* y0 */
"-0.173648177666930", /* z0 */
"0", /* x1 */
"-1", /* y1 */
"0", /* z1 */
"-0.173648177666930", /* x2 */
"0", /* y2 */
"0.984807753012208"; /* z2 */
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 22: ak09918 is register compatible with ak09912.
Bosch BMC150 magnetometer sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / magnetometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/magnetometer/bosch,bmc150_magn.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Supports a range of parts, some of which form part of a multi die package that also contains other sensors. The interface is independent however, so a separate driver is used to support the magnetometer part. Datasheet at: http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf
Properties and child nodes (properties) #
compatible — required here #
Note the bmm150_magn is a deprecated compatible as this part contains only a magnetometer.
Allowed values (enum): "bosch,bmc150_magn", "bosch,bmc156_magn", "bosch,bmm150", "bosch,bmm150_magn"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vddio-supply — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
mount-matrix — not listed as required here #
an optional 3x3 mounting rotation matrix.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
magnetometer@12 {
compatible = "bosch,bmc150_magn";
reg = <0x12>;
interrupt-parent = <&gpio1>;
interrupts = <0 1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Freescale MAG3110 magnetometer sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / magnetometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/magnetometer/fsl,mag3110.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "fsl,mag3110"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vddio-supply — not listed as required here #
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
magnetometer@e {
compatible = "fsl,mag3110";
reg = <0x0e>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c3_mag3110_int>;
interrupt-parent = <&gpio3>;
interrupts = <16 IRQ_TYPE_EDGE_RISING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Honeywell HMC5843 magnetometer sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / magnetometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/magnetometer/honeywell,hmc5843.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Neil Brown <neilb@suse.de>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "honeywell,hmc5843", "honeywell,hmc5883", "honeywell,hmc5883l", "honeywell,hmc5983"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
magnetometer@1e {
compatible = "honeywell,hmc5843";
reg = <0x1e>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Infineon Technologies TLV493D Low-Power 3D Magnetic Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / magnetometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/magnetometer/infineon,tlv493d-a1b6.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dixit Parmar <dixitparmar19@gmail.com>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^magnetometer@[0-9a-f]+$"
compatible — required here #
Exact value (const): "infineon,tlv493d-a1b6"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
2.8V to 3.5V VDD supply
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "vdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
magnetometer@5e {
compatible = "infineon,tlv493d-a1b6";
reg = <0x5e>;
vdd-supply = <&hall_vcc>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
PNI RM3100 3-axis magnetometer sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / magnetometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/magnetometer/pni,rm3100.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Song Qiang <songqiang1304521@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "pni,rm3100"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
magnetometer@20 {
compatible = "pni,rm3100";
reg = <0x20>;
interrupt-parent = <&gpio0>;
interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Si7210 magnetic position and temperature sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / magnetometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/magnetometer/silabs,si7210.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Antoni Pokusinski <apokusinski01@gmail.com>"
Silabs Si7210 I2C Hall effect magnetic position and temperature sensor. https://www.silabs.com/documents/public/data-sheets/si7210-datasheet.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "silabs,si7210"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Regulator that provides power to the sensor
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
magnetometer@30 {
compatible = "silabs,si7210";
reg = <0x30>;
interrupt-parent = <&gpio1>;
interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
vdd-supply = <&vdd_3v3_reg>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
TI TMAG5273 Low-Power Linear 3D Hall-Effect Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / magnetometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/magnetometer/ti,tmag5273.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Gerald Loacker <gerald.loacker@wolfvision.net>"
The TI TMAG5273 is a low-power linear 3D Hall-effect sensor. This device integrates three independent Hall-effect sensors in the X, Y, and Z axes. The device has an integrated temperature sensor available. The TMAG5273 can be configured through the I2C interface to enable any combination of magnetic axes and temperature measurements. An integrated angle calculation engine (CORDIC) provides full 360° angular position information for both on-axis and off-axis angle measurement topologies. The angle calculation is performed using two user-selected magnetic axes.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,tmag5273"
reg — required here #
Maximum number of items (maxItems): 1
#io-channel-cells — not listed as required here #
Exact value (const): 1
ti,angle-measurement — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Enables angle measurement in the selected plane. If not specified, "x-y" will be anables as default.
Allowed values (enum): "off", "x-y", "y-z", "x-z"
vcc-supply — not listed as required here #
A regulator providing 1.7 V to 3.6 V supply voltage on the VCC pin, typically 3.3 V.
interrupts — not listed as required here #
The low active interrupt can be configured to be fixed width or latched. Interrupt events can be configured to be generated from magnetic thresholds or when a conversion is completed.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
magnetometer@35 {
compatible = "ti,tmag5273";
reg = <0x35>;
#io-channel-cells = <1>;
ti,angle-measurement = "x-z";
vcc-supply = <&vcc3v3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Voltafield AF8133J magnetometer sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / magnetometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/magnetometer/voltafield,af8133j.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ondřej Jirman <megi@xff.cz>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "voltafield,af8133j"
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
A signal for active low reset input of the sensor. (optional; if not used, software reset over I2C will be used instead)
avdd-supply — required here #
A regulator that provides AVDD power (Working power, usually 3.3V) to the sensor.
dvdd-supply — required here #
A regulator that provides DVDD power (Digital IO power, 1.8V - AVDD) to the sensor.
mount-matrix — not listed as required here #
An optional 3x3 mounting rotation matrix.
Required in this object (required): "compatible", "reg", "avdd-supply", "dvdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
magnetometer@1c {
compatible = "voltafield,af8133j";
reg = <0x1c>;
avdd-supply = <®_dldo1>;
dvdd-supply = <®_dldo1>;
reset-gpios = <&pio 1 1 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Yamaha YAS530 family of magnetometer sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / magnetometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/magnetometer/yamaha,yas530.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
The Yamaha YAS530 magnetometers is a line of 3-axis magnetometers first introduced by Yamaha in 2009 with the YAS530. They are successors of Yamaha's first magnetometer YAS529. Over the years this magnetometer has been miniaturized and appeared in a number of different variants.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^magnetometer@[0-9a-f]+$"
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"yamaha,yas530","yamaha,yas532","yamaha,yas533","yamaha,yas535","yamaha,yas536","yamaha,yas537","yamaha,yas539"
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
The YAS530 sensor has a RSTN pin used to reset the logic inside the sensor. This GPIO line should connect to that pin and be marked as GPIO_ACTIVE_LOW.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Interrupt for INT pin for interrupt generation. The polarity, whether the interrupt is active on the rising or the falling edge, is software-configurable in the hardware.
vdd-supply — not listed as required here #
An optional regulator providing core power supply on the VDD pin, typically 1.8 V or 3.0 V.
iovdd-supply — not listed as required here #
An optional regulator providing I/O power supply for the I2C interface on the IOVDD pin, typically 1.8 V.
mount-matrix — not listed as required here #
An optional 3x3 mounting rotation matrix.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereArray item rules (
items)Exact value (
const):"yamaha,yas530"When the condition matches (
then) #Properties and child nodes (
properties)
reset-gpios— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereArray item rules (
items)Exact value (
const):"yamaha,yas539"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg"
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/gpio/gpio.h>
i2c-0 {
#address-cells = <1>;
#size-cells = <0>;
magnetometer@2e {
compatible = "yamaha,yas530";
reg = <0x2e>;
vdd-supply = <&ldo1_reg>;
iovdd-supply = <&ldo2_reg>;
reset-gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;
interrupts = <13 IRQ_TYPE_EDGE_RISING>;
};
};
i2c-1 {
#address-cells = <1>;
#size-cells = <0>;
magnetometer@2e {
compatible = "yamaha,yas539";
reg = <0x2e>;
vdd-supply = <&ldo1_reg>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
I/O channel multiplexer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / multiplexer
Schema identifier ($id): "http://devicetree.org/schemas/iio/multiplexer/io-channel-mux.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Rosin <peda@axentia.se>"
If a multiplexer is used to select which hardware signal is fed to e.g. an ADC channel, these bindings describe that situation.
For each non-empty string in the channels property, an io-channel will be created. The number of this io-channel is the same as the index into the list of strings in the channels property, and also matches the mux controller state. The mux controller state is described in Documentation/devicetree/bindings/mux/mux-controller.yaml
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "io-channel-mux"
io-channels — required here #
Maximum number of items (maxItems): 1
Channel node of the parent channel that has multiplexed input.
io-channel-names — required here #
Exact value (const): "parent"
mux-controls — required here #
true — No constraints added by this property rule.
mux-control-names — not listed as required here #
true — No constraints added by this property rule.
channels — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array
List of strings, labeling the mux controller states. An empty string for a state means that the channel is not available.
settle-time-us — not listed as required here #
Default value (default): 0
Time required for analog signals to settle after muxing.
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "io-channels", "io-channel-names", "mux-controls", "channels"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
mux: mux-controller {
compatible = "gpio-mux";
#mux-control-cells = <0>;
mux-gpios = <&pioA 0 GPIO_ACTIVE_HIGH>,
<&pioA 1 GPIO_ACTIVE_HIGH>;
};
adc-mux {
compatible = "io-channel-mux";
io-channels = <&adc 0>;
io-channel-names = "parent";
mux-controls = <&mux>;
channels = "sync", "in", "system-regulator";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Analog Devices AD5272 digital potentiometer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / potentiometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/potentiometer/adi,ad5272.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Phil Reid <preid@electromag.com.au>"
Datasheet: https://www.analog.com/en/products/ad5272.html
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad5272-020", "adi,ad5272-050", "adi,ad5272-100", "adi,ad5274-020", "adi,ad5274-100"
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Active low signal to the AD5272 RESET input.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
potentiometer@2f {
compatible = "adi,ad5272-020";
reg = <0x2f>;
reset-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Maxim Integrated MAX5432-MAX5435 Digital Potentiometers
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / potentiometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/potentiometer/max5432.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Martin Kaiser <martin@kaiser.cx>"
Maxim Integrated MAX5432-MAX5435 Digital Potentiometers connected via I2C
Datasheet:
https://datasheets.maximintegrated.com/en/ds/MAX5432-MAX5435.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxim,max5432", "maxim,max5433", "maxim,max5434", "maxim,max5435"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
max5434@28 {
compatible = "maxim,max5434";
reg = <0x28>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Microchip MCP41010/41050/41100/42010/42050/42100 Digital Potentiometer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / potentiometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/potentiometer/microchip,mcp41010.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chris Coffey <cmc@babblebit.net>"
Datasheet: https://ww1.microchip.com/downloads/en/devicedoc/11195c.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,mcp41010", "microchip,mcp41050", "microchip,mcp41100", "microchip,mcp42010", "microchip,mcp42050", "microchip,mcp42100"
reg — required here #
Maximum number of items (maxItems): 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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
potentiometer@0 {
compatible = "microchip,mcp41010";
reg = <0>;
spi-max-frequency = <500000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Microchip MCP413X/414X/415X/416X/423X/424X/425X/426X Digital Potentiometer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / potentiometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/potentiometer/microchip,mcp4131.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Slawomir Stepien <sst@poczta.fm>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,mcp4131-103", "microchip,mcp4131-104", "microchip,mcp4131-502", "microchip,mcp4131-503", "microchip,mcp4132-103", "microchip,mcp4132-104", "microchip,mcp4132-502", "microchip,mcp4132-503", "microchip,mcp4141-103", "microchip,mcp4141-104", "microchip,mcp4141-502", "microchip,mcp4141-503", "microchip,mcp4142-103", "microchip,mcp4142-104", "microchip,mcp4142-502", "microchip,mcp4142-503", "microchip,mcp4151-103", "microchip,mcp4151-104", "microchip,mcp4151-502", "microchip,mcp4151-503", "microchip,mcp4152-103", "microchip,mcp4152-104", "microchip,mcp4152-502", "microchip,mcp4152-503", "microchip,mcp4161-103", "microchip,mcp4161-104", "microchip,mcp4161-502", "microchip,mcp4161-503", "microchip,mcp4162-103", "microchip,mcp4162-104", "microchip,mcp4162-502", "microchip,mcp4162-503", "microchip,mcp4231-103", "microchip,mcp4231-104", "microchip,mcp4231-502", "microchip,mcp4231-503", "microchip,mcp4232-103", "microchip,mcp4232-104", "microchip,mcp4232-502", "microchip,mcp4232-503", "microchip,mcp4241-103", "microchip,mcp4241-104", "microchip,mcp4241-502", "microchip,mcp4241-503", "microchip,mcp4242-103", "microchip,mcp4242-104", "microchip,mcp4242-502", "microchip,mcp4242-503", "microchip,mcp4251-103", "microchip,mcp4251-104", "microchip,mcp4251-502", "microchip,mcp4251-503", "microchip,mcp4252-103", "microchip,mcp4252-104", "microchip,mcp4252-502", "microchip,mcp4252-503", "microchip,mcp4261-103", "microchip,mcp4261-104", "microchip,mcp4261-502", "microchip,mcp4261-503", "microchip,mcp4262-103", "microchip,mcp4262-104", "microchip,mcp4262-502", "microchip,mcp4262-503"
reg — required here #
Maximum number of items (maxItems): 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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
potentiometer@0 {
compatible = "microchip,mcp4131-502";
reg = <0>;
spi-max-frequency = <500000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Microchip mcp4531 and similar potentiometers.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / potentiometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/potentiometer/microchip,mcp4531.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Rosin <peda@axentia.se>"
Family of I2C digital potentiometer
Datasheets at:
* volatile https://ww1.microchip.com/downloads/en/DeviceDoc/22096b.pdf
* non-volatile https://ww1.microchip.com/downloads/en/DeviceDoc/22107B.pdf
Part numbers as follows: mcp4ABC-XXX where
A = 5 (1 wiper), 6 (2 wipers)
B = 3 (7-bit, volatile), 4 (7-bit, non-volatile),
5 (8-bit, volatile), 6 (8-bit, non-volatile),
C: 1 (potentiometer), 2 (rheostat)
XXX = 502 (5 kOhms), 103 (10 kOhms), 503 (50 kOhms), 104 (100 kOhms)
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,mcp4531-502", "microchip,mcp4531-103", "microchip,mcp4531-503", "microchip,mcp4531-104", "microchip,mcp4532-502", "microchip,mcp4532-103", "microchip,mcp4532-503", "microchip,mcp4532-104", "microchip,mcp4541-502", "microchip,mcp4541-103", "microchip,mcp4541-503", "microchip,mcp4541-104", "microchip,mcp4542-502", "microchip,mcp4542-103", "microchip,mcp4542-503", "microchip,mcp4542-104", "microchip,mcp4551-502", "microchip,mcp4551-103", "microchip,mcp4551-503", "microchip,mcp4551-104", "microchip,mcp4552-502", "microchip,mcp4552-103", "microchip,mcp4552-503", "microchip,mcp4552-104", "microchip,mcp4561-502", "microchip,mcp4561-103", "microchip,mcp4561-503", "microchip,mcp4561-104", "microchip,mcp4562-502", "microchip,mcp4562-103", "microchip,mcp4562-503", "microchip,mcp4562-104", "microchip,mcp4631-502", "microchip,mcp4631-103", "microchip,mcp4631-503", "microchip,mcp4631-104", "microchip,mcp4632-502", "microchip,mcp4632-103", "microchip,mcp4632-503", "microchip,mcp4632-104", "microchip,mcp4641-502", "microchip,mcp4641-103", "microchip,mcp4641-503", "microchip,mcp4641-104", "microchip,mcp4642-502", "microchip,mcp4642-103", "microchip,mcp4642-503", "microchip,mcp4642-104", "microchip,mcp4651-502", "microchip,mcp4651-103", "microchip,mcp4651-503", "microchip,mcp4651-104", "microchip,mcp4652-502", "microchip,mcp4652-103", "microchip,mcp4652-503", "microchip,mcp4652-104", "microchip,mcp4661-502", "microchip,mcp4661-103", "microchip,mcp4661-503", "microchip,mcp4661-104", "microchip,mcp4662-502", "microchip,mcp4662-103", "microchip,mcp4662-503", "microchip,mcp4662-104"
reg — required here #
Maximum number of items (maxItems): 1
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
dpot: dpot@28 {
compatible = "microchip,mcp4651-104";
reg = <0x28>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 27: Ordering reflects part number + range, so 502 < 103 etc
Renesas X9250 quad potentiometers
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / potentiometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/potentiometer/renesas,x9250.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Herve Codina <herve.codina@bootlin.com>"
The Renesas X9250 integrates four digitally controlled potentiometers. On each potentiometer, the X9250T has a 100 kOhms total resistance and the X9250U has a 50 kOhms total resistance.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "renesas,x9250t", "renesas,x9250u"
reg — required here #
Maximum number of items (maxItems): 1
vcc-supply — required here #
Regulator for the VCC power supply.
avp-supply — required here #
Regulator for the analog V+ power supply.
avn-supply — required here #
Regulator for the analog V- power supply.
#io-channel-cells — required here #
Exact value (const): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 2000000
wp-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO connected to the write-protect pin.
Required in this object (required): "compatible", "reg", "vcc-supply", "avp-supply", "avn-supply", "#io-channel-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
potentiometer@0 {
compatible = "renesas,x9250t";
reg = <0>;
vcc-supply = <&vcc_regulator>;
avp-supply = <&avp_regulator>;
avn-supply = <&avp_regulator>;
wp-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
spi-max-frequency = <2000000>;
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments LMP91000 series of potentiostats with I2C control
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / potentiostat
Schema identifier ($id): "http://devicetree.org/schemas/iio/potentiostat/ti,lmp91000.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matt Ranostay <matt.ranostay@konsulko.com>"
Typically used as a signal conditioner for chemical sensors. LMP91000: https://www.ti.com/lit/ds/symlink/lmp91000.pdf LMP91002: https://www.ti.com/lit/ds/symlink/lmp91002.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,lmp91000", "ti,lmp91002"
reg — required here #
Maximum number of items (maxItems): 1
io-channels — required here #
Maximum number of items (maxItems): 1
ti,external-tia-resistor — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If the property ti,tia-gain-ohm is not defined this needs to be set to signal that an external resistor value is being used.
ti,tia-gain-ohm — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 2750, 3500, 7000, 14000, 35000, 120000, 350000
Internal resistor for the transimpedance amplifier.
ti,rload-ohm — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 10, 33, 50, 100
Internal resistor load applied to the gas sensor. Default 100 Ohms.
Required in this object (required): "compatible", "reg", "io-channels"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
lmp91000@48 {
compatible = "ti,lmp91000";
reg = <0x48>;
ti,tia-gain-ohm = <7000>;
ti,rload-ohm = <100>;
io-channels = <&adc>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
aosong adp810 differential pressure sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / pressure
Schema identifier ($id): "http://devicetree.org/schemas/iio/pressure/aosong,adp810.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Akhilesh Patil <akhilesh@ee.iitb.ac.in>"
ADP810 is differential pressure and temperature sensor. It has I2C bus interface with fixed address of 0x25. This sensor supports 8 bit CRC for reliable data transfer. It can measure differential pressure in the range -500 to 500Pa and temperate in the range -40 to +85 degree celsius.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "aosong,adp810"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
pressure-sensor@25 {
compatible = "aosong,adp810";
reg = <0x25>;
vdd-supply = <&vdd_regulator>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
All Sensors DLH series low voltage digital pressure sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / pressure
Schema identifier ($id): "http://devicetree.org/schemas/iio/pressure/asc,dlhl60d.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Bindings for the All Sensors DLH series pressure sensors.
Specifications about the sensors can be found at:
https://www.allsensors.com/cad/DS-0355_Rev_B.PDF
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "asc,dlhl60d", "asc,dlhl60g"
reg — required here #
I2C device address
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
interrupt mapping for EOC(data ready) pin
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
pressure@29 {
compatible = "asc,dlhl60d";
reg = <0x29>;
interrupt-parent = <&gpio0>;
interrupts = <10 IRQ_TYPE_EDGE_RISING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
BMP085/BMP180/BMP280/BME280/BMP380 pressure iio sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / pressure
Schema identifier ($id): "http://devicetree.org/schemas/iio/pressure/bmp085.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andreas Klinger <ak@it-klinger.de>"
Pressure, temperature and humidity iio sensors with i2c and spi interfaces
Specifications about the sensor can be found at:
https://www.bosch-sensortec.com/bst/products/all_products/bmp180
https://www.bosch-sensortec.com/bst/products/all_products/bmp280
https://www.bosch-sensortec.com/bst/products/all_products/bme280
https://www.bosch-sensortec.com/bst/products/all_products/bmp380
https://www.bosch-sensortec.com/bst/products/all_products/bmp580
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "bosch,bmp085", "bosch,bmp180", "bosch,bmp280", "bosch,bme280", "bosch,bmp380", "bosch,bmp580"
reg — not listed as required here #
Maximum number of items (maxItems): 1
vddd-supply — required here #
digital voltage regulator (see regulator/regulator.txt)
vdda-supply — required here #
analog voltage regulator (see regulator/regulator.txt)
reset-gpios — not listed as required here #
A GPIO line handling reset of the sensor. As the line is active low, it should be marked GPIO_ACTIVE_LOW (see gpio/gpio.txt)
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
drive-open-drain — not listed as required here #
set if the interrupt pin should be configured as open drain. If not set, defaults to push-pull configuration.
Value type (type): "boolean"
spi-max-frequency — not listed as required here #
Maximum value (maximum): 10000000
Required in this object (required): "compatible", "vddd-supply", "vdda-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereThis rule must not match (
not)Rule for matching array elements (
contains)Allowed values (
enum):"bosch,bmp085","bosch,bmp380","bosch,bmp580"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
spi-max-frequency— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
pressure@77 {
compatible = "bosch,bmp085";
reg = <0x77>;
interrupt-parent = <&gpio0>;
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
vddd-supply = <&foo>;
vdda-supply = <&bar>;
};
};
# include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
pressure@0 {
compatible = "bosch,bmp280";
reg = <0>;
spi-max-frequency = <10000000>;
reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
vddd-supply = <&foo>;
vdda-supply = <&bar>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
MPL3115 precision pressure sensor with altimetry
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / pressure
Schema identifier ($id): "http://devicetree.org/schemas/iio/pressure/fsl,mpl3115.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Antoni Pokusinski <apokusinski01@gmail.com>"
MPL3115 is a pressure/altitude and temperature sensor with I2C interface. It features two programmable interrupt lines which indicate events such as data ready or pressure/temperature threshold reached. https://www.nxp.com/docs/en/data-sheet/MPL3115A2.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "fsl,mpl3115"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
vddio-supply — required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
drive-open-drain — not listed as required here #
Value type (type): "boolean"
set if the specified interrupt pins should be configured as open drain. If not set, defaults to push-pull.
Required in this object (required): "compatible", "reg", "vdd-supply", "vddio-supply"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
pressure@60 {
compatible = "fsl,mpl3115";
reg = <0x60>;
vdd-supply = <&vdd>;
vddio-supply = <&vddio>;
interrupt-parent = <&gpio1>;
interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "INT2";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Honeywell abp2030pa pressure sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / pressure
Schema identifier ($id): "http://devicetree.org/schemas/iio/pressure/honeywell,abp2030pa.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Petre Rodan <petre.rodan@subdimension.ro>"
Honeywell pressure sensor of model abp2030pa.
This sensor has an I2C and SPI interface.
There are many models with different pressure ranges available. The vendor calls them "ABP2 series". All of them have an identical programming model and differ in the pressure range and measurement unit.
To support different models one needs to specify its pressure triplet.
For custom silicon chips not covered by the Honeywell ABP2 series datasheet, the pressure values can be specified manually via honeywell,pmin-pascal and honeywell,pmax-pascal.
Specifications about the devices can be found at: https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/board-mount-pressure-sensors/basic-abp2-series/documents/sps-siot-abp2-series-datasheet-32350268-en.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "honeywell,abp2030pa"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Optional interrupt for indicating end of conversion. SPI variants of ABP2 chips do not provide this feature.
Maximum number of items (maxItems): 1
honeywell,pressure-triplet — not listed as required here #
Case-sensitive five character string that defines pressure range, unit and type as part of the device nomenclature. In the unlikely case of a custom chip, unset and provide pmin-pascal and pmax-pascal instead.
Allowed values (enum): "001BA", "1.6BA", "2.5BA", "004BA", "006BA", "008BA", "010BA", "012BA", "001BD", "1.6BD", "2.5BD", "004BD", "001BG", "1.6BG", "2.5BG", "004BG", "006BG", "008BG", "010BG", "012BG", "001GG", "1.2GG", "100KA", "160KA", "250KA", "001KD", "1.6KD", "2.5KD", "004KD", "006KD", "010KD", "016KD", "025KD", "040KD", "060KD", "100KD", "160KD", "250KD", "400KD", "001KG", "1.6KG", "2.5KG", "004KG", "006KG", "010KG", "016KG", "025KG", "040KG", "060KG", "100KG", "160KG", "250KG", "400KG", "600KG", "800KG", "250LD", "600LD", "600LG", "2.5MD", "006MD", "010MD", "016MD", "025MD", "040MD", "060MD", "100MD", "160MD", "250MD", "400MD", "600MD", "006MG", "010MG", "016MG", "025MG", "040MG", "060MG", "100MG", "160MG", "250MG", "400MG", "600MG", "001ND", "002ND", "004ND", "005ND", "010ND", "020ND", "030ND", "002NG", "004NG", "005NG", "010NG", "020NG", "030NG", "015PA", "030PA", "060PA", "100PA", "150PA", "175PA", "001PD", "005PD", "015PD", "030PD", "060PD", "001PG", "005PG", "015PG", "030PG", "060PG", "100PG", "150PG", "175PG"
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
honeywell,pmin-pascal — not listed as required here #
Minimum pressure value the sensor can measure in pascal.
honeywell,pmax-pascal — not listed as required here #
Maximum pressure value the sensor can measure in pascal.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 800000
vdd-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vdd-supply"
Exactly one of these rules must match (oneOf) #
Rule 1 #
Required in this object (
required):"honeywell,pressure-triplet"
Rule 2 #
Required in this object (
required):"honeywell,pmin-pascal","honeywell,pmax-pascal"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml
Rule 2 #
Condition (
if) #Required in this object (
required):"honeywell,pressure-triplet"When the condition matches (
then) #Properties and child nodes (
properties)
honeywell,pmin-pascal— not listed as required here
false— Not permitted by this property rule.
honeywell,pmax-pascal— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
pressure@18 {
compatible = "honeywell,abp2030pa";
reg = <0x18>;
interrupt-parent = <&gpio3>;
interrupts = <21 IRQ_TYPE_EDGE_RISING>;
honeywell,pressure-triplet = "001BA";
vdd-supply = <&vcc_3v3>;
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
pressure@0 {
compatible = "honeywell,abp2030pa";
reg = <0>;
spi-max-frequency = <800000>;
honeywell,pressure-triplet = "001PD";
vdd-supply = <&vcc_3v3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Honeywell TruStability HSC and SSC pressure sensor series
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / pressure
Schema identifier ($id): "http://devicetree.org/schemas/iio/pressure/honeywell,hsc030pa.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
support for Honeywell TruStability HSC and SSC digital pressure sensor series.
These sensors have either an I2C, an SPI or an analog interface. Only the digital versions are supported by this driver.
There are 118 models with different pressure ranges available in each family. The vendor calls them "HSC series" and "SSC series". All of them have an identical programming model but differ in pressure range, unit and transfer function.
To support different models one needs to specify the pressure range as well as the transfer function. Pressure range can either be provided via pressure-triplet (directly extracted from the part number) or in case it's a custom chip via numerical range limits converted to pascals.
The transfer function defines the ranges of raw conversion values delivered by the sensor. pmin-pascal and pmax-pascal corespond to the minimum and maximum pressure that can be measured.
Please note that in case of an SPI-based sensor, the clock signal should not exceed 800kHz and the MOSI signal is not required.
Specifications about the devices can be found at: https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/board-mount-pressure-sensors/trustability-hsc-series/documents/sps-siot-trustability-hsc-series-high-accuracy-board-mount-pressure-sensors-50099148-a-en-ciid-151133.pdf https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/board-mount-pressure-sensors/trustability-ssc-series/documents/sps-siot-trustability-ssc-series-standard-accuracy-board-mount-pressure-sensors-50099533-a-en-ciid-151134.pdf
Maintainers (maintainers): "Petre Rodan <petre.rodan@subdimension.ro>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "honeywell,hsc030pa"
reg — required here #
Maximum number of items (maxItems): 1
honeywell,transfer-function — required here #
Transfer function which defines the range of valid values delivered by the sensor. 0 - A, 10% to 90% of 2^14 1 - B, 5% to 95% of 2^14 2 - C, 5% to 85% of 2^14 3 - F, 4% to 94% of 2^14
Allowed values (enum): 0, 1, 2, 3
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
honeywell,pressure-triplet — required here #
Case-sensitive five character string that defines pressure range, unit and type as part of the device nomenclature. In the unlikely case of a custom chip, set to "NA" and provide pmin-pascal and pmax-pascal.
Allowed values (enum): "001BA", "1.6BA", "2.5BA", "004BA", "006BA", "010BA", "1.6MD", "2.5MD", "004MD", "006MD", "010MD", "016MD", "025MD", "040MD", "060MD", "100MD", "160MD", "250MD", "400MD", "600MD", "001BD", "1.6BD", "2.5BD", "004BD", "2.5MG", "004MG", "006MG", "010MG", "016MG", "025MG", "040MG", "060MG", "100MG", "160MG", "250MG", "400MG", "600MG", "001BG", "1.6BG", "2.5BG", "004BG", "006BG", "010BG", "100KA", "160KA", "250KA", "400KA", "600KA", "001GA", "160LD", "250LD", "400LD", "600LD", "001KD", "1.6KD", "2.5KD", "004KD", "006KD", "010KD", "016KD", "025KD", "040KD", "060KD", "100KD", "160KD", "250KD", "400KD", "250LG", "400LG", "600LG", "001KG", "1.6KG", "2.5KG", "004KG", "006KG", "010KG", "016KG", "025KG", "040KG", "060KG", "100KG", "160KG", "250KG", "400KG", "600KG", "001GG", "015PA", "030PA", "060PA", "100PA", "150PA", "0.5ND", "001ND", "002ND", "004ND", "005ND", "010ND", "020ND", "030ND", "001PD", "005PD", "015PD", "030PD", "060PD", "001NG", "002NG", "004NG", "005NG", "010NG", "020NG", "030NG", "001PG", "005PG", "015PG", "030PG", "060PG", "100PG", "150PG", "NA"
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
honeywell,pmin-pascal — not listed as required here #
Minimum pressure value the sensor can measure in pascal. To be specified only if honeywell,pressure-triplet is set to "NA".
honeywell,pmax-pascal — not listed as required here #
Maximum pressure value the sensor can measure in pascal. To be specified only if honeywell,pressure-triplet is set to "NA".
vdd-supply — not listed as required here #
Provide VDD power to the sensor (either 3.3V or 5V depending on the chip)
spi-max-frequency — not listed as required here #
Maximum value (maximum): 800000
Required in this object (required): "compatible", "reg", "honeywell,transfer-function", "honeywell,pressure-triplet"
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.
Rules triggered by another property (dependentSchemas) #
honeywell,pmin-pascal — applies when this property is present #
Properties and child nodes (properties) #
honeywell,pressure-triplet — not listed as required here
Exact value (const): "NA"
honeywell,pmax-pascal — applies when this property is present #
Properties and child nodes (properties) #
honeywell,pressure-triplet — not listed as required here
Exact value (const): "NA"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
pressure@28 {
compatible = "honeywell,hsc030pa";
reg = <0x28>;
honeywell,transfer-function = <0>;
honeywell,pressure-triplet = "030PA";
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
pressure@0 {
compatible = "honeywell,hsc030pa";
reg = <0>;
spi-max-frequency = <800000>;
honeywell,transfer-function = <0>;
honeywell,pressure-triplet = "NA";
honeywell,pmin-pascal = <0>;
honeywell,pmax-pascal = <200000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Honeywell mprls0025pa pressure sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / pressure
Schema identifier ($id): "http://devicetree.org/schemas/iio/pressure/honeywell,mprls0025pa.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andreas Klinger <ak@it-klinger.de>", "Petre Rodan <petre.rodan@subdimension.ro>"
Honeywell pressure sensor of model mprls0025pa.
This sensor has an I2C and SPI interface.
There are many models with different pressure ranges available. The vendor calls them "mpr series". All of them have the identical programming model and differ in the pressure range, unit and transfer function.
To support different models one need to specify its pressure triplet as well as the transfer function.
For custom silicon chips not covered by the Honeywell MPR series datasheet, the pressure values can be specified manually via honeywell,pmin-pascal and honeywell,pmax-pascal. The minimal range value stands for the minimum pressure and the maximum value also for the maximum pressure with linear relation inside the range.
The transfer function defines the ranges of numerical values delivered by the sensor.
Specifications about the devices can be found at:
https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/
products/sensors/pressure-sensors/board-mount-pressure-sensors/
micropressure-mpr-series/documents/
sps-siot-mpr-series-datasheet-32332628-ciid-172626.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "honeywell,mprls0025pa"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Optional interrupt for indicating End-of-conversion. If not present, the driver loops for a while until the received status byte indicates correct measurement.
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Optional GPIO for resetting the device. If not present the device is not reset during the probe.
Maximum number of items (maxItems): 1
honeywell,transfer-function — required here #
Transfer function which defines the range of valid values delivered by the sensor. 1 - A, 10% to 90% of 2^24 (1677722 .. 15099494) 2 - B, 2.5% to 22.5% of 2^24 (419430 .. 3774874) 3 - C, 20% to 80% of 2^24 (3355443 .. 13421773)
Allowed values (enum): 1, 2, 3
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
honeywell,pressure-triplet — not listed as required here #
Case-sensitive five character string that defines pressure range, unit and type as part of the device nomenclature. In the unlikely case of a custom chip, unset and provide pmin-pascal and pmax-pascal instead.
Allowed values (enum): "0001BA", "01.6BA", "02.5BA", "0060MG", "0100MG", "0160MG", "0250MG", "0400MG", "0600MG", "0001BG", "01.6BG", "02.5BG", "0100KA", "0160KA", "0250KA", "0006KG", "0010KG", "0016KG", "0025KG", "0040KG", "0060KG", "0100KG", "0160KG", "0250KG", "0015PA", "0025PA", "0030PA", "0001PG", "0005PG", "0015PG", "0030PG", "0300YG"
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
honeywell,pmin-pascal — not listed as required here #
Minimum pressure value the sensor can measure in pascal.
honeywell,pmax-pascal — not listed as required here #
Maximum pressure value the sensor can measure in pascal.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 800000
vdd-supply — required here #
provide VDD power to the sensor.
Required in this object (required): "compatible", "reg", "honeywell,transfer-function", "vdd-supply"
Exactly one of these rules must match (oneOf) #
Rule 1 #
Required in this object (
required):"honeywell,pressure-triplet"
Rule 2 #
Required in this object (
required):"honeywell,pmin-pascal","honeywell,pmax-pascal"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml
Rule 2 #
Condition (
if) #Required in this object (
required):"honeywell,pressure-triplet"When the condition matches (
then) #Properties and child nodes (
properties)
honeywell,pmin-pascal— not listed as required here
false— Not permitted by this property rule.
honeywell,pmax-pascal— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
pressure@18 {
compatible = "honeywell,mprls0025pa";
reg = <0x18>;
reset-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&gpio3>;
interrupts = <21 IRQ_TYPE_EDGE_RISING>;
honeywell,pressure-triplet = "0025PA";
honeywell,transfer-function = <1>;
vdd-supply = <&vcc_3v3>;
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
pressure@0 {
compatible = "honeywell,mprls0025pa";
reg = <0>;
spi-max-frequency = <800000>;
reset-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&gpio0>;
interrupts = <30 IRQ_TYPE_EDGE_RISING>;
honeywell,pressure-triplet = "0015PA";
honeywell,transfer-function = <1>;
vdd-supply = <&vcc_3v3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
HopeRF HP03 digital pressure/temperature sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / pressure
Schema identifier ($id): "http://devicetree.org/schemas/iio/pressure/hoperf,hp03.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marek Vasut <marex@denx.de>"
Digital pressure and temperature sensor with an I2C interface.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "hoperf,hp03"
reg — required here #
Maximum number of items (maxItems): 1
xclr-gpios — not listed as required here #
The XCLR pin is a reset of the ADC in the chip, it must be pulled HI before the conversion and readout of the value from the ADC registers and pulled LO afterward.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
pressure@77 {
compatible = "hoperf,hp03";
reg = <0x77>;
xclr-gpios = <&portc 0 0x0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Infineon DPS310 barometric pressure and temperature sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / pressure
Schema identifier ($id): "http://devicetree.org/schemas/iio/pressure/infineon,dps310.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Eddie James <eajames@linux.ibm.com>"
The DPS310 is a barometric pressure and temperature sensor with an I2C interface.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "infineon,dps310"
reg — required here #
Maximum number of items (maxItems): 1
#io-channel-cells — not listed as required here #
Exact value (const): 0
vdd-supply — not listed as required here #
Voltage supply for the chip's analog blocks.
vddio-supply — not listed as required here #
Digital voltage supply for the chip's digital blocks and I/O interface.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
dps: pressure-sensor@76 {
compatible = "infineon,dps310";
reg = <0x76>;
#io-channel-cells = <0>;
vdd-supply = <&vref1>;
vddio-supply = <&vref2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
InvenSense ICP-101xx Barometric Pressure Sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / pressure
Schema identifier ($id): "http://devicetree.org/schemas/iio/pressure/invensense,icp10100.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>"
Support for ICP-101xx family: ICP-10100, ICP-10101, ICP-10110, ICP-10111. Those devices uses a simple I2C communication bus, measuring the pressure in a ultra-low noise at the lowest power. Datasheet: https://product.tdk.com/system/files/dam/doc/product/sensor/pressure/capacitive-pressure/data_sheet/ds-000186-icp-101xx.pdf
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"invensense,icp10101","invensense,icp10110","invensense,icp10111"Item 2
Exact value (
const):"invensense,icp10100"
Rule 2
Exact value (
const):"invensense,icp10100"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
pressure@63 {
compatible = "invensense,icp10101", "invensense,icp10100";
reg = <0x63>;
vdd-supply = <&vdd_1v8>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Measurement Specialities ms5611 and similar pressure sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / pressure
Schema identifier ($id): "http://devicetree.org/schemas/iio/pressure/meas,ms5611.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tomasz Duszynski <tduszyns@gmail.com>"
Pressure sensors from MEAS Switzerland with SPI and I2C bus interfaces.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "meas,ms5607", "meas,ms5611"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 20000000
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) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
pressure@77 {
compatible = "meas,ms5607";
reg = <0x77>;
vdd-supply = <&ldo_3v3_gnss>;
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
pressure@0 {
compatible = "meas,ms5611";
reg = <0>;
vdd-supply = <&ldo_3v3_gnss>;
spi-max-frequency = <20000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Murata ZPA2326 pressure sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / pressure
Schema identifier ($id): "http://devicetree.org/schemas/iio/pressure/murata,zpa2326.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Pressure sensor from Murata with SPI and I2C bus interfaces.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "murata,zpa2326"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vref-supply — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 1000000
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) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
pressure@5c {
compatible = "murata,zpa2326";
reg = <0x5c>;
interrupt-parent = <&gpio>;
interrupts = <12>;
vdd-supply = <&ldo_1v8_gnss>;
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
pressure@0 {
compatible = "murata,zpa2326";
reg = <0>;
spi-max-frequency = <500000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ROHM BM1390 pressure sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / pressure
Schema identifier ($id): "http://devicetree.org/schemas/iio/pressure/rohm,bm1390.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matti Vaittinen <mazziesaccount@gmail.com>"
BM1390GLV-Z is a pressure sensor which performs internal temperature compensation for the MEMS. Pressure range is from 300 hPa to 1300 hPa and sample averaging and IIR filtering is built in. Temperature measurement is also supported.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "rohm,bm1390glv-z"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vdd-supply"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
pressure-sensor@5d {
compatible = "rohm,bm1390glv-z";
reg = <0x5d>;
interrupt-parent = <&gpio1>;
interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
vdd-supply = <&vdd>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
sdp500/sdp510 pressure sensor with I2C bus interface
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / pressure
Schema identifier ($id): "http://devicetree.org/schemas/iio/pressure/sensirion,sdp500.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Petar Stoykov <petar.stoykov@prodrive-technologies.com>"
Pressure sensor from Sensirion with I2C bus interface. There is no software difference between sdp500 and sdp510.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"sensirion,sdp510"Item 2
Exact value (
const):"sensirion,sdp500"
Rule 2
Exact value (
const):"sensirion,sdp500"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
pressure@40 {
compatible = "sensirion,sdp500";
reg = <0x40>;
vdd-supply = <&foo>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Austrian Microsystems AS3935 Franklin lightning sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / proximity
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/ams,as3935.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matt Ranostay <matt.ranostay@konsulko.com>"
This lightning distance sensor uses an I2C or SPI interface. The binding currently only covers the SPI option.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ams,as3935"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 2000000
spi-cpha — required here #
true — No constraints added by this property rule.
interrupts — required here #
Maximum number of items (maxItems): 1
ams,tuning-capacitor-pf — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Calibration tuning capacitor stepping value. This will require using the calibration data from the manufacturer.
Minimum value (minimum): 0
Maximum value (maximum): 120
ams,nflwdth — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Set the noise and watchdog threshold register on startup. This will need to set according to the noise from the MCU board, and possibly the local environment. Refer to the datasheet for the threshold settings.
Required in this object (required): "compatible", "reg", "spi-cpha", "interrupts"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
lightning@0 {
compatible = "ams,as3935";
reg = <0>;
spi-max-frequency = <400000>;
spi-cpha;
interrupt-parent = <&gpio1>;
interrupts = <16 1>;
ams,tuning-capacitor-pf = <80>;
ams,nflwdth = <0x44>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Awinic's AW96103 capacitive proximity sensor and similar
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / proximity
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/awinic,aw96103.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Wang Shuaijie <wangshuaijie@awinic.com>"
Awinic's AW96103/AW96105 proximity sensor. The specific absorption rate (SAR) is a metric that measures the degree of absorption of electromagnetic radiation emitted by wireless devices, such as mobile phones and tablets, by human tissue. In mobile phone applications, the proximity sensor is primarily used to detect the proximity of the human body to the phone. When the phone approaches the human body, it will actively reduce the transmit power of the antenna to keep the SAR within a safe range. Therefore, we also refer to the proximity sensor as a SAR sensor.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "awinic,aw96103", "awinic,aw96105"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Generated by the device to announce that a close/far proximity event has happened.
Maximum number of items (maxItems): 1
vcc-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "vcc-supply"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
proximity@12 {
compatible = "awinic,aw96103";
reg = <0x12>;
interrupt-parent = <&gpio>;
interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
vcc-supply = <&pp1800_prox>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Devantech SRF04 and Maxbotix mb1000 ultrasonic range finder
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / proximity
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/devantech-srf04.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andreas Klinger <ak@it-klinger.de>"
Bit-banging driver using two GPIOs:
- trigger-gpio is raised by the driver to start sending out an ultrasonic
burst
- echo-gpio is held high by the sensor after sending ultrasonic burst
until it is received once again
Specifications about the devices can be found at: https://www.robot-electronics.co.uk/htm/srf04tech.htm
https://www.maxbotix.com/documents/LV-MaxSonar-EZ_Datasheet.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "devantech,srf04", "maxbotix,mb1000", "maxbotix,mb1010", "maxbotix,mb1020", "maxbotix,mb1030", "maxbotix,mb1040"
trig-gpios — required here #
Definition of the GPIO for the triggering (output) This GPIO is set for about 10 us by the driver to tell the device it should initiate the measurement cycle. See Documentation/devicetree/bindings/gpio/gpio.txt for information on how to specify a consumer gpio.
Maximum number of items (maxItems): 1
echo-gpios — required here #
Definition of the GPIO for the echo (input) This GPIO is set by the device as soon as an ultrasonic burst is sent out and reset when the first echo is received. Thus this GPIO is set while the ultrasonic waves are doing one round trip. It needs to be an GPIO which is able to deliver an interrupt because the time between two interrupts is measured in the driver.
Maximum number of items (maxItems): 1
power-gpios — not listed as required here #
Definition of the GPIO for power management of connected peripheral (output). This GPIO can be used by the external hardware for power management. When the device gets suspended it's switched off and when it resumes it's switched on again. After some period of inactivity the driver get suspended automatically (autosuspend feature).
Maximum number of items (maxItems): 1
startup-time-ms — not listed as required here #
This is the startup time the device needs after a resume to be up and running.
Minimum value (minimum): 0
Maximum value (maximum): 1000
Default value (default): 100
Required in this object (required): "compatible", "trig-gpios", "echo-gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
proximity {
compatible = "devantech,srf04";
trig-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
echo-gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
ChromeOS EC MKBP Proximity Sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / proximity
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/google,cros-ec-mkbp-proximity.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stephen Boyd <swboyd@chromium.org>", "Benson Leung <bleung@chromium.org>"
Google's ChromeOS EC sometimes has the ability to detect user proximity. This is implemented on the EC as near/far logic and exposed to the OS via an MKBP switch bit.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "google,cros-ec-mkbp-proximity"
label — not listed as required here #
Name for proximity sensor
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
proximity {
compatible = "google,cros-ec-mkbp-proximity";
label = "proximity-wifi-lte";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
MaxBotix I2CXL-MaxSonar ultrasonic distance sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / proximity
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/maxbotix,mb1232.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andreas Klinger <ak@it-klinger.de>"
MaxBotix I2CXL-MaxSonar ultrasonic distance sensor of type mb1202, mb1212, mb1222, mb1232, mb1242, mb7040 or mb7137 using the i2c interface for ranging
Specifications about the devices can be found at: https://www.maxbotix.com/documents/I2CXL-MaxSonar-EZ_Datasheet.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxbotix,mb1202", "maxbotix,mb1212", "maxbotix,mb1222", "maxbotix,mb1232", "maxbotix,mb1242", "maxbotix,mb7040", "maxbotix,mb7137"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Interrupt used to announce the preceding reading request has finished and that data is available. If no interrupt is specified the device driver falls back to wait a fixed amount of time until data can be retrieved.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
proximity@70 {
compatible = "maxbotix,mb1232";
reg = <0x70>;
interrupt-parent = <&gpio2>;
interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Murata IRS-D200 PIR sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / proximity
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/murata,irsd200.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Waqar Hameed <waqar.hameed@axis.com>"
PIR sensor for human detection.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "murata,irsd200"
reg — required here #
Array item rules (items) #
Item 1
When the AD pin is connected to GND, the slave address is 0x48. When the AD pin is connected to VDD, the slave address is 0x49.
interrupts — required here #
Maximum number of items (maxItems): 1
Type should be IRQ_TYPE_EDGE_RISING.
vdd-supply — required here #
3.3 V supply voltage.
Required in this object (required): "compatible", "reg", "interrupts", "vdd-supply"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
proximity@48 {
compatible = "murata,irsd200";
reg = <0x48>;
interrupts = <24 IRQ_TYPE_EDGE_RISING>;
vdd-supply = <®ulator_3v3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Nicera D3-323-AA PIR sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / proximity
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/nicera,d3323aa.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Waqar Hameed <waqar.hameed@axis.com>"
PIR sensor for human detection. Datasheet: https://www.endrich.com/Datenbl%C3%A4tter/Sensoren/D3-323-AA_e.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nicera,d3323aa"
vdd-supply — required here #
Supply voltage (1.8 to 5.5 V).
vout-clk-gpios — required here #
Maximum number of items (maxItems): 1
GPIO for clock and detection. After reset, the device signals with two falling edges on this pin that it is ready for configuration (within 1.2 s). During configuration, it is used as clock for data reading and writing (on data-gpios). After all this, when device is in operational mode, it signals on this pin for any detections.
data-gpios — required here #
Maximum number of items (maxItems): 1
GPIO for data reading and writing. This is denoted "DO (SI)" in datasheet. During configuration, this pin is used for writing and reading configuration data (together with vout-clk-gpios as clock). After this, during operational mode, the device will output serial data on this GPIO.
Required in this object (required): "compatible", "vdd-supply", "vout-clk-gpios", "data-gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
proximity {
compatible = "nicera,d3323aa";
vdd-supply = <®ulator_3v3>;
vout-clk-gpios = <&gpio 78 GPIO_ACTIVE_HIGH>;
data-gpios = <&gpio 76 GPIO_ACTIVE_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Parallax PING))) and LaserPING range finder
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / proximity
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/parallax-ping.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andreas Klinger <ak@it-klinger.de>"
Bit-banging driver using one GPIO:
- ping-gpios is raised by the driver to start measurement
- direction of ping-gpio is then switched into input with an interrupt
for receiving distance value as PWM signal
Specifications about the devices can be found at: http://parallax.com/sites/default/files/downloads/28041-LaserPING-2m-Rangefinder-Guide.pdf http://parallax.com/sites/default/files/downloads/28015-PING-Documentation-v1.6.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "parallax,ping", "parallax,laserping"
ping-gpios — required here #
Definition of the GPIO for the triggering and echo (output and input) This GPIO is set for about 5 us by the driver to tell the device it should initiate the measurement cycle. Afterwards the GPIO is switched to input direction with an interrupt. The device sets it and the length of the input signal corresponds to the measured distance. It needs to be an GPIO which is able to deliver an interrupt because the time between two interrupts is measured in the driver. See Documentation/devicetree/bindings/gpio/gpio.txt for information on how to specify a consumer gpio.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "ping-gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
proximity {
compatible = "parallax,laserping";
ping-gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
RF Digital RFD77402 ToF sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / proximity
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/rfdigital,rfd77402.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shrikant Raskar <raskar.shree97@gmail.com>"
The RF Digital RFD77402 is a Time-of-Flight (ToF) proximity and distance sensor providing up to 200 mm range measurement over an I2C interface.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "rfdigital,rfd77402"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Interrupt asserted when a new distance measurement is available.
vdd-supply — required here #
Regulator that provides power to the sensor.
Required in this object (required): "compatible", "reg", "vdd-supply"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
proximity@4c {
compatible = "rfdigital,rfd77402";
reg = <0x4c>;
vdd-supply = <&vdd_3v3>;
interrupt-parent = <&gpio>;
interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Semtech's SX9310 capacitive proximity sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / proximity
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/semtech,sx9310.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Daniel Campello <campello@chromium.org>"
Semtech's SX9310/SX9311 capacitive proximity/button solution.
Specifications about the devices can be found at: https://www.semtech.com/products/smart-sensing/sar-sensors/sx9310
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/iio/iio.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "semtech,sx9310", "semtech,sx9311"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
The sole interrupt generated by the device used to announce the preceding reading request has finished and that data is available or that a close/far proximity event has happened.
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Main power supply
svdd-supply — not listed as required here #
Host interface power supply
#io-channel-cells — required here #
Exact value (const): 1
semtech,cs0-ground — not listed as required here #
Indicates the CS0 sensor is connected to ground.
Value type (type): "boolean"
semtech,combined-sensors — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
List of which sensors are combined and represented by CS3. Possible values are - 3 - CS3 (internal) 0 1 - CS0 + CS1 1 2 - CS1 + CS2 (default) 0 1 2 3 - CS0 + CS1 + CS2 + CS3
Array item rules (items) #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
semtech,resolution — not listed as required here #
Capacitance measure resolution. Refer to datasheet for more details.
Allowed values (enum): "coarsest", "very-coarse", "coarse", "medium-coarse", "medium", "fine", "very-fine", "finest"
semtech,startup-sensor — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
Sensor used for start-up proximity detection. The combined sensor is represented by the value 3. This is used for initial compensation.
semtech,proxraw-strength — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 2, 4, 8
Default value (default): 2
PROXRAW filter strength. A value of 0 represents off, and other values represent 1-1/N.
semtech,avg-pos-strength — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 16, 64, 128, 256, 512, 1024, 4294967295
Default value (default): 16
Average positive filter strength. A value of 0 represents off and UINT_MAX (4294967295) represents infinite. Other values represent 1-1/N.
Required in this object (required): "compatible", "reg", "#io-channel-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
proximity@28 {
compatible = "semtech,sx9310";
reg = <0x28>;
interrupt-parent = <&pio>;
interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>;
vdd-supply = <&pp3300_a>;
svdd-supply = <&pp1800_prox>;
#io-channel-cells = <1>;
semtech,cs0-ground;
semtech,combined-sensors = <1 2 3>;
semtech,resolution = "fine";
semtech,startup-sensor = <1>;
semtech,proxraw-strength = <2>;
semtech,avg-pos-strength = <64>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Semtech's SX9324 capacitive proximity sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / proximity
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/semtech,sx9324.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Gwendal Grignou <gwendal@chromium.org>", "Daniel Campello <campello@chromium.org>"
Semtech's SX9324 proximity sensor.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/iio/iio.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "semtech,sx9324"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Generated by device to announce preceding read request has finished and data is available or that a close/far proximity event has happened.
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Main power supply
svdd-supply — not listed as required here #
Host interface power supply
#io-channel-cells — required here #
Exact value (const): 1
semtech,ph0-pin — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array of 3 entries. Index represent the id of the CS pin. Value indicates how each CS pin is used during phase 0. Each of the 3 pins have the following value - 0 : unused (high impedance) 1 : measured input 2 : dynamic shield 3 : grounded. For instance, CS0 measured, CS1 shield and CS2 ground is [1, 2, 3]
Array item rules (items) #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 3
semtech,ph1-pin — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Same as ph0-pin for phase 1.
Array item rules (items) #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 3
semtech,ph2-pin — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Same as ph0-pin for phase 2.
Array item rules (items) #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 3
semtech,ph3-pin — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Same as ph0-pin for phase 3.
Array item rules (items) #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 3
semtech,ph01-resolution — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 8, 16, 32, 64, 128, 256, 512, 1024
Capacitance measurement resolution. For phase 0 and 1. Higher the number, higher the resolution.
Default value (default): 128
semtech,ph23-resolution — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 8, 16, 32, 64, 128, 256, 512, 1024
Capacitance measurement resolution. For phase 2 and 3
Default value (default): 128
semtech,startup-sensor — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
Phase used for start-up proximity detection. It is used when we enable a phase to remove static offset and measure only capacitance changes introduced by the user.
semtech,ph01-proxraw-strength — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 7
Default value (default): 1
PROXRAW filter strength for phase 0 and 1. A value of 0 represents off, and other values represent 1-1/2^N.
semtech,ph23-proxraw-strength — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 7
Default value (default): 1
Same as proxraw-strength01, for phase 2 and 3.
semtech,avg-pos-strength — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 16, 64, 128, 256, 512, 1024, 4294967295
Default value (default): 16
Average positive filter strength. A value of 0 represents off and UINT_MAX (4294967295) represents infinite. Other values represent 1-1/N.
semtech,cs-idle-sleep — not listed as required here #
State of CS pins during sleep mode and idle time.
Allowed values (enum): "hi-z", "gnd", "vdd"
semtech,int-comp-resistor — not listed as required here #
Internal resistor setting for compensation.
Allowed values (enum): "lowest", "low", "high", "highest"
semtech,input-precharge-resistor-ohms — not listed as required here #
Default value (default): 4000
Multiple of (multipleOf): 2000
Minimum value (minimum): 0
Maximum value (maximum): 30000
Pre-charge input resistance in Ohm.
semtech,input-analog-gain — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 3
Defines the input antenna analog gain 0: x1.247 1: x1 (default) 2: x0.768 3: x0.552
Required in this object (required): "compatible", "reg", "#io-channel-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
proximity@28 {
compatible = "semtech,sx9324";
reg = <0x28>;
interrupt-parent = <&pio>;
interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>;
vdd-supply = <&pp3300_a>;
svdd-supply = <&pp1800_prox>;
#io-channel-cells = <1>;
semtech,ph0-pin = <1 2 3>;
semtech,ph1-pin = <3 2 1>;
semtech,ph2-pin = <1 2 3>;
semtech,ph3-pin = <3 2 1>;
semtech,ph01-resolution = <256>;
semtech,ph23-resolution = <256>;
semtech,startup-sensor = <1>;
semtech,ph01-proxraw-strength = <2>;
semtech,ph23-proxraw-strength = <2>;
semtech,avg-pos-strength = <64>;
semtech,int-comp-resistor = "lowest";
semtech,input-precharge-resistor-ohms = <2000>;
semtech,cs-idle-sleep = "gnd";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Semtech's SX9360 capacitive proximity sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / proximity
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/semtech,sx9360.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Gwendal Grignou <gwendal@chromium.org>", "Daniel Campello <campello@chromium.org>"
Semtech's SX9360 proximity sensor.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "semtech,sx9360"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Generated by device to announce preceding read request has finished and data is available or that a close/far proximity event has happened.
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Main power supply
svdd-supply — not listed as required here #
Host interface power supply
#io-channel-cells — required here #
Exact value (const): 1
semtech,resolution — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 8, 16, 32, 64, 128, 256, 512, 1024
Capacitance measurement resolution. For both phases, "reference" and "measurement". Higher the number, higher the resolution.
Default value (default): 128
semtech,proxraw-strength — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 7
Default value (default): 1
PROXRAW filter strength for both phases. A value of 0 represents off, and other values represent 1-1/2^N.
semtech,avg-pos-strength — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 16, 64, 128, 256, 512, 1024, 4294967295
Default value (default): 16
Average positive filter strength. A value of 0 represents off and UINT_MAX (4294967295) represents infinite. Other values represent 1-1/N.
semtech,input-precharge-resistor-ohms — not listed as required here #
Default value (default): 0
Multiple of (multipleOf): 2000
Minimum value (minimum): 0
Maximum value (maximum): 30000
Pre-charge input resistance in Ohm.
Required in this object (required): "compatible", "reg", "#io-channel-cells"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
proximity@28 {
compatible = "semtech,sx9360";
reg = <0x28>;
interrupt-parent = <&pio>;
interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>;
vdd-supply = <&pp3300_a>;
svdd-supply = <&pp1800_prox>;
#io-channel-cells = <1>;
semtech,resolution = <256>;
semtech,proxraw-strength = <2>;
semtech,avg-pos-strength = <64>;
semtech,input-precharge-resistor-ohms = <4000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Semtech's SX9500 capacitive proximity button device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / proximity
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/semtech,sx9500.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "semtech,sx9500"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
GPIO connected to the active low reset pin.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
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/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
proximity@28 {
compatible = "semtech,sx9500";
reg = <0x28>;
interrupt-parent = <&gpio2>;
interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ST VL53L0X ToF ranging sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / proximity
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/st,vl53l0x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Song Qiang <songqiang1304521@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,vl53l0x"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
proximity@29 {
compatible = "st,vl53l0x";
reg = <0x29>;
interrupt-parent = <&gpio>;
interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
TYHX HX9023S capacitive proximity sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / proximity
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/tyhx,hx9023s.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Yasin Lee <yasin.lee.x@gmail.com>"
TYHX HX9023S proximity sensor. Datasheet can be found here:
http://www.tianyihexin.com/ueditor/php/upload/file/20240614/1718336303992081.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "tyhx,hx9023s"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Generated by device to announce preceding read request has finished and data is available or that a close/far proximity event has happened.
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^channel@[0-4]$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/iio/adc/adc.yaml
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Minimum value (minimum): 0
Maximum value (maximum): 4
The channel number.
Required in this object (required): "compatible", "reg", "vdd-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
proximity@2a {
compatible = "tyhx,hx9023s";
reg = <0x2a>;
interrupt-parent = <&pio>;
interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
vdd-supply = <&pp1800_prox>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
single-channel = <0>;
};
channel@1 {
reg = <1>;
single-channel = <1>;
};
channel@2 {
reg = <2>;
single-channel = <2>;
};
channel@3 {
reg = <3>;
diff-channels = <1 0>;
};
channel@4 {
reg = <4>;
diff-channels = <2 0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Integrated Proximity Sensor With Infrared Emitter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / proximity
Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/vishay,vcnl3020.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ivan Mikhaylov <i.mikhaylov@yadro.com>"
The VCNL3020 is a fully integrated proximity sensor. Fully integrated means that the infrared emitter is included in the package. It has 16-bit resolution. It includes a signal processing IC and features standard I2C communication interface. It features an interrupt function.
Specifications about the devices can be found at: https://www.vishay.com/docs/84150/vcnl3020.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "vishay,vcnl3020"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Regulator that provides power to the sensor
vddio-supply — not listed as required here #
Regulator that provides power to the bus
vishay,led-current-microamp — not listed as required here #
The driver current for the LED used in proximity sensing.
Allowed values (enum): 0, 10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000, 90000, 100000, 110000, 120000, 130000, 140000, 150000, 160000, 170000, 180000, 190000, 200000
Default value (default): 20000
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
proximity@13 {
compatible = "vishay,vcnl3020";
reg = <0x13>;
vishay,led-current-microamp = <200000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices AD2S1210 Resolver-to-Digital Converter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / resolver
Schema identifier ($id): "http://devicetree.org/schemas/iio/resolver/adi,ad2s1210.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"
The AD2S1210 is a complete 10-bit to 16-bit resolution tracking resolver-to-digital converter, integrating an on-board programmable sinusoidal oscillator that provides sine wave excitation for resolvers.
The AD2S1210 allows the user to read the angular position or the angular velocity data directly from the parallel outputs or through the serial interface.
The mode of operation of the communication channel (parallel or serial) is selected by the A0 and A1 input pins. In normal mode, data is latched by toggling the SAMPLE line and can then be read directly. In configuration mode, data is read or written using a register access scheme (address byte with read/write flag and data byte).
A1 A0 Result
0 0 Normal mode - position output
0 1 Normal mode - velocity output
1 0 Reserved
1 1 Configuration mode
In normal mode, the resolution of the digital output is selected using the RES0 and RES1 input pins. In configuration mode, the resolution is selected by setting the RES0 and RES1 bits in the control register.
RES1 RES0 Resolution (Bits)
0 0 10
0 1 12
1 0 14
1 1 16
Note on SPI connections: The CS line on the AD2S1210 should hard-wired to logic low and the WR/FSYNC line on the AD2S1210 should be connected to the SPI CSn output of the SPI controller.
Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/ad2s1210.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "adi,ad2s1210"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 25000000
spi-cpha — required here #
true — No constraints added by this property rule.
avdd-supply — required here #
A 4.75 to 5.25 V regulator that powers the Analog Supply Voltage (AVDD) pin.
dvdd-supply — required here #
A 4.75 to 5.25 V regulator that powers the Digital Supply Voltage (DVDD) pin.
vdrive-supply — required here #
A 2.3 to 5.25 V regulator that powers the Logic Power Supply Input (VDrive) pin.
clocks — required here #
Maximum number of items (maxItems): 1
External oscillator clock (CLKIN).
reset-gpios — not listed as required here #
GPIO connected to the /RESET pin. As the line needs to be low for the reset to be active, it should be configured as GPIO_ACTIVE_LOW.
Maximum number of items (maxItems): 1
sample-gpios — required here #
GPIO connected to the /SAMPLE pin. As the line needs to be low to trigger a sample, it should be configured as GPIO_ACTIVE_LOW.
Maximum number of items (maxItems): 1
mode-gpios — not listed as required here #
GPIO lines connected to the A0 and A1 pins. These pins select the data transfer mode.
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
resolution-gpios — not listed as required here #
GPIO lines connected to the RES0 and RES1 pins. These pins select the resolution of the digital output. If omitted, it is assumed that the RES0 and RES1 pins are hard-wired to match the assigned-resolution-bits property.
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
fault-gpios — not listed as required here #
GPIO lines connected to the LOT and DOS pins. These pins combined indicate the type of fault present, if any. As these pins a pulled low to indicate a fault condition, they should be configured as GPIO_ACTIVE_LOW.
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
adi,fixed-mode — not listed as required here #
This is used to indicate the selected mode if A0 and A1 are hard-wired instead of connected to GPIOS (i.e. mode-gpios is omitted).
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "config", "velocity", "position"
assigned-resolution-bits — required here #
Resolution of the digital output required by the application. This determines the precision of the angle and/or the maximum speed that can be measured. If resolution-gpios is omitted, it is assumed that RES0 and RES1 are hard-wired to match this value.
Allowed values (enum): 10, 12, 14, 16
Required in this object (required): "compatible", "reg", "spi-cpha", "avdd-supply", "dvdd-supply", "vdrive-supply", "clocks", "sample-gpios", "assigned-resolution-bits"
Exactly one of these rules must match (oneOf) #
Rule 1 #
Rule 2 #
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/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
resolver@0 {
compatible = "adi,ad2s1210";
reg = <0>;
spi-max-frequency = <20000000>;
spi-cpha;
avdd-supply = <&avdd_regulator>;
dvdd-supply = <&dvdd_regulator>;
vdrive-supply = <&vdrive_regulator>;
clocks = <&ext_osc>;
sample-gpios = <&gpio0 90 GPIO_ACTIVE_LOW>;
mode-gpios = <&gpio0 86 0>, <&gpio0 87 0>;
resolution-gpios = <&gpio0 88 0>, <&gpio0 89 0>;
assigned-resolution-bits = <16>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices AD2S90 Resolver-to-Digital Converter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / resolver
Schema identifier ($id): "http://devicetree.org/schemas/iio/resolver/adi,ad2s90.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matheus Tavares <matheus.bernardino@usp.br>"
Datasheet: https://www.analog.com/en/products/ad2s90.html
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "adi,ad2s90"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 830000
Chip's max frequency, as specified in its datasheet, is 2Mhz. But a 600ns delay is expected between the application of a logic LO to CS and the application of SCLK, as also specified. And since the delay is not implemented in the spi code, to satisfy it, SCLK's period should be at most 2 * 600ns, so the max frequency should be 1 / (2 * 6e-7), which gives roughly 830000Hz.
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
Property dependencies (dependencies) #
spi-cpol — applies when this property is present #
Also requires: "spi-cpha"
spi-cpha — applies when this property is present #
Also requires: "spi-cpol"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
resolver@0 {
compatible = "adi,ad2s90";
reg = <0>;
spi-max-frequency = <830000>;
spi-cpol;
spi-cpha;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Analog Devices LTC2983, LTC2986, LTM2985 Multi-sensor Temperature system
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / temperature
Schema identifier ($id): "http://devicetree.org/schemas/iio/temperature/adi,ltc2983.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nuno Sá <nuno.sa@analog.com>"
Analog Devices LTC2983, LTC2984, LTC2986, LTM2985 Multi-Sensor Digital Temperature Measurement Systems
https://www.analog.com/media/en/technical-documentation/data-sheets/2983fc.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/2984fb.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/29861fa.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ltm2985.pdf
Reusable definitions ($defs) #
sensor-node #
Value type (type): "object"
Sensor node common constraints
Properties and child nodes (properties) #
reg — required here
Channel number. Connects the sensor to the channel with this number of the device.
Minimum value (minimum): 1
Maximum value (maximum): 20
adi,sensor-type — required here
Type of sensor connected to the device.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Required in this object (required): "reg", "adi,sensor-type"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"adi,ltc2983","adi,ltc2986","adi,ltm2985"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"adi,ltc2984"Item 2
Exact value (
const):"adi,ltc2983"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
adi,mux-delay-config-us — not listed as required here #
Extra delay prior to each conversion, in addition to the internal 1ms delay, for the multiplexer to switch input configurations and excitation values.
This property is supposed to be in microseconds, but to maintain compatibility, this value will be multiplied by 100 before usage.
Maximum value (maximum): 255
Default value (default): 0
adi,filter-notch-freq — not listed as required here #
Notch frequency of the digital filter. 0 - 50/60Hz rejection 1 - 60Hz rejection 2 - 50Hz rejection
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 2
Default value (default): 0
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^thermocouple@ — name matches this regular expression #
Shared schema rule ($ref): #/$defs/sensor-node
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Thermocouple sensor.
Properties and child nodes (properties) #
adi,sensor-type — not listed as required here
1 - Type J Thermocouple 2 - Type K Thermocouple 3 - Type E Thermocouple 4 - Type N Thermocouple 5 - Type R Thermocouple 6 - Type S Thermocouple 7 - Type T Thermocouple 8 - Type B Thermocouple 9 - Custom Thermocouple
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 9
adi,single-ended — not listed as required here
Whether the sensor is single-ended.
Value type (type): "boolean"
adi,sensor-oc-current-microamp — not listed as required here
Pulsed current value applied during open-circuit detect.
Allowed values (enum): 10, 100, 500, 1000
Default value (default): 10
adi,cold-junction-handle — not listed as required here
Sensor responsible for measuring the thermocouple cold junction temperature.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
adi,custom-thermocouple — not listed as required here
Used for digitizing custom thermocouples. See Page 59 of the datasheet.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/int64-matrix
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 64
Array item rules (items)
Array item rules (
items)Item 1
Voltage point in nV, signed.
Item 2
Temperature point in uK.
All of these rules must match (allOf) #
Rule 1
Condition (
if)Properties and child nodes (
properties)
adi,sensor-type— not listed as required hereExact value (
const):9When the condition matches (
then)Required in this object (
required):"adi,custom-thermocouple"
^diode@ — name matches this regular expression #
Shared schema rule ($ref): #/$defs/sensor-node
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Diode sensor.
Properties and child nodes (properties) #
adi,sensor-type — not listed as required here
Sensor type for diodes.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Exact value (const): 28
adi,single-ended — not listed as required here
Whether the sensor is single-ended.
Value type (type): "boolean"
adi,three-conversion-cycles — not listed as required here
Whether to use three conversion cycles to remove parasitic resistance between the device and the diode.
Value type (type): "boolean"
adi,average-on — not listed as required here
Whether to use a running average of the diode temperature reading to reduce the noise when the diode is used as a cold junction temperature element on an isothermal block where temperatures change slowly.
Value type (type): "boolean"
adi,excitation-current-microamp — not listed as required here
Magnitude of the 1l excitation current applied to the diode. 4l excitation current will be 4 times this value, and 8l excitation current will be 8 times value.
Allowed values (enum): 10, 20, 40, 80
Default value (default): 10
adi,ideal-factor-value — not listed as required here
Diode ideality factor. Set this property to 1000000 times the real value.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
^rtd@ — name matches this regular expression #
Shared schema rule ($ref): #/$defs/sensor-node
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
RTD sensor.
Properties and child nodes (properties) #
reg — not listed as required here
Minimum value (minimum): 2
Maximum value (maximum): 20
adi,sensor-type — not listed as required here
10 - RTD PT-10 11 - RTD PT-50 12 - RTD PT-100 13 - RTD PT-200 14 - RTD PT-500 15 - RTD PT-1000 16 - RTD PT-1000 (0.00375) 17 - RTD NI-120 18 - RTD Custom
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 10
Maximum value (maximum): 18
adi,rsense-handle — required here
Associated sense resistor sensor.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
adi,number-of-wires — not listed as required here
Number of wires used by the RTD. 5 means 4 wires with Kelvin sense resistor.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 2, 3, 4, 5
Default value (default): 2
adi,rsense-share — not listed as required here
Whether to enable sense resistor sharing, where one sense resistor is used by multiple sensors.
Value type (type): "boolean"
adi,excitation-current-microamp — not listed as required here
Excitation current applied to the RTD.
Allowed values (enum): 5, 10, 25, 50, 100, 250, 500, 1000
Default value (default): 5
adi,rtd-curve — not listed as required here
RTD curve and the corresponding Callendar-VanDusen constants. 0 - European 1 - American 2 - Japanese 3 - ITS-90
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 3
Default value (default): 0
adi,custom-rtd — not listed as required here
Used for digitizing custom RTDs. See Page 62 of the datasheet.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint64-matrix
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 64
Array item rules (items)
Array item rules (
items)Item 1
Resistance point in uOhms.
Item 2
Temperature point in uK.
Required in this object (required): "adi,rsense-handle"
All of these rules must match (allOf) #
Rule 1
Condition (
if)Properties and child nodes (
properties)
adi,number-of-wires— not listed as required hereExact value (
const):4When the condition matches (
then)Properties and child nodes (
properties)
adi,current-rotate— not listed as required hereWhether to enable excitation current rotation to automatically remove parasitic thermocouple effects.
Value type (
type):"boolean"Property dependencies (
dependencies)
adi,current-rotate— applies when this property is presentAlso requires:
"adi,rsense-share"
Rule 2
Condition (
if)Properties and child nodes (
properties)
adi,sensor-type— not listed as required hereExact value (
const):18When the condition matches (
then)
^thermistor@ — name matches this regular expression #
Shared schema rule ($ref): #/$defs/sensor-node
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Thermistor sensor.
Properties and child nodes (properties) #
adi,sensor-type — not listed as required here
19 - Thermistor 44004/44033 2.252kohm at 25°C 20 - Thermistor 44005/44030 3kohm at 25°C 21 - Thermistor 44007/44034 5kohm at 25°C 22 - Thermistor 44006/44031 10kohm at 25°C 23 - Thermistor 44008/44032 30kohm at 25°C 24 - Thermistor YSI 400 2.252kohm at 25°C 25 - Thermistor Spectrum 1003k 1kohm 26 - Thermistor Custom Steinhart-Hart 27 - Custom Thermistor
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 19
Maximum value (maximum): 27
adi,rsense-handle — required here
Associated sense resistor sensor.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
adi,single-ended — not listed as required here
Whether the sensor is single-ended.
Value type (type): "boolean"
adi,rsense-share — not listed as required here
Whether to enable sense resistor sharing, where one sense resistor is used by multiple sensors.
Value type (type): "boolean"
adi,current-rotate — not listed as required here
Whether to enable excitation current rotation to automatically remove parasitic thermocouple effects.
Value type (type): "boolean"
adi,excitation-current-nanoamp — not listed as required here
Excitation current applied to the thermistor. 0 sets the sensor in auto-range mode.
Allowed values (enum): 0, 250, 500, 1000, 5000, 10000, 25000, 50000, 100000, 250000, 500000, 1000000
Default value (default): 0
adi,custom-thermistor — not listed as required here
Used for digitizing custom thermistors. See Page 65 of the datasheet.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint64-matrix
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 64
Array item rules (items)
Array item rules (
items)Item 1
Resistance point in uOhms.
Item 2
Temperature point in uK.
adi,custom-steinhart — not listed as required here
Steinhart-Hart coefficients in raw format, used for digitizing custom thermistors. See Page 68 of the datasheet.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 6
Maximum number of items (maxItems): 6
Required in this object (required): "adi,rsense-handle"
Property dependencies (dependencies) #
adi,current-rotate — applies when this property is present
Also requires: "adi,rsense-share"
All of these rules must match (allOf) #
Rule 1
Condition (
if)Properties and child nodes (
properties)
adi,sensor-type— not listed as required hereExact value (
const):26When the condition matches (
then)Properties and child nodes (
properties)
adi,excitation-current-nanoamp— not listed as required hereAllowed values (
enum):250,500,1000,5000,10000,25000,50000,100000,250000,500000,1000000Default value (
default):1000
Rule 2
Condition (
if)Properties and child nodes (
properties)
adi,sensor-type— not listed as required hereExact value (
const):27When the condition matches (
then)Properties and child nodes (
properties)
adi,excitation-current-nanoamp— not listed as required hereAllowed values (
enum):250,500,1000,5000,10000,25000,50000,100000,250000,500000,1000000Default value (
default):1000
^adc@ — name matches this regular expression #
Shared schema rule ($ref): #/$defs/sensor-node
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Direct ADC sensor.
Properties and child nodes (properties) #
adi,sensor-type — not listed as required here
Sensor type for direct ADC sensors.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Exact value (const): 30
adi,single-ended — not listed as required here
Whether the sensor is single-ended.
Value type (type): "boolean"
^temp@ — name matches this regular expression #
Shared schema rule ($ref): #/$defs/sensor-node
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Active analog temperature sensor.
Properties and child nodes (properties) #
adi,sensor-type — not listed as required here
Sensor type for active analog temperature sensors.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Exact value (const): 31
adi,single-ended — not listed as required here
Whether the sensor is single-ended.
Value type (type): "boolean"
adi,custom-temp — required here
Used for digitizing active analog temperature sensors. See Page 67 of the LTM2985 datasheet.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint64-matrix
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 64
Array item rules (items)
Array item rules (
items)Item 1
Voltage point in nV, signed.
Item 2
Temperature point in uK.
Required in this object (required): "adi,custom-temp"
^rsense@ — name matches this regular expression #
Shared schema rule ($ref): #/$defs/sensor-node
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Sense resistor sensor.
Properties and child nodes (properties) #
reg — not listed as required here
Minimum value (minimum): 2
Maximum value (maximum): 20
adi,sensor-type — not listed as required here
Sensor type sense resistor sensors.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Exact value (const): 29
adi,rsense-val-milli-ohms — required here
Value of the sense resistor.
Required in this object (required): "adi,rsense-val-milli-ohms"
Required in this object (required): "compatible", "reg", "interrupts", "vdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^temp@— name matches this regular expression
false— Not permitted by this property rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
temperature-sensor@0 {
compatible = "adi,ltc2983";
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
vdd-supply = <&supply>;
interrupts = <20 IRQ_TYPE_EDGE_RISING>;
interrupt-parent = <&gpio>;
thermocouple@18 {
reg = <18>;
adi,sensor-type = <8>; //Type B
adi,sensor-oc-current-microamp = <10>;
adi,cold-junction-handle = <&diode5>;
};
diode5: diode@5 {
reg = <5>;
adi,sensor-type = <28>;
};
rsense2: rsense@2 {
reg = <2>;
adi,sensor-type = <29>;
adi,rsense-val-milli-ohms = <1200000>; //1.2Kohms
};
rtd@14 {
reg = <14>;
adi,sensor-type = <15>; //PT1000
/*2-wire, internal gnd, no current rotation*/
adi,number-of-wires = <2>;
adi,rsense-share;
adi,excitation-current-microamp = <500>;
adi,rsense-handle = <&rsense2>;
};
adc@10 {
reg = <10>;
adi,sensor-type = <30>;
adi,single-ended;
};
thermistor@12 {
reg = <12>;
adi,sensor-type = <26>; //Steinhart
adi,rsense-handle = <&rsense2>;
adi,custom-steinhart = <0x00f371ec 0x12345678
0x2c0f8733 0x10018c66 0xa0feaccd
0x90021d99>; //6 entries
};
thermocouple@20 {
reg = <20>;
adi,sensor-type = <9>; //custom thermocouple
adi,single-ended;
adi,custom-thermocouple =
/bits/ 64 <(-50220000) 0>,
/bits/ 64 <(-30200000) 99100000>,
/bits/ 64 <(-5300000) 135400000>,
/bits/ 64 <0 273150000>,
/bits/ 64 <40200000 361200000>,
/bits/ 64 <55300000 522100000>,
/bits/ 64 <88300000 720300000>,
/bits/ 64 <132200000 811200000>,
/bits/ 64 <188700000 922500000>,
/bits/ 64 <460400000 1000000000>; //10 pairs
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Maxim MAX31855 and similar thermocouples
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / temperature
Schema identifier ($id): "http://devicetree.org/schemas/iio/temperature/maxim,max31855k.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matt Ranostay <matt.ranostay@konsulko.com>"
https://datasheets.maximintegrated.com/en/ds/MAX6675.pdf https://datasheets.maximintegrated.com/en/ds/MAX31855.pdf
Properties and child nodes (properties) #
compatible — required here #
The generic maxim,max31855 compatible is deprecated in favour of the thermocouple type specific variants.
Allowed values (enum): "maxim,max6675", "maxim,max31855", "maxim,max31855k", "maxim,max31855j", "maxim,max31855n", "maxim,max31855s", "maxim,max31855t", "maxim,max31855e", "maxim,max31855r"
reg — required here #
Maximum number of items (maxItems): 1
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
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#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
spi-cpha— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
temp-sensor@0 {
compatible = "maxim,max31855k";
reg = <0>;
spi-max-frequency = <4300000>;
};
temp-sensor@1 {
compatible = "maxim,max6675";
reg = <1>;
spi-max-frequency = <4300000>;
spi-cpha;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Maxim MAX31856 thermocouple support
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / temperature
Schema identifier ($id): "http://devicetree.org/schemas/iio/temperature/maxim,max31856.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
https://datasheets.maximintegrated.com/en/ds/MAX31856.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "maxim,max31856"
reg — required here #
Maximum number of items (maxItems): 1
spi-cpha — required here #
true — No constraints added by this property rule.
thermocouple-type — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Type of thermocouple (THERMOCOUPLE_TYPE_K if omitted). Use defines in dt-bindings/iio/temperature/thermocouple.h. Supported types are B, E, J, K, N, R, S, T.
Required in this object (required): "compatible", "reg", "spi-cpha"
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/iio/temperature/thermocouple.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
temp-sensor@0 {
compatible = "maxim,max31856";
reg = <0>;
spi-max-frequency = <5000000>;
spi-cpha;
thermocouple-type = <THERMOCOUPLE_TYPE_K>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Maxim MAX31865 Resistance Temperature Detector.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / temperature
Schema identifier ($id): "http://devicetree.org/schemas/iio/temperature/maxim,max31865.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Navin Sankar Velliangiri <navin@linumiz.com>"
https://datasheets.maximintegrated.com/en/ds/MAX31865.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "maxim,max31865"
reg — required here #
Maximum number of items (maxItems): 1
maxim,3-wire — not listed as required here #
Identifies the number of wires used by the RTD. Setting this property enables 3-wire RTD connection. Else 2-wire or 4-wire RTD connection.
Value type (type): "boolean"
spi-cpha — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "spi-cpha"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
temperature-sensor@0 {
compatible = "maxim,max31865";
reg = <0>;
spi-max-frequency = <400000>;
spi-cpha;
maxim,3-wire;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Melexis MLX90614/MLX90615 contactless IR temperature sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / temperature
Schema identifier ($id): "http://devicetree.org/schemas/iio/temperature/melexis,mlx90614.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Meerwald <pmeerw@pmeerw.net>", "Crt Mori <cmo@melexis.com>"
http://melexis.com/Infrared-Thermometer-Sensors/Infrared-Thermometer-Sensors/MLX90614-615.aspx
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "melexis,mlx90614", "melexis,mlx90615"
reg — required here #
Maximum number of items (maxItems): 1
wakeup-gpios — not listed as required here #
GPIO connected to the SDA line to hold low in order to wake up the device. In normal operation, the GPIO is set as input and will not interfere in I2C communication. There is no need for a GPIO driving the SCL line. If no GPIO is given, power management is disabled.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
temp-sensor@5a {
compatible = "melexis,mlx90614";
reg = <0x5a>;
wakeup-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Melexis MLX90632 and MLX90635 contactless Infra Red temperature sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / temperature
Schema identifier ($id): "http://devicetree.org/schemas/iio/temperature/melexis,mlx90632.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Crt Mori <cmo@melexis.com>"
https://www.melexis.com/en/documents/documentation/datasheets/datasheet-mlx90632
There are various applications for the Infra Red contactless temperature sensor and MLX90632 is most suitable for consumer applications where measured object temperature is in range between -20 to 200 degrees Celsius with relative error of measurement below 1 degree Celsius in object temperature range for industrial applications. Since it can operate and measure ambient temperature in range of -20 to 85 degrees Celsius it is suitable also for outdoor use.
Be aware that electronics surrounding the sensor can increase ambient temperature. MLX90632 can be calibrated to reduce the housing effect via already existing EEPROM parameters.
Since measured object emissivity effects Infra Red energy emitted, emissivity should be set before requesting the object temperature.
https://www.melexis.com/en/documents/documentation/datasheets/datasheet-mlx90635
MLX90635 is most suitable for consumer applications where measured object temperature is in range between -20 to 100 degrees Celsius with relative error of measurement 2 degree Celsius in object temperature range for industrial applications, while just 0.2 degree Celsius for human body measurement applications. Since it can operate and measure ambient temperature in range of -20 to 85 degrees Celsius it is suitable also for outdoor use.
Since measured object emissivity effects Infra Red energy emitted, emissivity should be set before requesting the object temperature.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "melexis,mlx90632", "melexis,mlx90635"
reg — required here #
Maximum number of items (maxItems): 1
Default is 0x3a, but can be reprogrammed.
vdd-supply — not listed as required here #
provide VDD power to the sensor.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
temp-sensor@3a {
compatible = "melexis,mlx90632";
reg = <0x3a>;
vdd-supply = <&ldo4_reg>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Microchip MCP9600 and similar thermocouple EMF converters
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / temperature
Schema identifier ($id): "http://devicetree.org/schemas/iio/temperature/microchip,mcp9600.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Hepp <andrew.hepp@ahepp.dev>"
https://ww1.microchip.com/downloads/en/DeviceDoc/MCP960X-Data-Sheet-20005426.pdf
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"microchip,mcp9600"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"microchip,mcp9601"Item 2
Exact value (
const):"microchip,mcp9600"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 6
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 6
Array item rules (items) #
Allowed values (
enum):"open-circuit","short-circuit","alert1","alert2","alert3","alert4"
thermocouple-type — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 3
Type of thermocouple (THERMOCOUPLE_TYPE_K if omitted). Use defines in dt-bindings/iio/temperature/thermocouple.h. Supported types are B, E, J, K, N, R, S, T.
microchip,vsense — not listed as required here #
Value type (type): "boolean"
This flag indicates that the chip has been wired with VSENSE to enable open and short circuit detect.
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereThis rule must not match (
not)Rule for matching array elements (
contains)Exact value (
const):"microchip,mcp9601"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):4
interrupt-names— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):4Array item rules (
items)Allowed values (
enum):"alert1","alert2","alert3","alert4"
microchip,vsense— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/iio/temperature/thermocouple.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
temperature-sensor@60 {
compatible = "microchip,mcp9600";
reg = <0x60>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "alert1";
thermocouple-type = <THERMOCOUPLE_TYPE_K>;
vdd-supply = <&vdd>;
};
};
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
temperature-sensor@62 {
compatible = "microchip,mcp9601", "microchip,mcp9600";
reg = <0x62>;
interrupt-parent = <&gpio>;
interrupts = <22 IRQ_TYPE_EDGE_RISING>, <23 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "open-circuit", "short-circuit";
vdd-supply = <&vdd>;
microchip,vsense;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
TI TMP006 IR thermopile sensor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / temperature
Schema identifier ($id): "http://devicetree.org/schemas/iio/temperature/ti,tmp006.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Meerwald <pmeerw@pmeerw.net>"
TI TMP006 - Infrared Thermopile Sensor in Chip-Scale Package. https://cdn.sparkfun.com/datasheets/Sensors/Temp/tmp006.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,tmp006"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
provide VDD power to the sensor.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
temperature-sensor@40 {
compatible = "ti,tmp006";
reg = <0x40>;
vdd-supply = <&ldo4_reg>;
interrupt-parent = <&gpio1>;
interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
IR thermopile sensor with integrated math engine
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / temperature
Schema identifier ($id): "http://devicetree.org/schemas/iio/temperature/ti,tmp007.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Manivannan Sadhasivam <manivannanece23@gmail.com>"
http://www.ti.com/lit/ds/symlink/tmp007.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,tmp007"
reg — required here #
The I2C address of the sensor (changeable via ADR pins)
------------------------------
|ADR1 | ADR0 | Device Address|
------------------------------
0 0 0x40
0 1 0x41
0 SDA 0x42
0 SCL 0x43
1 0 0x44
1 1 0x45
1 SDA 0x46
1 SCL 0x47
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
temp-sensor@40 {
compatible = "ti,tmp007";
reg = <0x40>;
interrupt-parent = <&gpio0>;
interrupts = <5 0x08>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
TI TMP117 - Digital temperature sensor with integrated NV memory
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / temperature
Schema identifier ($id): "http://devicetree.org/schemas/iio/temperature/ti,tmp117.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
TI TMP116/117 - Digital temperature sensor with integrated NV memory that
supports I2C interface.
https://www.ti.com/lit/gpn/tmp116
https://www.ti.com/lit/gpn/tmp117
Maintainers (maintainers): "Puranjay Mohan <puranjay12@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,tmp116", "ti,tmp117"
reg — required here #
Maximum number of items (maxItems): 1
vcc-supply — required here #
provide VCC power to the sensor.
label — not listed as required here #
Unique name to identify which device this is.
Required in this object (required): "compatible", "reg", "vcc-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
tmp117@48 {
compatible = "ti,tmp117";
reg = <0x48>;
vcc-supply = <&pmic_reg_3v3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Common properties for iio sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings
Schema identifier ($id): "http://devicetree.org/schemas/iio/common.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>", "Guido Günther <agx@sigxcpu.org>"
This document defines device tree properties common to several iio sensors. It doesn't constitute a device tree binding specification by itself but is meant to be referenced by device tree bindings.
When referenced from sensor tree bindings the properties defined in this document are defined as follows. The sensor tree bindings are responsible for defining whether each property is required or optional.
Properties and child nodes (properties) #
proximity-near-level — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
For proximity sensors whether an object can be considered near to the device depends on parameters like sensor position, covering glass and aperture. This value gives an indication to userspace for which sensor readings this is the case.
Raw proximity values equal or above this level should be considered 'near' to the device (an object is near to the sensor).
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Samsung Sensorhub driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings
Schema identifier ($id): "http://devicetree.org/schemas/iio/samsung,sensorhub-rinato.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Sensorhub is a MCU which manages several sensors and also plays the role of a virtual sensor device.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "samsung,sensorhub-rinato", "samsung,sensorhub-thermostat"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
ap-mcu-gpios — required here #
Maximum number of items (maxItems): 1
Application Processor to sensorhub line - used during communication
mcu-ap-gpios — required here #
Maximum number of items (maxItems): 1
Sensorhub to Application Processor - used during communication
mcu-reset-gpios — required here #
Maximum number of items (maxItems): 1
Reset the sensorhub.
Required in this object (required): "compatible", "reg", "interrupts", "ap-mcu-gpios", "mcu-ap-gpios", "mcu-reset-gpios"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
sensorhub@0 {
compatible = "samsung,sensorhub-rinato";
reg = <0>;
spi-max-frequency = <5000000>;
interrupt-parent = <&gpx0>;
interrupts = <2 0>;
ap-mcu-gpios = <&gpx0 0 0>;
mcu-ap-gpios = <&gpx0 4 0>;
mcu-reset-gpios = <&gpx0 5 0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
STMicroelectronics MEMS sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings
Schema identifier ($id): "http://devicetree.org/schemas/iio/st,st-sensors.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The STMicroelectronics sensor devices are pretty straight-forward I2C or SPI devices, all sharing the same device tree descriptions no matter what type of sensor it is. Note that whilst this covers many STMicro MEMs sensors, some more complex IMUs need their own bindings.
Maintainers (maintainers): "Denis Ciocca <denis.ciocca@st.com>", "Linus Walleij <linusw@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
STMicroelectronics Accelerometers
Allowed values (
enum):"st,h3lis331dl-accel","st,lis2de12","st,lis2dw12","st,lis2hh12","st,lis2dh12-accel","st,lis2ds12","st,lis302dl","st,lis331dl-accel","st,lis331dlh-accel","st,lis3de","st,lis3dh-accel","st,lis3dhh","st,lis3l02dq","st,lis3lv02dl-accel","st,lng2dm-accel","st,lsm303agr-accel","st,lsm303c-accel","st,lsm303dl-accel","st,lsm303dlh-accel","st,lsm303dlhc-accel","st,lsm303dlm-accel","st,lsm330-accel","st,lsm330d-accel","st,lsm330dl-accel","st,lsm330dlc-accel"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"st,iis328dq"Item 2
Exact value (
const):"st,h3lis331dl-accel"
Rule 3
Silan Accelerometers
Rule 4
STMicroelectronics Gyroscopes
Allowed values (
enum):"st,l3g4200d-gyro","st,l3g4is-gyro","st,l3gd20-gyro","st,l3gd20h-gyro","st,lsm330-gyro","st,lsm330d-gyro","st,lsm330dl-gyro","st,lsm330dlc-gyro","st,lsm9ds0-gyro"
Rule 5
STMicroelectronics Magnetometers
Allowed values (
enum):"st,iis2mdc","st,lis2mdl","st,lis3mdl-magn","st,lsm303agr-magn","st,lsm303c-magn","st,lsm303dlh-magn","st,lsm303dlhc-magn","st,lsm303dlm-magn","st,lsm9ds1-magn"
Rule 6
STMicroelectronics Pressure Sensors
Allowed values (
enum):"st,lps001wp-press","st,lps22df","st,lps22hb-press","st,lps22hh","st,lps25h-press","st,lps331ap-press","st,lps33hw","st,lps35hw"
Rule 7
IMUs
Rule 8
Deprecated bindings
Allowed values (
enum):"st,lis302dl-spi","st,lis3lv02d"Deprecated (
deprecated):true
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
interrupt line(s) connected to the DRDY line(s) and/or the Inertial interrupt lines INT1 and INT2 if these exist. This means up to three interrupts, and the DRDY must be the first one if it exists on the package. The trigger edge of the interrupts is sometimes software configurable in the hardware so the operating system should parse this flag and set up the trigger edge as indicated in the device tree.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vddio-supply — not listed as required here #
true — No constraints added by this property rule.
st,drdy-int-pin — not listed as required here #
the pin on the package that will be used to signal "data ready" (valid values 1 or 2). This property is not configurable on all sensors.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
drive-open-drain — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
the interrupt/data ready line will be configured as open drain, which is useful if several sensors share the same interrupt line. (This binding is taken from pinctrl.)
mount-matrix — not listed as required here #
an optional 3x3 mounting rotation matrix.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required here
false— Not permitted by this property rule.
st,drdy-int-pin— not listed as required here
false— Not permitted by this property rule.
drive-open-drain— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereAllowed values (
enum):"st,lis2mdl","st,lis3l02dq","st,lis3lv02dl-accel","st,lps22df","st,lps22hb-press","st,lps22hh","st,lps25h-press","st,lps33hw","st,lps35hw","st,lsm303agr-magn","st,lsm303dlh-magn","st,lsm303dlhc-magn","st,lsm303dlm-magn"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):1
st,drdy-int-pin— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
accelerometer@1c {
compatible = "st,lis331dl-accel";
reg = <0x1c>;
st,drdy-int-pin = <1>;
vdd-supply = <&ldo1>;
vddio-supply = <&ldo2>;
interrupt-parent = <&gpio>;
interrupts = <18 IRQ_TYPE_EDGE_RISING>, <19 IRQ_TYPE_EDGE_RISING>;
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
num-cs = <1>;
l3g4200d: gyroscope@0 {
compatible = "st,l3g4200d-gyro";
st,drdy-int-pin = <2>;
reg = <0>;
vdd-supply = <&vcc_io>;
vddio-supply = <&vcc_io>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 134: These have no interrupts
Line 146: These have only DRDY